/* Kabbalist.org – "Vessel & Light"
   Parchment + deep sapphire night, candle gold, red-string ember.
   Marcellus (display) · Source Serif 4 (reading) · Manrope (UI) · Frank Ruhl Libre (Hebrew) */

:root {
  --bg: #f6f0e4;
  --bg-2: #eee5d3;
  --card: #fbf8f1;
  --ink: #1b1a2c;
  --muted: #58546b;
  --line: rgba(27, 26, 44, .13);
  --sapphire: #25336f;
  --sapphire-2: #34479a;
  --night: #0f1433;
  --night-2: #181f4a;
  --gold: #d2a64e;
  --gold-soft: #f3d58a;
  --gold-text: #7e5812;
  --ember: #a13a26;
  --on-night: #efe7d6;
  --on-night-muted: #b8b3c9;

  --f-display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --f-read: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-he: 'Frank Ruhl Libre', 'David', 'Times New Roman', serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 20, 51, .06), 0 10px 30px -12px rgba(15, 20, 51, .22);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sapphire); text-underline-offset: .18em; }
a:hover { color: var(--sapphire-2); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.he { font-family: var(--f-he); font-weight: 700; direction: rtl; unicode-bidi: isolate; }

.container { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.section { padding-block: clamp(64px, 5vw + 40px, 120px); }
.section--tight { padding-block: clamp(44px, 3vw + 28px, 80px); }
.section--soft { background: var(--bg-2); }
.section--night { background: radial-gradient(120% 90% at 50% 0%, var(--night-2), var(--night) 70%); color: var(--on-night); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night p { color: var(--on-night-muted); }
.section__head { max-width: 700px; margin-bottom: clamp(28px, 3vw, 48px); }
.section__head p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.section--night .section__head p { color: var(--on-night-muted); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .76rem/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow--gold { color: var(--gold); }
.lede { font-family: var(--f-read); font-size: clamp(1.12rem, 1rem + .5vw, 1.3rem); line-height: 1.6; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font: 700 .95rem/1 var(--f-ui); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--primary { background: var(--sapphire); color: #fff; }
.btn--primary:hover { background: var(--sapphire-2); color: #fff; }
.btn--gold { background: var(--gold); color: #17122a; }
.btn--gold:hover { background: var(--gold-soft); color: #17122a; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { border-color: rgba(239, 231, 214, .35); color: var(--on-night); }
.btn--ghost-light:hover { border-color: var(--gold); color: #fff; }
.arrow { display: inline-block; transition: transform .2s; }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }
.textlink { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.textlink:hover { text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 240, 228, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark svg { width: 40px; height: 40px; display: block; }
.brand__word { font: 400 1.5rem/1 var(--f-display); letter-spacing: .02em; display: flex; flex-direction: column; gap: 4px; }
.brand__sub { font: 600 .66rem/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brand--light { color: #fff; }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; }
.site-nav__list a:hover { background: rgba(37, 51, 111, .08); }
.site-nav__list a.is-active { color: var(--sapphire); background: rgba(37, 51, 111, .1); }
.site-nav__cta a { background: var(--sapphire); color: #fff !important; margin-left: 6px; padding-inline: 18px; }
.site-nav__cta a:hover { background: var(--sapphire-2); }
.site-nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.site-nav__toggle-bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
@media (max-width: 960px) {
  .site-nav__toggle { display: block; position: relative; z-index: 60; }
  .site-nav__pill { position: fixed; inset: 0; background: var(--bg); padding: 96px 28px 28px; transform: translateX(100%); transition: transform .3s ease; z-index: 55; overflow-y: auto; }
  .site-nav.is-open .site-nav__pill { transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 6px; }
  .site-nav__list a { font-size: 1.2rem; padding: 14px 16px; }
  .site-nav__cta a { margin: 10px 0 0; text-align: center; }
  .site-nav.is-open .site-nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.is-open .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
  .site-nav.is-open .site-nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand__sub { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 13, 34, .96) 0%, rgba(10, 13, 34, .82) 42%, rgba(10, 13, 34, .15) 78%), linear-gradient(0deg, rgba(10, 13, 34, .7), transparent 40%); }
.hero__inner { padding-block: clamp(90px, 10vw + 40px, 180px) clamp(80px, 8vw + 30px, 150px); max-width: 640px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .lede { color: var(--on-night-muted); margin-top: 22px; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__he { font-family: var(--f-he); font-size: 1.05rem; color: var(--gold); letter-spacing: .1em; margin-bottom: 18px; }
@media (max-width: 720px) {
  .hero::before { background: linear-gradient(0deg, rgba(10, 13, 34, .97) 30%, rgba(10, 13, 34, .55)); }
  .hero__img img { object-position: 50% 30%; }
}

/* the one question */
.question { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: stretch; }
.question__side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.question__side--share { background: var(--night); border-color: transparent; color: var(--on-night); }
.question__side--share h3 { color: var(--gold-soft); }
.question__side h3 { font-size: 1.5rem; }
.question__side p { font-family: var(--f-read); margin-top: 10px; color: var(--muted); }
.question__side--share p { color: var(--on-night-muted); }
.question__side ul { margin: 16px 0 0; padding-left: 1.1em; font-size: .96rem; }
.question__side--share ul { color: var(--on-night); }
.question__or { align-self: center; font: 400 1.4rem var(--f-display); color: var(--gold-text); }
@media (max-width: 760px) { .question { grid-template-columns: 1fr; } .question__or { justify-self: center; } }

/* path cards */
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.path-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.path-card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 18px 40px -16px rgba(15, 20, 51, .4); }
.path-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--night); }
.path-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.path-card:hover .path-card__img img { transform: scale(1.04); }
.path-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.path-card__num { font: 700 .72rem/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.path-card p { color: var(--muted); font-size: .96rem; }
.path-card__more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--sapphire); font-size: .92rem; }

/* formula steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 24px; border: 1px solid rgba(239, 231, 214, .16); border-radius: var(--radius); background: rgba(255, 255, 255, .03); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-soft); font: 400 1.1rem var(--f-display); margin-bottom: 16px; }
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: 8px; font-size: .96rem; }

/* split feature */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.split p + p { margin-top: 14px; }
.split .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* names grid */
.names-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; direction: rtl; }
.names-grid--mini { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.name-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font: 700 clamp(1.1rem, .8rem + 1.1vw, 1.7rem)/1 var(--f-he); color: var(--night); cursor: pointer; transition: background .2s, color .2s, transform .2s; padding: 0; }
.name-tile:hover, .name-tile[aria-pressed="true"] { background: var(--night); color: var(--gold-soft); transform: translateY(-2px); }
.name-tile__n { position: absolute; top: 6px; left: 8px; font: 600 .62rem/1 var(--f-ui); color: var(--muted); direction: ltr; }
.name-tile:hover .name-tile__n, .name-tile[aria-pressed="true"] .name-tile__n { color: var(--on-night-muted); }
.names-grid--mini .name-tile { cursor: default; background: rgba(255, 255, 255, .04); border-color: rgba(239, 231, 214, .14); color: var(--gold-soft); }
@media (max-width: 760px) { .names-grid { grid-template-columns: repeat(4, 1fr); } }

.meditate { position: relative; background: radial-gradient(90% 90% at 50% 40%, var(--night-2), var(--night)); color: var(--on-night); border-radius: 22px; padding: clamp(28px, 5vw, 60px); text-align: center; overflow: hidden; }
.meditate__name { font: 700 clamp(4.5rem, 3rem + 8vw, 9rem)/1 var(--f-he); color: var(--gold-soft); direction: rtl; text-shadow: 0 0 40px rgba(243, 213, 138, .35); margin: 18px 0 8px; letter-spacing: .08em; }
.meditate__name span { display: inline-block; transition: opacity .5s, transform .5s; }
.meditate__name span.is-dim { opacity: .35; }
.meditate__meta { color: var(--on-night-muted); font-size: .92rem; }
.meditate__controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.meditate__hint { margin-top: 16px; font-size: .88rem; color: var(--on-night-muted); }

/* tree of life */
.tree-wrap { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
@media (max-width: 860px) { .tree-wrap { grid-template-columns: 1fr; } }
.tree { width: 100%; height: auto; display: block; max-width: 440px; margin-inline: auto; }
.tree__path { stroke: rgba(210, 166, 78, .45); stroke-width: 2; }
.tree__node { cursor: pointer; }
.tree__node circle.halo { fill: rgba(243, 213, 138, .0); transition: fill .3s; }
.tree__node circle.core { fill: var(--night-2); stroke: var(--gold); stroke-width: 2; transition: fill .25s, stroke-width .25s; }
.tree__node text { font-family: var(--f-ui); font-size: 12px; font-weight: 700; fill: var(--on-night); text-anchor: middle; pointer-events: none; }
.tree__node text.he { font-family: var(--f-he); font-size: 15px; fill: var(--gold-soft); }
.tree__node:hover circle.core, .tree__node:focus circle.core { stroke-width: 3; }
.tree__node.is-active circle.core { fill: var(--gold); }
.tree__node.is-active text { fill: var(--night); }
.tree__node.is-active text.he { fill: var(--night); }
.tree__node.is-active circle.halo { fill: rgba(243, 213, 138, .22); }
.tree__node:focus { outline: none; }
.tree__node:focus-visible circle.core { stroke: #fff; stroke-width: 3; }
.tree-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); position: sticky; top: 100px; }
.tree-panel__he { font: 700 2.6rem/1 var(--f-he); color: var(--gold-text); }
.tree-panel h2 { margin-top: 10px; }
.tree-panel__en { font: 600 .82rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tree-panel p { font-family: var(--f-read); margin-top: 16px; font-size: 1.08rem; }
.tree-panel__life { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--bg); border-radius: 0 10px 10px 0; font-size: .96rem; }
.col-tag { display: inline-block; margin-top: 14px; padding: 5px 10px; border-radius: 999px; font: 700 .72rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; background: var(--bg-2); color: var(--muted); }
.tree-stage { background: radial-gradient(90% 70% at 50% 30%, var(--night-2), var(--night)); border-radius: 22px; padding: 22px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 12px; color: var(--on-night-muted); font-size: .84rem; }

/* page head */
.page-head { padding-block: clamp(56px, 5vw + 30px, 100px) clamp(30px, 3vw, 50px); }
.page-head--night { background: radial-gradient(120% 100% at 30% 0%, var(--night-2), var(--night) 70%); color: var(--on-night); padding-bottom: clamp(56px, 5vw + 30px, 100px); }
.page-head--night h1 { color: #fff; }
.page-head--night .lede { color: var(--on-night-muted); }
.page-head--night .crumbs, .page-head--night .crumbs a { color: var(--on-night-muted); }
.page-head .lede { margin-top: 18px; max-width: 62ch; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* teaching list */
.path-section { scroll-margin-top: 100px; }
.path-section + .path-section { margin-top: clamp(56px, 6vw, 96px); }
.path-head { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; margin-bottom: 26px; }
.path-head img { border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; }
.path-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
@media (max-width: 640px) { .path-head { grid-template-columns: 1fr; } }
.teach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.teach-card { display: flex; flex-direction: column; gap: 8px; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.teach-card:hover { border-color: var(--sapphire); transform: translateY(-2px); color: var(--ink); }
.teach-card h3 { font-size: 1.3rem; }
.teach-card p { color: var(--muted); font-size: .95rem; }
.teach-card__meta { font: 600 .78rem var(--f-ui); color: var(--gold-text); letter-spacing: .06em; text-transform: uppercase; }

/* teaching article */
.prose { font-family: var(--f-read); font-size: 1.16rem; line-height: 1.78; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 1.7em 0 .55em; }
.prose li { margin-bottom: .45em; }
.prose strong { font-weight: 600; }
.callout { border-radius: var(--radius); padding: 24px 26px; margin-top: 28px; }
.callout h2, .callout h3 { font-family: var(--f-ui); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.callout p { font-family: var(--f-read); font-size: 1.06rem; }
.callout svg { width: 20px; height: 20px; }
.callout--practice { background: var(--night); color: var(--on-night); }
.callout--practice h2 { color: var(--gold-soft); }
.callout--context { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sapphire); }
.callout--context h2 { color: var(--sapphire); }
.callout--source { background: transparent; border: 1px dashed var(--line); padding: 16px 22px; }
.callout--source h2 { color: var(--gold-text); margin-bottom: 6px; }
.callout--source p { font-size: .98rem; color: var(--muted); font-style: italic; }
.teach-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.teach-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; max-width: 48%; }
.teach-nav a span { font: 700 .74rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.teach-nav a strong { font: 400 1.2rem var(--f-display); color: var(--ink); }
.teach-nav a:hover strong { color: var(--sapphire); }
.teach-nav__next { margin-left: auto; text-align: right; }
@media (max-width: 560px) { .teach-nav a { max-width: 100%; } .teach-nav__next { text-align: left; margin-left: 0; } }
.progress { display: flex; gap: 6px; margin-top: 22px; }
.progress span { height: 4px; flex: 1; border-radius: 2px; background: rgba(239, 231, 214, .18); }
.progress span.on { background: var(--gold); }
.meta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: .9rem; color: var(--on-night-muted); }

/* teachers */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.person__years { font: 700 .76rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.person h3 { font-size: 1.7rem; margin-top: 8px; }
.person p { font-family: var(--f-read); margin-top: 12px; }
.person--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .person--feature { grid-template-columns: 1fr; gap: 0; } }
.lineage { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.lineage li { position: relative; padding: 0 0 26px 38px; }
.lineage li::before { content: ""; position: absolute; left: 9px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(210, 166, 78, .18); }
.lineage li::after { content: ""; position: absolute; left: 14px; top: 22px; bottom: 0; width: 2px; background: rgba(210, 166, 78, .35); }
.lineage li:last-child::after { display: none; }
.lineage strong { color: #fff; font: 400 1.2rem var(--f-display); display: block; }
.lineage span { color: var(--on-night-muted); font-size: .94rem; }
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.book { padding: 20px 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--sapphire); }
.book h3 { font-size: 1.2rem; }
.book__by { font-size: .84rem; color: var(--gold-text); font-weight: 700; margin-top: 4px; }
.book p { font-size: .94rem; color: var(--muted); margin-top: 8px; }

/* honest note */
.note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.note svg { width: 28px; height: 28px; color: var(--sapphire); }
.note h2, .note h3 { font-size: 1.35rem; }
.note p { margin-top: 8px; color: var(--muted); font-family: var(--f-read); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 400 1.25rem var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-family: var(--f-ui); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-family: var(--f-read); color: var(--muted); font-size: 1.05rem; }

/* forms */
.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { font-weight: 700; font-size: .92rem; }
.req { color: var(--ember); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid rgba(27, 26, 44, .22); border-radius: 10px; padding: 12px 14px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sapphire); box-shadow: 0 0 0 3px rgba(37, 51, 111, .15); }
.field__hint, .form-note { font-size: .85rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-status.is-show { display: block; }
.form-status--ok { background: #e3f1e6; color: #1d5a2c; }
.form-status--err { background: #f8e3dc; color: #7a2513; }

.newsletter-band__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.newsletter-band h2 { margin-top: 14px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.newsletter-band p { margin-top: 12px; }
.nl-form__row { display: flex; gap: 10px; }
.nl-form input { background: rgba(255, 255, 255, .07); border-color: rgba(239, 231, 214, .25); color: #fff; border-radius: 999px; padding-inline: 20px; }
.nl-form input::placeholder { color: var(--on-night-muted); }
.nl-form .form-status { margin: 14px 0 0; }
@media (max-width: 760px) { .newsletter-band__inner { grid-template-columns: 1fr; } .nl-form__row { flex-direction: column; } }

/* footer */
.site-footer { background: #0a0e26; color: var(--on-night-muted); padding-top: 64px; }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding-bottom: 48px; }
@media (max-width: 820px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
.site-footer__tag { margin-top: 16px; max-width: 38ch; font-size: .95rem; }
.site-footer h3 { font: 700 .74rem var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-list a { color: var(--on-night); text-decoration: none; font-size: .95rem; }
.link-list a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer__base { border-top: 1px solid rgba(239, 231, 214, .1); padding-block: 22px; font-size: .84rem; }
.site-footer__base-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* fixes */
html, body { overflow-x: clip; }
.btn--ghost-light { background: transparent; }
.tree__node text:not(.he) { font-size: 10.5px; letter-spacing: -.01em; }
@media (max-width: 960px) { .site-nav__pill { visibility: hidden; transition: transform .3s ease, visibility 0s .3s; } .site-nav.is-open .site-nav__pill { visibility: visible; transition: transform .3s ease; } }
@media (min-width: 721px) { .hero__img { left: 30%; } .hero__img img { object-position: 50% 50%; } }
@media (max-width: 960px) { .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); } }
