/* Jacques Neria - speaker site.
   Tokens follow 01-brand/design-system/design-tokens.css (copied so the site deploys on its own).
   Two worlds: .night (archive, navy) is the default, .day (parchment) for memory and story.
   Progressive: everything is readable without JS; html.js adds motion states only. */

:root {
  color-scheme: dark;
  --ink-950: #081524; --ink-900: #0D1F33; --ink-800: #142946; --ink-700: #1F3A5F; --ink-500: #4D5D73;
  --parchment-50: #FAF6EE; --parchment-100: #F5F0E6; --parchment-200: #F2EDE1; --parchment-300: #E9E2D6; --parchment-500: #D0C6B4; --parchment-700: #8C7F69;
  --gold-300: #DCC08E; --gold-500: #C9A46A; --gold-700: #9C7A43;
  --tape-500: #C8B48E; --photo-frame: #FBFAF6;

  --font-display: 'Frank Ruhl Libre', 'David Libre', 'Times New Roman', serif;
  --font-body: 'Assistant', 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  --font-numeral: 'Cormorant Garamond', Georgia, serif;
  --font-cipher: 'Noto Serif', 'Times New Roman', serif;
  --font-ruqaa: 'Aref Ruqaa', 'Noto Naskh Arabic', serif;

  --fs-h1: clamp(2.5rem, 6.2vw, 5.4rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.6rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
  --fs-body: 1.125rem;
  --fs-lead: clamp(1.15rem, 1.6vw, 1.4rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1240px;
  --radius: 2px;
  --header-h: 72px;

  --shadow-paper: 0 18px 40px -18px rgb(8 21 36 / .55), 0 2px 6px rgb(8 21 36 / .18);
  --shadow-photo: 0 22px 40px -18px rgb(8 21 36 / .6), 0 3px 8px rgb(8 21 36 / .25);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-ui: 180ms;
  --dur-reveal: 900ms;
}

.night { --bg: var(--ink-900); --fg: var(--parchment-100); --fg-muted: #A9B3C1; --accent: var(--gold-500); --line: rgb(245 240 230 / .12); --card: rgb(245 240 230 / .04); color: var(--fg); background: var(--ink-900); }
.day   { --bg: var(--parchment-200); --fg: var(--ink-900); --fg-muted: #5E5647; --accent: var(--gold-700); --line: rgb(31 58 95 / .14); --card: rgb(255 255 255 / .45); color: var(--fg); background: radial-gradient(120% 90% at 30% 20%, var(--parchment-50), var(--parchment-200) 60%, var(--parchment-300)); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.65;
  background: var(--ink-900); color: var(--parchment-100);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
::selection { background: var(--gold-500); color: var(--ink-950); }

/* film grain over everything, very light */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.skip { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 200; background: var(--gold-500); color: var(--ink-950); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }
.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; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
section { position: relative; }
.section-pad { padding-block: clamp(5rem, 11vw, 9.5rem); }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.gold { color: var(--accent); }
em.gold, .gold-em { font-style: normal; color: var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: 1.4rem; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-muted); max-width: 40ch; }
.year { font-family: var(--font-numeral); font-style: italic; font-weight: 600; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 + p { margin-top: 1.2rem; }

/* four-point star bullet from the design system */
.star { display: inline-block; width: .8em; height: .8em; flex: none; background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--gold-500); --b-fg: var(--ink-950);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--b-bg);
  background: var(--b-bg); color: var(--b-fg); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate; transition: transform var(--dur-ui) var(--ease-out), background-color var(--dur-ui) ease, color var(--dur-ui) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(110%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent);
}
.btn:active { transform: scale(.97); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--fg); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.btn .arrow { transition: transform var(--dur-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: translateX(-110%) skewX(-18deg); transition: transform .8s var(--ease-out); }
  .btn:hover .arrow { transform: translateX(-4px); }
  .btn-ghost:hover { background: rgb(201 164 106 / .1); }
}
.btn-lg { min-height: 60px; padding-inline: 2rem; font-size: 1.15rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; transition: background-color .4s ease, box-shadow .4s ease, transform .45s var(--ease-out);
}
.site-header.is-solid { background: rgb(8 21 36 / .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgb(245 240 230 / .08); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--parchment-100); }
.brand b { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.brand small { font-family: var(--font-display); color: var(--gold-500); font-size: .95rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a:not(.btn) { color: var(--parchment-100); text-decoration: none; font-weight: 600; font-size: 1rem; position: relative; padding-block: .3rem; opacity: .86; }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out); }
@media (hover: hover) { .nav a:not(.btn):hover { opacity: 1; } .nav a:not(.btn):hover::after { transform: scaleX(1); } }
.nav .btn { min-height: 44px; padding: .5rem 1.15rem; font-size: .98rem; }
.menu-btn { display: none; width: 48px; height: 48px; border: 1px solid rgb(245 240 230 / .2); border-radius: var(--radius); background: transparent; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: var(--parchment-100); transition: transform .3s var(--ease-out), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; background: rgb(8 21 36 / .97); backdrop-filter: blur(14px);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s .3s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s ease, transform .3s var(--ease-out); }
  .nav a:not(.btn) { font-size: 1.3rem; padding: 1rem 0; border-bottom: 1px solid rgb(245 240 230 / .08); font-family: var(--font-display); }
  .nav .btn { margin-top: 1.4rem; min-height: 54px; font-size: 1.1rem; }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--header-h) + 3rem) 6rem; overflow: hidden;
  background: radial-gradient(110% 80% at 75% 15%, var(--ink-800), var(--ink-900) 55%, var(--ink-950)); }
.cipher-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::before { /* reading veil behind the copy on the start (right) side */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgb(8 21 36 / .92) 0%, rgb(8 21 36 / .6) 42%, rgb(8 21 36 / 0) 75%),
              linear-gradient(to top, var(--ink-950), transparent 28%);
}
.hero .wrap { position: relative; z-index: 2; pointer-events: none; }
.hero .wrap > * { pointer-events: auto; }
.hero-copy { max-width: 780px; }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 46ch; color: #C7CFDA; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero-note { font-size: .92rem; color: var(--fg-muted); display: flex; gap: .55rem; align-items: center; }
.lens-hint { position: absolute; z-index: 2; inset-inline-end: var(--gutter); bottom: 2.2rem; font-size: .85rem; color: var(--fg-muted); display: none; align-items: center; gap: .5rem; }
.lens-hint i { width: 18px; height: 18px; border: 1px solid var(--gold-500); border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .lens-hint { display: flex; } }
.scroll-cue { position: absolute; z-index: 2; inset-inline-start: 50%; bottom: 1.6rem; width: 1px; height: 54px; background: linear-gradient(var(--gold-500), transparent); }
@media (max-width: 700px) { .hero { align-items: end; padding-top: calc(var(--header-h) + 20svh); padding-bottom: 3rem; } .hero::before { background: linear-gradient(to top, rgb(8 21 36 / .96) 0%, rgb(8 21 36 / .7) 55%, rgb(8 21 36 / .25) 100%); } .scroll-cue { display: none; } }

/* decode text: chars are spans while scrambling */
[data-decode] .dc { display: inline; }
[data-decode] .w { display: inline-block; white-space: nowrap; }
.dc { position: relative; }
.dc.is-cipher { color: transparent; }
.dc.is-cipher::after { content: attr(data-g); position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-300); font-family: var(--font-cipher), var(--font-ruqaa); font-weight: 400; font-style: normal; opacity: .85; }

/* ---------- credentials strip ---------- */
.creds { border-block: 1px solid var(--line); background: var(--ink-950); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 1.6rem; padding: 1.25rem 1.6rem 1.25rem 0; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--parchment-100); }
.marquee li::after { content: ""; width: .55em; height: .55em; background: var(--gold-500); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes marquee { to { transform: translateX(50%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stat { background: var(--ink-900); padding: clamp(1.6rem, 3vw, 2.6rem) 1rem; text-align: center; }
.stat b { display: block; font-family: var(--font-numeral); font-style: italic; font-weight: 600; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; color: var(--gold-500); }
.stat span { display: block; margin-top: .5rem; color: var(--fg-muted); font-size: 1rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cairo scene ---------- */
.cairo { background: radial-gradient(90% 70% at 20% 40%, #10243c, var(--ink-950) 70%); }
.cairo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cairo-visual { position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100svh - var(--header-h) - 8vh); display: grid; place-items: center; }
.cairo-steps { padding-block: 12vh 30vh; }
.cairo-step { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; max-width: 34rem; }
.cairo-step .tag { font-family: var(--font-numeral); font-style: italic; color: var(--gold-500); font-size: 1.5rem; margin-bottom: .6rem; }
.cairo-step h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.cairo-step p { color: #C7CFDA; font-size: var(--fs-lead); }
.cairo-step blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; }
.cairo-step blockquote::before { content: "״"; color: var(--gold-500); }
.cairo-step blockquote::after { content: "״"; color: var(--gold-500); }
.cairo-step cite { display: block; margin-top: 1rem; font-style: normal; color: var(--fg-muted); }
.cairo-step .cairo-moral { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; }

.stage { position: relative; width: min(100%, 520px); aspect-ratio: 4 / 5; }
.stage > * { position: absolute; }
.polaroid {
  background: var(--photo-frame); padding: 12px 12px 46px; box-shadow: var(--shadow-photo); border-radius: 1px;
  transform: rotate(var(--rot, -3deg)); transition: transform .9s var(--ease-out), opacity .9s ease, filter 1.6s ease;
}
.polaroid img { width: 100%; height: auto; filter: sepia(.32) contrast(1.05) saturate(.9); }
.polaroid figcaption { position: absolute; inset-inline: 12px; bottom: 10px; font-family: var(--font-display); font-size: .95rem; color: var(--ink-700); line-height: 1.25; }
.polaroid::before { /* tape */
  content: ""; position: absolute; top: -12px; inset-inline-start: 50%; width: 92px; height: 26px; translate: 50% 0; rotate: 4deg;
  background: rgb(200 180 142 / .72); box-shadow: 0 1px 2px rgb(0 0 0 / .15);
}
.stage .p-sign { top: 2%; inset-inline-end: 0; width: 82%; --rot: 3deg; }
.note-card {
  background: var(--parchment-100); color: var(--ink-900); padding: 1.4rem 1.6rem 1.2rem; box-shadow: var(--shadow-paper);
  bottom: 4%; inset-inline-start: 0; width: 78%; transform: rotate(-2.5deg); transition: transform .9s var(--ease-out), opacity .9s ease;
  background-image: repeating-linear-gradient(transparent 0 31px, rgb(31 58 95 / .09) 31px 32px);
}
.note-card .ruqaa { font-family: var(--font-ruqaa); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.5; direction: rtl; color: #1b2f4d; display: block; text-align: center; }
.note-card .ruqaa svg { width: 100%; height: auto; overflow: visible; }
.note-card small { display: block; text-align: center; color: var(--parchment-700); font-size: .8rem; margin-top: .3rem; }
.words { display: flex; justify-content: center; gap: 1.2rem; margin-top: .6rem; }
.word { text-align: center; padding: .4rem .8rem; border-radius: var(--radius); transition: background-color .6s ease, opacity .6s ease, transform .6s var(--ease-out); }
.word .ar { font-family: var(--font-ruqaa); font-size: 2rem; line-height: 1.3; display: block; position: relative; }
.word .he { font-size: .9rem; font-weight: 700; display: block; }
.word.no .ar::after { content: ""; position: absolute; inset-inline: -6px; top: 52%; height: 3px; background: #a23b2a; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out) .2s; }
.word.yes { background: rgb(201 164 106 / .0); }

/* JS-driven states for the Cairo stage (stage[data-step]) */
html.js .stage .p-sign { opacity: 0; transform: rotate(8deg) translateY(30px) scale(.96); filter: brightness(1.8) blur(4px) sepia(1); }
html.js .stage .note-card { opacity: 0; transform: rotate(-8deg) translateY(40px); }
html.js .stage .words { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s var(--ease-out); }
html.js .stage[data-step="1"] .p-sign, html.js .stage[data-step="2"] .p-sign, html.js .stage[data-step="3"] .p-sign, html.js .stage[data-step="4"] .p-sign { opacity: 1; transform: rotate(3deg); filter: none; }
html.js .stage[data-step="2"] .note-card, html.js .stage[data-step="3"] .note-card, html.js .stage[data-step="4"] .note-card { opacity: 1; transform: rotate(-2.5deg); }
html.js .stage[data-step="3"] .words, html.js .stage[data-step="4"] .words { opacity: 1; transform: none; }
html.js .stage[data-step="4"] .word.no { opacity: .45; }
html.js .stage[data-step="4"] .word.no .ar::after { transform: scaleX(1); }
html.js .stage[data-step="4"] .word.yes { background: rgb(201 164 106 / .28); transform: scale(1.08); }
html.js .stage[data-step="3"] .p-sign, html.js .stage[data-step="4"] .p-sign { transform: rotate(3deg) translateY(-4%) scale(.94); }
/* handwriting stroke draw */
.hand path { fill: none; stroke: #1b2f4d; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html.js .hand text { fill: transparent; stroke: #1b2f4d; stroke-width: .9; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.4s var(--ease-in-out), fill .8s ease 1.9s; }
html.js .stage[data-step="2"] .hand text, html.js .stage[data-step="3"] .hand text, html.js .stage[data-step="4"] .hand text { stroke-dashoffset: 0; fill: #1b2f4d; }

@media (max-width: 900px) {
  .cairo-grid { grid-template-columns: 1fr; gap: 0; }
  .cairo-visual { order: -1; top: 0; height: auto; padding-block: calc(var(--header-h) * .25) 1.6rem; z-index: 3; background: linear-gradient(#0a1a2d 88%, rgb(10 26 45 / 0)); }
  .stage { width: min(100%, 330px); aspect-ratio: 5 / 3.9; }
  .stage .p-sign { width: 64%; }
  .note-card { width: 72%; padding: .9rem 1rem .8rem; }
  .note-card .ruqaa { font-size: 1.7rem; }
  .word .ar { font-size: 1.5rem; }
  .cairo-steps { position: relative; z-index: 1; padding-block: 2vh 20vh; }
  .cairo-step { min-height: 58svh; justify-content: center; }
}

/* ---------- relevance (day) ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.rooms { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.rooms li { display: flex; gap: .9rem; align-items: baseline; font-size: 1.15rem; }
.quote-card { position: relative; background: var(--parchment-50); padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-paper); transform: rotate(-1.5deg); }
.quote-card p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--ink-700); margin: 0; }
.quote-card p::before, .quote-card p::after { content: "״"; color: var(--gold-700); }
.quote-card cite { display: block; margin-top: 1.2rem; font-style: normal; color: #6b604d; font-weight: 600; }
.quote-card .whale { position: absolute; width: 46%; inset-inline-start: -8%; bottom: -16%; opacity: .95; transform: scaleX(-1) rotate(-4deg); pointer-events: none; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.4rem; }
.versus div { padding: 1.2rem 1.3rem; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); }
.versus b { display: block; font-size: .85rem; color: var(--fg-muted); font-weight: 700; margin-bottom: .4rem; }
.versus span { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; }
.versus .them span { color: #8a2f22; }
@media (max-width: 560px) { .versus { grid-template-columns: 1fr; } }

/* ---------- Maala lock ---------- */
.maala { background: radial-gradient(80% 60% at 80% 30%, var(--ink-800), var(--ink-900) 60%, var(--ink-950)); }
.maala-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.lock-col { position: sticky; top: calc(var(--header-h) + 6vh); height: fit-content; display: grid; justify-items: center; gap: 1.4rem; }
.lock { width: min(100%, 420px); }
.lock svg { width: 100%; height: auto; overflow: visible; }
.lock .shackle { transition: transform 1s var(--ease-out); transform-origin: 75% 100%; }
.lock.is-open .shackle { transform: translateY(-14%) rotate(-14deg); }
.lock-body { fill: url(#lockGold); }
.lock { position: relative; }
.dials { position: absolute; inset-inline: 0; top: 58%; display: flex; justify-content: center; gap: clamp(.4rem, 1.4vw, .8rem); }
.dial { width: clamp(52px, 5.6vw, 70px); height: clamp(70px, 7.6vw, 94px); overflow: hidden; border-radius: 3px; background: linear-gradient(#081524, #142946 45%, #081524); box-shadow: inset 0 0 0 1px rgb(220 192 142 / .45), inset 0 8px 14px rgb(0 0 0 / .6); position: relative; }
.dial::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(8 21 36 / .85), transparent 30%, transparent 70%, rgb(8 21 36 / .85)); pointer-events: none; }
.dial-reel { display: flex; flex-direction: column; transition: transform 1.1s cubic-bezier(.2, 1.3, .4, 1); }
.dial-reel span { height: clamp(70px, 7.6vw, 94px); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 4.2vw, 3.4rem); color: var(--parchment-500); }
.dial.is-set .dial-reel span:last-child { color: var(--gold-500); text-shadow: 0 0 22px rgb(201 164 106 / .55); }
.lock-caption { font-family: var(--font-display); font-size: 1.15rem; color: var(--fg-muted); text-align: center; min-height: 1.6em; }
.lock-caption b { color: var(--gold-500); font-weight: 700; }

.principles { display: grid; gap: clamp(1.5rem, 4vh, 2.5rem); padding-block: 4vh 12vh; }
.principle { border: 1px solid var(--line); background: linear-gradient(160deg, rgb(245 240 230 / .05), rgb(245 240 230 / .015)); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); min-height: 62svh; display: flex; flex-direction: column; justify-content: center; transition: border-color .6s ease, background-color .6s ease; }
.principle.is-active { border-color: rgb(201 164 106 / .5); }
.principle .p-letter { font-family: var(--font-display); font-weight: 900; font-size: 4.2rem; line-height: .9; color: var(--gold-500); }
.principle h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: .4rem 0 .8rem; }
.principle > p { color: #C7CFDA; font-size: 1.15rem; }
.story { margin: 1.2rem 0; padding: 1.1rem 1.3rem; border-inline-start: 2px solid var(--gold-500); background: rgb(8 21 36 / .5); }
.story .year { color: var(--gold-500); font-size: 1.25rem; display: block; margin-bottom: .2rem; }
.story p { margin: 0; color: var(--parchment-100); }
.tools { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .55rem; }
.tools li { display: flex; gap: .7rem; align-items: baseline; }
.tools-title { font-size: .9rem; font-weight: 700; color: var(--fg-muted); margin-top: .6rem; }

@media (max-width: 900px) {
  .maala-grid { grid-template-columns: 1fr; gap: 0; }
  .lock-col { top: var(--header-h); z-index: 3; padding: .7rem 0 .9rem; background: linear-gradient(var(--ink-900) 80%, transparent); grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 1rem; }
  .lock { width: auto; }
  .lock svg { display: none; }
  .dials { position: static; gap: .35rem; }
  .dial, .dial-reel span { width: 44px; height: 58px; }
  .dial-reel span { font-size: 2rem; }
  .lock-caption { text-align: start; font-size: 1rem; }
  .principle { min-height: auto; }
}

/* ---------- journey (horizontal) ---------- */
.journey { background: radial-gradient(120% 90% at 30% 20%, var(--parchment-50), var(--parchment-200) 60%, var(--parchment-300)); color: var(--ink-900); }
.journey-head { padding-top: clamp(5rem, 10vw, 8rem); }
.journey-track-wrap { position: relative; }
.journey-track { display: flex; gap: clamp(2rem, 4vw, 4rem); padding: 2rem var(--gutter) 5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.journey-track::-webkit-scrollbar { display: none; }
.jcard { flex: 0 0 clamp(250px, 21vw, 310px); scroll-snap-align: center; display: flex; flex-direction: column; gap: 1.2rem; }
.jcard .polaroid { --rot: var(--r, -2deg); }
.jcard .polaroid img { aspect-ratio: 1 / 1; object-fit: cover; }
.jcard p { font-size: 1rem; line-height: 1.55; }
.jcard .yr { font-family: var(--font-numeral); font-style: italic; font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--gold-700); }
.jcard h3 { font-size: 1.45rem; color: var(--ink-700); }
.jcard p { color: #3c4553; margin: 0; }
.jcard.text-only .tcard { aspect-ratio: 1 / 1.16; background: var(--ink-900); color: var(--parchment-100); padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-photo); transform: rotate(var(--r, 2deg)); position: relative; overflow: hidden; }
.tcard .cipher-bg, .lecture-next .cipher-bg { position: absolute; inset: 0; font-family: var(--font-cipher), var(--font-ruqaa); color: rgb(245 240 230 / .09); font-size: 1.05rem; line-height: 1.7; letter-spacing: .35em; word-break: break-all; padding: .8rem; overflow: hidden; direction: rtl; pointer-events: none; }
.tcard b { position: relative; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.2; }
.tcard b .gold { color: var(--gold-500); }
.journey-progress { position: absolute; inset-inline: var(--gutter); bottom: 2rem; height: 1px; background: rgb(31 58 95 / .15); }
.journey-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--gold-700); transform-origin: right; transform: scaleX(0); }
.journey-nav { display: flex; gap: .6rem; margin-top: 1.6rem; }
.journey-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(31 58 95 / .3); background: transparent; color: var(--ink-700); cursor: pointer; font-size: 1.2rem; }
html.js-hscroll .journey-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
html.js-hscroll .journey-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
html.js-hscroll .journey-head { padding-top: calc(var(--header-h) * .6); }
html.js-hscroll .journey-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
html.js-hscroll .journey-track { padding-block: 1.6rem 3.4rem; }
html.js-hscroll .journey-nav { display: none; }
/* polaroid "develops" when it enters */
html.js .develop img { filter: brightness(2.4) sepia(1) blur(6px); transition: filter 2.2s var(--ease-out); }
html.js .develop.is-in img { filter: sepia(.32) contrast(1.05) saturate(.9); }

/* ---------- lectures ---------- */
.lectures-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .lectures-grid { grid-template-columns: 1fr; } }
.lecture-card {
  position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.8rem, 3.5vw, 3rem); color: var(--ink-900);
  background: radial-gradient(120% 90% at 30% 20%, var(--parchment-50), var(--parchment-200) 60%, var(--parchment-300)); box-shadow: var(--shadow-paper);
}
.lecture-card .whale-art { width: min(92%, 560px); margin: 0 auto 1.6rem; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .lecture-card:hover .whale-art { transform: translateX(-3%) translateY(-2%) rotate(-1.5deg); } }
.lecture-card .num { font-family: var(--font-numeral); font-style: italic; color: var(--gold-700); font-size: 1.3rem; }
.lecture-card h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--ink-700); margin: .3rem 0 .4rem; }
.lecture-card .sub { font-size: 1.2rem; color: var(--ink-500); margin-bottom: 1.4rem; }
.lecture-card .row { display: flex; flex-wrap: wrap; gap: .8rem; }
.lecture-card .btn-ghost { --b-fg: var(--ink-900); }
.lecture-next { border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden; min-height: 300px; }

.lecture-next > * { position: relative; }
.lecture-next .cipher-bg { color: rgb(245 240 230 / .045); }
.lecture-next h3 { font-size: 1.7rem; }

/* ---------- audiences ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .aud-grid { grid-template-columns: 1fr; } }
.aud { background: var(--ink-900); padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; overflow: hidden; }
.aud .idx { font-family: var(--font-numeral); font-style: italic; color: var(--gold-500); font-size: 1.4rem; }
.aud h3 { margin: .8rem 0 .7rem; }
.aud p { color: var(--fg-muted); margin: 0; }
.aud::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-out); }
@media (hover: hover) { .aud:hover::after { transform: scaleX(1); } }

/* ---------- missing-content placeholders (draft only) ---------- */
.missing {
  border: 1.5px dashed rgb(201 164 106 / .65); border-radius: var(--radius); padding: 1.3rem 1.4rem; color: var(--gold-300);
  background: repeating-linear-gradient(-45deg, rgb(201 164 106 / .05) 0 12px, transparent 12px 24px);
  font-size: .98rem; line-height: 1.5;
}
.day .missing { color: var(--gold-700); }
.missing b { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; margin-bottom: .2rem; }
.missing b::before { content: "!"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--gold-500); color: var(--ink-950); font-size: .8rem; }
html.is-live .missing, html.is-live [data-draft-only] { display: none !important; }

.proof-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: stretch; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
.video-slot { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.video-slot .play { width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--gold-500); display: grid; place-items: center; margin: 0 auto 1rem; }
.video-slot .play::before { content: ""; width: 0; height: 0; border-block: 11px solid transparent; border-inline-end: 18px solid var(--gold-500); margin-inline-end: -4px; }
.testis { display: grid; gap: 1rem; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-numeral); font-style: italic; font-size: 2.4rem; color: var(--accent); line-height: 1; display: block; margin-bottom: .8rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--fg-muted); margin: 0; }

/* ---------- booking form ---------- */
.book { background: radial-gradient(80% 70% at 50% 0%, var(--ink-800), var(--ink-900) 55%, var(--ink-950)); overflow: hidden; }
.book-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.book .assure { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.book .assure li { display: flex; gap: .8rem; align-items: baseline; color: #C7CFDA; }
.form-card { background: var(--parchment-100); color: var(--ink-900); padding: clamp(1.6rem, 3.5vw, 2.8rem); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); border-radius: var(--radius); position: relative; }
.form-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgb(156 122 67 / .35); pointer-events: none; }
.form-card h3 { color: var(--ink-700); margin-bottom: .3rem; }
.form-card .hint { color: #6b604d; font-size: .95rem; margin-bottom: 1.4rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; color: var(--ink-700); }
.field label .opt { font-weight: 400; color: #6b604d; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem .9rem; font-size: 16px; color: var(--ink-900);
  background: #fffdf8; border: 1px solid #cfc4ae; border-radius: var(--radius); transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-700); box-shadow: 0 0 0 3px rgb(201 164 106 / .3); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: end; }
.field .err { color: #a23b2a; font-size: .88rem; min-height: 0; }
.field.invalid input, .field.invalid select { border-color: #a23b2a; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 1px solid #cfc4ae; border-radius: 999px; background: #fffdf8; font-weight: 600; font-size: .98rem; transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, color var(--dur-ui) ease; }
.chips input:checked + span { background: var(--ink-700); border-color: var(--ink-700); color: var(--parchment-100); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-700); outline-offset: 2px; }
.form-actions { margin-top: 1.4rem; display: grid; gap: .8rem; }
.form-actions .btn { width: 100%; }
.privacy-note { font-size: .82rem; color: #6b604d; line-height: 1.5; margin: 0; }
.privacy-note a { color: var(--ink-700); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step2 { display: none; }
.form-card.on-step2 .step1 { display: none; }
.form-card.on-step2 .step2 { display: block; }
.form-card.is-done .step1, .form-card.is-done .step2 { display: none; }
.done { display: none; text-align: center; padding-block: 2rem; }
.form-card.is-done .done { display: block; }
.done .seal { width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--gold-500); display: grid; place-items: center; color: var(--ink-950); font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; box-shadow: 0 0 0 6px rgb(201 164 106 / .25); }
.sent-ok { display: flex; gap: .7rem; align-items: center; background: rgb(201 164 106 / .18); color: var(--ink-700); padding: .8rem 1rem; border-radius: var(--radius); font-weight: 600; margin-bottom: 1.2rem; }
.form-error { color: #a23b2a; font-weight: 600; margin: 0; }
.form-error:empty { display: none; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before { content: ""; width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.4rem 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; border-inline-start: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg) translateY(-4px); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg) translateY(-2px); }
.faq .ans { padding-bottom: 1.4rem; color: var(--fg-muted); max-width: 70ch; }
.faq .ans p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line); padding-block: 4rem 7rem; color: var(--fg-muted); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-display); color: var(--parchment-100); font-size: 1.15rem; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }

/* ---------- sticky mobile CTA ---------- */
.mobile-cta { position: fixed; inset: auto 0 0; z-index: 55; display: none; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgb(8 21 36 / .92); backdrop-filter: blur(12px); border-top: 1px solid rgb(245 240 230 / .1); transform: translateY(110%); transition: transform .4s var(--ease-out); }
.mobile-cta.is-on { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 50px; }
.mobile-cta .wa { flex: 0 0 52px; padding: 0; --b-bg: #1f8a52; --b-fg: #fff; border-color: #1f8a52; }
@media (max-width: 900px) { .mobile-cta { display: flex; } }

/* ---------- accessibility widget ---------- */
.a11y-btn { position: fixed; z-index: 70; inset-inline-end: 1rem; bottom: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(245 240 230 / .25); background: var(--ink-700); color: var(--parchment-100); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgb(0 0 0 / .35); }
@media (max-width: 900px) { .a11y-btn { bottom: calc(82px + env(safe-area-inset-bottom)); } }
.a11y-panel { position: fixed; z-index: 71; inset-inline-end: 1rem; bottom: 4.5rem; width: min(300px, calc(100vw - 2rem)); background: var(--parchment-100); color: var(--ink-900); border-radius: 6px; padding: 1rem; box-shadow: 0 20px 50px rgb(0 0 0 / .45); display: none; transform-origin: bottom left; }
@media (max-width: 900px) { .a11y-panel { bottom: calc(136px + env(safe-area-inset-bottom)); } }
.a11y-panel.is-open { display: block; animation: pop .2s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.a11y-panel h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.a11y-panel button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 44px; padding: .5rem .8rem; margin-bottom: .4rem; border: 1px solid #cfc4ae; border-radius: 4px; background: #fffdf8; cursor: pointer; font-weight: 600; text-align: start; }
.a11y-panel button[aria-pressed="true"] { background: var(--ink-700); color: var(--parchment-100); border-color: var(--ink-700); }
.a11y-panel a { display: block; margin-top: .6rem; font-size: .9rem; color: var(--ink-700); }
html.a11y-big { font-size: 118%; }
html.a11y-contrast .night, html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast .day { background: #fff !important; color: #000 !important; }
html.a11y-contrast .lead, html.a11y-contrast p { color: inherit !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 { font-family: Arial, 'Arial Hebrew', sans-serif !important; }

/* ---------- reveal on scroll (only when JS is ready) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- inner pages ---------- */
.page-hero { padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) clamp(3rem, 7vw, 5rem); overflow: hidden; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.6rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.draft-banner { background: var(--gold-500); color: var(--ink-950); text-align: center; font-weight: 700; padding: .6rem 1rem; }
.lecture-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .lecture-hero { grid-template-columns: 1fr; } }
.lecture-hero .whale-art { width: 100%; max-width: 560px; margin-inline: auto; animation: swim 9s ease-in-out infinite; }
@keyframes swim { 50% { transform: translateY(-10px) rotate(-1.2deg); } }
.outline { list-style: none; padding: 0; margin: 0; counter-reset: o; display: grid; gap: 0; }
.outline li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.outline li::before { counter-increment: o; content: counter(o); font-family: var(--font-numeral); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--accent); }
.outline h3 { margin-bottom: .3rem; }
.outline p { margin: 0; color: var(--fg-muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.fact { border: 1px solid var(--line); padding: 1.3rem; border-radius: var(--radius); background: var(--card); }
.fact b { display: block; color: var(--fg-muted); font-size: .9rem; margin-bottom: .3rem; }
.maala-rows { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.maala-row { display: grid; grid-template-columns: 5rem 1fr; gap: 1.2rem; padding: 1.6rem; background: var(--ink-900); align-items: start; }
.maala-row .p-letter { font-family: var(--font-display); font-weight: 900; font-size: 3.6rem; line-height: .9; color: var(--gold-500); text-align: center; }
.maala-row h3 { margin-bottom: .4rem; }
.maala-row p { margin: 0; color: var(--fg-muted); }

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .marquee { animation: none; flex-wrap: wrap; }
}
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still .marquee { flex-wrap: wrap; }

/* ---------- v2 (2026-10-12): speaker portrait, teaser states, outcomes ---------- */
.speaker-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .speaker-grid { grid-template-columns: 1fr; } }
.portrait { position: relative; margin: 0; max-width: 520px; width: 100%; justify-self: center; }
.portrait::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold-700); pointer-events: none; }
.portrait img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-photo); filter: contrast(1.04); }
.portrait figcaption { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 2.2rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-700); }
.portrait figcaption small { font-family: var(--font-body); font-size: .8rem; color: #6b604d; }
.speaker-copy .lead { color: #4b4538; margin-top: 1.2rem; }
.speaker-copy > p:not(.lead) { color: #3c4553; max-width: 56ch; }
.speaker-facts { list-style: none; padding: 0; margin: 1.8rem 0 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; }
.speaker-facts li { display: flex; flex-direction: column; color: #5E5647; font-size: .95rem; }
.speaker-facts b { font-family: var(--font-numeral); font-style: italic; font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--gold-700); }

/* Cairo: the decisive word stays sealed until the lecture */
.note-card { position: relative; }
.hand .redact { fill: var(--ink-900); opacity: 0; transition: opacity .5s ease .9s; }
html:not(.js) .hand .redact, html.js .stage[data-step="2"] .hand .redact, html.js .stage[data-step="3"] .hand .redact, html.js .stage[data-step="4"] .hand .redact { opacity: 1; }
.words.sealed .word { min-width: 7.5rem; background: rgb(13 31 51 / .06); border: 1px dashed rgb(31 58 95 / .25); }
.words.sealed .ar { color: #6b604d; letter-spacing: .08em; }
.stamp { position: absolute; inset-inline-start: -6%; bottom: -10%; padding: .45rem 1rem; border: 2px solid #a23b2a; color: #a23b2a; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: .04em; background: rgb(245 240 230 / .9); transform: rotate(-9deg) scale(1.6); opacity: 0; transition: opacity .35s ease, transform .5s var(--ease-out); pointer-events: none; }
html:not(.js) .stamp, html.js .stage[data-step="4"] .stamp { opacity: 1; transform: rotate(-9deg) scale(1); }

/* Maala: hooks instead of full stories */
.principle { min-height: 50svh; }
.story.hook .locked { display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; font-size: .88rem; font-weight: 600; color: var(--gold-300); }
.story.hook .locked i { width: 11px; height: 9px; background: var(--gold-500); border-radius: 1.5px; position: relative; margin-top: 5px; }
.story.hook .locked i::before { content: ""; position: absolute; inset-inline-start: 2px; bottom: 8px; width: 7px; height: 6px; border: 1.5px solid var(--gold-500); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }

/* outcomes */
.out-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .out-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .out-grid { grid-template-columns: 1fr; } }
.format-strip { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.format-strip li { border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; color: var(--fg-muted); font-size: .98rem; }
.format-strip b { color: var(--parchment-100); font-weight: 700; }

/* lecture page: who is speaking */
.strip-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.strip-photo { width: clamp(140px, 18vw, 220px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--gold-500); padding: 6px; }
@media (max-width: 620px) { .strip-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .portrait::before { inset: 12px -10px -12px 12px; } }

/* rank + title above a name in a heading */
.honor { display: block; font-family: var(--font-display); color: var(--gold-500); font-size: .42em; font-weight: 500; letter-spacing: .02em; margin-bottom: .35em; }
