/* ===========================================================
   MSEC Coming Soon — Design tokens
   =========================================================== */
:root {
  --navy:        #1B3A63;
  --navy-deep:   #12233F;
  --gold:        #C9A24B;
  --brick:       #B84C3E;
  --cream:       #FBF8F2;
  --white:       #FFFFFF;
  --ink:         #1A1F2B;
  --ink-soft:    rgba(18, 35, 63, 0.68);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", Arial, Helvetica, sans-serif;

  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

[hidden] { display: none !important; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  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: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===========================================================
   Brand bar + stripe (match the MSEC email headers)
   =========================================================== */
.brand-bar {
  background: var(--navy);
  color: var(--white);
}
.brand-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.brand-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.005em;
}
.brand-note {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand-stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  z-index: 3;
  background: linear-gradient(90deg, var(--gold) 0 83.3%, var(--brick) 83.3% 100%);
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  padding: 100px 24px 64px;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.35) brightness(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(90, 106, 128, 0.6);
  mix-blend-mode: multiply;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,35,63,0.05) 0%, rgba(18,35,63,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 900ms ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  html { scroll-behavior: auto; }
}

.mark { margin-bottom: 20px; }

.kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04;
  margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(18,35,63,0.35);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(251,248,242,0.92);
  margin: 0 0 36px;
  max-width: 520px;
  text-shadow: 0 1px 12px rgba(18,35,63,0.3);
}

.notify-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(251,248,242,0.4);
  background: rgba(251,248,242,0.08);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.notify-form input[type="email"]::placeholder { color: rgba(251,248,242,0.6); }
.notify-form input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  background: rgba(251,248,242,0.14);
}

.notify-form button {
  flex: 0 0 auto;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 160ms ease;
  white-space: nowrap;
}
.notify-form button:hover { background: var(--gold); color: var(--navy-deep); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notify-form button:disabled {
  opacity: 0.75;
  cursor: default;
}

.notify-error {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #FFD9D2;
}

.notify-thanks {
  width: 100%;
  max-width: 460px;
  padding: 22px 26px;
  border: 1px solid rgba(201,162,75,0.7);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  background: rgba(18,35,63,0.55);
  text-align: center;
}
.notify-thanks:focus { outline: none; }
.thanks-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
}
.thanks-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(251,248,242,0.85);
  overflow-wrap: anywhere;
}
.thanks-body strong { color: var(--gold); font-weight: 600; }

.notify-note {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: rgba(251,248,242,0.6);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(251,248,242,0.5);
  border-radius: 12px;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%   { opacity: 1; transform: translateY(0); }
  70%  { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}

/* ===========================================================
   Explainer + pillars
   =========================================================== */
.explainer {
  padding: 96px 0 72px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 14px;
}

.explainer h2, .timeline h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--navy-deep);
  margin: 0 0 22px;
  max-width: 640px;
}

.explainer h2 {
  max-width: none;
  white-space: nowrap;
}

.lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 8px;
}

.lede-group p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 20px;
}

.lede-group p:last-child {
  margin-bottom: 0;
}

.explainer-body {
  display: flex;
  align-items: center;
  gap: 48px;
}
.credit-badge {
  flex: none;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 22px;
}
.badge-top {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
}
.badge-amount {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.9rem;
  line-height: 1.05;
  color: var(--navy);
  margin: 6px 0 8px;
}
.badge-sub {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3a4a60;
}

.pillars {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 30px 26px 32px;
}

.pillar-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy-deep);
  margin: 0 0 12px;
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ===========================================================
   Why give
   =========================================================== */
.impact {
  background: var(--navy-deep);
  padding: 96px 32px;
}

.impact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.impact h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.22;
  color: var(--white);
  margin: 0 0 24px;
}

.impact p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(251,248,242,0.78);
  margin: 0 0 16px;
}

.impact .impact-lede {
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0;
}

/* ===========================================================
   Stats
   =========================================================== */
.stats {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 72px 32px 48px;
}

.stats-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--white);
  margin: 0 0 8px;
}

.stat-label {
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(251,248,242,0.7);
  margin: 0;
}

.stats-caveat {
  max-width: var(--max);
  margin: 40px auto 0;
  font-size: 0.78rem;
  color: rgba(251,248,242,0.5);
  text-align: center;
}

/* ===========================================================
   The process
   =========================================================== */
.process {
  padding: 88px 0 56px;
}

.process-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--navy-deep);
  margin: 0;
  max-width: 640px;
}

.process-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  max-width: 680px;
  width: 100%;
}

.process-list li {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 40px;
}

.process-list li:last-child {
  padding-bottom: 0;
}

.process-list li::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 4px;
  width: 1px;
  background: rgba(27,58,99,0.18);
}

.process-list li:last-child::before {
  display: none;
}

.process-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  background: var(--cream);
  z-index: 1;
}

.process-copy h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin: 6px 0 10px;
}

.process-copy p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.process-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ===========================================================
   Timeline
   =========================================================== */
.timeline {
  padding: 56px 0 100px;
}

.timeline-list {
  list-style: none;
  margin: 40px auto 0;
  padding: 0 32px;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.timeline-list li {
  border-left: 2px solid var(--navy);
  padding-left: 22px;
}

.timeline-list h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 10px;
}

.timeline-list p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  border-top: 4px solid var(--gold);
  background: var(--navy);
  color: rgba(251,248,242,0.85);
  padding: 56px 32px 28px;
}

.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(251,248,242,0.16);
}

.footer-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 6px;
}

.footer-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.footer-heading {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  margin: 0 0 10px;
}

.footer-contact p, .footer-schools p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(251,248,242,0.75);
}

.footer-schools a {
  color: rgba(251,248,242,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(251,248,242,0.3);
  transition: color 160ms ease, border-color 160ms ease;
}
.footer-schools a:hover,
.footer-schools a:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(251,248,242,0.55);
}

.footer-bottom a {
  color: rgba(251,248,242,0.55);
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .explainer h2 { white-space: normal; }
  .explainer-body { flex-direction: column; align-items: flex-start; gap: 36px; }
}

@media (max-width: 480px) {
  .notify-form { flex-direction: column; }
  .notify-form input[type="email"],
  .notify-form button {
    flex: none;
    width: 100%;
  }
  .hero { padding-top: 80px; }
  .brand-bar-inner { padding: 14px 20px; }
  .brand-name { font-size: 1.1rem; }
}
