/* KAVOD ACADEMY — styles
   Layout: one cinematic column on matte black; logo-led hero over a full-width film frame,
   then calm two-column chapters separated by hairlines. Gold is used sparingly. */
:root {
  --ink: #0a0908;          /* matte black page */
  --coal: #13110f;         /* raised surface */
  --coal-2: #1b1815;       /* inputs, placeholders */
  --line: rgba(221, 197, 152, 0.13);
  --line-strong: rgba(221, 197, 152, 0.34);
  --gold: #c8a86b;         /* champagne gold */
  --gold-light: #e6d3a5;
  --bronze: #8d7247;
  --bone: #efe9de;         /* warm white text */
  --stone: #aaa195;        /* body secondary */
  --stone-dim: #7c746a;
  --error: #e0a58a;        /* warm, not red */

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --hebrew: "Frank Ruhl Libre", "David", "Times New Roman", serif;

  --max: 1180px;
  --radius: 4px;
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * 24px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 520px) {
  .wrap {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
.h2 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #b4935a);
  color: #17120a;
  border-color: rgba(255, 240, 205, 0.35);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { color: var(--bone); border-color: var(--line-strong); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; letter-spacing: 0.14em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 28px; height: auto; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.14em; }
.brand-word span { color: var(--gold); font-weight: 500; letter-spacing: 0.24em; font-size: 0.85em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-family: var(--display); font-weight: 500; font-size: 0.98rem;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--stone);
  transition: color .2s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--bone); }
.nav-cta { margin-left: 6px; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .menu-btn span { display: block; height: 1.5px; background: var(--bone); transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px max(18px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    background: var(--ink); overflow-y: auto; border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .nav a:not(.btn) { padding: 18px 2px; border-bottom: 1px solid var(--line); font-size: 1.35rem; color: var(--bone); }
  .nav-cta { margin: 28px 0 0; min-height: 56px; font-size: 1.05rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) { .brand-word span { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 720px; pointer-events: none;
  background: radial-gradient(60% 55% at 28% 30%, rgba(200, 168, 107, 0.09), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero-logo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.6));
}
.hero-copy { min-width: 0; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light);
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; margin-bottom: 26px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200,168,107,.15); }
.hero h1 { font-size: clamp(3rem, 5vw, 4.9rem); margin-bottom: 26px; overflow-wrap: break-word; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gold-light) 10%, var(--gold) 60%, var(--bronze));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .eyebrow { margin-bottom: 14px; }
.lede { color: var(--stone); font-size: 1.08rem; max-width: 34ch; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* load sequence (one orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .hero-logo, .hero-copy > *, .promo { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(1) { animation-delay: .15s; }
  .hero-copy > :nth-child(2) { animation-delay: .22s; }
  .hero-copy > :nth-child(3) { animation-delay: .30s; }
  .hero-copy > :nth-child(4) { animation-delay: .36s; }
  .hero-copy > :nth-child(5) { animation-delay: .42s; }
  .promo { animation-delay: .5s; }
}
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- promo video ---------- */
.promo { margin-top: clamp(40px, 6vw, 72px); }
.promo-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%;
  background: #050403; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.promo-frame video, .promo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.promo-poster { position: absolute; inset: 0; display: grid; place-items: center; }
.promo-poster.has-image { background-size: cover; background-position: center; }
.promo-poster.has-image > * { display: none; }
.promo-poster:not(.has-image) {
  background:
    radial-gradient(48% 70% at 50% 46%, rgba(200,168,107,.13), transparent 70%),
    linear-gradient(180deg, #0d0b09, #050403);
}
.poster-emblem {
  position: absolute; left: 50%; top: 46%; width: min(30%, 260px); height: auto;
  transform: translate(-50%, -50%); opacity: .3;
}
.poster-text {
  position: absolute; left: clamp(16px, 4%, 40px); bottom: clamp(14px, 5%, 36px);
  display: flex; flex-direction: column; gap: 2px;
}
.poster-kicker { font-family: var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-size: clamp(.7rem, 1.4vw, .9rem); }
.poster-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.2rem, 3.4vw, 2.4rem); line-height: 1; letter-spacing: .04em; }
.vf { position: absolute; width: clamp(14px, 3vw, 28px); height: clamp(14px, 3vw, 28px); border-color: var(--gold); border-style: solid; border-width: 0; z-index: 3; pointer-events: none; opacity: .85; }
.vf-tl { top: 12px; left: 12px; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf-tr { top: 12px; right: 12px; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf-bl { bottom: 12px; left: 12px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf-br { bottom: 12px; right: 12px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: clamp(68px, 10vw, 104px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(230, 211, 165, .55); background: rgba(10, 9, 8, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer; color: var(--gold-light);
  transition: transform .3s, background-color .3s, border-color .3s;
}
.play svg { width: 34%; height: 34%; fill: currentColor; margin-left: 6%; }
.play:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(200,168,107,.18); border-color: var(--gold-light); }
.promo-frame.is-playing .play, .promo-frame.is-playing .vf, .promo-frame.is-playing .promo-poster { display: none; }
.promo-note {
  position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); z-index: 2;
  background: rgba(10,9,8,.85); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 8px 14px; font-size: .9rem; color: var(--bone); white-space: nowrap; max-width: 90%;
}
@media (max-width: 520px) { .promo-note { white-space: normal; text-align: center; bottom: 10%; } }
.promo-caption {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px;
  font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; color: var(--stone-dim);
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sub { color: var(--stone); margin-top: 16px; font-size: 1.05rem; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy > p:not(.eyebrow) { color: var(--stone); max-width: 60ch; margin-bottom: 16px; font-size: 1.05rem; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.facts li { flex: 1 1 140px; padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-family: var(--display); font-weight: 600; font-size: 1.55rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.facts span { font-size: .82rem; color: var(--stone-dim); letter-spacing: .12em; text-transform: uppercase; }
.meaning {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(36px, 5vw, 56px) 24px; border: 1px solid var(--line); border-radius: 6px;
  background: radial-gradient(80% 60% at 50% 30%, rgba(200,168,107,.07), transparent 70%), var(--coal);
}
.meaning-he {
  font-family: var(--hebrew); font-weight: 700; font-size: clamp(4.5rem, 10vw, 7.5rem); line-height: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--bronze));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.meaning-word { font-family: var(--display); font-weight: 600; letter-spacing: .5em; margin: 14px 0 0 .5em; font-size: 1.1rem; }
.meaning-rule { width: 48px; height: 1px; background: var(--gold); margin: 20px 0; }
.meaning-def { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }

/* founder */
.founder { background: linear-gradient(180deg, var(--coal), var(--ink) 70%); }
.founder-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; width: 100%; max-width: 320px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--coal-2); }
.portrait img.photo { width: 100%; height: 100%; object-fit: cover; }
.portrait-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(70% 50% at 50% 40%, rgba(200,168,107,.08), transparent 70%), var(--coal-2); }
.portrait-ph img { width: 34%; height: auto; opacity: .22; }
.portrait-ph span { font-family: var(--display); letter-spacing: .28em; text-transform: uppercase; font-size: .85rem; color: var(--stone-dim); }
.founder-copy h2 { margin-bottom: 30px; }
.founder-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; }
.founder-role { color: var(--gold); font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: 1rem; margin: 6px 0 28px; }
.bio { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; color: var(--stone); font-size: 1.03rem; padding-top: 26px; border-top: 1px solid var(--line); }
.bio p:first-of-type:not(.draft-tag), .bio .draft-tag + p { color: var(--bone); }
.quote { margin: 40px 0 0; padding: 32px 0 0 clamp(0px, 3vw, 28px); position: relative; max-width: 58ch; }
.quote::before {
  content: "\201C"; position: absolute; left: clamp(-6px, -1vw, -14px); top: -14px;
  font-family: var(--hebrew); font-size: 6rem; line-height: 1; color: var(--gold); opacity: .7;
}
.quote p:not(.draft-tag) { font-family: var(--body); font-style: italic; font-size: clamp(1.12rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--bone); }
.quote footer { margin-top: 16px; font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-size: .95rem; }
.draft-tag {
  align-self: flex-start; display: inline-block; margin-bottom: 4px;
  font-family: var(--display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light); border: 1px dashed var(--line-strong); padding: 3px 10px; border-radius: 3px;
}
.quote .draft-tag { margin-bottom: 14px; }

/* training */
.training-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.training-head { position: sticky; top: calc(var(--header-h) + 32px); }
.tag-line { margin-top: 26px; display: inline-block; font-family: var(--display); letter-spacing: .24em; text-transform: uppercase; font-size: .95rem; color: var(--gold-light); padding-top: 14px; border-top: 1px solid var(--gold); }
.pillars { list-style: none; margin: 0; padding: 0; }
.pillars li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pillars li:first-child { border-top: 1px solid var(--line); }
.ico { width: 36px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.pillars h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; line-height: 1.15; }
.pillars p { color: var(--stone); max-width: 56ch; }

/* gallery */
.gallery-label { font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .9rem; color: var(--stone); margin: 0 0 14px; display: flex; gap: 10px; align-items: baseline; }
.gallery-label [lang="he"] { font-family: var(--hebrew); letter-spacing: 0; font-size: 1.15rem; color: var(--gold); text-transform: none; }
.grid-a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 19vw, 250px); gap: 12px; margin-bottom: 48px; }
.grid-a > :nth-child(1) { grid-column: span 8; grid-row: span 2; }
.grid-a > :nth-child(2) { grid-column: span 4; }
.grid-a > :nth-child(3) { grid-column: span 4; }
.grid-a > :nth-child(4) { grid-column: span 12; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: var(--coal-2); border: 1px solid var(--line); }
.tile img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.92); }
.tile:hover img.photo { transform: scale(1.035); filter: saturate(1.05); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(5,4,3,.85));
  font-family: var(--display); letter-spacing: .16em; text-transform: uppercase; font-size: .85rem; color: var(--bone);
}
.tile.is-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(221,197,152,.025) 0 2px, transparent 2px 14px),
    radial-gradient(60% 70% at 50% 40%, rgba(200,168,107,.06), transparent 70%),
    var(--coal-2);
  border-style: dashed; border-color: var(--line-strong);
}
.tile.is-placeholder .ph-mark { position: absolute; left: 50%; top: 44%; width: clamp(36px, 7%, 56px); transform: translate(-50%, -50%); opacity: .2; }
.tile.is-placeholder figcaption { background: none; display: flex; flex-direction: column; gap: 2px; }
.tile.is-placeholder figcaption small { font-family: var(--body); letter-spacing: .04em; text-transform: none; color: var(--stone-dim); font-size: .78rem; }
.fineprint { margin-top: 22px; font-size: .82rem; color: var(--stone-dim); max-width: 80ch; line-height: 1.6; }

/* YAMAS photo grid — uniform 3:2 frames */
.yamas-note { color: var(--stone); font-size: .92rem; max-width: 70ch; margin: -4px 0 18px; }
.yamas-note [lang="he"] { font-family: var(--hebrew); }
.grid-yamas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-yamas .tile { aspect-ratio: 3 / 2; max-width: 100%; }
.tile-btn { all: unset; position: absolute; inset: 0; cursor: zoom-in; display: block; }
.tile-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -4px; }
.tile-zoom {
  position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,9,8,.6); border: 1px solid var(--line-strong);
  opacity: 0; transition: opacity .25s;
}
.tile-zoom svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; }
.tile:hover .tile-zoom, .tile-btn:focus-visible .tile-zoom { opacity: 1; }
@media (hover: none) { .tile-zoom { opacity: .85; } }

/* credits */
.credits { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 92ch; }
.credits-title { font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin: 0 0 12px; }
.credits-list { margin: 0; padding-left: 1.6em; display: flex; flex-direction: column; gap: 10px; font-size: .84rem; line-height: 1.6; color: var(--stone-dim); }
.credits-list li::marker { color: var(--gold); font-family: var(--display); }
.credits-list a { color: var(--stone); text-underline-offset: 2px; overflow-wrap: anywhere; }
.credits-list a:hover { color: var(--gold-light); }

/* lightbox */
.lightbox { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; color: var(--bone); }
.lightbox::backdrop { background: rgba(5,4,3,.94); }
.lb-inner {
  position: relative; width: 100%; height: 100%; display: grid; place-items: center;
  padding: calc(64px + env(safe-area-inset-top, 0px)) max(64px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(64px, env(safe-area-inset-left, 0px));
}
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 200px); width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.lb-caption { font-size: .8rem; color: var(--stone); text-align: center; max-width: 80ch; line-height: 1.55; }
.lb-caption a { color: var(--gold-light); }
.lb-close, .lb-nav {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(19,17,15,.8); border: 1px solid var(--line-strong); cursor: pointer; color: var(--bone);
}
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close:hover, .lb-nav:hover { border-color: var(--gold); color: var(--gold-light); }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(10px, env(safe-area-inset-right, 0px)); }
.lb-count { position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); left: max(20px, env(safe-area-inset-left, 0px)); font-family: var(--display); letter-spacing: .2em; font-size: .85rem; color: var(--stone-dim); font-variant-numeric: tabular-nums; }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) {
  .lb-inner { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .lb-nav { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .lb-img { max-height: calc(100vh - 260px); }
}

/* enroll */
.enroll { background: linear-gradient(180deg, var(--ink), var(--coal)); }
.enroll-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.enroll-intro h2 { margin-bottom: 22px; }
.enroll-intro > p:not(.eyebrow) { color: var(--stone); font-size: 1.05rem; max-width: 46ch; }
.launch-note { margin-top: 32px; padding: 22px 24px; border-left: 2px solid var(--gold); background: rgba(200,168,107,.05); border-radius: 0 4px 4px 0; }
.launch-title { font-family: var(--display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.launch-note p:not(.launch-title) { color: var(--stone); font-size: .95rem; }
.contact { margin: 40px 0 0; display: flex; flex-direction: column; }
.contact > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact > div:last-child { border-bottom: 1px solid var(--line); }
.contact dt { font-family: var(--display); letter-spacing: .24em; text-transform: uppercase; font-size: .85rem; color: var(--gold); }
.contact dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact a:hover { color: var(--gold-light); border-color: var(--gold); }

.form {
  background: var(--coal); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; min-width: 0;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form label { font-family: var(--display); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .92rem; color: var(--bone); }
.req { color: var(--gold); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  font: 400 1rem/1.4 var(--body); color: var(--bone);
  background: var(--coal-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s; appearance: none; -webkit-appearance: none;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--stone-dim); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #201c18; }
.form [aria-invalid="true"] { border-color: var(--error) !important; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 44px; cursor: pointer; }
.err { color: var(--error); font-size: .88rem; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 4px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.check label { font-family: var(--body); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: .95rem; color: var(--stone); line-height: 1.55; cursor: pointer; }
.consent { font-size: .84rem; color: var(--stone-dim); line-height: 1.6; }
.consent a { color: var(--stone); }
.btn-submit { width: 100%; min-height: 58px; font-size: 1.15rem; letter-spacing: .22em; margin-top: 4px; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.form-status { border-radius: var(--radius); padding: 16px 18px; font-size: .98rem; line-height: 1.55; }
.form-status.ok { border: 1px solid var(--gold); background: rgba(200,168,107,.08); color: var(--bone); }
.form-status.bad { border: 1px solid var(--error); background: rgba(224,165,138,.07); color: var(--bone); }
.form-status.info { border: 1px dashed var(--line-strong); color: var(--stone); }
.form-status strong { display: block; font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; color: var(--gold-light); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #070605; padding-block: 64px 32px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.footer-brand img { width: 200px; height: auto; }
.footer-motto { font-family: var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 6px; font-size: .95rem; }
.footer-motto span { color: var(--stone-dim); }
.footer-motto [lang="he"] { font-family: var(--hebrew); letter-spacing: 0; color: var(--stone-dim); }
.footer-info { display: flex; flex-direction: column; gap: 6px; color: var(--stone); text-align: right; }
.footer-info a { text-decoration: none; }
.footer-info a:hover { color: var(--gold-light); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--stone-dim); }
.footer-base a { color: var(--stone); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .founder-grid, .training-grid, .enroll-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 8px; }
  .hero-logo { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .training-head { position: static; }
  .portrait { position: relative; top: auto; margin-inline: auto; }
  .portrait { max-width: 260px; width: 100%; }
  .footer-info { text-align: left; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; letter-spacing: .1em; font-size: 1rem; padding: 0 16px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .grid-a { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .grid-a > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .grid-a > :nth-child(2), .grid-a > :nth-child(3) { grid-column: span 1; }
  .grid-a > :nth-child(4) { grid-column: span 2; }
  .grid-yamas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .facts li { flex-basis: 100px; }
  .promo-caption { font-size: .72rem; letter-spacing: .14em; }
  .status { font-size: .8rem; letter-spacing: .14em; }
  .contact > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.yamas-note [lang="he"] { white-space: nowrap; }
@media (max-width: 640px) {
  .grid-yamas .tile figcaption { padding: 24px 10px 9px; font-size: .7rem; letter-spacing: .12em; }
  .grid-yamas .tile.is-placeholder figcaption small { font-size: .7rem; }
  .grid-yamas .ph-mark { display: none; }
}

/* five photos: two wide on top, three below */
.grid-yamas.count-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-yamas.count-5 > * { grid-column: span 2; }
.grid-yamas.count-5 > :nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 640px) {
  .grid-yamas.count-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-yamas.count-5 > * { grid-column: span 1; }
  .grid-yamas.count-5 > :first-child { grid-column: span 2; }
  .grid-yamas.count-5 > :nth-child(2) { grid-column: span 1; }
}

/* photo credits: button + pop-up */
.credits-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 2px;
  background: none; border: 0; cursor: pointer; color: var(--stone);
  font-family: var(--display); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
}
.credits-btn svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.credits-btn:hover { color: var(--gold-light); border-color: var(--gold); }
.credits-btn + .fineprint { margin-top: 14px; }
.credits-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0;
  background: var(--coal); color: var(--bone); border: 1px solid var(--line-strong); border-radius: 6px;
}
.credits-dialog::backdrop { background: rgba(5,4,3,.82); }
.cd-inner { padding: 22px 24px 26px; }
.cd-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cd-head .credits-title { margin: 0; color: var(--bone); }
.cd-close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: none; border: 1px solid var(--line-strong); color: var(--bone); cursor: pointer; }
.cd-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cd-close:hover { border-color: var(--gold); color: var(--gold-light); }
.credits-dialog .credits-list { color: var(--stone); font-size: .88rem; }
.lb-credit-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--stone); font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; border-bottom: 1px solid var(--line-strong); }
.lb-credit-btn:hover { color: var(--gold-light); }
.credits-list li.is-current { color: var(--bone); }
