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

:root {
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dim: #7a6330;
  --dark: #0a0906;
  --dark-2: #111009;
  --dark-3: #1a1810;
  --dark-4: #242218;
  --text: #d4cfc4;
  --text-dim: #7a756a;
  --nav-text: var(--text);  /* header menu links: bright so they stand out */
  --text-muted: #4a4640;
  --purple: #6b4fa0;
  --purple-light: #9b7fd4;
  --teal: #2a7a6a;
  --teal-light: #5ab8a8;
  --coral: #8a3a2a;
  --coral-light: #d4735a;
  --ice: #cfe3ff;  /* cool white-blue: the AI side of the Partnership canvas */
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1.2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to bottom, rgba(10,9,6,0.95), transparent);
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.nav-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200; font-size: 0.7rem;
  letter-spacing: 0.25em; color: var(--nav-text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200; font-size: 0.65rem;
  letter-spacing: 0.2em; color: var(--nav-text);
  text-decoration: none; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-lang {
  direction: ltr;
  font-family: 'Josefin Sans', sans-serif; font-weight: 200; font-size: 0.65rem;
  letter-spacing: 0.15em; color: var(--text-dim); white-space: nowrap;
}
.nav-lang a { color: var(--nav-text); text-decoration: none; transition: color 0.3s; }
.nav-lang a:hover, .nav-lang a:focus-visible { color: var(--gold); outline: none; }
.nav-lang a[aria-current] { color: var(--gold); }
.nav-lang a[lang="he"], .nav-lang a[lang="ja"] { letter-spacing: 0; font-size: 0.8rem; }
.nav-lang a[lang="he"] { font-family: 'Frank Ruhl Libre', serif; }
.nav-lang a[lang="ja"] { font-family: 'Noto Serif JP', serif; font-weight: 300; }

/* ── HERO ── */
.hero {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 6rem 2rem 1rem;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.04) 0%, transparent 70%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(107,79,160,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(42,122,106,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; font-weight: 200;
  letter-spacing: 0.4em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 1s ease 0.3s forwards;
}
.hero-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200; letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 0.9;
  opacity: 0; animation: fadeUp 1s ease 0.6s forwards;
}
.hero-title .line-1 { font-size: clamp(2.5rem, 8vw, 6rem); color: var(--text); }
.hero-title .line-2 {
  font-size: clamp(3rem, 11vw, 8.5rem);
  color: var(--gold);
  display: block; margin-top: 0.1em;
}
.hero-hebrew {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-dim); margin-top: 0.8rem;
  direction: rtl; letter-spacing: 0.05em;
  opacity: 0; animation: fadeUp 1s ease 0.9s forwards;
}
.hero-divider {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 2.5rem auto;
  opacity: 0; animation: fadeUp 1s ease 1.1s forwards;
}
.hero-vc {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  opacity: 0; animation: fadeUp 1s ease 1.2s forwards;
}
.hero-vc-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 0.95rem;
  color: var(--gold-dim); margin: 0.3rem 0 1.5rem;
  opacity: 0; animation: fadeUp 1s ease 1.25s forwards;
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic; color: var(--text-dim);
  max-width: 600px; line-height: 1.9;
  opacity: 0; animation: fadeUp 1s ease 1.3s forwards;
}
.hero-tagline-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 1rem;
  color: var(--text-muted); margin-top: 0.5rem;
  opacity: 0; animation: fadeUp 1s ease 1.5s forwards;
}
.scroll-cue {
  margin-top: 4rem; color: var(--gold-dim);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s ease 1.8s forwards;
}

/* ── SECTION WRAPPER ── */
section { padding: 7rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; font-weight: 200;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300; color: var(--text);
  line-height: 1.2; margin-bottom: 0.5rem;
}
.section-title-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 1.2rem;
  color: var(--text-dim); margin-bottom: 3rem;
}
.gold-rule {
  width: 60px; height: 1px;
  background: var(--gold); margin-bottom: 3rem;
}

/* ── DISCOVERY ── */
.discovery { background: var(--dark-2); }
.discovery-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.discovery-text {
  font-size: 1.15rem; font-style: italic;
  color: var(--text-dim); max-width: 680px;
  margin: 0 auto 1.5rem; line-height: 1.9;
}
.discovery-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 1rem;
  color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

/* ── PORTFOLIO ── */
.portfolio { background: var(--dark); }
.categories { display: flex; flex-direction: column; gap: 4rem; }

.category-block { position: relative; }
.category-header {
  display: flex; align-items: baseline; gap: 1.5rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.category-name {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 1.3rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.category-name.prophecies { color: var(--purple-light); }
.category-name.life-science { color: var(--teal-light); }
.category-name.social-tech { color: var(--coral-light); }

.category-name-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 1rem; color: var(--text-muted);
}
.category-count {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.3em;
  color: var(--text-muted); margin-left: auto;
}

.ventures-grid {
  display: grid;
  gap: 1px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.08);
}
.ventures-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.ventures-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.venture-card {
  background: var(--dark-2);
  padding: 2rem 2.2rem;
  transition: background 0.3s;
  cursor: default;
}
.venture-card:hover { background: var(--dark-3); }

.venture-name {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 1rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.venture-name.prophecies { color: var(--purple-light); }
.venture-name.life-science { color: var(--teal-light); }
.venture-name.social-tech { color: var(--coral-light); }

.venture-desc {
  font-size: 0.95rem; font-style: italic;
  color: var(--text-dim); line-height: 1.6;
}
.venture-desc-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 0.85rem;
  color: var(--text-muted); margin-top: 0.3rem;
}

/* InLight special card */
.inlight-card {
  background: var(--dark-2);
  padding: 2rem 2.2rem;
  grid-column: span 1;
}
.inlight-verticals {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem; margin-top: 1.2rem;
  border-top: 1px solid rgba(42,122,106,0.2);
  padding-top: 1rem;
}
.vertical-item {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; font-weight: 200;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); padding: 0.3rem 0;
}
.vertical-item::before {
  content: '◈ '; color: var(--teal-light); font-size: 0.55rem;
}

.venture-tag {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; font-weight: 200;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border: 1px solid; border-radius: 2px;
  margin-top: 0.8rem;
}
.venture-tag.live { color: var(--teal-light); border-color: rgba(90,184,168,0.3); }
.venture-tag.seed { color: var(--gold-dim); border-color: rgba(122,99,48,0.4); }
.venture-tag.vision { color: var(--text-muted); border-color: rgba(74,70,64,0.5); }

/* ── COIN ── */
.coin-section { background: var(--dark-2); text-align: center; }
/* Coin mark: a minted gold coin (gradients only). Sheen + slow tilt run only while on screen (.is-on) and never with reduced motion. */
.coin-mark {
  --cm-white: #fff8dc; --cm-hi: #f6ecc8; --cm-lite: var(--gold-light); --cm-gold: var(--gold);
  --cm-mid: #9a7c32; --cm-dim: var(--gold-dim); --cm-deep: #3d2f10;
  display: block; width: 10rem; height: auto; margin: 0 auto 1.5rem; overflow: visible;
  filter: drop-shadow(0 0 22px rgba(201,168,76,0.1));
  transform: perspective(700px) rotateY(-6deg) rotateX(2deg);
  animation: coinTilt 14s ease-in-out infinite alternate; animation-play-state: paused;
}
.coin-mark stop.cm-white { stop-color: var(--cm-white); }
.coin-mark stop.cm-hi { stop-color: var(--cm-hi); }
.coin-mark stop.cm-lite { stop-color: var(--cm-lite); }
.coin-mark stop.cm-gold { stop-color: var(--cm-gold); }
.coin-mark stop.cm-mid { stop-color: var(--cm-mid); }
.coin-mark stop.cm-dim { stop-color: var(--cm-dim); }
.coin-mark stop.cm-deep { stop-color: var(--cm-deep); }
.coin-mark stop.cm-black { stop-color: #000; }
.coin-mark .cm-edge { fill: var(--cm-deep); }
.coin-mark .cm-reed-dark { fill: none; stroke: var(--cm-deep); stroke-width: 7; opacity: 0.55; }
.coin-mark .cm-reed-light { fill: none; stroke: var(--cm-hi); stroke-width: 7; opacity: 0.4; }
.coin-mark .cm-lip { fill: none; stroke: var(--cm-deep); stroke-width: 0.9; opacity: 0.7; }
.coin-mark .cm-emboss-shadow { fill: var(--cm-deep); opacity: 0.6; }
.coin-mark .cm-emboss-light { fill: var(--cm-white); opacity: 0.7; }
.coin-mark .cm-star-body { stroke: var(--cm-dim); stroke-width: 0.5; stroke-opacity: 0.6; }
.coin-mark .cm-core { fill: var(--cm-white); }
.coin-mark .cm-glow { opacity: 0.85; animation: coinGlow 7s ease-in-out infinite; animation-play-state: paused; }
.coin-mark .cm-sheen { opacity: 0; animation: coinSheen 8s linear infinite; animation-play-state: paused; }
.coin-mark.is-on, .coin-mark.is-on .cm-glow, .coin-mark.is-on .cm-sheen { animation-play-state: running; }
@keyframes coinGlow { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes coinSheen {
  0%, 52% { transform: translateX(0); opacity: 0; }
  58% { opacity: 1; }
  88% { opacity: 1; }
  96%, 100% { transform: translateX(330px); opacity: 0; }
}
@keyframes coinTilt {
  from { transform: perspective(700px) rotateY(-8deg) rotateX(3deg); }
  to { transform: perspective(700px) rotateY(8deg) rotateX(-3deg); }
}
@media (max-width: 768px) { .coin-mark { width: 7.5rem; } }
@media (prefers-reduced-motion: reduce) {
  .coin-mark { animation: none; transform: none; }
  .coin-mark .cm-glow { animation: none; opacity: 0.85; }
  .coin-mark .cm-sheen { animation: none; opacity: 0; }
}
.coin-milestones {
  display: flex; justify-content: center;
  gap: 0; margin: 3rem 0;
  border: 1px solid rgba(201,168,76,0.15);
  max-width: 700px; margin: 3rem auto;
}
.milestone {
  flex: 1; padding: 1.8rem 1.5rem; text-align: center;
  border-inline-end: 1px solid rgba(201,168,76,0.1);
  transition: background 0.3s;
}
.milestone:last-child { border-inline-end: none; }
.milestone:hover { background: rgba(201,168,76,0.04); }
.milestone-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.2rem; font-weight: 200;
  letter-spacing: 0.1em; color: var(--gold);
}
.milestone-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 0.3rem;
}
.milestone-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 0.75rem;
  color: var(--text-muted); margin-top: 0.2rem;
}
.coin-quote {
  font-size: 1.1rem; font-style: italic;
  color: var(--text-dim); max-width: 550px; margin: 0 auto;
}
.coin-quote-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 0.95rem;
  color: var(--text-muted); margin-top: 0.4rem;
}

/* ── PARTNERSHIP ── */
.partnership { background: var(--dark); }
.pt-art { max-width: 900px; margin: 2rem auto 0; aspect-ratio: 900 / 300; }
.pt-canvas { display: block; width: 100%; height: 100%; }
.pt-cols { display: grid; grid-template-columns: 1fr 1fr; max-width: 900px; margin: 0 auto; }
.pt-col { padding: 1.5rem 2rem 0; text-align: center; }
.pt-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 1rem;
  letter-spacing: 0.15em; margin-bottom: 0.3rem;
}
.pt-human .pt-title { color: var(--gold); }
.pt-ai .pt-title { color: var(--ice); }
.pt-title-heb {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem;
}
.pt-text { font-size: 0.95rem; font-style: italic; color: var(--text-dim); line-height: 1.7; }
.pt-text-heb {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; margin-top: 0.5rem;
}
.building-note {
  text-align: center; margin-top: 3rem;
  font-style: italic; color: var(--text-muted);
  font-size: 0.95rem; max-width: 600px; margin: 3rem auto 0;
  border-top: 1px solid rgba(201,168,76,0.08);
  padding-top: 2rem;
}

/* ── FOOTER ── */
footer {
  background: var(--dark); text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(201,168,76,0.08);
}
.footer-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200; font-size: 1.5rem;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.footer-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 1rem;
  color: var(--text-muted); margin-bottom: 1.5rem;
}
.footer-url {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.3em;
  color: var(--text-muted);
}
.footer-brain {
  display: inline-block; margin-top: 1.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200; font-size: 0.65rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-dim); text-decoration: none;
  transition: color 0.3s;
}
.footer-brain:hover { color: var(--gold); }
.footer-brain span { font-family: 'Frank Ruhl Libre', serif; letter-spacing: 0; }
.footer-quote {
  margin-top: 2rem; font-style: italic;
  font-size: 0.9rem; color: var(--text-muted);
}
.footer-updated {
  margin-top: 2rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .ventures-grid.cols-2,
  .ventures-grid.cols-3 { grid-template-columns: 1fr; }
  .pt-art { aspect-ratio: 17 / 21; max-width: 340px; }
  .pt-cols { grid-template-columns: 1fr; }
  .pt-col { padding: 1.5rem 0 0; }
  .coin-milestones { flex-wrap: wrap; }
  .milestone { min-width: 50%; border-bottom: 1px solid rgba(201,168,76,0.1); }
  .inlight-verticals { grid-template-columns: 1fr; }
}

/* ── SECTION-SPECIFIC OVERRIDES (formerly inline styles) ── */

.discovery .section-title { text-align: center; margin-bottom: 0.3rem; }
.discovery .section-title-heb { text-align: center; }
.discovery-text strong { color: var(--gold); }
.discovery-heb strong { color: var(--gold); }

.section-inner.centered { text-align: center; }
.coin-section .section-inner { max-width: 800px; }
.partnership .section-inner { max-width: 900px; }
.gold-rule.centered { margin: 0 auto 2rem; }

.coin-intro {
  text-wrap: balance;
  font-style: italic; color: var(--text-dim);
  margin-bottom: 0.5rem; font-size: 1.1rem;
}
.coin-intro-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 1rem;
  color: var(--text-muted); margin-bottom: 1.5rem;
}
.coin-link {
  display: inline-block; margin-bottom: 3rem;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200; font-size: 0.65rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  transition: color 0.3s;
}
a.coin-link:hover, a.coin-link:focus-visible { color: var(--gold-light); outline: none; }
.coin-link.is-soon { color: var(--gold-dim); }
.coin-link span { font-family: 'Frank Ruhl Libre', serif; font-size: 0.9rem; letter-spacing: 0; }

.heb-inline {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; font-size: 0.9rem;
}

/* ══════════ ELOHIM ANIMATION — self-contained; pairs with <div class="elohim-anim"> and initElohim() ══════════ */
.elohim-anim {
  /* look of the Discovery letter row: size, spacing, gold, glow */
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--gold); letter-spacing: 0.4em;
  text-shadow: 0 0 40px rgba(201,168,76,0.3);
  direction: rtl; margin: 2rem 0;
  height: 1.7em; line-height: 1.7;  /* reserved so nothing shifts while it plays */
  text-align: center; cursor: pointer;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.el-stage { position: relative; height: 100%; transition: opacity 0.7s ease; }
.el-stage.is-fading { opacity: 0; }
.el-letter { display: inline-block; }
/* English gloss: sits in the free space under the letters, so the reserved height is unchanged */
.el-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-style: italic; font-size: 1.265rem; line-height: 1.2;
  letter-spacing: normal; text-shadow: none; color: var(--text-dim);
  text-align: center; opacity: 0; transition: opacity 0.3s ease;
}
.el-caption.is-on { opacity: 1; }
.el-probe { position: absolute; visibility: hidden; white-space: pre; }
.el-reg { position: absolute; left: 50%; top: 0; opacity: 0; transform: translateX(-50%); }
.elohim-anim.is-ready .el-letter {
  position: absolute; left: 0; top: 0; letter-spacing: 0;
  will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.el-letter.is-dim { opacity: 0.22; }
.el-fin, .el-reg { transition: opacity 0.2s ease 0.2s; }
.el-letter.is-reg .el-fin { opacity: 0; }
.el-letter.is-reg .el-reg { opacity: 1; }
.elohim-anim.no-anim .el-letter,
.elohim-anim.no-anim .el-fin,
.elohim-anim.no-anim .el-reg { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .elohim-anim.is-ready .el-letter,
  .el-fin, .el-reg, .el-caption { transition: none; }
}
/* ══════════ /ELOHIM ANIMATION ══════════ */

/* ══════════ VENTURES SHOWCASE — self-contained; pairs with <section class="ventures-showcase"> (plain links, new tab) ══════════ */
.ventures-showcase { padding: 2.75rem 2rem 5rem; background: var(--dark); }
.ventures-showcase .section-inner { max-width: 1400px; text-align: center; }
.ventures-showcase .section-title-heb { margin-bottom: 1.5rem; }
.ventures-showcase .gold-rule.centered { margin-bottom: 2.5rem; }

.vt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: 1180px; margin-inline: auto; text-align: start; }
.vt {
  display: flex; flex-direction: column;
  background: var(--dark-2);
  border: 1px solid rgba(201,168,76,0.12);
  color: inherit; text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
a.vt { cursor: pointer; }
a.vt:hover, a.vt:focus-visible { background: var(--dark-3); border-color: rgba(201,168,76,0.4); outline: none; }
.vt-frame {
  aspect-ratio: 1200 / 630; overflow: hidden;
  background: var(--dark);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  display: flex; align-items: center; justify-content: center;
}
.vt-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-frame { position: relative; }
.vt-frame .venture-tag { margin-top: 0; }
.vt-frame img + .venture-tag { position: absolute; inset-block-start: 0.75rem; inset-inline-end: 0.75rem; background: rgba(10,9,6,0.75); }
.vt-body { padding: 1rem 1.1rem 1.2rem; flex: 1; }
.vt-name {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.vt-name.prophecies { color: var(--purple-light); }
.vt-name.life-science { color: var(--teal-light); }
.vt-name.social-tech { color: var(--coral-light); }
.vt-name-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; text-align: right; font-size: 1rem;
  color: var(--text-dim); margin-bottom: 0.6rem;
}
.vt-desc { font-size: 0.9rem; font-style: italic; color: var(--text-dim); line-height: 1.5; }
.vt-desc-heb {
  font-family: 'Frank Ruhl Libre', serif;
  direction: rtl; text-align: right; font-size: 0.8rem;
  color: var(--text-muted); margin-top: 0.3rem;
}

/* diamond family: quiet links under InLight */
.vt-has-family:hover { background: var(--dark-3); border-color: rgba(201,168,76,0.4); }
.vt-main { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.vt-main:focus-visible { outline: 1px solid rgba(201,168,76,0.6); outline-offset: -1px; }
.vt-family { border-top: 1px solid rgba(201,168,76,0.1); }
.vt-family summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 1.1rem; cursor: pointer; list-style: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.5rem; font-weight: 200;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.3s;
}
.vt-family summary::-webkit-details-marker { display: none; }
.vt-family summary::after { content: '+'; font-size: 0.8rem; letter-spacing: 0; }
.vt-family[open] summary::after { content: '–'; }
.vt-family summary:hover, .vt-family summary:focus-visible { color: var(--gold); outline: none; }
.vt-family-links { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; padding: 0 1.1rem 0.8rem; }
.vt-family-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; font-weight: 200;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.3s;
}
.vt-family-links a:hover, .vt-family-links a:focus-visible { color: var(--gold); outline: none; }

@media (max-width: 899px) {
  .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .vt-grid { grid-template-columns: 1fr; }
}
/* ══════════ /VENTURES SHOWCASE ══════════ */

/* ══════════ BRAIN TEASER — self-contained; pairs with <div class="brain-teaser"> and initBrainTeaser() ══════════ */
.brain-teaser {
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 3rem;
  max-width: 1100px; margin: 4rem auto 0; padding-top: 3rem;
  border-top: 1px solid rgba(201,168,76,0.12);
  text-align: start;
}
.bt-art { display: block; aspect-ratio: 1000 / 220; }  /* reserved so nothing shifts when the map draws */
.bt-svg { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; }
.bt-svg.is-ready { opacity: 1; }
.bt-edge { stroke: var(--gold); stroke-opacity: 0.18; stroke-width: 0.7; }
.bt-node { fill: var(--text-dim); }
.bt-node.diamonds { fill: var(--gold-light); }
.bt-node.economy { fill: var(--gold); }
.bt-node.philosophy { fill: var(--purple-light); }
.bt-node.spiritual { fill: var(--teal-light); }
.bt-node.social { fill: var(--coral-light); }
.bt-node.root { fill: var(--text); }
.bt-node.center { fill: var(--gold); }
.bt-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; font-weight: 200;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.bt-line { font-size: 1.15rem; font-style: italic; color: var(--text-dim); line-height: 1.6; }
.bt-soon { margin-top: 0.8rem; }
.bt-soon-heb { font-family: 'Frank Ruhl Libre', serif; font-style: normal; margin-top: 0.4rem; }
.bt-soon-tag { color: var(--gold); font-style: normal; }
.bt-stats {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; font-weight: 200;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-dim); margin: 0.5rem 0 1.2rem; min-height: 1em;
}
.bt-link {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  padding: 0.55rem 1rem; border: 1px solid rgba(201,168,76,0.3); border-radius: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.bt-link [lang="he"] { white-space: nowrap; }
.bt-link:hover, .bt-link:focus-visible { color: var(--gold); border-color: var(--gold); outline: none; }
@media (min-width: 1024px) {
  .bt-art { aspect-ratio: 1000 / 439; }  /* ~72% taller strip; initBrainTeaser() reads this ratio to size the viewBox */
}
@media (max-width: 767px) {
  .brain-teaser { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .bt-svg { transition: none; } }
/* ══════════ /BRAIN TEASER ══════════ */

/* ══════════ MDJ CARD — self-contained; pairs with <div class="vt vt-mdj"> in the ventures grid and initMdj(). Reuses the .vt card; the deep-blue map palette stays inside the frame. ══════════ */
.vt-mdj { --mdj-bg: #0b1120; --mdj-dot: #dfe7f5; --mdj-gold: #e3b84f; grid-column: 1 / -1; }
.vt-mdj:hover, .vt-mdj:focus-within { background: var(--dark-3); border-color: rgba(201,168,76,0.4); }
.mdj-frame { background: var(--mdj-bg); aspect-ratio: 2 / 1; padding: 1.25rem; }
.mdj-map { display: block; width: 100%; height: 100%; overflow: visible; }
.mdj-body { display: flex; flex-direction: column; justify-content: center; padding: 1.4rem 1.4rem 1.6rem; }
.mdj-name { font-size: clamp(1.1rem, 1.9vw, 1.5rem); line-height: 1.25; letter-spacing: 0.1em; margin-bottom: 0.9rem; color: var(--text); }
.mdj-name em { font-style: normal; color: var(--mdj-gold); }
html[dir="rtl"] .mdj-name { text-align: right; }  /* the Latin name is dir=ltr; keep it on the same edge as the Hebrew text */
.mdj-tagline { font-size: 1.15rem; font-style: italic; line-height: 1.4; color: var(--text-dim); margin-bottom: 1.2rem; }
.mdj-land { fill: none; stroke: var(--mdj-dot); stroke-opacity: 0.22; stroke-width: 0.6; stroke-linecap: round; stroke-dasharray: 0 1; }
.mdj-light { fill: #fff1c9; animation: mdj-twinkle 3s ease-in-out infinite; }  /* initMdj() gives each light its own 2–4 s duration and delay */
@keyframes mdj-twinkle { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.mdj-lights.is-fading { opacity: 0; }
.mdj-lights.is-fading.is-shown { opacity: 1; transition: opacity 1.4s ease; }
.mdj-jerusalem { fill: var(--mdj-gold); }
.mdj-jerusalem-ring {
  fill: none; stroke: var(--mdj-gold); stroke-opacity: 0.4; stroke-width: 0.3;
  transform-box: fill-box; transform-origin: center;
  animation: mdj-pulse 2.5s ease-out infinite;  /* a slow heartbeat: the ring swells and fades */
}
@keyframes mdj-pulse {
  0% { transform: scale(1); stroke-opacity: 0.5; }
  70%, 100% { transform: scale(2.4); stroke-opacity: 0; }
}
/* Three live figures in ruled columns, like MDJ's homepage tally: a hairline above, the number on top, the tracked label beneath. */
.mdj-tally { display: flex; flex-wrap: wrap; row-gap: 0.8rem; margin: 0 0 1.3rem; padding-top: 1rem; border-top: 0.5px solid rgba(223,231,245,0.18); }
.mdj-cell { display: flex; flex-direction: column-reverse; gap: 0.5rem; padding-inline: 1.1rem; border-inline-start: 0.5px solid rgba(223,231,245,0.18); }
.mdj-cell:first-child { padding-inline-start: 2px; border-inline-start: 0; }
.mdj-num {
  margin: 0; font-size: clamp(1.6rem, 2.2vw, 2.2rem); font-weight: 400; line-height: 1; color: var(--text);
  font-variant-numeric: lining-nums tabular-nums;
}
.mdj-key {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim);
}
.mdj-add {
  align-self: flex-start;
  font-family: 'Josefin Sans', sans-serif; font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mdj-gold); text-decoration: none;
  padding-bottom: 0.2rem; border-bottom: 1px solid rgba(227,184,79,0.35);
  transition: color 0.3s, border-color 0.3s;
}
.mdj-add:hover, .mdj-add:focus-visible { color: var(--text); border-color: var(--text); outline: none; }
html[lang="he"] :is(.mdj-key, .mdj-add), html[lang="ja"] :is(.mdj-key, .mdj-add) { font-size: 0.85rem; }
/* Desktop: map frame two thirds on the inline-start side (mirrors in Hebrew), body one third. Tablet and mobile stack like the other cards. */
@media (min-width: 1024px) {
  .vt-mdj { flex-direction: row; }
  .mdj-frame { flex: 2 1 0; min-width: 0; aspect-ratio: auto; border-bottom: 0; border-inline-end: 1px solid rgba(201,168,76,0.12); padding: 1.5rem 2rem; }
  .vt-mdj .mdj-body { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mdj-lights.is-fading.is-shown { transition: none; }
  .mdj-light, .mdj-jerusalem-ring { animation: none; }
}
/* ══════════ /MDJ CARD ══════════ */

/* ══════════ LANGUAGE VERSIONS — he (RTL), en, ja. The page carries lang/dir on <html>. ══════════ */
.vt-name-heb { text-align: right; }
html[dir="rtl"] .vt-name-heb { text-align: left; }

/* Hebrew and Japanese: no italics, no tracking, no uppercase on their own text. */
html[lang="he"] :is(.discovery-text, .coin-intro, .coin-quote, .pt-text, .building-note, .footer-quote, .hero-tagline, .vt-desc, .bt-line, .el-caption, .mdj-add, .mdj-tagline),
html[lang="ja"] :is(.discovery-text, .coin-intro, .coin-quote, .pt-text, .building-note, .footer-quote, .hero-tagline, .vt-desc, .bt-line, .el-caption, .mdj-add, .mdj-tagline) { font-style: normal; }

html[lang="he"] :is(.section-label, .vt-family summary, .venture-tag, .bt-label, .bt-stats, .bt-link, .coin-link, .milestone-name, .footer-brain, .footer-updated, .scroll-cue, .pt-title, .hero-vc, .nav-links a, .footer-logo, .hero-title, .mdj-key, .mdj-add),
html[lang="ja"] :is(.section-label, .vt-family summary, .venture-tag, .bt-label, .bt-stats, .bt-link, .coin-link, .milestone-name, .footer-brain, .footer-updated, .scroll-cue, .pt-title, .hero-vc, .nav-links a, .footer-logo, .hero-title, .mdj-key, .mdj-add) {
  letter-spacing: normal; text-transform: none;
}

/* Hebrew: Frank Ruhl Libre throughout; Latin names, URL and numerals keep Josefin */
html[lang="he"] body,
html[lang="he"] :is(.hero-vc, .hero-title, .section-label, .vt-family summary, .venture-tag, .bt-label, .bt-stats, .bt-link, .coin-link, .milestone-name, .footer-brain, .footer-updated, .scroll-cue, .pt-title, .nav-links a, .footer-logo, .el-caption, .mdj-add, .mdj-tagline, .mdj-key) {
  font-family: 'Frank Ruhl Libre', serif;
}
html[lang="he"] :is(.section-title, .hero-tagline, .coin-quote) { text-wrap: balance; }
html[lang="he"] .hero-title { font-weight: 300; line-height: 1; }
html[lang="he"] .hero-title .line-2 { margin-top: 0.05em; }
html[lang="he"] .vt-name-heb { font-family: 'Frank Ruhl Libre', serif; }
html[lang="he"] :is(.section-label, .bt-label, .nav-links a) { font-size: 0.95rem; font-weight: 400; }
html[lang="he"] .hero-vc { font-size: 1.19rem; font-weight: 400; }
html[lang="he"] :is(.milestone-name, .bt-stats, .footer-updated, .venture-tag, .vt-family summary) { font-size: 0.8rem; }
html[lang="he"] :is(.bt-link, .coin-link, .footer-brain, .scroll-cue) { font-size: 0.95rem; }
html[lang="he"] .pt-title { font-size: 1.15rem; }
html[lang="he"] .footer-logo { font-size: 1.6rem; }
html[lang="he"] :is(.vt-desc, .discovery-text, .pt-text, .coin-intro, .building-note, .bt-line) { line-height: 1.8; }
html[lang="he"] .vt-desc { font-size: 1rem; }
html[lang="he"] .discovery-text strong { font-weight: 500; }

/* Japanese: Noto Serif JP (200 / 300 / 400), looser lines, strict kinsoku */
html[lang="ja"] body,
html[lang="ja"] :is(.hero-vc, .hero-title, .section-label, .vt-family summary, .venture-tag, .bt-label, .bt-stats, .bt-link, .coin-link, .milestone-name, .footer-brain, .footer-updated, .scroll-cue, .pt-title, .nav-links a, .footer-logo, .el-caption, .mdj-add, .mdj-tagline, .mdj-key) {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}
html[lang="ja"] body { line-height: 1.9; line-break: strict; overflow-wrap: anywhere; }
html[lang="ja"] strong { font-weight: 400; }
html[lang="ja"] body { word-break: auto-phrase; }  /* Chrome: break at phrase boundaries; others fall back to strict kinsoku */
html[lang="he"] :is(.vt-desc, .bt-line, .pt-text, .coin-intro, .discovery-text), html[lang="ja"] :is(.vt-desc, .bt-line, .pt-text, .coin-intro, .discovery-text) { text-wrap: pretty; }
html[lang="ja"] :is(h1, h2, h3, .section-title, .hero-tagline, .coin-intro, .coin-quote, .building-note, .pt-text, .vt-desc, .bt-line) { text-wrap: balance; line-break: strict; }
html[lang="ja"] :is(.discovery-text, .vt-desc, .pt-text, .bt-line, .building-note, .coin-intro, .coin-quote, .hero-tagline) { line-height: 2; }
html[lang="ja"] :is(.section-title, .hero-tagline, .coin-quote) { line-height: 1.55; }
/* Headlines break only at the ｜ phrase marks (or at spaces); kinsoku stays strict. */
html[lang="ja"] :is(.hero-tagline, .discovery .section-title) { word-break: keep-all; }
html[lang="ja"] .hero-title { font-weight: 200; line-height: 1.05; }
html[lang="ja"] .hero-title .line-2 { margin-top: 0.05em; }
html[lang="ja"] :is(.section-label, .bt-label) { font-size: 0.8rem; }
html[lang="ja"] .hero-vc { font-size: 1.125rem; margin-bottom: 0.5rem; }
@media (max-width: 768px) { html[lang="ja"] .hero-vc { font-size: 1rem; } }  /* keeps the 19-character line on one row at phone width */
html[lang="ja"] .nav-links a { font-size: 0.8rem; }
html[lang="ja"] :is(.bt-link, .coin-link, .footer-brain, .scroll-cue) { font-size: 0.8rem; }
html[lang="ja"] :is(.milestone-name, .bt-stats, .footer-updated, .venture-tag, .vt-family summary) { font-size: 0.7rem; }
html[lang="ja"] .vt-desc { font-size: 0.85rem; }
html[lang="ja"] .pt-title { font-size: 1rem; }
html[lang="ja"] .footer-logo { font-size: 1.3rem; }
/* ══════════ /LANGUAGE VERSIONS ══════════ */
