/* Sepharadic Baltimore Fund — "Midnight"
   Deep navy ground, one saturated accent, one page-wide ambient light layer.
   Mobile-first: base rules are the 390px layout, media queries scale up. */

:root {
  --bg:        #070B14;
  --bg-2:      #0B1220;
  --txt:       #E9F0FB;
  --txt-2:     #93A5C0;
  --txt-3:     #6B80A0;
  --acc:       #4DA6F0;
  --acc-deep:  #2B7FD4;
  --on-acc:    #05101F;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);
  --fill:      rgba(255, 255, 255, 0.025);
  --fill-acc:  rgba(77, 166, 240, 0.07);

  --display: Rubik, "Helvetica Neue", Arial, sans-serif;
  --body:    Assistant, "Helvetica Neue", Arial, sans-serif;

  --gut: 20px;
  --sec: 64px;
  --rad: 14px;
  --rad-lg: 18px;
  --maxw: 1232px;
}

@media (min-width: 900px) {
  :root { --gut: 40px; --sec: 116px; --rad: 16px; --rad-lg: 22px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); text-decoration: none; }
a:hover { color: #8FC8F7; }
input, select, textarea, button { font: inherit; color: inherit; }
::placeholder { color: var(--txt-3); opacity: 1; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--acc); color: var(--on-acc);
  font-weight: 600; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; color: var(--on-acc); }

/* ---- the one ambient light layer. Never per-section: a glow inside an
       overflow:hidden section gets sliced flat at the section boundary. ---- */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px 620px at 50% -180px, rgba(77,166,240,0.28), transparent 66%),
    radial-gradient(620px 560px at 6% 30%,     rgba(77,166,240,0.10), transparent 62%),
    radial-gradient(620px 560px at 96% 58%,    rgba(77,166,240,0.11), transparent 62%),
    radial-gradient(700px 620px at 50% 94%,    rgba(77,166,240,0.15), transparent 64%);
}
.ambient::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 700px;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 78% 64% at 50% 0%, #000 22%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 64% at 50% 0%, #000 22%, transparent 76%);
}
@media (min-width: 900px) {
  .ambient {
    background:
      radial-gradient(1240px 900px at 50% -180px, rgba(77,166,240,0.28), transparent 66%),
      radial-gradient(1000px 820px at 6% 30%,     rgba(77,166,240,0.10), transparent 62%),
      radial-gradient(1000px 820px at 96% 58%,    rgba(77,166,240,0.11), transparent 62%),
      radial-gradient(1240px 900px at 50% 94%,    rgba(77,166,240,0.15), transparent 64%);
  }
  .ambient::after { height: 1000px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .5s cubic-bezier(.22,.68,.36,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* content sits above the light */
.page > *:not(.ambient) { position: relative; z-index: 1; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: 0 var(--sec); }

/* ---- header ---- */
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--txt); }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--display); font-size: 14.5px; font-weight: 600; line-height: 1.15; }
.nav { display: none; align-items: center; gap: 34px; }
.nav a { font-size: 15px; color: var(--txt-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--txt); }
.burger { display: flex; flex-direction: column; gap: 5px; padding: 11px; background: none; border: 0; cursor: pointer; }
.burger span { width: 20px; height: 1.5px; background: var(--txt-2); display: block; }
@media (min-width: 900px) {
  .hdr { padding-block: 30px 0; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 18px; letter-spacing: -0.015em; }
  .nav { display: flex; }
  .burger { display: none; }
}
.mnav { display: none; flex-direction: column; gap: 4px; padding: 14px 0 4px; }
.mnav.open { display: flex; }
.mnav a { padding: 12px 4px; font-size: 17px; color: var(--txt); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .mnav, .mnav.open { display: none; } }

/* ---- type ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 11px; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.19em; text-transform: uppercase; color: var(--acc); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--acc); flex-shrink: 0; }
h1 { font-family: var(--display); font-size: clamp(2.5rem, 8.6vw, 5.5rem); font-weight: 600;
  line-height: 1.04; letter-spacing: -0.035em; text-wrap: pretty; }
h2 { font-family: var(--display); font-size: clamp(1.7rem, 4.2vw, 2.875rem); font-weight: 600;
  line-height: 1.1; letter-spacing: -0.03em; text-wrap: pretty; }
h3 { font-family: var(--display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.018em; }
@media (min-width: 900px) { h3 { font-size: 1.3125rem; } }
.lede { max-width: 62ch; font-size: 1.03rem; line-height: 1.65; color: var(--txt-2); text-wrap: pretty; }
@media (min-width: 900px) { .lede { font-size: 1.1875rem; } }
.muted { color: var(--txt-2); font-size: 0.94rem; }
.small { color: var(--txt-3); font-size: 0.85rem; line-height: 1.5; }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 30px; font-size: 1rem; font-weight: 600; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; text-align: center; }
.btn--solid { background: var(--acc); color: var(--on-acc); box-shadow: 0 0 34px rgba(77,166,240,0.32); }
.btn--solid:hover { background: #6DB8F5; color: var(--on-acc); }
.btn--ghost { background: var(--fill); color: var(--txt); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--txt); border-color: var(--acc); }
.btnrow { display: flex; flex-direction: column; gap: 12px; }
.btnrow .btn { width: 100%; }
@media (min-width: 640px) {
  .btnrow { flex-direction: row; }
  .btnrow .btn { width: auto; }
}
@media (min-width: 900px) { .btn { min-height: 56px; } }

/* ---- blocks ---- */
.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  text-align: left; padding-block: 56px; }
@media (min-width: 900px) {
  .hero { align-items: center; text-align: center; gap: 26px; padding-block: 92px 104px; }
  .hero .lede { margin-inline: auto; }
}
.card { display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: var(--fill); border: 1px solid var(--line); border-radius: var(--rad); }
@media (min-width: 900px) { .card { padding: 30px; } }
.card svg { color: var(--acc); }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.split { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center;
  padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--rad-lg);
  background: radial-gradient(120% 180% at 88% 0%, rgba(77,166,240,0.14), rgba(11,18,32,1) 62%); }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding: 56px 60px; } }
.stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.center { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }
@media (min-width: 900px) { .center { align-items: center; text-align: center; } }

/* video */
.video { position: relative; display: block; border: 1px solid var(--line-2);
  border-radius: var(--rad-lg); overflow: hidden; box-shadow: 0 0 70px rgba(77,166,240,0.13); }
.video img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: .88; }
.video::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,.12), rgba(7,11,20,.55)); }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: flex; align-items: center; justify-content: center; width: 58px; height: 58px;
  background: var(--acc); border-radius: 50%; box-shadow: 0 0 46px rgba(77,166,240,.55); }
@media (min-width: 900px) { .video .play { width: 74px; height: 74px; } }

/* numbered pip */
.pip { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  flex-shrink: 0; background: var(--fill-acc); border: 1px solid rgba(77,166,240,.22);
  border-radius: 50%; font-family: var(--display); font-size: .875rem; font-weight: 600; color: var(--acc); }
.pip--sm { width: 26px; height: 26px; font-size: .75rem; border: 0; }

/* ---- forms ---- */
.field { display: block; margin-bottom: 9px; font-size: .875rem; font-weight: 600; color: var(--txt); }
.req { color: var(--acc); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0 16px; background: var(--fill);
  border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; color: var(--txt);
}
.textarea { min-height: 150px; padding: 16px; line-height: 1.6; resize: vertical; font-family: inherit; }
.select { appearance: none; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%236B80A0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.select option { background: var(--bg-2); color: var(--txt); }
.fields { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 700px) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 38px; }
  .fields .span2 { grid-column: span 2; }
  .input, .select { min-height: 56px; }
}
.check { display: flex; gap: 12px; padding: 17px 19px; background: var(--fill);
  border: 1px solid var(--line); border-radius: 12px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acc); flex-shrink: 0; }
.legend { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 0; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formcard { padding: 26px 22px 30px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--rad-lg); }
@media (min-width: 900px) { .formcard { padding: 46px; } }
.applygrid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .applygrid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; } }

.note { padding: 14px 16px; background: var(--fill-acc); border: 1px solid rgba(77,166,240,.2);
  border-radius: 10px; font-weight: 600; word-break: break-word; }
.status { margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-size: .95rem; }
.status[data-kind="ok"]  { background: rgba(77,240,166,.08); border: 1px solid rgba(77,240,166,.3); color: #A6F0CE; }
.status[data-kind="err"] { background: rgba(240,99,99,.08);  border: 1px solid rgba(240,99,99,.32); color: #F3A9A9; }
.status[hidden] { display: none; }

/* amounts */
.amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.amt { display: flex; align-items: center; justify-content: center; min-height: 56px;
  background: var(--fill); border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--display); font-size: 1.19rem; font-weight: 600; color: var(--txt); cursor: pointer; }
.amt:hover { border-color: var(--acc); }
.amt[aria-checked="true"] { background: var(--fill-acc); border-color: rgba(77,166,240,.55); color: var(--acc); }
.amt--other { gap: 5px; padding: 0 16px; cursor: text; }
.amt--other input { width: 100%; min-width: 0; border: 0; background: none; outline: none;
  font-family: var(--body); font-size: .94rem; }
@media (min-width: 900px) { .amt { min-height: 62px; font-size: 1.31rem; } }

/* ---- footer ---- */
.ftr { margin-top: 0; padding-block: 56px 32px; background: var(--bg-2); border-top: 1px solid var(--line); }
.ftr-grid { display: grid; gap: 30px; grid-template-columns: 1fr; padding-bottom: 32px; }
@media (min-width: 900px) {
  .ftr { padding-block: 72px 40px; }
  .ftr-grid { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 52px; padding-bottom: 48px; }
}
.ftr h2 { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: var(--txt-3); }
.ftr ul { display: flex; flex-direction: column; gap: 11px; margin-top: 11px; }
.ftr ul a { font-size: .9rem; color: var(--txt-2); }
.ftr ul a:hover { color: var(--txt); }
.ftr-btm { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .ftr-btm { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.ftr-btm span { max-width: 100%; font-size: .78rem; line-height: 1.5; color: var(--txt-3); }
