/* ==========================================================================
   Sigal Geshury — Tikkun Olam
   Dark identity: warm near-black, warm white, gold.
   Type: Cormorant Garamond (EN display) / Assistant (HE display + body, both scripts)
   Fonts self-hosted — no third-party requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/assistant-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/assistant-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/cormorant-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/cormorant-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Tokens
   Contrast on --ink: paper 17.5:1 · gold 8.4:1 · gold-soft 12.8:1 · muted 7.7:1
   All clear WCAG 2.0 AA (4.5:1) for normal text — SI 5568 requirement.
   -------------------------------------------------------------------------- */

:root {
  --ink: #0b0a08;
  --ink-2: #121009;
  --ink-3: #1a1710;
  --paper: #f4f1e8;
  --gold: #c9a44c;
  --gold-soft: #e4ce95;
  --muted: #a9a091;
  --line: rgba(201, 164, 76, 0.22);
  --line-strong: rgba(201, 164, 76, 0.42);
  --whatsapp: #25d366;

  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --tscale: 1;
  --nav-h: 78px;
  --gutter: clamp(20px, 6vw, 108px);
  --focus: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold-soft);
}

/* Hebrew headlines run on Assistant rather than a Hebrew serif: the serif faces
   read as dated at display size, and Assistant is already loaded for body copy,
   so this costs nothing extra. Weight carries the display/body distinction
   instead of a second family — see the Hebrew heading rule below. */
:root[lang='he'] {
  --display: 'Assistant', system-ui, -apple-system, sans-serif;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: calc(18px * var(--tscale));
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

::selection {
  background: var(--gold);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

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

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  text-wrap: balance;
  margin: 0;
}

h1,
.section h2 {
  line-height: 0.98;
  letter-spacing: -0.01em;
}

h1 {
  font-size: calc(clamp(48px, 6.4vw, 104px) * var(--tscale));
  margin: 26px 0;
}

.section h2 {
  font-size: calc(clamp(40px, 4.6vw, 72px) * var(--tscale));
}

h1 em,
h2 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}

/* Hebrew has no italic — the browser would only fake a slant, so colour alone
   carries the emphasis. Headings also go heavier and tighter: a sans needs more
   weight than a serif to read as display, and Assistant tops out at 600. */
:root[lang='he'] h1 em,
:root[lang='he'] h2 em {
  font-style: normal;
  font-weight: 600;
}

:root[lang='he'] h1,
:root[lang='he'] h2,
:root[lang='he'] h3,
:root[lang='he'] .core strong,
:root[lang='he'] .cover strong,
:root[lang='he'] .node b,
:root[lang='he'] .logos strong {
  font-weight: 600;
  letter-spacing: -0.015em;
}

:root[lang='he'] .bio blockquote {
  font-weight: 400;
}

p {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

.eyebrow {
  font-size: calc(12px * var(--tscale));
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}

/* Hebrew is unicameral — uppercasing does nothing but widen tracking oddly. */
:root[lang='he'] .eyebrow,
:root[lang='he'] .brand b,
:root[lang='he'] .node span,
:root[lang='he'] .logos small {
  text-transform: none;
  letter-spacing: 0.06em;
}

.lead {
  font-size: calc(clamp(19px, 1.5vw, 22px) * var(--tscale));
  color: var(--paper);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--body);
  font-size: calc(14px * var(--tscale));
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.button:hover {
  background: var(--gold);
  color: var(--ink);
}

.button.gold {
  background: var(--gold);
  color: var(--ink);
}

.button.gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(11, 10, 8, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--display);
  font-size: calc(15px * var(--tscale));
  letter-spacing: 0.04em;
}

.brand b {
  font-size: calc(11px * var(--tscale));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

.nav nav {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
  font-size: calc(14px * var(--tscale));
}

.nav nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.25s;
}

.nav nav a:hover {
  color: var(--paper);
}

.nav nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.lang-toggle {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font-family: var(--body);
  font-size: calc(13px * var(--tscale));
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.nav .button {
  padding: 11px 18px;
  font-size: calc(13px * var(--tscale));
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + clamp(56px, 9vh, 110px)) var(--gutter) 90px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 5vw;
  overflow: hidden;
}

/* Warm glow behind the mark. The grain layer below keeps it from banding —
   large dark radial gradients posterize badly without noise. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 72% 46%,
      rgba(201, 164, 76, 0.16) 0,
      rgba(201, 164, 76, 0.05) 34%,
      transparent 62%
    ),
    radial-gradient(circle at 8% 12%, rgba(184, 111, 76, 0.1) 0, transparent 45%);
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-mark {
  position: relative;
  z-index: 2;
  width: min(30vw, 400px);
  aspect-ratio: 1;
  margin-inline-start: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--display);
  box-shadow: 0 0 90px rgba(201, 164, 76, 0.12), inset 0 0 60px rgba(201, 164, 76, 0.06);
}

.hero-mark::before,
.hero-mark::after {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hero-mark::after {
  inset: 21%;
  border-radius: 0;
  transform: rotate(45deg);
}

.hero-mark strong {
  font-size: calc(clamp(64px, 8vw, 108px) * var(--tscale));
  font-weight: 400;
  line-height: 1;
}

.hero-mark span {
  font-size: calc(15px * var(--tscale));
  letter-spacing: 0.34em;
}

/* Centred so it clears the floating buttons in both directions. */
.scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  font-size: calc(12px * var(--tscale));
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 10vw, 132px) var(--gutter);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 54px;
}

.section-head p:last-child {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}

.alt {
  background: var(--ink-2);
}

/* Vision -------------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  margin-top: 56px;
}

.two-col .big {
  font-size: calc(clamp(21px, 1.9vw, 27px) * var(--tscale));
  line-height: 1.42;
  max-width: none;
}

.two-col > p:last-child {
  color: var(--muted);
  max-width: none;
}

/* Tikkun map ---------------------------------------------------------- */

.orbit {
  position: relative;
  height: 660px;
  max-width: 900px;
  margin: 48px auto 40px;
}

.orbit::before {
  content: '';
  position: absolute;
  inset: 60px 180px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line);
}

.core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: 0 0 70px rgba(201, 164, 76, 0.14);
}

.core small {
  display: block;
  color: var(--gold);
  font-size: calc(11px * var(--tscale));
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.core strong {
  font-family: var(--display);
  font-size: calc(42px * var(--tscale));
  font-weight: 500;
  line-height: 0.95;
  color: var(--paper);
}

:root[lang='he'] .core small {
  text-transform: none;
}

.node {
  position: absolute;
  z-index: 3;
  width: 190px;
  min-height: 128px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.node:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: #201c14;
}

.node i {
  font-style: normal;
  font-size: calc(11px * var(--tscale));
  letter-spacing: 0.16em;
  color: var(--gold);
}

.node b {
  font-family: var(--display);
  font-size: calc(22px * var(--tscale));
  font-weight: 500;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.node span {
  margin-top: auto;
  font-size: calc(9px * var(--tscale));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.n1 { top: 0; left: 50%; margin-left: -95px; }
.n2 { inset-inline-end: 0; top: 50%; margin-top: -64px; }
.n3 { bottom: 0; left: 50%; margin-left: -95px; }
.n4 { inset-inline-start: 0; top: 50%; margin-top: -64px; }

.map-note {
  max-width: none;
  text-align: center;
  font-size: calc(15px * var(--tscale));
  color: var(--muted);
}

/* Journey ------------------------------------------------------------- */

.journey {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}

.bio {
  padding-top: 78px;
}

.bio p {
  font-size: calc(19px * var(--tscale));
}

.bio blockquote {
  margin: 44px 0 0;
  padding: 8px 28px;
  border-inline-start: 2px solid var(--gold);
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: calc(clamp(23px, 2.2vw, 30px) * var(--tscale));
  line-height: 1.35;
}

/* Talks --------------------------------------------------------------- */

.talk-list {
  border-top: 1px solid var(--line);
  margin-bottom: 46px;
}

.talk-list article {
  display: grid;
  grid-template-columns: 62px 1fr 118px;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.talk-list article:hover {
  background: rgba(201, 164, 76, 0.035);
}

.talk-list article > span {
  color: var(--gold);
  font-size: calc(13px * var(--tscale));
  letter-spacing: 0.14em;
  padding-top: 6px;
}

.talk-list h3 {
  font-size: calc(clamp(22px, 2vw, 28px) * var(--tscale));
}

.talk-list p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 74ch;
}

.talk-list article > b {
  font-size: calc(11px * var(--tscale));
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 8px;
  text-align: end;
}

/* Books --------------------------------------------------------------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}

.book-grid article {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cover {
  aspect-ratio: 0.68;
  padding: 28px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s, box-shadow 0.4s;
}

.book-grid article:hover .cover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.6);
}

.cover small {
  font-size: calc(10px * var(--tscale));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.cover strong {
  margin: auto 0;
  font-family: var(--display);
  font-size: calc(clamp(30px, 3.2vw, 52px) * var(--tscale));
  font-weight: 500;
  line-height: 0.95;
}

.cover i {
  font-style: normal;
  font-size: calc(40px * var(--tscale));
  color: var(--gold);
}

:root[lang='he'] .cover small {
  text-transform: none;
}

.cover.copper {
  background: linear-gradient(160deg, #7a3f28, #46220f);
  color: var(--paper);
}

.cover.pale {
  background: linear-gradient(160deg, #2b251a, #191509);
  color: var(--gold-soft);
}

.cover.black {
  background: linear-gradient(160deg, #16140f, #0a0906);
  color: var(--paper);
}

.book-grid h3 {
  font-size: calc(24px * var(--tscale));
}

.book-grid p {
  font-size: calc(16px * var(--tscale));
  color: var(--muted);
  margin-bottom: 8px;
}

.book-grid article > a {
  margin-top: auto;
  font-size: calc(14px * var(--tscale));
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: color 0.25s, border-color 0.25s;
}

.book-grid article > a:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* Ventures ------------------------------------------------------------ */

.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 54px;
  border: 1px solid var(--line);
}

.logos a {
  min-height: 186px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border-inline-start: 1px solid var(--line);
  transition: background 0.3s;
}

.logos a:first-child {
  border-inline-start: 0;
}

.logos a:hover {
  background: rgba(201, 164, 76, 0.06);
}

.logos strong {
  font-family: var(--display);
  font-size: calc(25px * var(--tscale));
  font-weight: 500;
  color: var(--gold);
}

.logos small {
  font-size: calc(9px * var(--tscale));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.contact {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(201, 164, 76, 0.1), transparent 58%),
    var(--ink-2);
}

.contact h2 {
  font-size: calc(clamp(46px, 6vw, 92px) * var(--tscale));
}

.contact > p {
  margin-inline: auto;
  max-width: 56ch;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 38px;
}

.contact-actions .button {
  padding: 17px 32px;
  font-size: calc(15px * var(--tscale));
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

footer {
  position: relative;
  z-index: 2;
  padding: 52px var(--gutter) 46px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  display: grid;
  gap: 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: calc(12px * var(--tscale));
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: calc(12px * var(--tscale));
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Floating actions — WhatsApp and accessibility
   Opposite corners so they never collide; both mirror with direction.
   -------------------------------------------------------------------------- */

.fab {
  position: fixed;
  bottom: 22px;
  z-index: 70;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--ink-3);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.fab:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.fab svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.fab-whatsapp {
  inset-inline-end: 22px;
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #04240f;
}

.fab-whatsapp:hover {
  background: #2ef07a;
  border-color: #2ef07a;
}

.fab-a11y {
  inset-inline-start: 22px;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   11. Accessibility panel
   -------------------------------------------------------------------------- */

.a11y-panel {
  position: fixed;
  bottom: 90px;
  inset-inline-start: 22px;
  z-index: 71;
  width: min(320px, calc(100vw - 44px));
  max-height: min(78vh, 640px);
  overflow-y: auto;
  padding: 18px;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel h2 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 4px;
}

.a11y-panel > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.a11y-opt {
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.a11y-opt:hover {
  border-color: var(--gold);
}

.a11y-opt[aria-pressed='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.a11y-opt svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.a11y-size {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}

.a11y-size div {
  display: flex;
  gap: 6px;
}

.a11y-size button {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  cursor: pointer;
}

.a11y-size button:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.a11y-foot {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.a11y-reset {
  padding: 11px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.a11y-reset:hover {
  background: var(--gold);
  color: var(--ink);
}

.a11y-foot a {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.a11y-foot a:hover {
  color: var(--gold-soft);
}

/* --------------------------------------------------------------------------
   12. Accessibility modes — driven by data-a11y-* on <html>
   -------------------------------------------------------------------------- */

:root[data-a11y-contrast='on'] {
  --ink: #000;
  --ink-2: #000;
  --ink-3: #0a0a0a;
  --paper: #fff;
  --gold: #ffd75e;
  --gold-soft: #ffe9a3;
  --muted: #f0f0f0;
  --line: rgba(255, 215, 94, 0.5);
  --line-strong: rgba(255, 215, 94, 0.8);
}

:root[data-a11y-contrast='on'] .hero::before,
:root[data-a11y-contrast='on'] .contact,
:root[data-a11y-contrast='on'] .grain {
  background-image: none;
}

:root[data-a11y-contrast='on'] .cover {
  background: #000;
  color: #fff;
}

:root[data-a11y-readable='on'] {
  --display: 'Assistant', system-ui, sans-serif;
}

:root[data-a11y-readable='on'] body {
  font-weight: 400;
  letter-spacing: 0.01em;
}

:root[data-a11y-readable='on'] h1,
:root[data-a11y-readable='on'] h2,
:root[data-a11y-readable='on'] h3 {
  font-weight: 600;
  font-style: normal;
}

:root[data-a11y-readable='on'] em {
  font-style: normal;
}

:root[data-a11y-links='on'] a:not(.button):not(.fab):not(.brand):not(.skip-link) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--gold);
}

:root[data-a11y-grayscale='on'] body {
  filter: grayscale(1);
}

:root[data-a11y-invert='on'] body {
  filter: invert(1) hue-rotate(180deg);
}

:root[data-a11y-invert='on'][data-a11y-grayscale='on'] body {
  filter: invert(1) hue-rotate(180deg) grayscale(1);
}

:root[data-a11y-cursor='on'],
:root[data-a11y-cursor='on'] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M6 2l20 13-9 1.6 5 9.4-4 2-5-9.4L6 25z' fill='%23fff' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E")
      4 4,
    auto;
}

:root[data-a11y-motion='off'] *,
:root[data-a11y-motion='off'] *::before,
:root[data-a11y-motion='off'] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Text scaling: 1 = default, up to 3 steps. */
:root[data-a11y-size='1'] { --tscale: 1.15; }
:root[data-a11y-size='2'] { --tscale: 1.32; }
:root[data-a11y-size='3'] { --tscale: 1.5; }

/* --------------------------------------------------------------------------
   13. Legal / prose pages
   -------------------------------------------------------------------------- */

.page-head {
  padding: calc(var(--nav-h) + 72px) var(--gutter) 44px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 20% 0%, rgba(201, 164, 76, 0.09), transparent 55%);
}

.page-head h1 {
  font-size: calc(clamp(38px, 4.6vw, 68px) * var(--tscale));
  margin: 14px 0 10px;
}

.page-head p {
  color: var(--muted);
  margin: 0;
}

/* box-sizing is border-box, so the gutter must be added on top of the measure —
   otherwise the padding eats it and the column collapses. Left-aligned rather
   than centred so the text shares the page heading's left edge. */
.prose {
  max-width: calc(74ch + var(--gutter) * 2);
  margin: 0;
  padding: clamp(48px, 7vw, 84px) var(--gutter) clamp(72px, 9vw, 112px);
}

.prose h2 {
  font-family: var(--display);
  font-size: calc(clamp(25px, 2.4vw, 33px) * var(--tscale));
  font-weight: 500;
  margin: 46px 0 14px;
  color: var(--gold-soft);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: calc(19px * var(--tscale));
  font-weight: 600;
  font-family: var(--body);
  margin: 26px 0 8px;
}

.prose p,
.prose li {
  color: var(--muted);
  max-width: none;
}

.prose strong {
  color: var(--paper);
  font-weight: 600;
}

.prose ul {
  margin: 0 0 1.1em;
  padding-inline-start: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--gold-soft);
}

.prose .callout {
  margin: 30px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-inline-start: 2px solid var(--gold);
  background: var(--ink-2);
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

/* Details Sigal still has to supply — deliberately loud so nothing false ships. */
.todo {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(201, 164, 76, 0.16);
  border: 1px dashed var(--gold);
  color: var(--gold-soft);
  font-size: calc(0.92em * var(--tscale));
  font-weight: 600;
}

/* minmax(0,1fr) — a plain 1fr keeps its auto min-width and long values
   (or an enlarged text setting) push the row past the viewport. */
.prose dl {
  margin: 0 0 1.1em;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
}

.prose dt {
  color: var(--paper);
  font-weight: 600;
}

.prose dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   14. Motion
   -------------------------------------------------------------------------- */

.reveal {
  animation: rise 0.9s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .nav nav {
    display: none;
  }

  .nav .button span {
    display: none;
  }

  .nav .button {
    padding: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-mark {
    width: min(70vw, 320px);
    margin-inline: auto;
  }

  .two-col,
  .journey {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .bio {
    padding-top: 0;
  }

  .orbit {
    height: 780px;
  }

  .orbit::before,
  .orbit::after {
    display: none;
  }

  .core {
    width: 176px;
    height: 176px;
  }

  .node {
    width: 158px;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .cover {
    max-width: 340px;
  }

  .logos {
    grid-template-columns: 1fr 1fr;
  }

  .logos a:nth-child(3) {
    border-inline-start: 0;
  }
}

@media (max-width: 620px) {
  body {
    font-size: calc(17px * var(--tscale));
  }

  .brand b {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .scroll {
    display: none;
  }

  /* The orbit becomes a single centred column — the four gateways read as the
     personal-to-planetary progression they actually are. Centred rather than
     direction-aligned so the section looks identical in Hebrew and English. */
  .orbit {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 36px;
  }

  .core {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    grid-column: 1 / -1;
    margin-inline: auto;
  }

  .node {
    position: relative;
    inset: auto !important;
    margin: 0 !important;
    width: auto;
    min-width: 0;
    min-height: 0;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 22px 18px;
  }

  .node span {
    margin-top: 0;
  }

  /* The section head centres too, so the whole block reads as one centred
     column instead of inheriting the desktop's directional alignment.
     (#map, not .map — the section carries the id, and class="section".) */
  #map .section-head {
    text-align: center;
    justify-content: center;
    margin-bottom: 34px;
  }

  #map .section-head p:last-child,
  #map .map-note {
    margin-inline: auto;
  }

  /* Stacked, so an enlarged term never squeezes its value off-screen. */
  .prose dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .prose dd {
    margin-bottom: 12px;
  }

  .talk-list article {
    grid-template-columns: 34px 1fr;
    gap: 16px;
  }

  .talk-list article > b {
    display: none;
  }

  .logos {
    grid-template-columns: 1fr;
  }

  .logos a {
    min-height: 140px;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .logos a:first-child {
    border-top: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .fab {
    width: 50px;
    height: 50px;
  }

  .a11y-panel {
    bottom: 82px;
    inset-inline-start: 12px;
  }
}
