/* Fonts (Fraunces + Plus Jakarta Sans) are loaded via <link> in each page <head>. */

/* ============================================================
   THE LAST SURVIVOR — A CECELIA MARGULES LEGACY
   Design System: "LUMINOUS ARCHIVE"
   Light · Accessible (WCAG 2.1 AA) · Technological · Animated
   ============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Surfaces — WHITE · a touch of BLACK · GOLD (crisp, luxe, high-contrast) */
  --bg:        #FCFCFB;   /* page — crisp near-white */
  --bg-soft:   #F5F4F0;   /* light neutral surface for alternating bands */
  --bg-sand:   #EDEBE4;   /* subtle deeper band */
  --card:      #FFFFFF;   /* pure white cards */
  --card-2:    #FAFAF8;

  /* Ink / text (near-black — the "black" of the palette) */
  --ink:       #14110A;   /* primary text  ~17:1 */
  --ink-soft:  #46402F;   /* secondary     ~8.5:1 */
  --ink-dim:   #837A67;   /* muted / meta (large only) */
  --jet:       #0E0C07;   /* true near-black for dramatic surfaces (footer) */

  /* Lines */
  --line:        rgba(18,15,8,0.09);
  --line-2:      rgba(18,15,8,0.16);

  /* Gold accent family (touches of gold throughout) */
  --gold:        #B07C2A;   /* accent (icons, borders, fills) */
  --gold-deep:   #6E4E13;   /* gold TEXT on white — AA */
  --gold-bright: #DBB35E;   /* luminous highlight */
  --gold-soft:   #F2E7C9;   /* soft gold wash */

  /* Ambient accents (aurora / gradients only — never body text) */
  --rose:  #C4835C;
  --sky:   #6E9BC2;
  --ember: #B5541F;   /* deep memorial ember, used sparingly */
  --blue:      #2E4A66;   /* antique blue — a quiet secondary accent */
  --blue-deep: #16283C;
  --blue-soft: rgba(46,74,102,0.10);

  /* Glass */
  --glass:       rgba(255,255,255,0.66);
  --glass-line:  rgba(255,255,255,0.85);

  /* Shadows (warm, soft) */
  --shadow-sm: 0 1px 2px rgba(46,36,18,0.05), 0 2px 6px rgba(46,36,18,0.05);
  --shadow:    0 8px 26px rgba(46,36,18,0.09), 0 2px 8px rgba(46,36,18,0.05);
  --shadow-lg: 0 28px 64px rgba(46,36,18,0.15), 0 10px 28px rgba(46,36,18,0.08);
  --shadow-gold: 0 14px 38px rgba(181,134,58,0.30);

  /* Fonts — Rubik for headings, Assistant for everything else (modern, accessible) */
  --font-display: 'Rubik', system-ui, sans-serif;                  /* big editorial titles */
  --font-heading: 'Rubik', system-ui, sans-serif;                  /* labels / UI voice */
  --font-body:    'Assistant', system-ui, sans-serif;              /* general body copy */
  --font-ui:      'Assistant', system-ui, sans-serif;

  /* Spacing (tightened for a denser, more editorial rhythm) */
  --sp-xs: 8px; --sp-sm: 16px; --sp-md: 28px;
  --sp-lg: 44px; --sp-xl: 64px; --sp-2xl: 88px;

  /* Radius */
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;

  /* Motion */
  --ease-gold: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s var(--ease-gold);
  --t-base: 0.45s var(--ease-gold);
  --t-slow: 0.8s var(--ease-gold);

  /* ── BACK-COMPAT ALIASES (old names → light values) ──
     Keeps every legacy page stylesheet & inline style working
     while flipping the whole site to light automatically. */
  --black:       #0E0C07;   /* near-black — text-on-gold + dramatic surfaces */
  --dark:        var(--bg);
  --dark-mid:    var(--bg-soft);
  --dark-card:   var(--card);
  --dark-border: var(--line);
  --gold-light:  var(--gold-bright);
  --gold-dark:   var(--gold-deep);
  --cream:       var(--ink);
  --cream-mid:   var(--ink-soft);
  --cream-dark:  var(--ink-dim);
  --text-light:  var(--ink);
  --text-muted:  var(--ink-soft);
  --text-dim:    var(--ink-dim);
}

/* ── RESET / BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Ambient page glow — soft luminous field behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 40% at 12% 0%,  rgba(219,179,94,0.07) 0%, transparent 60%),
    radial-gradient(55% 45% at 50% 100%, rgba(127,166,199,0.04) 0%, transparent 60%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
::selection { background: rgba(181,134,58,0.24); color: var(--ink); }

/* Custom cursor retired — always show the normal pointer (more accessible,
   and fixes the "cursor disappears" issue on light pages like the Archive). */
#cursor-dot, #cursor-ring { display: none !important; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-bright), var(--gold));
  border: 2px solid var(--bg-soft);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── FOCUS (accessibility) ──────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 60000;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  padding: 10px 18px; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
  position: relative;
  padding-left: 34px;
}
.section-label::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: translateY(-50%);
}
.section-header { text-align: center; margin-bottom: var(--sp-lg); }
.section-header .section-label { padding-left: 0; }
.section-header .section-label::before { display: none; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Titles never break awkwardly; body copy wraps prettily */
h1, h2, h3, h4,
.cta-content h2, .story-meta h3, .category-card h3,
.archive-card-title, .tl-card h4, .main-quote p {
  text-wrap: balance;
  overflow-wrap: break-word;
}
p, li, .body-text, .section-desc { text-wrap: pretty; }
.section-desc {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}
.body-text {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 1.08rem;
}
.gold-rule {
  width: 64px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  margin-bottom: 28px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-bright) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-md); }
.section-footer { text-align: center; margin-top: var(--sp-lg); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 34px;
  border-radius: var(--r-pill);
  position: relative; overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
/* Sheen sweep on hover */
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease-gold);
}
.btn:hover::after { left: 160%; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #241C0C;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-gold); }

.btn-ghost {
  border: 1.5px solid var(--line-2);
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--gold); background: #fff; box-shadow: var(--shadow); }

.btn-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  background: transparent;
}
.btn-gold:hover { background: var(--gold); color: #241C0C; box-shadow: var(--shadow-gold); }

.btn-ghost-small {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
  border: 1.5px solid var(--line-2);
  padding: 9px 22px; border-radius: var(--r-pill);
  transition: var(--t-fast);
}
.btn-ghost-small:hover { border-color: var(--gold); background: var(--gold-soft); }

/* ── LOADER ─────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 50000;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(238,223,182,0.55), transparent 70%),
    var(--bg);
}
.loader-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.loader-logo { width: 300px; max-width: 74vw; height: auto; opacity: 0; transform: translateY(12px); }
.loader-bar-wrap { width: 200px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.loader-text {
  font-family: var(--font-ui); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim); opacity: 0;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
#cursor-dot {
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 40000;
  transform: translate(-50%, -50%); transition: transform 0.1s;
  mix-blend-mode: multiply;
}
#cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(181,134,58,0.55); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 39999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s, background 0.3s;
}
#cursor-ring.hovering {
  width: 56px; height: 56px; border-color: var(--gold);
  background: rgba(181,134,58,0.08);
}

/* ── FILM GRAIN (very subtle warmth) ────────────────────────── */
.film-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── BRAND MARK (text + inline tree SVG — works on light) ───── */
.brand { display: inline-flex; align-items: center; gap: 12px; transition: opacity var(--t-fast), transform var(--t-fast); }
.brand:hover { transform: translateY(-1px); }
.brand-tree { display: inline-flex; color: var(--gold); flex-shrink: 0; }
.brand-tree svg { width: 40px; height: 40px; }
.brand-tree .leaf { animation: leafGlow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.brand-tree .leaf:nth-child(2n) { animation-delay: 1.2s; }
.brand-tree .leaf:nth-child(3n) { animation-delay: 2.1s; }
@keyframes leafGlow { 0%,100% { opacity: 0.7; } 50% { opacity: 1; filter: drop-shadow(0 0 4px rgba(216,178,94,0.7)); } }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-word {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.12rem; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-ui); font-size: 0.52rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep);
  margin-top: 5px; white-space: nowrap;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 22px 0;
  transition: background var(--t-base), box-shadow var(--t-base), padding var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  /* No backdrop-filter here: a filtered ancestor would trap the fixed mobile
     menu overlay inside the 60px bar. Solid background instead. */
  background: rgba(252,252,251,0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-md);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 58px; width: auto; transition: opacity var(--t-fast), transform var(--t-fast); }
.nav-logo:hover img { opacity: 0.82; transform: translateY(-1px); }
#navbar.scrolled .nav-logo img { height: 48px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--font-ui); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); position: relative;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--font-ui); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #241C0C; background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 11px 24px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 22px; justify-content: center; }
.menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--t-base), opacity var(--t-fast); }
.nav-close-item { display: none; }

/* ── HERO (bright · animated aurora) ────────────────────────── */
#hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(48% 42% at 16% 22%, rgba(216,178,94,0.22), transparent 62%),
    radial-gradient(44% 40% at 86% 26%, rgba(198,138,102,0.16), transparent 62%),
    radial-gradient(64% 52% at 50% 104%, rgba(127,166,199,0.14), transparent 60%),
    linear-gradient(180deg, #FEFCF7 0%, #F6F0E4 100%);
}
/* drifting aurora blobs */
#hero::before {
  content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(28% 30% at 22% 32%, rgba(216,178,94,0.30), transparent 62%),
    radial-gradient(26% 28% at 78% 42%, rgba(198,138,102,0.24), transparent 62%),
    radial-gradient(32% 30% at 60% 82%, rgba(127,166,199,0.20), transparent 62%);
  filter: blur(34px);
  animation: auroraDrift 24s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1)   rotate(0deg); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.12) rotate(4deg); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.05) rotate(-3deg); }
}
/* Background video — over-scaled to cover, crops YouTube chrome off-screen */
.hero-video { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-video #hero-video-player,
.hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%;
  transform: translate(-50%, -50%) scale(1.35); transform-origin: center;
  border: 0; pointer-events: none;
}
/* soft ivory edge covers hide the YouTube title/logo chrome and blend into the page */
.hero-video::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 120px; z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(252,252,251,0.55) 55%, transparent 100%); }
.hero-video::after  { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 150px; z-index: 1;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(252,252,251,0.55) 55%, transparent 100%); }

/* luminous ivory veil over the video — keeps the hero bright + the logo legible
   (the centre is a touch stronger to mask any transient player chrome) */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 47%, rgba(252,252,251,0.62), transparent 80%),
    linear-gradient(180deg, rgba(252,252,251,0.74) 0%, rgba(252,252,251,0.5) 42%, rgba(252,252,251,0.86) 86%, var(--bg) 100%);
}
#particles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* Floating archive photos — scattered polaroids (original style) */
.hero-photos { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-photo {
  --photo-op: 0.4;                 /* semi-transparent — reads as part of the background */
  position: absolute; width: clamp(120px, 13vw, 190px);
  padding: 8px 8px 26px; background: #fff; border-radius: 4px;
  box-shadow: 0 12px 30px rgba(20,17,11,0.10); transform: rotate(var(--rot, -4deg));
  filter: saturate(0.9); opacity: 0; animation: heroPhotoFade 1.1s ease forwards;
}
.hero-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 28%; border-radius: 2px; display: block; }
.photo-year-stamp {
  position: absolute; bottom: 6px; left: 0; right: 0; text-align: center;
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--gold-deep);
}
@keyframes heroPhotoFade { to { opacity: var(--photo-op, 0.4); } }
@keyframes heroPhotoFloat {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%      { transform: rotate(calc(var(--rot) * 0.7)) translateY(-14px); }
}
.hero-photo.hp1 { top: 16%;   left: 6%;  --rot: -6deg; animation: heroPhotoFade 1s .5s ease forwards, heroPhotoFloat 7s   1.5s ease-in-out infinite; }
.hero-photo.hp2 { top: 22%;   right: 7%; --rot: 5deg;  animation: heroPhotoFade 1s .7s ease forwards, heroPhotoFloat 8s   1.7s ease-in-out infinite; }
.hero-photo.hp3 { bottom: 15%; left: 11%;--rot: 4deg;  animation: heroPhotoFade 1s .9s ease forwards, heroPhotoFloat 9s   1.9s ease-in-out infinite; }
.hero-photo.hp4 { bottom: 18%; right: 9%;--rot: -5deg; animation: heroPhotoFade 1s 1.1s ease forwards, heroPhotoFloat 7.5s 2.1s ease-in-out infinite; }
@media (max-width: 900px) { .hero-photo { width: clamp(104px, 22vw, 132px); } }
@media (max-width: 620px) {
  /* phones: two soft, semi-transparent photos low in the hero, clear of the centred logo */
  .hero-photo.hp2, .hero-photo.hp3 { display: none; }
  .hero-photo { width: 112px; padding: 6px 6px 20px; opacity: 0.5 !important; animation: none !important; box-shadow: 0 10px 22px rgba(20,17,11,0.12); }
  .hero-photo .photo-year-stamp { display: none; }
  .hero-photo.hp1 { top: auto; bottom: 24%; left: 3%; transform: rotate(-5deg); }
  .hero-photo.hp4 { top: auto; bottom: 8%;  right: 3%; transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-photo { opacity: 0.4 !important; animation: none !important; } }

.hero-content {
  position: relative; z-index: 10; text-align: center;
  padding: 0 var(--sp-md); max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-ui); font-weight: 600;
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.hero-eyebrow::before {
  content: ""; display: block; width: 60px; height: 2px; margin: 0 auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Hero mark — the wordmark logo (light-adapted image) */
.hero-mark { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.hero-logo-img {
  width: min(640px, 86vw); height: auto; margin: 0 auto;
  filter: drop-shadow(0 16px 40px rgba(174,122,44,0.24));
  animation: heroLogoGlow 6s ease-in-out infinite;
}
@keyframes heroLogoGlow {
  0%, 100% { filter: drop-shadow(0 16px 40px rgba(181,134,58,0.18)); }
  50%      { filter: drop-shadow(0 20px 54px rgba(216,178,94,0.34)); }
}
.hero-tree { color: var(--gold); filter: drop-shadow(0 10px 24px rgba(181,134,58,0.28)); animation: treeSway 9s ease-in-out infinite; }
.hero-tree svg { width: clamp(88px, 12vw, 132px); height: auto; }
.hero-tree .leaf { animation: leafGlow 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-tree .leaf:nth-child(2n){ animation-delay: 0.9s; } .hero-tree .leaf:nth-child(3n){ animation-delay: 1.8s; } .hero-tree .leaf:nth-child(4n){ animation-delay: 2.7s; }
@keyframes treeSway { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-1.4deg) translateY(-3px); } }

.hero-lockup { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 10px; }
.lockup-the {
  font-family: var(--font-ui); font-weight: 600;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold-deep);
  padding-left: 0.5em;
}
.lockup-last {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.94; letter-spacing: -0.015em; color: var(--ink);
  background: linear-gradient(100deg, var(--ink) 0%, var(--gold-deep) 45%, var(--ink) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: lockupShimmer 7s linear infinite;
}
@keyframes lockupShimmer { from { background-position: 220% center; } to { background-position: -220% center; } }
.lockup-sub {
  font-family: var(--font-ui); font-weight: 500;
  font-size: clamp(0.66rem, 1.4vw, 0.9rem);
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-soft);
  margin-top: 8px; padding-left: 0.34em;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3;
}
.scroll-label {
  font-family: var(--font-ui); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim);
}
.scroll-line-wrap { width: 2px; height: 48px; background: var(--line); border-radius: 2px; overflow: hidden; }
.scroll-line-inner { width: 100%; height: 100%; background: linear-gradient(var(--gold-bright), var(--gold)); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ── QUOTE BAND ─────────────────────────────────────────────── */
#quote-band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg-sand));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--sp-xl) 0;
}
#quote-band .container { position: relative; z-index: 2; }
.main-quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote-mark {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 6rem; line-height: 0.6; margin-bottom: 18px;
  color: var(--gold); opacity: 0.55;
}
.main-quote p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.5;
  color: var(--ink); margin-bottom: 22px;
}
.story-back p { font-family: var(--font-display); }
.main-quote cite {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); font-style: normal;
}
/* drifting warm light motes (visible on the sand band) */
.smoke-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.smoke-puff {
  position: absolute; bottom: -140px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,178,94,0.20) 0%, rgba(216,178,94,0.08) 45%, transparent 78%);
  filter: blur(26px); opacity: 0; animation: smokeRise linear infinite; will-change: transform, opacity;
}
.smoke-puff:nth-child(1){ left: 6%;  width:280px;height:280px; animation-duration:36s; animation-delay:0s; }
.smoke-puff:nth-child(2){ left:24%;  width:380px;height:380px; animation-duration:44s; animation-delay:6s; }
.smoke-puff:nth-child(3){ left:44%;  width:340px;height:340px; animation-duration:40s; animation-delay:14s; }
.smoke-puff:nth-child(4){ left:64%;  width:420px;height:420px; animation-duration:48s; animation-delay:22s; }
.smoke-puff:nth-child(5){ left:84%;  width:260px;height:260px; animation-duration:38s; animation-delay:28s; }
.smoke-puff:nth-child(6){ left:16%;  width:400px;height:400px; animation-duration:46s; animation-delay:34s; }
.smoke-puff:nth-child(7){ left:56%;  width:320px;height:320px; animation-duration:42s; animation-delay:38s; }
@keyframes smokeRise {
  0%   { transform: translate(0,0) scale(0.55); opacity: 0; }
  14%  { opacity: 0.9; }
  70%  { transform: translate(-24px, -58vh) scale(1.25); opacity: 0.5; }
  100% { transform: translate(12px, -92vh) scale(1.5); opacity: 0; }
}

/* ── ABOUT ──────────────────────────────────────────────────── */
#about { padding: var(--sp-2xl) 0; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: center; }
.about-text { padding-right: var(--sp-md); }
.about-text .section-title { margin-bottom: 20px; }
.about-text .btn { margin-top: 12px; }
.about-visual { position: relative; }
.visual-frame { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.visual-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px 20px; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.visual-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(216,178,94,0.12), transparent 70%);
  opacity: 0; transition: opacity var(--t-base);
}
.visual-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.visual-card:hover::before { opacity: 1; }
.visual-card-icon { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--gold); position: relative; }
.visual-card span {
  display: block; font-family: var(--font-ui); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px;
}
.visual-card strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--gold-deep); }
.visual-card.v1 { animation: floatCard 5s ease-in-out infinite; }
.visual-card.v2 { animation: floatCard 5s ease-in-out infinite 0.8s; }
.visual-card.v3 { animation: floatCard 5s ease-in-out infinite 1.6s; }
.visual-card.v4 { animation: floatCard 5s ease-in-out infinite 2.4s; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ── ARCHIVE PREVIEW ────────────────────────────────────────── */
#archive-preview { padding: var(--sp-2xl) 0; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); position: relative; }
.section-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(216,178,94,0.06) 0%, transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(127,166,199,0.05) 0%, transparent 45%);
}
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.archive-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.archive-card:hover { border-color: var(--gold); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.archive-card-thumb { width: 100%; aspect-ratio: 4/3; background: var(--bg-soft); position: relative; overflow: hidden; display: block; }
.archive-card-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-gold); }
.archive-card:hover .archive-card-thumb > img { transform: scale(1.06); }
.archive-card-thumb .photo-sim-real, .archive-card-thumb .photo-sim { position: absolute; inset: 0; width: 100%; height: 100%; }
.archive-card-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(34,28,19,0.35) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--t-base);
}
.archive-card:hover .archive-card-thumb::after { opacity: 1; }
.archive-card-type {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family: var(--font-ui); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #241C0C;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 5px 11px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.archive-card-body { padding: 22px; }
.archive-card-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.archive-card-meta { display: flex; gap: 16px; margin-bottom: 12px; }
.archive-card-meta span {
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim);
}
.archive-card-meta span::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.archive-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.archive-tag {
  font-family: var(--font-ui); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep);
  background: var(--gold-soft); border: 1px solid rgba(181,134,58,0.22);
  padding: 3px 10px; border-radius: var(--r-pill);
}

/* ── CATEGORIES (tall image cards) ──────────────────────────── */
#categories { padding: var(--sp-md) 0 var(--sp-xl); background: var(--bg); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 470px;
  display: block; text-decoration: none; isolation: isolate; background: #1a160e;
  box-shadow: var(--shadow);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.category-card::before { content: none; }   /* retire the old gold underline */
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cat-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; z-index: 0;
  transition: transform 0.7s var(--ease-gold);
}
.category-card:hover .cat-bg { transform: scale(1.06); }
.cat-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(12,10,6,0.95) 0%, rgba(12,10,6,0.60) 34%, rgba(12,10,6,0.12) 66%, rgba(12,10,6,0.34) 100%);
}
/* antique-blue variant — a touch of blue woven into the palette */
.category-card.cat-blue .cat-shade {
  background: linear-gradient(to top, rgba(16,30,48,0.95) 0%, rgba(22,40,62,0.62) 34%, rgba(30,52,80,0.18) 66%, rgba(18,34,54,0.42) 100%);
}
.cat-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 26px 24px; color: #fff; }
.category-card h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 1.9vw, 1.75rem); font-weight: 600; color: #fff; margin-bottom: 10px; text-wrap: balance; }
.category-card p { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.55; margin-bottom: 18px; }
.cat-count { font-family: var(--font-ui); font-size: 0.84rem; font-weight: 600; color: #fff; display: inline-flex; align-items: center; }
.cat-count::after { content: "→"; margin-left: 8px; transition: margin-left var(--t-fast); }
.category-card:hover .cat-count::after { margin-left: 14px; }
.cat-icon, .cat-arrow { display: none; }
@media (max-width: 768px) { .category-card { min-height: 400px; } }

/* ── TIMELINE ───────────────────────────────────────────────── */
#timeline { padding: var(--sp-2xl) 0; background: var(--bg-soft); overflow: hidden; }
#timeline .section-header { padding: 0 var(--sp-md); }
.timeline-track-wrap { overflow-x: auto; padding: 0 var(--sp-md) var(--sp-md); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.timeline-track { display: flex; gap: 0; align-items: flex-start; position: relative; min-width: max-content; padding: 60px var(--sp-xl) 40px; }
.timeline-line { position: absolute; top: 78px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent); transform-origin: left; }
.timeline-item { display: flex; flex-direction: column; align-items: center; position: relative; width: 220px; flex-shrink: 0; }
.tl-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--gold); background: var(--card); position: relative; z-index: 2; flex-shrink: 0; transition: var(--t-base); }
.tl-dot--gold { background: var(--gold); box-shadow: 0 0 0 5px rgba(181,134,58,0.18); }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-top: 20px; text-align: center; width: 180px; box-shadow: var(--shadow-sm); transition: var(--t-base); }
.tl-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow); }
.tl-card--gold { border-color: rgba(181,134,58,0.4); }
.tl-year { display: block; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--gold-deep); margin-bottom: 8px; }
.tl-card h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.tl-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }

/* ── STORIES (flip cards) ───────────────────────────────────── */
#stories { padding: var(--sp-2xl) 0; background: var(--bg); }
.stories-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; align-items: start; }
.story-card { height: 380px; perspective: 1400px; }
.story-card.featured { height: 420px; }
.story-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s var(--ease-gold); }
.story-card:hover .story-card-inner, .story-card:focus-within .story-card-inner { transform: rotateY(180deg); }
.story-front, .story-back {
  position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 34px 26px; text-align: center; gap: 16px; box-shadow: var(--shadow-sm);
}
.story-back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--card), var(--bg-soft)); border-color: rgba(181,134,58,0.3); justify-content: space-between; }
.story-back p { font-family: var(--font-body); font-style: italic; font-size: 1rem; color: var(--ink-soft); line-height: 1.65; flex: 1; display: flex; align-items: center; }
.story-photo-placeholder { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--gold); background: var(--gold-soft); display: flex; align-items: center; justify-content: center; position: relative; }
.story-card.featured .story-photo-placeholder { width: 116px; height: 116px; }
.photo-frame-ornament { position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(181,134,58,0.35); }
.photo-initials { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--gold-deep); }
.story-portrait-img { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.story-portrait-img img { width: 100%; height: 100%; object-fit: cover; }
.story-meta { text-align: center; }
.story-year { display: block; font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.story-meta h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.story-place { font-size: 0.9rem; color: var(--ink-dim); font-style: italic; }

/* ── CTA BAND ───────────────────────────────────────────────── */
/* ── INSTAGRAM / THE SERIES ─────────────────────────────────── */
#testimonies { padding: var(--sp-xl) 0; background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.ig-panel {
  max-width: 600px; margin: 0 auto; text-align: center; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 44px 36px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
}
.ig-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ig-glyph { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep); background: var(--gold-soft); border-radius: 16px; margin-bottom: 16px; }
.ig-glyph svg { width: 28px; height: 28px; }
.ig-panel .section-title { margin-bottom: 10px; }
.ig-panel .btn { margin-top: 22px; }

/* ── EDUCATORS BANNER ────────────────────────────────────────── */
#educators-banner { padding: var(--sp-lg) 0; background: var(--bg); }
.edu-banner {
  display: flex; align-items: center; gap: 30px;
  background: linear-gradient(120deg, var(--card), var(--gold-soft) 140%);
  border: 1px solid rgba(176,124,42,0.24); border-radius: var(--r-lg);
  padding: 34px 38px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.edu-banner:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.edu-banner::after {
  content: ""; position: absolute; inset: -50%;
  background: radial-gradient(28% 45% at 85% 30%, rgba(219,179,94,0.28), transparent 60%);
  pointer-events: none; animation: auroraDrift 18s ease-in-out infinite alternate;
}
.edu-banner-glyph {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 18px;
  background: var(--card); border: 1px solid rgba(176,124,42,0.2);
  color: var(--gold-deep); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); position: relative; z-index: 1;
}
.edu-banner-glyph svg { width: 34px; height: 34px; }
.edu-banner-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.edu-banner-text .section-label { margin-bottom: 8px; }
.edu-banner-text h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600; color: var(--ink); margin-bottom: 8px; text-wrap: balance;
}
.edu-banner-text p { color: var(--ink-soft); font-size: 0.98rem; max-width: 560px; margin-bottom: 14px; }
.edu-banner-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.edu-banner-pills span {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--gold-deep); background: var(--card);
  border: 1px solid rgba(176,124,42,0.2); padding: 4px 12px; border-radius: var(--r-pill);
}
.edu-banner-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 700;
  color: #241C0C; background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 13px 24px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  position: relative; z-index: 1; transition: transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.edu-banner-cta svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.edu-banner:hover .edu-banner-cta { box-shadow: var(--shadow-gold); }
.edu-banner:hover .edu-banner-cta svg { transform: translateX(4px); }
html[dir="rtl"] .edu-banner-cta svg { transform: scaleX(-1); }
html[dir="rtl"] .edu-banner:hover .edu-banner-cta svg { transform: scaleX(-1) translateX(4px); }
@media (max-width: 820px) {
  .edu-banner { flex-wrap: wrap; padding: 28px 26px; }
  .edu-banner-cta { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .edu-banner-glyph { width: 54px; height: 54px; border-radius: 14px; }
  .edu-banner-glyph svg { width: 26px; height: 26px; }
  .edu-banner-text h2 { font-size: 1.3rem; }
}

/* The one dramatic "black + gold" moment of the site */
#cta-band {
  padding: var(--sp-2xl) 0; position: relative; overflow: hidden;
  background: radial-gradient(90% 120% at 50% 0%, #1d1810 0%, var(--jet) 72%);
  border-top: 1px solid rgba(219,179,94,0.28); border-bottom: 1px solid rgba(219,179,94,0.28);
}
#cta-band::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(28% 38% at 32% 42%, rgba(219,179,94,0.30), transparent 60%),
              radial-gradient(30% 40% at 70% 58%, rgba(219,179,94,0.16), transparent 60%);
  filter: blur(34px); animation: auroraDrift 20s ease-in-out infinite alternate; pointer-events: none;
}
.cta-content { text-align: center; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-content h2 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600;
  color: #FBF6EA; margin-bottom: 16px; text-wrap: balance;
}
.cta-content p { color: rgba(255,255,255,0.72); margin-bottom: 34px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* buttons legible on the dark band */
#cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }
#cta-band .btn-ghost:hover { border-color: var(--gold-bright); background: rgba(255,255,255,0.12); box-shadow: none; }

/* ── FOOTER ─────────────────────────────────────────────────── */
#footer { background: var(--bg-sand); border-top: 1px solid var(--line); }
.footer-top { padding: var(--sp-xl) 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--sp-lg); }
.footer-brand { padding-right: var(--sp-md); }
.footer-logo { height: auto; width: auto; max-width: 260px; margin-bottom: 20px; transition: opacity var(--t-fast); }
.footer-logo:hover { opacity: 0.82; }
.footer-brand p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }
.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.9rem; color: var(--ink-soft); transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--gold-deep); }
.footer-contact p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }
.footer-email { display: inline-block; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--gold-deep); margin-bottom: 24px; transition: color var(--t-fast); }
.footer-email:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  background: var(--card); transition: var(--t-fast);
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--ink-dim); }
.footer-credit { color: var(--gold-deep); transition: color var(--t-fast); }
.footer-credit:hover { color: var(--gold); }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity var(--t-base); }
.modal.open { opacity: 1; pointer-events: all; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(34,28,19,0.42); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; z-index: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); max-width: 800px; width: 90%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); transform: scale(0.96) translateY(12px); transition: transform var(--t-base);
}
.modal.open .modal-panel { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border: 1.5px solid var(--line-2); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); background: var(--card); transition: var(--t-fast); z-index: 2;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { border-color: var(--gold); color: var(--gold-deep); }
.modal-content { padding: 48px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding-right: 0; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .stories-grid { grid-template-columns: 1fr; }
  .story-card, .story-card.featured { height: 340px; }
}
/* Tablets (iPad portrait/landscape, small laptops): the desktop nav bar
   (6 links + CTA) starts to crowd or overflow well before the 768px phone
   breakpoint, so the hamburger menu takes over earlier here too. */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; inset: 0; width: 100%; height: 100%;
    min-height: -webkit-fill-available;
    background: rgba(252,252,251,0.97);
    align-items: center; justify-content: center; gap: 28px; z-index: 9999; overflow-y: auto; padding: 90px 24px 40px;
  }
  .nav-link { font-size: 1.2rem; letter-spacing: 0.14em; color: var(--ink); }
  .nav-cta { font-size: 0.94rem; padding: 15px 36px; margin-top: 8px; }
  .menu-toggle { display: flex; position: relative; z-index: 10000; }
  .nav-close-item { display: list-item; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; inset: 0; width: 100%; height: 100%;
    min-height: -webkit-fill-available;
    background: rgba(252,252,251,0.97);
    align-items: center; justify-content: center; gap: 26px; z-index: 9999; overflow-y: auto; padding: 80px 24px 40px;
  }
  .nav-link { font-size: 1.15rem; letter-spacing: 0.16em; color: var(--ink); }
  .nav-cta { font-size: 0.9rem; padding: 14px 34px; margin-top: 8px; }
  .menu-toggle { display: flex; position: relative; z-index: 10000; }
  .nav-close-item { display: list-item; }
  .nav-close-btn {
    margin-top: 16px; width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-soft);
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: var(--t-fast);
  }
  .nav-close-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
  .archive-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }

  /* tighter vertical rhythm on phones */
  :root { --sp-2xl: 56px; --sp-xl: 42px; --sp-lg: 32px; }
  /* nav logo scales down so it never crowds the menu button */
  #navbar { padding: 16px 0; }
  #navbar.scrolled { padding: 10px 0; }
  .nav-logo img, #navbar.scrolled .nav-logo img { height: 40px; }
  /* headings sized to never overflow or break badly */
  .section-title { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .cta-content h2 { font-size: clamp(1.55rem, 6.4vw, 2rem); }
  .main-quote p { font-size: clamp(1.2rem, 5.2vw, 1.6rem); }
  .hero-eyebrow { font-size: 0.64rem; letter-spacing: 0.2em; }
  .about-visual { margin-top: 8px; }
}
@media (max-width: 480px) {
  :root { --sp-md: 18px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .nav-logo img, #navbar.scrolled .nav-logo img { height: 36px; }
  .visual-frame { gap: 12px; }
  .visual-card { padding: 20px 14px; }
  .btn { padding: 14px 26px; }
}

/* ════════════════════════════════════════════════════════════
   CREATIVE LAYER: "MODERN HERITAGE"
   Antique ornament + modern motion, layered on the light system.
   ════════════════════════════════════════════════════════════ */

/* Section labels: flanked by gold hairlines (engraved-plate feel) */
.section-header .section-label {
  display: inline-flex; align-items: center; gap: 16px; padding-left: 0;
}
.section-header .section-label::before,
.section-header .section-label::after {
  content: ""; display: inline-block; position: static; transform: none;
  width: 44px; height: 1px; background: var(--gold); opacity: 0.5;
}

/* Hero: slow halo rings behind the wordmark */
.hero-mark::before {
  content: ""; position: absolute; z-index: -1;
  width: min(600px, 86vw); height: min(600px, 86vw);
  top: 50%; left: 50%; transform: translate(-50%, -52%);
  border: 1px solid rgba(176,124,42,0.14); border-radius: 50%;
  pointer-events: none;
}
.hero-mark::after {
  content: ""; position: absolute; z-index: -1;
  width: min(680px, 94vw); height: min(680px, 94vw);
  top: 50%; left: 50%; transform: translate(-50%, -52%);
  border: 1px dashed rgba(176,124,42,0.20); border-radius: 50%;
  pointer-events: none;
  animation: haloSpin 90s linear infinite;
}
@keyframes haloSpin { to { transform: translate(-50%, -52%) rotate(360deg); } }

/* Ken Burns settle: images inside revealed blocks ease into place */
.js-ready [data-reveal] img:not(.cat-bg) { transform: scale(1.05); transition: transform 1.3s var(--ease-gold); }
[data-reveal].in-view img:not(.cat-bg) { transform: scale(1); }

/* Editorial drop cap on the opening paragraph of About */
#about .about-text .body-text:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 600;
  font-size: 3.3em; line-height: 0.8; float: left;
  padding: 6px 10px 0 0; color: var(--gold-deep);
}

/* Antique inner plate on the stat cards */
.visual-card::after {
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(176,124,42,0.16); border-radius: 10px;
  pointer-events: none;
}

/* Remembrance ribbon: slow moving band of memory words */
.remember-band {
  overflow: hidden; background: var(--bg-sand);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.remember-track {
  display: inline-flex; align-items: center; gap: 38px; white-space: nowrap;
  animation: rememberScroll 48s linear infinite; will-change: transform;
}
.remember-track span {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.15rem; color: var(--gold-deep); opacity: 0.75;
}
.remember-track i { font-style: normal; color: var(--gold); opacity: 0.6; }
@keyframes rememberScroll { to { transform: translateX(-50%); } }

/* Desktop nav: underline grows from the centre */
.nav-link::after {
  left: 50%; right: 50%; transform: none; transform-origin: center;
  transition: left 0.35s var(--ease-gold), right 0.35s var(--ease-gold);
}
.nav-link:hover::after, .nav-link.active::after { left: 0; right: 0; transform: none; }

/* Mobile menu: ivory sheet, big serif links, staggered entrance, tree watermark */
@media (max-width: 768px) {
  .nav-links.open {
    background: linear-gradient(180deg, #FDFCF9 0%, #F3EDDF 100%);
    gap: 20px;
  }
  .nav-links.open::before {
    content: ""; position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
    width: 240px; height: 260px; opacity: 0.09; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 52' fill='none' stroke='%23B07C2A' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M24 50V30'/%3E%3Cpath d='M24 33L15 24M24 33l9-9M24 27l-5.5-7M24 27l5.5-7M24 24V12'/%3E%3Ccircle cx='24' cy='10' r='2.4' fill='%23B07C2A' stroke='none'/%3E%3Ccircle cx='15' cy='23' r='2' fill='%23B07C2A' stroke='none'/%3E%3Ccircle cx='33' cy='23' r='2' fill='%23B07C2A' stroke='none'/%3E%3Ccircle cx='18.5' cy='19' r='1.7' fill='%23B07C2A' stroke='none'/%3E%3Ccircle cx='29.5' cy='19' r='1.7' fill='%23B07C2A' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .nav-links.open .nav-link {
    font-family: var(--font-display); font-size: 1.65rem; font-weight: 600;
    text-transform: none; letter-spacing: 0.01em; color: var(--ink);
  }
  .nav-links.open .nav-link::after { height: 2px; bottom: -4px; }
  .nav-links.open .nav-cta { margin-top: 14px; }
  .nav-links.open li { opacity: 0; transform: translateY(18px); animation: menuItemIn 0.55s var(--ease-spring) forwards; }
  .nav-links.open li:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.11s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.17s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.23s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.29s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.35s; }
  .nav-links.open li:nth-child(7) { animation-delay: 0.41s; }
  @keyframes menuItemIn { to { opacity: 1; transform: none; } }
}

/* Mobile: calmer ribbon + hero ornaments scale */
@media (max-width: 620px) {
  .remember-track span { font-size: 0.98rem; }
  .hero-ornament-top, .hero-ornament-bottom { width: 200px; }
}

/* ════ I18N: Hebrew + RTL ════════════════════════════════════ */
.lang-toggle {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--ink-soft);
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  padding: 8px 16px; background: var(--card); cursor: pointer;
  transition: var(--t-fast);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-soft); }

/* ── Hebrew typography ──────────────────────────────────────
   Heebo (modern geometric sans, superb Hebrew) for text and UI,
   Noto Serif Hebrew for editorial headings. Hebrew has no italics
   and no uppercase, so those are neutralised below. */
html[lang="he"] {
  --font-display: 'Rubik', system-ui, sans-serif;      /* modern geometric headings */
  --font-heading: 'Assistant', system-ui, sans-serif;
  --font-body:    'Assistant', system-ui, sans-serif;  /* clean, highly legible body */
  --font-ui:      'Assistant', system-ui, sans-serif;
}
/* Headings in Hebrew: heavy Rubik, tight tracking, tighter leading */
html[lang="he"] .section-title, html[lang="he"] .cta-content h2,
html[lang="he"] .concerts-hero-title, html[lang="he"] .videos-hero-title,
html[lang="he"] .press-hero-title, html[lang="he"] .hero-title, html[lang="he"] .about-hero-title,
html[lang="he"] .block-title, html[lang="he"] .learn-hero h1,
html[lang="he"] h1, html[lang="he"] h2 {
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
html[lang="he"] .learn-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 3.3rem); }
html[lang="he"] .section-title  { font-weight: 700; }
html[lang="he"] h3, html[lang="he"] h4,
html[lang="he"] .person-name, html[lang="he"] .pp-name,
html[lang="he"] .lesson h2, html[lang="he"] .tl-entry h3,
html[lang="he"] .archive-card-title, html[lang="he"] .category-card h3,
html[lang="he"] .story-meta h3, html[lang="he"] .event-title {
  font-family: 'Rubik', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em;
}
/* the gold gradient wordmark also needs the heavier face */
html[lang="he"] .lockup-last { font-family: 'Rubik', sans-serif; font-weight: 800; }
html[lang="he"] body {
  font-size: 1.08rem;
  line-height: 1.85;            /* Hebrew needs more air between lines */
  -webkit-font-smoothing: antialiased;
}

/* Hebrew has no true italic: browsers fake-slant it and it looks broken */
html[lang="he"] .main-quote p,
html[lang="he"] .story-back p,
html[lang="he"] .story-place,
html[lang="he"] .about-tagline,
html[lang="he"] .biography-lead,
html[lang="he"] .mission-quote,
html[lang="he"] .hero-eyebrow,
html[lang="he"] .remember-track span,
html[lang="he"] em, html[lang="he"] i, html[lang="he"] cite, html[lang="he"] blockquote {
  font-style: normal;
}
/* emphasis instead of italics */
html[lang="he"] em { font-weight: 600; color: var(--gold-deep); }

/* No uppercase in Hebrew, and wide tracking hurts legibility */
html[lang="he"] .section-label, html[lang="he"] .nav-link, html[lang="he"] .nav-cta,
html[lang="he"] .btn, html[lang="he"] .btn-ghost-small, html[lang="he"] .hero-eyebrow,
html[lang="he"] .story-year, html[lang="he"] .cat-count, html[lang="he"] .archive-card-type,
html[lang="he"] .archive-tag, html[lang="he"] .archive-card-meta span,
html[lang="he"] .footer-nav h4, html[lang="he"] .footer-contact h4,
html[lang="he"] .scroll-label, html[lang="he"] .photo-year-stamp,
html[lang="he"] .main-quote cite, html[lang="he"] .block-eyebrow,
html[lang="he"] .event-cat, html[lang="he"] .filter-tab, html[lang="he"] .cf-tab,
html[lang="he"] .sidebar-title, html[lang="he"] .lang-toggle, html[lang="he"] .footer-bottom p {
  text-transform: none;
  letter-spacing: 0;
}

/* Headings: tighter leading, medium weights read better in Hebrew */
html[lang="he"] .section-title, html[lang="he"] .cta-content h2,
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] h4 {
  letter-spacing: 0; line-height: 1.28; font-weight: 600;
}
html[lang="he"] .section-title { font-size: clamp(1.75rem, 4vw, 2.9rem); }
html[lang="he"] .lockup-last { letter-spacing: 0; }
html[lang="he"] .section-label { font-weight: 700; font-size: 0.78rem; }
html[lang="he"] .body-text, html[lang="he"] .section-desc { font-size: 1.06rem; line-height: 1.9; }
html[lang="he"] .main-quote p { font-weight: 500; line-height: 1.65; }
html[lang="he"] .btn, html[lang="he"] .nav-cta { font-weight: 700; font-size: 0.86rem; }
html[lang="he"] .nav-link { font-weight: 600; font-size: 0.92rem; }
html[lang="he"] .category-card h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
html[lang="he"] .archive-card-title { font-size: 1.02rem; line-height: 1.5; }
/* the Latin drop cap does not work with Hebrew letterforms */
html[lang="he"] #about .about-text .body-text:first-of-type::first-letter,
html[lang="he"][dir="rtl"] #about .about-text .body-text:first-of-type::first-letter {
  font-size: inherit !important; float: none !important; padding: 0 !important;
  color: inherit !important; line-height: inherit !important; font-family: inherit !important;
}
/* mobile menu links in Hebrew */
@media (max-width: 768px) {
  html[lang="he"] .nav-links.open .nav-link { font-size: 1.5rem; font-weight: 600; }
}

/* RTL flow fixes */
html[dir="rtl"] .about-text { padding-right: 0; padding-left: var(--sp-md); }
html[dir="rtl"] .section-label { padding-left: 0; padding-right: 34px; }
html[dir="rtl"] .section-label::before { left: auto; right: 0; background: linear-gradient(270deg, var(--gold), transparent); }
html[dir="rtl"] .section-header .section-label { padding-right: 0; }
/* Latin drop cap is disabled in Hebrew (see the lang="he" block below) */
html[dir="rtl"]:not([lang="he"]) #about .about-text .body-text:first-of-type::first-letter { float: right; padding: 6px 0 0 10px; }
html[dir="rtl"] .cat-count::after { content: "←"; margin-left: 0; margin-right: 8px; transition: margin-right var(--t-fast); }
html[dir="rtl"] .category-card:hover .cat-count::after { margin-left: 0; margin-right: 14px; }
html[dir="rtl"] .footer-brand { padding-right: 0; padding-left: var(--sp-md); }
html[dir="rtl"] .archive-card-meta span::before { margin-right: 0; margin-left: 6px; }

/* mobile menu stagger covers the extra language item */
@media (max-width: 768px) {
  .nav-links.open li:nth-child(8) { animation-delay: 0.47s; }
}

/* ── REDUCED MOTION (accessibility) ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero-photo { opacity: 0.4 !important; }
}
