/* Sepharadic Baltimore Fund — "Daylight"
   Light ground, one saturated blue, illustration-led.
   Mobile-first: base rules are the 390px layout, media queries scale up. */

:root {
  /* One tone everywhere. Sits between the near-black that read too dark and
     the white that read too light: L=0.030 against 0.003 and 1.000. */
  --bg:        #EFE7DA;      /* warm sand — light but not white */
  --bg-2:      #FBF7F1;      /* cards float lighter, still warm */
  --bg-3:      #33456380;    /* subtle fills */
  --txt:       #221E19;      /* warm near-black */
  --txt-2:     #554C42;
  --txt-3:     #665C50;
  --acc:       #364EB6;      /* the logo's royal blue, sampled from the mark */
  --acc-deep:  #1B227E;      /* the logo's deep indigo */

  --on-acc:    #FFFFFF;
  --line:      #DDD1BE;
  --line-2:    #C9BAA2;
  --fill:      #F6F0E6;
  --fill-acc:  #E4E7F6;

  --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: var(--txt); }
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); }

/* ---- one ambient layer, page-wide. Never per-section: a glow inside an
       overflow:hidden section gets sliced flat at the boundary. Fixed, so it
       stays put while the page scrolls past it. ---- */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 620px at 86% -60px,  rgba(216,180,124,0.30), transparent 66%),
    radial-gradient(600px 540px at -8%  26%,  rgba(54,78,182,0.07),   transparent 62%),
    radial-gradient(680px 600px at 104% 62%,  rgba(216,180,124,0.22), transparent 64%),
    radial-gradient(820px 640px at 40%  104%, rgba(216,180,124,0.26), transparent 66%);
}
.ambient::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 900px;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(34,30,25,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,30,25,0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 20%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 20%, transparent 74%);
}
@media (min-width: 900px) {
  .ambient {
    background:
      radial-gradient(1180px 900px at 84% -140px, rgba(216,180,124,0.32), transparent 66%),
      radial-gradient(900px 800px at -6%  28%,   rgba(54,78,182,0.07),   transparent 62%),
      radial-gradient(1000px 860px at 106% 60%,  rgba(216,180,124,0.22), transparent 64%),
      radial-gradient(1240px 900px at 42%  102%, rgba(216,180,124,0.26), transparent 66%);
  }
}
@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; }
/* :not(.btn) matters — `.nav a` outranks `.btn--solid` on specificity and was
   overriding the button's dark-on-accent text with muted grey. */
.nav a:not(.btn) { font-size: 15px; color: var(--txt-2); }
.nav a:not(.btn):hover, .nav a:not(.btn)[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 8px 22px rgba(54,78,182,0.28); }
.btn--solid:hover { background: #9BCBF8; color: var(--on-acc);
  box-shadow: 0 0 44px rgba(155,203,248,0.55), 0 8px 22px rgba(6,14,28,0.34); }
.btn--ghost { background: transparent; 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: linear-gradient(180deg, rgba(54,78,182,0.05), rgba(54,78,182,0) 42%), var(--bg-2);
  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: 30px 24px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, rgba(54,78,182,0.055), rgba(54,78,182,0) 38%), var(--bg-2);
  box-shadow: 0 8px 26px rgba(34,30,25,0.08); }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding: 48px 52px; }
}
.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);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 12px 34px rgba(34,30,25,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(54,78,182,.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: rgba(54,78,182,0.13); border: 1px solid rgba(54,78,182,.24);
  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; }
.textarea--short { min-height: 88px; }
.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='%23665C50' 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: #2B3C58; color: #F0F5FC; }
.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: 24px; box-shadow: 0 10px 30px rgba(34,30,25,0.10); }
@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(54,78,182,.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: #E8F2E2; border: 1px solid #B6D4A6; color: #2F5320; }
.status[data-kind="err"] { background: #F8E6E4; border: 1px solid #E0AEA8; color: #7A2A22; }
.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(54,78,182,.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: transparent;
  border-top: 1px solid var(--line); color: var(--txt-2); }
.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); }

/* ---- footer credits ---- */
.credits { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.credit { display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--txt-3); }
.credit img { width: 20px; height: auto; opacity: .85; }
.credit svg { color: #F6821F; flex-shrink: 0; }          /* Cloudflare orange */
.credit strong { font-weight: 600; color: var(--txt-2); }
a.credit:hover { color: var(--txt); }
a.credit:hover img { opacity: 1; }
a.credit:hover strong { color: var(--acc); }

/* ---- illustrations ---- */
.shot { display: block; width: 100%; border-radius: 24px; border: 1px solid var(--line-2);
  box-shadow: 0 12px 34px rgba(34,30,25,0.13);
  overflow: hidden; background: var(--bg-2); }
.shot img { width: 100%; height: auto; display: block; }
.badge { position: absolute; left: -14px; bottom: -22px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 10px 28px rgba(34,30,25,0.14); }
.badge img { width: 34px; height: 34px; }
.badge span { font-family: var(--display); font-size: 13px; font-weight: 600; line-height: 1.3; }
@media (min-width: 900px) {
  .badge { left: -32px; bottom: -30px; padding: 14px 20px; }
  .badge img { width: 42px; height: 42px; }
  .badge span { font-size: 14px; }
}
.pillbadge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: rgba(54,78,182,0.14); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--acc); }

/* ---- hero split ---- */
.herosplit { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
  padding-block: 36px 52px; }
.herotext { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
.herotext .lede { max-width: 100%; }
@media (min-width: 1000px) {
  .herosplit { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px;
    padding-block: 52px 88px; }
  .herotext { gap: 24px; }
  .herotext .lede { max-width: 30rem; }
}


/* ---- logo, given room ---- */
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.15; }
@media (min-width: 900px) {
  .brand img { width: 54px; height: 54px; }
  .brand span { font-size: 20px; letter-spacing: -0.02em; }
}
.logomark { display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; background: #FFFFFF; border-radius: 26px;
  box-shadow: 0 0 54px rgba(54,78,182,0.30), 0 14px 40px rgba(3,10,22,0.46); }
.logomark img { width: 64px; height: 64px; }
@media (min-width: 900px) {
  .logomark { width: 118px; height: 118px; border-radius: 30px; }
  .logomark img { width: 80px; height: 80px; }
}
.ftr .brand img { width: 52px; height: 52px; }
.ftr .brand span { color: var(--txt); }

/* ---- header + hero share the page ground; no band, no strip ---- */
.heroband { background: transparent; }
.heroband .wrap { padding-bottom: 8px; }
@media (min-width: 900px) { .heroband .wrap { padding-bottom: 24px; } }
/* ---- logo, given room ---- */
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.15; }
@media (min-width: 900px) {
  .brand img { width: 54px; height: 54px; }
  .brand span { font-size: 20px; letter-spacing: -0.02em; }
}
.logomark { display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; background: #FFFFFF; border-radius: 26px;
  box-shadow: 0 0 54px rgba(54,78,182,0.30), 0 14px 40px rgba(3,10,22,0.46); }
.logomark img { width: 64px; height: 64px; }
@media (min-width: 900px) {
  .logomark { width: 118px; height: 118px; border-radius: 30px; }
  .logomark img { width: 80px; height: 80px; }
}
.ftr .brand img { width: 52px; height: 52px; }
.ftr .brand span { color: var(--txt); }


/* ---- the big campaign numeral ---- */
.bignum { font-family: var(--display); font-size: clamp(3.2rem, 9vw, 4.75rem); font-weight: 700;
  line-height: 1; letter-spacing: -.04em; color: var(--acc);
   }

/* ---- scroll reveals ----
   Direction alternates so a row of cards arrives as a sequence rather than a
   block. Everything is opt-in via a class the script adds, so with JS off or
   reduced motion on, content is simply visible — never hidden by default. */
@media (prefers-reduced-motion: no-preference) {
  .js .r-up, .js .r-left, .js .r-right, .js .r-in {
    opacity: 0; will-change: opacity, transform;
    transition: opacity .62s cubic-bezier(.22,.68,.36,1),
                transform .62s cubic-bezier(.22,.68,.36,1);
  }
  .js .r-up    { transform: translateY(30px); }
  .js .r-left  { transform: translateX(-38px); }
  .js .r-right { transform: translateX(38px); }
  .js .r-in    { transform: scale(.965); }
  .js .r-up.on, .js .r-left.on, .js .r-right.on, .js .r-in.on {
    opacity: 1; transform: none;
  }
}
