/* SuperBinah · superbinah.ai
   Brand rule: the point is always the accent. Sapphire on light, light sapphire on ink, ember on sapphire. */
:root {
  --sapphire: #2445D8;
  --sapphire-deep: #0F1F7A;
  --panel: #1C38B8;
  --light: #7B93FF;
  --mist: #DDE3FF;
  --mist-dim: #C9D2FF;
  --ember: #E0562B;
  --ink: #121212;
  --stone: #EEE8DC;
  --white: #FFFFFF;
  --grey: #3F3F3F;
  --line: #E0DACD;
  --display: 'Manrope', 'Inter', 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'DM Sans', 'Inter', 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hebrew: 'Heebo', 'Arial Hebrew', 'Noto Sans Hebrew', sans-serif;
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
[lang="he"] { font-family: var(--hebrew); }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.band-ember :focus-visible { outline-color: var(--ink); }
[id] { scroll-margin-top: calc(var(--header) + 8px); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--white); color: var(--sapphire); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 16px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- type ---------- */
.display, .h0, .h1, .h2, .h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -0.025em; }
.display { font-size: clamp(60px, 10vw, 128px); line-height: 0.95; letter-spacing: -0.04em; }
.h0 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1; letter-spacing: -0.035em; }
.h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.h3 { font-size: 22px; line-height: 1.2; }
.label { margin: 0; font: 700 13px/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sapphire); }
.label-mist { color: var(--mist); }
.label-grey { color: var(--grey); }
.lead { margin: 0; max-width: 620px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--white); }
.lead-mist { color: var(--mist); }
.intro { margin: 0; max-width: 640px; font-size: 20px; color: var(--grey); }
.intro-ink { color: var(--ink); }
.muted { color: var(--grey); }
.text-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-sapphire { color: var(--sapphire); text-decoration: none; }
.text-sapphire:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--sapphire); }
.btn-white:hover { background: var(--mist); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #000; }
.btn-sapphire { background: var(--sapphire); color: var(--white); }
.btn-sapphire:hover { background: var(--panel); }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--sapphire); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.header-row { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; }
.logo { display: block; height: auto; }
.brand .logo { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--mist); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; margin-right: -10px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.menu[open] summary span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 4px 24px 28px; background: var(--sapphire); border-bottom: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 24px 40px rgba(15, 31, 122, .35); }
.menu-panel a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: var(--white); text-decoration: none; font: 800 26px/1.2 var(--display); letter-spacing: -0.02em; }
.menu-panel a[aria-current="page"] { color: var(--mist); }
.menu-panel .btn { margin-top: 24px; }

/* ---------- bands ---------- */
.band { padding: clamp(72px, 9vw, 128px) 0; }
.band-tight { padding-top: clamp(40px, 5vw, 64px); }
.band-sapphire { background: var(--sapphire); color: var(--white); }
.band-stone { background: var(--stone); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--stone); }
.band-ember { background: var(--ember); color: var(--ink); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; max-width: none; }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-sm { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: clamp(40px, 6vw, 72px); }

/* the point, line and plane as a supergraphic, always standing on the band's floor */
.super { position: absolute; bottom: -1px; display: block; height: auto; pointer-events: none; }

/* ---------- hero ---------- */
.hero { --g: clamp(250px, 64vw, 520px); position: relative; overflow: hidden; padding: clamp(64px, 9vw, 128px) 0 calc(var(--g) * 0.436 + 56px); }
.hero-inner { display: grid; gap: 20px; }
.hero .display { margin: 4px 0 8px; }
.super-hero { right: max(24px, calc((100% - 1200px) / 2)); width: var(--g); }
@media (min-width: 1100px) {
  .hero { padding-bottom: 140px; }
  .hero-inner > * { max-width: 660px; }
}

/* ---------- inner page heads ---------- */
.page-head { --g: clamp(190px, 28vw, 360px); position: relative; overflow: hidden; padding: clamp(64px, 8vw, 112px) 0 calc(var(--g) * 0.436 + 48px); }
.page-head .stack > * { max-width: 760px; }
.super-head { right: max(24px, calc((100% - 1200px) / 2)); width: var(--g); }
@media (min-width: 1100px) { .page-head { padding-bottom: 136px; } }
.project-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 72px); }
.project-hero .stack > * { max-width: 900px; }
.crumbs { margin: 0; font-size: 15px; color: var(--mist); }
.crumbs a { color: var(--white); }
.meta { display: flex; flex-wrap: wrap; gap: 18px 56px; margin: 12px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .22); }
.meta div { display: grid; gap: 6px; }
.meta dt { font: 700 12px/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.meta dd { margin: 0; font-weight: 500; color: var(--white); }
.meta a { color: var(--white); }
.meta-stack { flex-direction: column; gap: 22px; margin-top: 16px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: grid; gap: 12px; align-content: start; padding: 32px; border-radius: 20px; }
.card p { margin: 0; }
.card-white { background: var(--white); }
.card-white p:not(.label) { color: var(--grey); }
.card-panel { background: var(--panel); }
.card-panel p:not(.label) { color: var(--mist); }
.shape-row { height: 48px; display: flex; align-items: flex-end; margin-bottom: 16px; }
.shape { display: block; flex: none; }

.project-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 24px; background: var(--stone); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 18, 18, .12); }
.project-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sapphire); }
.project-cover img, .cover-large img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-art { position: absolute; inset: 0; padding: clamp(24px, 3vw, 36px); color: var(--white); }
.cover-art span { display: block; font: 800 clamp(34px, 4vw, 52px)/1 var(--display); letter-spacing: -0.035em; }
.cover-art-big span { font-size: clamp(48px, 8vw, 104px); }
.super-card { right: clamp(20px, 3vw, 36px); width: 46%; }
.cover-art-big .super-card { width: 38%; }
.project-body { display: grid; gap: 12px; align-content: start; padding: 32px; }
.project-body p { margin: 0; color: var(--grey); }
.project-body .label { color: var(--sapphire); }
.more { margin-top: 8px; font-weight: 700; color: var(--sapphire); }
.project-card:hover .more { text-decoration: underline; text-underline-offset: 5px; }
.soon { display: grid; align-content: center; justify-items: start; gap: 10px; min-height: 260px; padding: 32px; border: 2px dashed var(--line); border-radius: 24px; }
.soon p { margin: 0; }
.soon .shape { margin-bottom: 12px; }

/* ---------- why binah ---------- */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.why-hebrew { margin: 0; text-align: center; font: 800 clamp(104px, 14.5vw, 210px)/0.9 var(--hebrew); color: var(--light); }
.why .stack p { margin: 0; }
.why .stack p:not(.label) { font-size: 20px; line-height: 1.6; color: var(--stone); }

/* ---------- cta ---------- */
.cta { display: grid; justify-items: start; gap: 20px; }
.cta .h1 { max-width: 900px; }
.cta .text-link { color: var(--ink); }

/* ---------- project page ---------- */
.cover-large { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 28px; background: var(--sapphire); }
.story { border-top: 1px solid var(--line); }
.story-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.story-row p { margin: 0; max-width: 720px; font-size: 20px; line-height: 1.6; color: var(--grey); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.gallery img { display: block; width: 100%; border-radius: 20px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--white); color: var(--ink); }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: 400 17px/1.4 var(--body); }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A8A8A; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sapphire); box-shadow: 0 0 0 3px rgba(36, 69, 216, .18); }
.form-note { margin: 0; font-size: 14px; color: var(--grey); }
.form-note a { color: var(--sapphire); }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0; background: var(--sapphire-deep); color: var(--mist); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-row .logo { height: 24px; width: auto; }
.footer-row p { margin: 0; font-size: 15px; }
.footer-row a { color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .why, .contact { grid-template-columns: minmax(0, 1fr); }
  .why-hebrew { text-align: start; line-height: 1; }
  .story-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 32px 0; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .card, .project-body, .soon { padding: 26px; }
  .soon { min-height: 0; }
  .intro, .story-row p, .why .stack p:not(.label) { font-size: 18px; }
  .cover-large { aspect-ratio: 4 / 3; border-radius: 20px; }
  .actions .btn { flex: 1 1 auto; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
