/* Tehillim Today — base styles
   Palette taken from the Psalms That Speak to You cover + logo */

:root {
  --navy: #142a4b;
  --navy-deep: #0e1e36;
  --gold: #b98a3c;
  --gold-soft: #d9b26a;
  --blue: #1f5fb8;
  --red: #d8402a;
  --orange: #f0892a;
  --cream: #faf6ef;
  --cream-deep: #f1eadb;
  --ink: #1d2433;
  --ink-soft: #55607a;
  --line: rgba(20, 42, 75, 0.12);

  --serif: "Newsreader", "Georgia", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --hebrew: "Frank Ruhl Libre", "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

/* No CSS scroll-behavior: smooth — it makes ScrollTrigger measure mid-scroll and breaks every parallax */

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p  { margin: 0 0 1.1em; }
em.gold { font-style: italic; color: var(--gold); }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Blurred backdrop for any pop-up ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 9;
  background: rgba(20, 42, 75, .25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.backdrop.show { opacity: 1; pointer-events: auto; }
/* Gentle version used behind the Books dropdown on desktop: light blur, faint tint, clicks pass through */
.backdrop.dim {
  opacity: 1; pointer-events: none;
  background: rgba(20, 42, 75, .08);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: opacity .3s ease;
}
body.no-scroll { overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 22px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
/* Once scrolled: compact liquid-glass bar */
.site-header.scrolled {
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(250,246,239,.78), rgba(250,246,239,.62));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,.7),
    0 1px 0 rgba(20,42,75,.08),
    0 10px 30px -14px rgba(20,42,75,.25);
}
.site-header.scrolled .logo img { height: 28px; }
/* Hidden while scrolling down, back as soon as you scroll up */
.site-header.hidden { transform: translateY(-100%); }
.logo img { transition: height .3s ease; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: 34px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-weight: 500;
  font-size: .97rem;
}
.nav a { text-decoration: none; color: var(--navy); }
.nav a:not(.btn):hover { color: var(--gold); }
.nav .btn { padding: .7em 1.25em; }
.sheet-head, .sheet-music, .nav-cta { display: none; }
.nav a.btn-primary { color: #fff; }
.nav-toggle { display: none; }
.site-header .wrap { flex-wrap: wrap; }
.nav { order: 2; margin-left: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #e8e4dc;
}
.hero-bg, .hero-front {   /* the two hero layers share one box so they always line up */
  position: absolute; inset: 0;
  top: -10%; width: 100%; height: 120%;   /* overhang mostly above: the parallax (moving down) never opens a gap; the book sits a little lower in the hero */
  object-fit: cover;
  object-position: 70% 100%;   /* book nudged right of centre, bottom-anchored so its base on the plinth shows */
  will-change: transform;
}
.hero picture { display: contents; }
.hero { grid-template-rows: 1fr; }
.hero .wrap { grid-row: 1; grid-column: 1; }   /* text always fills the hero's single row */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  /* light cream wash behind the headline only; gone well before the book so the photo keeps its colour */
  background: linear-gradient(90deg,
    rgba(250,246,239,.62) 0%, rgba(250,246,239,.42) 26%,
    rgba(250,246,239,.08) 46%, rgba(250,246,239,0) 58%);
}
.hero .wrap { position: relative; z-index: 2; padding: 140px 0 100px; }
.hero-copy { max-width: min(560px, 38vw); }   /* stays clear of the book, which sits just left of centre in the photo */
.hero-copy h1 { margin-bottom: .35em; }
.hero-copy .lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--navy);
  opacity: .8;
  max-width: 460px;
  margin-bottom: 1.8em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Big quote ---------- */
.quote-band { padding: clamp(60px, 9vw, 120px) 0; text-align: center; }
.quote-band blockquote {
  margin: 0 auto;
  max-width: 920px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  line-height: 1.25;
  color: var(--navy);
  font-weight: 400;
}
.quote-band blockquote p { margin: 0; }
/* Rotator: quotes stacked in one cell, crossfading */
.quote-rotator { display: grid; justify-items: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.quote-rotator:active { cursor: grabbing; }
.quote-rotator blockquote {
  grid-area: 1 / 1;
  opacity: 0; transform: translateX(14px);
  transition: opacity .3s ease;                 /* outgoing quote: quick clean fade */
  pointer-events: none;
}
/* Simple crossfade with a small nudge from the side you swiped towards */
.quote-rotator[data-dir="prev"] blockquote { transform: translateX(-14px); }
.quote-rotator blockquote.is-active {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .45s ease .1s, transform .45s ease .1s;   /* incoming: fades in once the old one has gone */
}
.quote-nav { grid-area: 2 / 1; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.quote-dots { display: flex; gap: 10px; }
/* Previous / next: quiet grey arrows either side of the dots, gold on hover */
.quote-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(20,42,75,.16);
  background: transparent; color: var(--ink-soft); cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.quote-arrow:hover { color: var(--gold); border-color: var(--gold); }
.quote-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.quote-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(20,42,75,.2); cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.quote-dots button[aria-selected="true"] { background: var(--gold); transform: scale(1.3); }
.quote-band blockquote p::before { content: "\201C"; color: var(--gold); margin-right: .1em; }
.quote-band blockquote p::after  { content: "\201D"; color: var(--gold); margin-left: .1em; }
.quote-band cite {
  display: block; margin-top: 22px;
  font-style: normal; font-family: var(--sans);
  font-size: .95rem; color: var(--ink-soft);
}
.quote-band cite strong { color: var(--ink); font-weight: 600; }

/* ---------- Section defaults ---------- */
/* Reveal targets start hidden only once GSAP is confirmed running (no flash if JS fails) */
.motion-ready [data-reveal], .motion-ready [data-reveal-group] > * { opacity: 0; }
.quote-band .w { display: inline-block; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
[id] { scroll-margin-top: 72px; }   /* anchor targets clear the sticky bar */
.section.tight { padding-top: clamp(40px, 6vw, 72px); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- The book ---------- */
.banner { position: relative; width: 100%; height: clamp(180px, 28vw, 380px); overflow: hidden; }
.banner img {
  position: absolute; left: 0; top: -20%;   /* 20% overhang top and bottom for the parallax drift */
  width: 100%; height: 140%;
  object-fit: cover; object-position: 50% 45%;
  will-change: transform;
}
.book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.book-copy p.big { font-size: 1.2rem; color: var(--ink); margin: 0; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.points .num {
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold);
  line-height: 1; padding-top: 4px;
}
.points strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 3px; }
.points span { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Editions ---------- */
.editions-bg { background: #fff; }
.editions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.edition {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--cream);
}
.edition-media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin: calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px)) 20px;
  border-radius: 16px 16px 0 0;
}
.edition-media { position: relative; }
.edition-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  transform-origin: 50% 55%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
/* Hover: photo zooms in slowly, card lifts a touch, border darkens */
.edition { transition: transform .4s ease, border-color .4s ease; }
.edition:hover { transform: translateY(-4px); border-color: rgba(20,42,75,.3); }
.edition:hover .edition-media img { transform: scale(1.07); }

/* Small tag on stand-in images: remove the <span class="ph-tag"> when the real photo goes in */
.ph-tag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(14,30,54,.72); color: #fff;
  font-size: .72rem; letter-spacing: .02em;
  padding: .35em .7em; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.edition h3 { margin-bottom: .2em; }
.edition .sub { color: var(--ink-soft); margin-bottom: .6em; }
.edition p { color: var(--ink); }
.edition .buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }
.edition .sample {
  font-size: .93rem; color: var(--ink-soft); text-decoration: underline;
  text-underline-offset: 3px; margin-top: 10px;
}
.edition .sample:hover { color: var(--navy); }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}
.review p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--navy);
}
.review cite { font-style: normal; font-size: .93rem; color: var(--ink-soft); }
.review cite strong { color: var(--ink); font-weight: 600; display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45em 1em;
  font-size: .92rem;
  color: var(--navy);
  background: #fff;
}
.pills .label { border: 0; background: none; padding-left: 0; color: var(--ink-soft); }
.reviews-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px; margin-top: 36px;
}

/* ---------- Full-bleed photo bands (parallax background + content) ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 150px) 0;
}
.band-bg {
  position: absolute; left: 0; top: -15%;      /* overhang for the parallax drift */
  width: 100%; height: 130%;
  object-fit: cover;
  will-change: transform;
  z-index: 0;
}
.band::before {                                 /* tint so text stays readable */
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.band-content { position: relative; z-index: 2; max-width: 620px; }
.band-content p { font-size: 1.12rem; }
.band-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 8px; }

/* Download: dark navy over the arch, white text */
.band-download { color: #fff; background: var(--navy); }
.band-download .band-bg { object-position: 50% 40%; opacity: .9; }
.band-download::before {
  background: linear-gradient(90deg, rgba(14,30,54,.92) 0%, rgba(14,30,54,.78) 55%, rgba(14,30,54,.35) 100%);
}
.band-download h2 { color: #fff; }
.band-download p { color: rgba(255,255,255,.8); }
.band-download small { color: rgba(255,255,255,.6); }
.band-download .hebrew {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font-family: var(--hebrew); font-size: clamp(9rem, 26vw, 24rem);
  color: rgba(255,255,255,.06); line-height: 1;
  pointer-events: none; user-select: none; z-index: 1;
}

/* Split band: solid text panel on the left, photograph bleeding off the right */
.split-band {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) 3fr;
  min-height: clamp(420px, 46vw, 600px);
  background: var(--navy);
  color: #fff;
}
.split-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));   /* lines up with the page content */
}
.split-panel h2 { color: #fff; max-width: 10ch; }
.split-panel p { color: rgba(255,255,255,.8); font-size: 1.15rem; max-width: 36ch; margin: 0; }
.split-photo { position: relative; overflow: hidden; }
.split-photo .band-bg { object-position: 50% 40%; }
/* Sponsor: the book close-up darkened to navy, white text, centred call to action */
.band-sponsor {
  background: var(--navy-deep); color: #fff; text-align: center;
  position: relative; z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);   /* slanted bottom over the About section */
  padding-bottom: calc(clamp(80px, 11vw, 150px) + var(--slant) * .5);
}
/* Books section (now last) tucks under the Sponsor band's slant */
#books.section { position: relative; z-index: 1; margin-top: calc(-1 * var(--slant)); padding-top: calc(clamp(64px, 9vw, 120px) + var(--slant)); }
.band-sponsor .band-bg { object-position: 50% 50%; }
.band-sponsor::before { background: rgba(14, 30, 54, .78); }
.sponsor-content { max-width: 720px; margin-inline: auto; }
.band-sponsor h2 { color: #fff; }
.band-sponsor p { color: rgba(255,255,255,.82); }
.sponsor-editions { font-size: .98rem; color: rgba(255,255,255,.7) !important; margin: 1.6em 0 2em; }
.sponsor-editions span { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px; }
.band-sponsor .band-actions { align-items: center; }

/* ---------- About the author: half text / half photo ---------- */
.author-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(300px, 30vw, 420px);   /* a teaser now: heading, one paragraph, a link */
  background: #fff;
  color: var(--ink);
}
.author-text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 80px);
  padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));   /* aligns with the page content */
}
.author-text h2 { margin-bottom: .5em; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }   /* a size down from the big section headings so the block stays short */
.author-bio { font-size: 1.08rem; color: var(--ink); max-width: 54ch; }   /* darker ink so the word-by-word reveal has range */
.author-bio .w { display: inline; }
.author-bio + .author-bio { margin-bottom: 2.2em; }
.author-text .btn { padding: 1em 1.9em; }
.author-photo { position: relative; overflow: hidden; background: var(--cream-deep); }
.author-photo img {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%;                      /* overhang for the parallax drift */
  object-fit: cover; object-position: 30% 45%;   /* he sits in the left third of the photo */
  will-change: transform;
}

/* ---------- Books / coming soon ---------- */
.shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.shelf-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px;
  color: #fff;
  text-decoration: none;
  background: var(--navy);
}
.shelf-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.shelf-card:hover img { transform: scale(1.03); }
.shelf-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,30,54,0) 35%, rgba(14,30,54,.88) 100%);
}
.shelf-card > * { position: relative; z-index: 2; }
.shelf-card h3 { color: #fff; font-size: 2rem; margin-bottom: .2em; }
.shelf-card p { color: rgba(255,255,255,.8); margin: 0 0 14px; max-width: 420px; }
.shelf-card .tag {
  position: absolute; top: 24px; left: 24px;
  background: #fff; color: var(--navy);
  border-radius: 999px; padding: .4em 1em; font-size: .9rem; font-weight: 600;
}
.shelf-card.placeholder-card {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
    var(--navy);
}
.shelf-card.placeholder-card .ph-tag { position: absolute; top: 24px; right: 24px; left: auto; bottom: auto; }
.shelf-card.soon {
  background: var(--cream-deep);
  color: var(--navy);
  border: 1px solid var(--line);
}
.shelf-card.soon::after { display: none; }
.shelf-card.soon h3 { color: var(--navy); }
.shelf-card.soon p { color: var(--ink-soft); }
.shelf-card.soon .tag { background: var(--navy); color: #fff; }
.shelf-card.soon .hebrew-mark {
  position: absolute; right: 24px; top: 10px;
  font-family: var(--hebrew); font-size: 9rem; line-height: 1;
  color: rgba(20,42,75,.07);
}
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; }

/* ---------- Sponsor + About ---------- */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
}
.two-up h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.two-up p { color: var(--ink-soft); }
.two-up .btn { margin-top: 8px; }
.sponsor-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }

/* ---------- Footer reveal ----------
   <main> rides above the footer with rounded bottom corners; the footer is
   stuck to the bottom of the viewport, so the page lifts away to uncover it. */
main {
  position: relative; z-index: 2;
  background: var(--cream);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 30px 60px -20px rgba(14,30,54,.45);
}
.site-footer {
  position: sticky; bottom: 0; z-index: 1;
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding: 96px 0 32px;      /* extra top padding so the rounded corners have room */
  font-size: .95rem;
}
.footer-inner { will-change: transform; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .95rem; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
}

/* ---------- Sound button (header) ---------- */
.header-right { display: flex; align-items: center; gap: 10px; order: 3; }
/* Liquid-glass surface shared by the header controls */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.18));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),          /* specular rim along the top edge */
    inset 0 -1px 0 rgba(20,42,75,.06),
    0 6px 18px -6px rgba(20,42,75,.28),
    0 1px 2px rgba(20,42,75,.08);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.glass:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(255,255,255,.4));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(20,42,75,.06),
    0 10px 26px -8px rgba(20,42,75,.35),
    0 1px 2px rgba(20,42,75,.08);
}
.glass:active { transform: scale(.96); }

.sound {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 0; background: none; box-shadow: none;
  color: var(--navy); cursor: pointer;
  flex: none;
}

/* Volume slider slides out of the glass pill on hover / focus / tap */
.sound-wrap {
  display: flex; align-items: center;
  border-radius: 999px;
}
.volume {
  width: 0; opacity: 0; overflow: hidden;
  display: flex; align-items: center;
  transition: width .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease .05s, padding .35s ease;
}
.sound-wrap:hover .volume, .sound-wrap:focus-within .volume, .sound-wrap.reveal .volume {
  width: 120px; opacity: 1; padding: 0 16px 0 6px;
}
#volume {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy) var(--fill, 60%), rgba(20,42,75,.18) var(--fill, 60%));
  outline: none; cursor: pointer;
}
#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(20,42,75,.3);
  transition: transform .15s ease;
}
#volume::-webkit-slider-thumb:hover, #volume:active::-webkit-slider-thumb { transform: scale(1.25); }
#volume::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(20,42,75,.3);
}
#volume::-moz-range-track { background: transparent; }
.sound .icon-on { display: none; }
.sound[aria-pressed="true"] .icon-on { display: block; }
.sound[aria-pressed="true"] .icon-off { display: none; }
.footer-brand .credit { font-size: .85rem; color: rgba(255,255,255,.45); }

/* ---------- Responsive ---------- */
/* Tablets and small laptops: keep the desktop nav on one line */
@media (max-width: 1100px) and (min-width: 821px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 16px; }
  .logo img { height: 28px; }
  .nav { gap: clamp(10px, 1.6vw, 18px); font-size: .9rem; }
  .site-header.scrolled .logo img { height: 24px; }
}
@media (max-width: 960px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .site-header { position: absolute; transition: none; }   /* phones: logo scrolls away with the page */
  /* …but the two round controls float, fixed top-right */
  .header-right {
    position: fixed; top: 16px; right: var(--gutter); z-index: 12;
    gap: 10px;
  }
  /* Mobile: no glass. One solid navy menu button; the sound control lives inside the menu */
  .header-right .sound-wrap { display: none; }
  .header-right .nav-toggle {
    width: 48px; height: 48px;
    background: rgba(20, 42, 75, .62); color: #fff;   /* tinted, frosted: the page shows through, blurred */
    border: 1px solid rgba(255,255,255,.22); border-radius: 50%;   /* hairline keeps it visible over navy sections */
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    box-shadow: none;
    transition: transform .2s ease;   /* always the same dark look; no colour flipping while scrolling */
  }
  .header-right .nav-toggle:hover { background: rgba(20, 42, 75, .62); }
  .header-right .nav-toggle:active { transform: scale(.94); }
  /* Mobile menu: compact navy card dropping down from the button (top-right) */
  .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 70px; right: var(--gutter); z-index: 11;
    width: min(300px, 100vw - 2 * var(--gutter));
    max-height: calc(100svh - 86px); overflow-y: auto;
    background: rgba(20, 42, 75, .62); color: #fff;    /* same frosted navy as the button */
    -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    padding: 4px 20px 14px;
    box-shadow: 0 24px 60px -12px rgba(14,30,54,.6);
    transform-origin: top right;
    transform: scale(.9) translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
    margin: 0;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .sheet-head { display: none; }
  .nav > a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 54px; padding: 0 20px; margin: 0 -20px;   /* tap target spans the full card width */
    font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
    -webkit-tap-highlight-color: transparent;
    opacity: 0; transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .nav.open > a:not(.btn) { opacity: 1; transform: none; }
  .nav.open > a:nth-of-type(1) { transition-delay: .05s; }
  .nav.open > a:nth-of-type(2) { transition-delay: .09s; }
  .nav.open > a:nth-of-type(3) { transition-delay: .13s; }
  .nav.open > a:nth-of-type(4) { transition-delay: .17s; }
  .nav.open > a:nth-of-type(5) { transition-delay: .21s; }
  .nav.open > a:nth-of-type(6) { transition-delay: .25s; }
  /* plain rows, no chevrons (only Books keeps its arrow, for the dropdown) */
  .nav > a:not(.btn):active, .sub-toggle:active { background: rgba(255,255,255,.08); color: var(--gold-soft); }   /* pressed row lights up */
  .nav a.btn.btn-primary { margin-top: 0; min-height: 50px; justify-content: center; font-size: 1rem; background: #fff; color: var(--navy); }
  /* Buy button at the foot of the phone menu (not shown in the desktop header) */
  .nav .nav-cta { display: inline-flex; margin-top: 14px; min-height: 46px; border-radius: 999px; font-weight: 600; }

  /* Music row: lighter navy card, white play button, gold slider thumb */
  .sheet-music {
    display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; align-items: center;
    margin: 12px -6px 0; padding: 10px 12px;
    background: rgba(255,255,255,.08); border-radius: 14px;
  }
  .nav a.btn.btn-primary { border-radius: 999px; }
  .sheet-play {
    width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer;
  }
  .sheet-play .icon-on { display: none; }
  .sheet-play[aria-pressed="true"] .icon-on { display: block; }
  .sheet-play[aria-pressed="true"] .icon-off { display: none; }
  .sheet-music-copy { display: flex; flex-direction: column; line-height: 1.2; }
  .sheet-music-copy strong { color: #fff; font-weight: 600; font-size: .95rem; }
  .sheet-music-copy small { color: rgba(255,255,255,.6); font-size: .78rem; }
  /* Volume: a capsule that fills with gold (no thumb), like a phone's own volume control.
     It swells slightly while you drag it and relaxes when you let go. */
  .vol-m {
    grid-column: 1 / -1;
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 20px; margin: 10px 0 2px; border-radius: 999px;   /* slim at rest; grows under the finger */
    background: linear-gradient(var(--gold), var(--gold)) no-repeat, rgba(255,255,255,.14);
    background-size: var(--fill, 60%) 100%;
    outline: none; cursor: pointer; touch-action: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-size .18s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1);
  }
  .vol-m.dragging { transition: transform .22s cubic-bezier(.2,.8,.2,1); }   /* follow the finger instantly */
  .vol-m.dragging, .vol-m:active { transform: scaleY(1.5); }
  .vol-m::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; background: transparent; border: 0; box-shadow: none; }
  .vol-m::-moz-range-thumb { width: 34px; height: 34px; background: transparent; border: 0; box-shadow: none; }
  .vol-m::-moz-range-track { background: transparent; }

  /* Header sound pop-out never shows on phones (the music row is in the menu) */
  .volume { display: none; }

  /* The navy button stays above the panel and becomes an × */
  .header-right { z-index: 12; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .nav-toggle[aria-expanded="true"] { background: rgba(255,255,255,.65); color: var(--navy); box-shadow: none; }
  body.no-scroll .backdrop { background: rgba(20, 42, 75, .18); }   /* lighter wash so the frosted card reads as glass */
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%;
    color: var(--navy); cursor: pointer;
  }
  /* Mobile hero: the portrait image sets the height; text sits in the sky,
     the button on the marble plinth, and the book in between is never covered */
  /* Mobile hero: portrait photo, book centred between the two balustrades.
     The text is centred in the sky above the book; the book and plinth fill the rest. */
  /* Height follows the photo's proportions (not the screen), so the sky above the book is
     always tall enough for the headline, even on short phone screens. */
  .hero.hero { display: block; min-height: 0; padding-bottom: 0; height: max(92svh, 190vw); max-height: 880px; }
  .hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 100%;  /* bottom-anchored: the plinth always shows, spare sky goes first */
    transform: none !important;                    /* no parallax on phones */
  }
  .hero .wrap {
    position: absolute; inset: 0;
    width: auto; margin: 0;
    padding: 84px var(--gutter) 0;
    display: flex; justify-content: center;
  }
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: none; }
  .hero-copy h1 { font-size: clamp(2rem, 8.8vw, 2.6rem); line-height: 1.06; max-width: 11ch; margin-bottom: .4em; }
  .hero-copy .lead { font-size: 1.02rem; line-height: 1.45; max-width: 30ch; margin: 0; }
  .hero-copy .lead .hide-m { display: none; }
  .hero-actions { display: none; }   /* no CTA on the mobile hero; the book speaks for itself */
  .hero::after {
    /* a soft cream wash behind the text only; gone before the book */
    background: linear-gradient(180deg,
      rgba(250,246,239,.85) 0%, rgba(250,246,239,.55) 24%, rgba(250,246,239,0) 38%);
  }
  .book, .editions, .shelf, .two-up { grid-template-columns: 1fr; }
  /* phones: photo on top (4:5), text beneath */
  .author-split { grid-template-columns: 1fr; min-height: 0; }
  .author-photo { order: -1; aspect-ratio: 4 / 5; }
  .author-text { padding: 40px var(--gutter) 56px; }
  .author-text .btn { width: 100%; justify-content: center; }
  .band-download .hebrew { display: none; }
  .band::before { background: rgba(14,30,54,.82); }
  .band-sponsor::before { background: rgba(14,30,54,.82); }
  /* phones: reviews become a swipeable row (scroll-snap), next card peeking in */
  #reviews .wrap { width: auto; margin: 0; }
  #reviews .section-head, #reviews .reviews-foot { padding-inline: var(--gutter); }
  #reviews .reviews-foot { margin-top: 14px; justify-content: center; }   /* sits close under the swiped cards, centred */
  #reviews .reviews-foot .link-arrow { font-size: 1.02rem; }
  .hide-m { display: none; }
  .reviews-grid {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review {
    flex: 0 0 84%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 18px;
  }
  .review p { font-size: 1.15rem; }

  /* phones: one tall full-bleed photo; the text sits directly on it over a navy fade — no box */
  .split-band { display: block; position: relative; min-height: 0; background: var(--navy); }
  .split-photo { width: 100%; aspect-ratio: 3 / 4; min-height: 540px; }          /* width pinned, or min-height + aspect-ratio would widen the box past the screen */
  .split-photo .band-bg { top: -25%; height: 150%; object-position: 58% 30%; }   /* bigger overhang for the stronger parallax */
  .split-photo::after {                                                           /* fade from clear to navy at the foot */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(14,30,54,0) 48%, rgba(14,30,54,.5) 72%, rgba(14,30,54,.94) 100%);
  }
  .split-band .split-panel {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0 var(--gutter) 56px;
    background: none; border: 0; box-shadow: none; border-radius: 0;
  }
  #reviews.section { padding-top: 76px; }                 /* clear air between the Kotel band and the reviews heading */
  #reviews .section-head { margin-bottom: 32px; }
  #reviews .section-head p { font-size: 1rem; line-height: 1.55; }
  .split-band .split-panel h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.08; max-width: none; margin-bottom: .4em; }
  .split-band .split-panel p { font-size: .98rem; line-height: 1.5; max-width: 32ch; color: rgba(255,255,255,.85); }
  .shelf-card { min-height: 320px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions, .edition .buy { flex-direction: column; align-items: stretch; }
}

/* =====================================================================
   EXPERIMENT: straight edges + slanted section cuts
   (delete this block to return to rounded corners everywhere)
   ===================================================================== */
:root { --slant: clamp(28px, 4vw, 64px); }

/* Square corners on cards; buttons stay rounded pills (round glass controls stay round) */
.edition, .review, .shelf-card, .edition-media,
.author-photo, .edition-media img, .ph-tag { border-radius: 0; }
.btn, .pills span { border-radius: 999px; }

/* Hero: bottom edge slants up to the right */
.hero {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  padding-bottom: var(--slant);
}

/* Photo sections (banner, Kotel, Download, Sponsor) keep straight edges:
   slanted cuts through photographs read as mistakes. Slants stay on the
   hero's bottom edge and the footer reveal only. */
/* About: straight edges — the Sponsor band's slant above it is the only cut in this zone */
.author-split { clip-path: none; padding: 0; }
.split-band { padding: 0; }   /* photo must start at the very top so the slant cuts the photo, not a navy gap */
.split-panel { padding-block: calc(clamp(48px, 6vw, 96px) + var(--slant)); }   /* text clears the cuts */

/* Footer reveal: the page (ending with the About section) lifts away with rounded bottom corners */
main {
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);   /* page lifts off the footer along a slant */
  padding-bottom: 0;
}
/* Footer tucks up under the slanted page edge so navy always shows through the cut */
.site-footer { margin-top: calc(-1 * var(--slant)); padding-top: calc(64px + var(--slant) * 2); }
html { background: var(--navy-deep); overflow-x: clip; }   /* anything beyond the footer is navy too; never a sideways scroll (clip, not hidden: keeps sticky + scroll triggers intact) */
body { background: var(--cream); }

/* ---------- Inner pages (Reviews) ---------- */
.page-head { padding: 150px 0 32px; }
.page-crumb { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.4em; }
.page-crumb a { text-decoration: none; color: inherit; }
.page-crumb a:hover { color: var(--navy); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: .4em; }
.page-intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 68ch; }
.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.reviews-cta { text-align: center; padding-bottom: clamp(96px, 12vw, 160px); }
.reviews-cta h2 { margin-bottom: .8em; }
.page-reviews .site-header { background: rgba(250,246,239,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }   /* no hero behind it here, so always a bar */
.page-reviews .nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 960px) { .reviews-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews-list { grid-template-columns: 1fr; } .page-head { padding-top: 110px; } }

/* ---------- Free download strip (under the edition cards) ---------- */
.download-strip { background: var(--cream-deep); padding: clamp(40px, 5vw, 64px) 0; }
.download-strip-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center;
}
.download-strip h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .25em; }
.download-strip p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.download-strip-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.download-strip-actions small { color: var(--ink-soft); font-size: .85rem; }
@media (max-width: 820px) {
  .download-strip-inner { grid-template-columns: 1fr; }
  .download-strip-actions .btn { width: 100%; justify-content: center; }
}

/* Books: deeper cream so it reads as the closing section before the footer */
#books.section { background: var(--cream-deep); }

/* ---------- Nav: Books dropdown ---------- */
.has-sub { position: relative; }
.sub-toggle {
  background: none; border: 0; padding: 0; font: inherit; color: var(--navy); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.sub-toggle:hover { color: var(--gold); }
.sub-toggle svg { transition: transform .25s ease; }
.has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }   /* hover bridge to the panel */
.sub {
  position: absolute; top: calc(100% + 14px); left: -12px; z-index: 20;
  min-width: 250px; padding: 8px;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(20,42,75,.35);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; transform: none; pointer-events: auto; }
.sub a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10px 12px; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: var(--navy); text-decoration: none;
}
.sub a:hover { background: var(--cream); color: var(--navy); }
.sub a[aria-current="page"] { color: var(--gold); }
.sub small { font-size: .78rem; color: var(--ink-soft); font-weight: 400; white-space: nowrap; }
.sub-soon { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 12px; font-size: .95rem; color: var(--ink-soft); cursor: default; }
@media (max-width: 820px) {
  /* in the mobile menu Books is a collapsed row; tapping it opens the three titles beneath */
  .has-sub { border-bottom: 1px solid rgba(255,255,255,.12); }
  .has-sub::after { display: none; }
  .sub-toggle {
    width: calc(100% + 40px); margin: 0 -20px; padding: 0 20px;
    justify-content: space-between; min-height: 54px;
    font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: #fff;
    -webkit-tap-highlight-color: transparent;
  }
  .sub-toggle svg { display: block; width: 12px; height: 12px; color: var(--gold); }
  .sub {
    display: none;
    position: static; opacity: 1; transform: none; pointer-events: auto;
    background: none; border: 0; box-shadow: none; padding: 0 0 8px 14px; min-width: 0;
  }
  .has-sub.open .sub { display: block; }
  .sub a { color: #fff; font-size: 1.05rem; padding: 0; min-height: 44px; display: flex; align-items: center; border-radius: 0; }
  .sub-soon {
    color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.3; padding: 0; min-height: 44px;
    align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px;
  }
  .sub a:hover { background: none; color: var(--gold-soft); }
  .sub small { color: rgba(255,255,255,.55); }
  .sub-soon small {
    font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
    padding: 4px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
    color: rgba(255,255,255,.75);
  }
}

/* ---------- Book pages (placeholder heroes) ---------- */
.page-book .site-header { background: rgba(250,246,239,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.book-hero { padding: 150px 0 40px; }
.book-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.book-hero-label { color: var(--ink-soft); margin-bottom: 1em; }
.book-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: .35em; }
.book-hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 48ch; margin-bottom: 1.6em; }
.book-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.placeholder-media {
  position: relative; aspect-ratio: 4 / 5; max-width: 380px; width: 100%; justify-self: end;
  background: repeating-linear-gradient(45deg, rgba(20,42,75,.05) 0 12px, transparent 12px 24px), var(--cream-deep);
}
.page-progress p { color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 24px; max-width: 70ch; }
.page-progress a { color: var(--navy); }
@media (max-width: 820px) {
  .book-hero { padding-top: 110px; }
  .book-hero-inner { grid-template-columns: 1fr; }
  .placeholder-media { justify-self: start; max-width: 240px; }
  .book-hero .hero-actions .btn { width: 100%; justify-content: center; }
}
.coming-soon { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--navy); border-top: 1px solid var(--line); padding-top: 32px; margin: 0; }

/* ---------- Text selection colour ---------- */
::selection { background: rgba(185, 138, 60, .32); color: var(--navy); }          /* soft gold wash, navy text */
.band-sponsor ::selection, .split-panel ::selection, .site-footer ::selection, .nav ::selection {
  background: rgba(217, 178, 106, .45); color: #fff;                                /* on navy: brighter gold, white text */
}

/* =====================================================================
   MOBILE POLISH (≤ 820px): tighter rhythm, shorter sections
   ===================================================================== */
@media (max-width: 820px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 1.05rem; }
  h2 { font-size: clamp(1.75rem, 7.2vw, 2.4rem); }

  /* Quote band: smaller type, less dead space */
  .quote-band { padding: 64px 0 60px; }
  .quote-band .wrap { width: min(100% - 2 * var(--gutter) - 16px, 520px); }   /* a little extra side room */
  .quote-rotator { align-items: center; }                                     /* shorter quotes sit centred, not top-heavy */
  .quote-band blockquote { font-size: 1.35rem; line-height: 1.4; }
  .quote-band cite { margin-top: 20px; font-size: .88rem; line-height: 1.5; }
  .quote-nav { margin-top: 24px; gap: 12px; }
  .quote-arrow { width: 40px; height: 40px; }   /* comfortable thumb targets */

  /* The book: slightly smaller intro */
  .book { gap: 28px; }
  .book-copy p.big { font-size: 1.08rem; }

  /* Editions: shorter images, tighter cards */
  .editions { gap: 20px; }
  .edition { padding: 20px; gap: 8px; }
  .edition-media { aspect-ratio: 16 / 10; margin: -20px -20px 16px; }
  .edition h3 { font-size: 1.3rem; }
  .edition .sub { font-size: .95rem; margin-bottom: .3em; }
  .edition p { font-size: 1rem; }
  .edition .buy { gap: 8px; padding-top: 8px; }
  .edition .btn { min-height: 46px; }

  /* Download strip */
  .download-strip { padding: 40px 0; }
  .download-strip h2 { font-size: 1.4rem; }

  /* About: a taller, portrait crop so he fills the frame, with a bigger overhang for a stronger drift */
  .author-photo { aspect-ratio: 1 / 1; }   /* square: not a huge portrait, but taller than the old letterbox */
  .author-photo img { top: 0; height: 128%; object-position: 34% 0; }   /* anchored to the top: his head is never cropped; the drift reveals more below */
  .author-split .author-text { padding: 36px var(--gutter) 56px; }
  .author-text h2 { font-size: 1.75rem; }
  .author-bio { font-size: 1.02rem; }

  /* Sponsor: tighter, languages easier to read */
  .band-sponsor { padding-top: 64px; padding-bottom: calc(64px + var(--slant) * .5); }
  .band-sponsor p { font-size: 1.02rem; }
  .sponsor-editions { font-size: .92rem; line-height: 1.6; margin: 1.2em 0 1.6em; }

  /* Books: shorter cards */
  .shelf { gap: 16px; }
  .shelf-card { min-height: 230px; padding: 24px; }
  .shelf-card h3 { font-size: 1.5rem; }
  .shelf-card p { font-size: .98rem; }
  .shelf-card.soon .hebrew-mark { font-size: 6rem; }
  #books.section { padding-bottom: 56px; }

  /* Footer: two columns, brand and contact full width */
  .site-footer { padding-top: calc(48px + var(--slant) * 2); padding-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-bottom: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 400px) {
  .edition .buy { flex-direction: column; }
}

/* =====================================================================
   MOBILE: less text, clearer blocks (≤ 820px)
   ===================================================================== */
@media (max-width: 820px) {
  .more-m { display: none !important; }          /* longer copy lives on the inner pages on phones */

  /* Psalms that speak to you: the three points become numbered cards */
  .points { gap: 12px; }
  .points li {
    grid-template-columns: 1fr; gap: 0; align-items: center;
    background: var(--cream-deep); border-radius: 16px; padding: 16px 18px;
  }
  .points .num { display: none; }               /* no numbers on phones */
  .points strong { margin-bottom: 2px; }
  .points span:not(.num) { font-size: .92rem; line-height: 1.4; }

  /* Editions: rounded cards, title + edition line + buttons */
  .edition { border-radius: 18px; padding: 18px; }
  .edition-media, .edition-media img { border-radius: 14px 14px 0 0; }
  .edition-media { margin: -18px -18px 14px; }
  .edition .sub { margin-bottom: .2em; }
  .edition .buy { padding-top: 6px; }
  .edition .btn { border-radius: 999px; }

  /* Reviews slider: inset from the left edge, rounded cards */
  .reviews-grid { padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter); }
  .review { border-radius: 18px; }
}

/* ---------- About page ---------- */
.about-head-inner { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-portrait { width: 220px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.about-head .page-intro + .page-intro { margin-top: .6em; }
.about-body { max-width: 68ch; }
.about-body p { font-size: 1.1rem; color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 28px; }
@media (max-width: 820px) {
  .about-head-inner { grid-template-columns: 1fr; gap: 20px; }
  .about-portrait { width: 140px; }
  .about-actions .btn { width: 100%; justify-content: center; }
}

/* Reviews page on phones: tighter single column, groups clearly separated */
@media (max-width: 820px) {
  .page-reviews .page-head { padding-top: 96px; }
  .page-reviews .page-head h1 { font-size: 2rem; }
  .page-reviews .page-intro { font-size: 1rem; }
  .page-reviews .reviews-list { gap: 12px; margin-top: 18px; }
  .page-reviews .section.tight { padding: 32px 0; }
  .page-reviews .review { padding: 20px; }
  .page-reviews .review p { font-size: 1.08rem; }
  .page-reviews .site-header { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }   /* logo scrolls away; floating button stays */
}

/* About pop-up */
.modal {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  padding: 24px var(--gutter);
}
.modal[hidden] { display: none !important; }   /* a closed pop-up must not sit invisibly over the page and swallow clicks */
.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  background: #fff; color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 40px 90px -30px rgba(14,30,54,.55);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--cream-deep); color: var(--navy); cursor: pointer;
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--cream); }
.modal-scroll {
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 44px);
  -webkit-overflow-scrolling: touch;
}
.modal-portrait { width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 18px; }
.modal-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.modal-scroll h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .5em; }
.modal-scroll h3 { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.modal-scroll p { font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.modal-scroll p:last-child { margin-bottom: 0; }

/* Read more (phones): a plain text link that expands the bio in place */
.read-more { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--navy); margin: -8px 0 22px; }
.only-m { display: none; }
@media (max-width: 820px) {
  .only-m { display: inline-flex; }
  .expanded .more-m { display: inline !important; }
  .expanded p.more-m { display: block !important; }
  /* Sponsor band: first sentence only until "Read more" is tapped */
  .sponsor-content .read-more { color: #fff; margin: -6px auto 26px; font-weight: 600; }
  .sponsor-content.expanded .sponsor-editions { margin-bottom: 18px; }
  .modal { padding: 0; align-items: end; }
  .modal-card { width: 100%; max-height: 88vh; border-radius: 22px 22px 0 0; transform: translateY(24px); }
  .modal-scroll { padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
}
/* Coming-soon shelf: two matching cards, title-led */
.shelf-card.soon { min-height: 300px; justify-content: flex-end; }
.shelf-card.soon h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .5em; }
.shelf-card.soon .hebrew-mark { right: 20px; top: -6px; font-size: clamp(6rem, 10vw, 9rem); }
@media (max-width: 820px) {
  .shelf-card.soon { min-height: 0; padding: 22px 20px 20px; border-radius: 16px; }
  .shelf-card.soon .tag { position: static; display: inline-block; align-self: flex-start; margin-bottom: 14px; }
  .shelf-card.soon .hebrew-mark { font-size: 4.5rem; top: 2px; right: 16px; }
  .shelf-card.soon h3 { font-size: 1.5rem; margin-bottom: .35em; }
}
/* Free download row inside the Editions section */
.download-row {
  display: grid; grid-template-columns: 1fr auto; gap: 20px 48px; align-items: center;
  margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}
.download-row h3 { margin-bottom: .3em; }
.download-row p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 820px) {
  .download-row { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; padding-top: 36px; padding-bottom: 8px; }
  .download-row h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .45em; }
  .download-row p { font-size: .98rem; line-height: 1.5; }
  .download-row .btn { width: auto; justify-self: start; justify-content: center; padding-inline: 1.6em; }   /* quieter than the full-width Buy buttons */
}
/* Sponsorship pop-up: list + enquiry form */
.sponsor-list-head { margin-bottom: .4em; }
.sponsor-list-ul { margin: 0 0 1.2em; padding-left: 1.2em; color: var(--ink); line-height: 1.7; }
.enquiry { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.enquiry h3 { margin: 0 0 .3em; }
.enquiry-note { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.2em; }
.enquiry label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.enquiry input, .enquiry select, .enquiry textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7em .9em; border: 1px solid rgba(20,42,75,.22); border-radius: 10px; background: #fff;
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.enquiry textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.enquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.enquiry-alt { font-size: .9rem; color: var(--ink-soft); }
.enquiry-alt a { color: var(--navy); }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .enquiry-actions .btn { width: 100%; justify-content: center; }
}
/* ---------- Sponsor page ---------- */
.lang-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lang-grid li {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  font-weight: 600; color: var(--navy);
}
.lang-mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-deep); color: var(--navy); font-family: var(--serif); font-size: 1.05rem; font-weight: 500;
}
.page-sponsor .page-head { padding-bottom: 56px; }   /* the intro now leads straight into the Eternal Difference band */
.eternal { background: var(--cream-deep); }
.eternal-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.eternal-copy p { font-size: 1.1rem; color: var(--ink); }
.eternal-contact { color: var(--ink-soft) !important; font-size: 1rem !important; padding-top: 12px; }
.eternal-contact a { color: var(--navy); }
/* Enquiry form: flat and editorial, sitting on the cream band itself (no card).
   Fields are simple underlines; a hairline separates it from the copy on desktop. */
.enquiry-card { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.enquiry-card h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: .35em; }
.enquiry-card .enquiry-note { margin-bottom: 1.8em; }
.enquiry-card label { font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 22px; }
.enquiry-card input, .enquiry-card select, .enquiry-card textarea {
  margin-top: 2px; padding: .55em 0; border-radius: 0; background: transparent;
  border: 0; border-bottom: 1px solid rgba(20,42,75,.3);
  font-size: 1.05rem; color: var(--ink);
  transition: border-color .2s ease;
}
.enquiry-card select { cursor: pointer; }
.enquiry-card textarea { min-height: 96px; }
.enquiry-card input:focus, .enquiry-card select:focus, .enquiry-card textarea:focus { outline: none; border-bottom: 1px solid var(--navy); box-shadow: 0 1px 0 var(--navy); }
.enquiry-card input::placeholder, .enquiry-card textarea::placeholder { color: rgba(29,36,51,.4); }
.enquiry-card .field-row { gap: 0 28px; }
.enquiry-card .enquiry-actions { margin-top: 10px; }
@media (max-width: 960px) { .lang-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .eternal-inner { grid-template-columns: 1fr; gap: 36px; }
  .enquiry-card { padding: 8px 0 0; }
  .lang-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lang-grid li { flex-direction: row; align-items: center; padding: 14px 16px; font-size: .95rem; }
  .lang-mark { width: 36px; height: 36px; font-size: .9rem; }
  .page-sponsor #editions-coming h2 { font-size: 1.35rem; }
}
/* Sponsor page: editions as a flat typographic list (replaces the icon cards) */
.lang-list { list-style: none; counter-reset: lang; margin: 28px 0 0; padding: 0; max-width: 820px; border-top: 1px solid var(--line); }
.lang-list li {
  counter-increment: lang;
  display: grid; grid-template-columns: 3ch 1fr; gap: 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.lang-list li::before { content: counter(lang, decimal-leading-zero); font-family: var(--serif); color: var(--gold); font-size: 1rem; }
.lang-name { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--navy); }
.lang-native { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); }
.lang-native[lang="he"] { font-family: var(--hebrew); font-size: 1.2rem; }
@media (max-width: 820px) {
  .lang-list li { grid-template-columns: 3ch 1fr; gap: 14px; padding: 14px 0; }
  .lang-name { font-size: 1.2rem; }
  .lang-native { font-size: .95rem; }
}
/* ---------- Wide phones and small tablets (481–820px): the hero is nearly square here,
   so the portrait photo's sky would be cropped away and the text would land on the book.
   Stack instead: centred text on cream, then the photo with the book beneath it. ---------- */
@media (min-width: 481px) and (max-width: 820px) {
  /* Same overlay as phones: the hero is sized from the portrait photo (about 85% of its height,
     capped at one screen), so the sky is always tall enough for the centred headline. */
  .hero.hero { height: min(151vw, 100svh); max-height: none; }
  .hero-bg { object-position: 50% 15%; }   /* keep the sky and the book; trim plinth off the bottom */
  .hero .wrap { padding-top: 104px; }
  .hero-copy h1 { font-size: clamp(2.6rem, 7.6vw, 3.5rem); max-width: 13ch; }
  .hero-copy .lead { font-size: 1.15rem; max-width: 36ch; }
}

/* "Ask to be notified" pop-up: a compact card with a short email form */
button.link-arrow { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.link-arrow:hover { color: var(--gold); }
.modal-card-sm { width: min(480px, 100%); }
.modal .enquiry { margin: 0; padding: 0; border: 0; }
.notify-form h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .4em; }
.notify-form .enquiry-note { margin-bottom: 1.4em; line-height: 1.5; }
.notify-form .enquiry-note strong { color: var(--navy); }
.notify-form .enquiry-actions .btn { width: 100%; justify-content: center; }

/* ---------- Sponsor enquiry wizard: three flat steps, nothing boxed in ---------- */
.wizard-head { margin-bottom: 28px; }
.wizard-head h3 { margin-bottom: .2em; }
.wizard-progress { font-size: .85rem; color: var(--ink-soft); margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.wizard-bar { height: 2px; background: rgba(20,42,75,.14); position: relative; }
.wizard-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 33.333%; background: var(--gold); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.wizard-step { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.wizard-step.is-current { display: block; animation: wiz-in .35s ease both; }
.wizard-step.from-left { animation-name: wiz-in-left; }
@keyframes wiz-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes wiz-in-left { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.wizard-step legend { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--navy); padding: 0; margin-bottom: 18px; }
/* step 1: a flat list of options, each an underlined row with a small gold dot when chosen */
.choice-list { display: flex; flex-direction: column; }
.choice { display: flex; align-items: center; gap: 14px; padding: 12px 0; margin: 0; cursor: pointer; border-bottom: 1px solid rgba(20,42,75,.14); font-size: 1.05rem; font-weight: 400; color: var(--ink); }
.enquiry-card .choice { font-size: 1.05rem; font-weight: 400; color: var(--ink); margin-bottom: 0; }   /* overrides the small field-label style */
.choice input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.choice span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(20,42,75,.4); margin-right: 14px; vertical-align: -1px; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.choice:hover span { color: var(--navy); }
.choice input:checked + span { color: var(--navy); font-weight: 600; }
.choice input:checked + span::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--cream-deep); }
.choice input:focus-visible + span::before { outline: 2px solid var(--navy); outline-offset: 2px; }
/* One action per step: Continue is a quiet outline pill on the right; only the final Send is solid navy.
   Back is a muted text link on the left, so it never competes. */
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding-top: 0; border: 0; min-height: 44px; }   /* no extra rule: the field underlines are the only lines */
.wizard-nav:empty, .wizard-nav:not(:has(:not([hidden]))) { display: none; }   /* step 1 has no buttons: no footer row at all */
.wizard-back, .wizard-next { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.wizard-back { font-size: .95rem; color: var(--ink-soft); }
.wizard-back::before { content: "\2190\00a0"; }
.wizard-back:hover { color: var(--navy); }
.wizard-next { margin-left: auto; font-weight: 600; color: var(--navy); }
.wizard-next::after { content: "\00a0\2192"; }
.wizard-next:hover { color: var(--gold); }
.wizard-nav .btn { margin-left: auto; min-width: 170px; justify-content: center; }
.wizard-nav [hidden] { display: none !important; }   /* the step's unused control must really disappear */
@media (max-width: 600px) {
  .wizard-nav { margin-top: 20px; }
  .wizard-nav .btn { min-width: 0; flex: 1; }
  .enquiry-card .choice { padding: 10px 0; font-size: 1rem; }
  .wizard-step legend { margin-bottom: 12px; }
}

/* ---------- Slant experiment: one diagonal grain across the page ----------
   Every cut rises to the right, like the hero and the footer edge, so the page reads
   as one consistent angle rather than a mix of shapes. Cuts land on flat colour or on
   abstract/background areas of photos, never through a subject. */
/* Desktop only: on phones the sections keep straight edges (the hero, Sponsor bottom and footer cuts stay). */
@media (min-width: 821px) {
  /* Quote band: its cream floor slants down over the brushstroke banner */
  .quote-band { background: var(--cream); position: relative; z-index: 2; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); padding-bottom: calc(clamp(60px, 9vw, 120px) + var(--slant) * .6); margin-bottom: calc(-1 * var(--slant)); }
  /* The About row (a photograph) keeps level edges above and below; the Sponsor band is cut at its bottom only. */
}

/* ---------- Contact page ---------- */
.contact-list { margin: 0 0 28px; padding: 0; }
.contact-list > div { display: grid; grid-template-columns: 7ch 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(20,42,75,.14); }
.contact-list > div:first-child { border-top: 1px solid rgba(20,42,75,.14); }
.contact-list dt { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.contact-list dd { margin: 0; font-size: 1.1rem; color: var(--ink); }
.contact-list dd a { color: var(--navy); text-decoration: none; }
.contact-list dd a:hover { color: var(--gold); }
.page-contact .enquiry-card h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: .35em; }

/* ---------- Contact page: one quiet centred column ---------- */
.contact-simple { padding: 150px 0 clamp(80px, 10vw, 140px); text-align: center; }
.contact-wrap { max-width: 560px; margin-inline: auto; }
.contact-simple .page-crumb { justify-content: center; }
.contact-simple h1 { margin-bottom: .3em; }
.contact-simple .page-intro { margin: 0 auto 40px; max-width: 44ch; }
.contact-form .field-row { gap: 0 24px; }
.contact-form label { display: block; margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: .6em 0; border: 0; border-bottom: 1px solid rgba(20,42,75,.3); border-radius: 0; background: transparent;
  text-align: left; transition: border-color .2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(29,36,51,.45); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { margin-top: 10px; min-width: 200px; justify-content: center; }
.contact-form .enquiry-note { margin: 14px 0 0; font-size: .85rem; }
.contact-meta { margin: 44px 0 0; font-size: .98rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.contact-meta + .contact-meta { margin-top: 10px; }
.contact-meta.soft { font-size: .9rem; }
.contact-meta a { color: var(--navy); text-decoration: none; }
.contact-meta a:hover { color: var(--gold); }
.contact-meta span { color: rgba(20,42,75,.35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 820px) {
  .contact-simple { padding-top: 110px; }
  .contact-form .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
  .contact-meta { flex-direction: column; gap: 6px; }
  .contact-meta span { display: none; }
}

/* ---------- About teaser (home) and About page ---------- */
.author-more { margin-top: 10px; font-size: 1.02rem; }
.page-about .about-head { padding-bottom: 16px; }
.page-about .about-head-inner { grid-template-columns: 240px 1fr; align-items: center; }
.page-about .about-portrait { width: 240px; }
.page-about .about-head .page-crumb { margin-bottom: 1em; }
.page-about .about-head .page-intro { max-width: 60ch; }
.about-project h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: .6em; }
.about-project .about-actions .link-arrow { color: var(--navy); }
@media (max-width: 820px) {
  .page-about .about-head-inner { grid-template-columns: 1fr; }
  .page-about .about-portrait { width: 150px; }
  .author-text .author-more { margin: 2px 0 0; }
}

/* About page on phones: same treatment as the home About row (square photo, then white text panel) */
@media (max-width: 820px) {
  .page-about .about-head { padding: 0; }
  .page-about .about-head-inner { width: auto; margin: 0; gap: 0; grid-template-columns: 1fr; }
  .page-about .about-portrait { width: 100%; aspect-ratio: 1 / 1; border-radius: 0; background: var(--cream-deep); }
  .page-about .about-portrait img { object-position: 34% 15%; }
  .page-about .about-head-inner > div { background: #fff; padding: 36px var(--gutter) 44px; }
  .page-about .about-head .page-crumb { display: none; }
  .page-about .about-head h1 { font-size: 1.9rem; margin-bottom: .5em; }
  .page-about .about-head .page-intro { font-size: 1.02rem; line-height: 1.55; }
  .page-about .about-project { padding: 44px 0 56px; }
  .page-about .about-project h2 { font-size: 1.6rem; }
  .page-about .about-body p { font-size: 1.02rem; line-height: 1.55; }
  .page-about .about-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
  .page-about .about-actions .link-arrow { text-align: center; }
  .page-about .site-header { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- About page v2: portrait hero, serif opening, mission pull-line ---------- */
.about-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: clamp(460px, 52vw, 640px);
  background: var(--navy-deep); color: #fff;
}
.about-hero-photo { position: relative; overflow: hidden; background: var(--cream-deep); }
.about-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 20%; }
.about-hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 6vw, 96px) clamp(32px, 5vw, 80px);
  padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.about-hero-text .page-crumb { color: rgba(255,255,255,.6); margin-bottom: 2em; }
.about-hero-text .page-crumb a { color: rgba(255,255,255,.8); }
.about-hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.02; margin-bottom: .35em; }
.about-hero-line { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: rgba(255,255,255,.78); margin: 0; }
.about-hero-line em { color: var(--gold-soft); font-style: italic; }

.about-bio { background: #fff; padding: clamp(64px, 8vw, 110px) 0; }
.about-bio-inner { max-width: 760px; }
.bio-lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.4; color: var(--navy); margin: 0 0 1.2em; }
.bio-more { font-size: 1.08rem; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 60ch; }

.about-project { background: var(--cream); padding: clamp(64px, 8vw, 110px) 0 calc(clamp(80px, 10vw, 140px) + var(--slant)); }   /* clears the slanted page edge above the footer */
.about-project-inner { max-width: 760px; }
.about-project h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .7em; }
.project-lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; color: var(--navy); margin: 0 0 1em; padding-left: 22px; border-left: 3px solid var(--gold); }
.project-copy p { font-size: 1.08rem; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.project-copy p:last-child { margin-bottom: 0; }
.about-project .about-actions { margin-top: 36px; }
.about-project .about-actions .link-arrow { color: var(--navy); }

@media (max-width: 820px) {
  /* Phones: tall portrait with the name on a navy fade at its foot (same idea as the Kotel band) */
  .about-hero { display: block; position: relative; min-height: 0; }
  .about-hero-photo { aspect-ratio: 4 / 5; }
  .about-hero-photo img { object-position: 34% 12%; }
  .about-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,30,54,0) 42%, rgba(14,30,54,.55) 70%, rgba(14,30,54,.96) 100%); }
  .about-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 34px; }
  .about-hero-text .page-crumb { display: none; }
  .about-hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); margin-bottom: .3em; }
  .about-hero-line { font-size: 1.05rem; }
  .about-bio { padding: 44px 0 48px; }
  .bio-lead { font-size: 1.3rem; line-height: 1.4; }
  .bio-more { font-size: 1rem; }
  .about-project { padding: 48px 0 calc(88px + var(--slant)); }
  .project-lead { font-size: 1.45rem; padding-left: 16px; }
  .project-copy p { font-size: 1rem; line-height: 1.55; }
  .about-project .about-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .about-project .about-actions .link-arrow { text-align: center; }
  .page-about .site-header { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Short photo banner at the top of inner pages (Contact) ---------- */
.page-banner {
  min-height: clamp(280px, 34vw, 420px);
  padding: 130px 0 64px;                      /* clears the header bar */
  display: grid; place-items: center; text-align: center;
  color: #fff; background: var(--navy-deep);
}
.page-banner::before { background: rgba(14, 30, 54, .6); }
.page-banner .band-bg { object-position: 50% 45%; }
.page-banner-content { max-width: none; }
.page-banner .page-crumb { color: rgba(255,255,255,.65); margin-bottom: .9em; }
.page-banner .page-crumb a { color: rgba(255,255,255,.85); }
.page-banner h1 { color: #fff; margin: 0; }
.has-banner .site-header { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }   /* sits over the banner photo */
.has-banner .site-header.scrolled { background: rgba(250,246,239,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.has-banner .nav > a { color: #fff; }
.has-banner .site-header.scrolled .nav > a { color: var(--navy); }
.has-banner .nav > a[aria-current="page"] { color: var(--gold-soft); }
.has-banner .site-header.scrolled .nav > a[aria-current="page"] { color: var(--gold); }
.page-contact .contact-simple { padding-top: clamp(56px, 7vw, 88px); }
.page-contact .contact-simple h1 { display: none; }
@media (max-width: 820px) {
  .page-banner { min-height: 240px; padding: 96px 0 40px; }
  .page-banner h1 { font-size: 2rem; }
  .has-banner .nav > a { color: #fff; }   /* the phone menu is navy anyway */
  .page-contact .contact-simple { padding-top: 44px; }
}
.has-banner .site-header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }   /* white logo over the banner photo */
.has-banner .site-header:not(.scrolled) .sub-toggle { color: #fff; }

/* Reviews banner: the marble arch render, framed on the book */
.page-banner-reviews .band-bg { object-position: 50% 40%; }
.page-banner-reviews::before { background: rgba(14, 30, 54, .66); }
.page-head-under-banner { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 8px; }
.page-head-under-banner .page-intro { max-width: 70ch; }
@media (max-width: 820px) {
  .page-reviews .page-head.page-head-under-banner { padding-top: 32px; }
}

/* About hero (desktop): the opening of the bio and the actions sit in the navy panel, so it isn't empty */
.about-hero-bio { margin: 1.6em 0 0; font-size: 1.08rem; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 50ch; }
.about-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.about-hero-actions .link-arrow { color: #fff; }
.about-hero-actions .link-arrow:hover { color: var(--gold-soft); }
.about-hero-text .page-crumb { margin-bottom: 1.4em; }
.about-hero { min-height: clamp(520px, 56vw, 680px); }
.about-bio .bio-lead { display: none; }                    /* the opening paragraph already sits in the hero on desktop */
.about-bio { padding: clamp(48px, 6vw, 72px) 0; }
.about-bio .bio-more { font-size: 1.12rem; color: var(--ink); max-width: 64ch; }
@media (max-width: 820px) {
  .about-hero-bio, .about-hero-actions { display: none; }  /* phones: the bio reads below the photo as before */
  .about-bio .bio-lead { display: block; }
}
.about-hero-more { margin: 1em 0 0; font-size: .95rem; line-height: 1.55; color: rgba(255,255,255,.6); max-width: 50ch; }
.about-bio { display: none; }                               /* desktop: everything from the bio now lives in the hero */
@media (max-width: 820px) {
  .about-hero-more { display: none; }
  .about-bio { display: block; }
}

/* ---------- Inner pages: a simple Back link instead of breadcrumbs ---------- */
.page-back { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; margin-bottom: 1.4em; transition: color .2s ease, gap .2s ease; }
.page-back::before { content: "\2190"; font-size: 1.05em; line-height: 1; }
.page-back:hover { color: var(--navy); gap: 12px; }
.page-banner .page-back, .about-hero-text .page-back { color: rgba(255,255,255,.75); }
.page-banner .page-back:hover, .about-hero-text .page-back:hover { color: #fff; }
.page-banner .page-back { margin-bottom: .9em; }
.about-hero-text .page-back { align-self: flex-start; margin-bottom: 2.2em; color: rgba(255,255,255,.85); }
.about-hero-text { padding-top: calc(clamp(48px, 6vw, 96px) + 72px); }   /* clears the fixed header bar so Back isn't tucked under it */
.contact-simple .page-back, .page-head .page-back { margin-bottom: 1.2em; }
@media (max-width: 820px) {
  .about-hero-text .page-back { display: none; }   /* phones: the floating menu has Home */
}

/* Dropdown links keep their own ink colour on banner pages (the card is white) */
@media (min-width: 821px) { .has-banner .sub a { color: var(--ink); } .has-banner .sub a[aria-current="page"] { color: var(--gold); } }

/* Layered hero (desktop): the ledge, wall and book sit in front of the city and drift less on scroll */
.hero-front { pointer-events: none; }
@media (max-width: 820px) { .hero-front { display: none !important; } }   /* phones keep the single portrait photo */
@media (min-width: 821px) {
  /* The layered image has the book filling most of its height, so the hero takes the image's own
     proportions (16:9) and the layers fill it exactly: nothing is cropped off the top of the book.
     No overhang is needed because both layers only ever move down, into the part already scrolled away. */
  .hero { min-height: max(92vh, calc(56.25vw + 40px)); }
  .hero-bg { top: 0; height: 100%; object-position: 70% 100%; }
  /* Front layer starts 40px down so the top of the book clears the menu; its top edge fades
     softly into the sky so the wall doesn't stop in a hard line */
  .hero-front {
    top: 40px; height: calc(100% - 40px); object-position: 70% 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%);
            mask-image: linear-gradient(180deg, transparent 0, #000 7%);
  }
}
@media (min-width: 821px) {
  /* Headline legibility over the city: a soft cream glow behind the text block only (an oval that
     fades out before the book), darker lead text, and a faint halo on the letters. No visible box. */
  .hero::after {
    background: radial-gradient(ellipse 38% 78% at 20% 52%,
      rgba(250,246,239,.86) 0%, rgba(250,246,239,.62) 48%, rgba(250,246,239,.22) 78%, rgba(250,246,239,0) 100%);
  }
  .hero-copy h1 { text-shadow: 0 0 28px rgba(250,246,239,.7), 0 0 2px rgba(250,246,239,.6); }
  .hero-copy .lead { color: var(--navy); font-weight: 500; text-shadow: 0 0 18px rgba(250,246,239,.9), 0 0 2px rgba(250,246,239,.8); }
}
