/* Foundations: East Wind with 321 Education Foundation, in 321's own design language.
   Montserrat, heavy capitals, sun yellow and lime grounds, coral, blue and green accents, square corners. */

.fd-page { --fd-yellow: #FED445; --fd-amber: #FFC107; --fd-lime: #92F27C; --fd-coral: #FF6A73; --fd-blue: #2994FF; --fd-green: #27950F; --fd-ink: #111; --fd-text: #212529; }
.fd { font-family: 'Montserrat', Arial, sans-serif; color: var(--fd-text); background: #fff; overflow: hidden; }
.fd-wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter, 48px); }
.fd-bg-yellow { background: var(--fd-yellow); } .fd-bg-coral { background: var(--fd-coral); } .fd-bg-blue { background: var(--fd-blue); } .fd-bg-green { background: var(--fd-green); }

/* ---------- Hero ---------- */
.fd-hero { background: var(--fd-yellow); position: relative; }
.fd-hero-in { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-top: 72px; padding-bottom: 0; min-height: min(640px, 82vh); }
.fd-hero-copy { padding-bottom: 72px; }
.fd-kick { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fd-ink); }
.fd-kick i { width: 8px; height: 8px; background: var(--fd-coral); display: inline-block; }
.fd-word { font-weight: 900; text-transform: uppercase; color: var(--fd-ink); font-size: clamp(44px, 5.5vw, 82px); line-height: .9; letter-spacing: -.035em; margin: 22px 0 26px; }
.fd-lead { font-weight: 700; font-size: clamp(19px, 2.1vw, 25px); line-height: 1.38; color: var(--fd-ink); max-width: 30ch; }
.fd-with { margin-top: 18px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.fd-with b { font-weight: 800; border-bottom: 3px solid var(--fd-coral); }
.fd-btn { display: inline-block; margin-top: 34px; background: var(--fd-ink); color: var(--fd-yellow); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 17px 44px; border: 3px solid var(--fd-ink); transition: transform .2s ease, box-shadow .2s ease; }
.fd-btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--fd-coral); }
.fd-btn:focus-visible { outline: 3px solid var(--fd-blue); outline-offset: 3px; }

/* The tower: lettered and numbered blocks dropping in, one foundation at a time */
.fd-tower { --s: clamp(64px, 8.2vw, 104px); position: relative; height: calc(var(--s) * 4.6); width: calc(var(--s) * 3); justify-self: center; }
.fd-ground { position: absolute; left: -40px; right: -40px; bottom: 0; height: 6px; background: var(--fd-ink); }
.fd-b {
  position: absolute; width: var(--s); height: var(--s); left: calc(var(--c) * var(--s)); bottom: calc(var(--r) * var(--s) + 6px);
  display: grid; place-items: center; font-weight: 900; font-size: calc(var(--s) * .52); color: var(--fd-ink);
  border: 4px solid var(--fd-ink); box-shadow: inset -8px -8px 0 rgba(0,0,0,.08);
  transform: rotate(var(--t)); animation: fd-drop .7s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc((var(--r) * 3 + var(--c)) * 170ms + 250ms);
}
.fd-c1 { background: var(--fd-coral); } .fd-c2 { background: var(--fd-blue); color: #fff; } .fd-c3 { background: var(--fd-lime); } .fd-c4 { background: var(--fd-amber); } .fd-cw { background: #fff; }
.fd-top { animation-name: fd-drop-top; }
@keyframes fd-drop { from { transform: translateY(-120vh) rotate(calc(var(--t) * 6)); } to { transform: rotate(var(--t)); } }
@keyframes fd-drop-top { 0% { transform: translateY(-120vh) rotate(-30deg); } 70% { transform: rotate(var(--t)); } 85% { transform: translateY(-14px) rotate(var(--t)); } 100% { transform: rotate(var(--t)); } }
.fd-spark { position: absolute; width: 64px; height: 64px; left: calc(1.5 * var(--s) - 32px); bottom: calc(4 * var(--s) + 10px); fill: none; stroke: var(--fd-ink); stroke-width: 4; stroke-linecap: round; opacity: 0; animation: fd-spark 1.6s ease 1.9s both; }
@keyframes fd-spark { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.05); } 100% { opacity: 1; transform: scale(1) rotate(12deg); } }
.fd-tower:hover .fd-b { animation: fd-wobble .6s ease; }
@keyframes fd-wobble { 50% { transform: rotate(calc(var(--t) * -1.6)) translateY(-3px); } }

.fd-ticker { background: var(--fd-ink); color: var(--fd-yellow); overflow: hidden; border-top: 4px solid var(--fd-ink); }
.fd-ticker-in { display: flex; width: max-content; gap: 28px; padding: 15px 0; font-weight: 900; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; animation: fd-tick 38s linear infinite; }
.fd-ticker-in b { color: var(--fd-coral); }
.fd-ticker-in b:nth-of-type(3n+2) { color: var(--fd-lime); } .fd-ticker-in b:nth-of-type(3n) { color: var(--fd-blue); }
@keyframes fd-tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.fd-sec { padding: 104px 0; position: relative; }
.fd-white { background: #fff; } .fd-lime { background: var(--fd-lime); } .fd-yellow { background: var(--fd-yellow); }
.fd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.fd-label { font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--fd-ink); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; }
.fd-label::before { content: ""; width: 14px; height: 14px; background: currentColor; }
.fd-label.fd-coral { color: #D63C46; } .fd-label.fd-blue { color: #0F6FD6; }
.fd-h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; letter-spacing: -.01em; color: var(--fd-ink); max-width: 22ch; }
.fd-caps { text-transform: uppercase; font-weight: 900; letter-spacing: -.015em; line-height: 1.08; }
.fd-h2 mark { background: linear-gradient(transparent 58%, var(--fd-yellow) 58%, var(--fd-yellow) 92%, transparent 92%); color: inherit; padding: 0 2px; }
.fd-body p, .fd-intro { font-weight: 500; font-size: 17px; line-height: 1.75; color: var(--fd-text); max-width: 58ch; }
.fd-intro { margin-top: 22px; }
.fd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.fd-subj { border: 3px solid var(--fd-ink); padding: 22px 22px 18px; color: #fff; display: flex; flex-direction: column; gap: 6px; transition: transform .2s ease, box-shadow .2s ease; }
.fd-subj:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--fd-ink); }
.fd-subj b { font-weight: 900; font-size: 44px; line-height: 1; }
.fd-subj span { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

/* Stats on lime */
.fd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.fd-stat { background: #fff; border: 3px solid var(--fd-ink); padding: 32px 32px 28px; margin: 0; box-shadow: 8px 8px 0 var(--fd-ink); }
.fd-stat-n { font-weight: 900; font-size: clamp(54px, 7vw, 84px); line-height: 1; letter-spacing: -.03em; color: var(--fd-ink); }
.fd-stat figcaption p { font-weight: 600; font-size: 16px; line-height: 1.55; margin-top: 22px; max-width: 36ch; }
.fd-stat cite { display: inline-block; margin-top: 14px; font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #555; border-top: 2px solid var(--fd-yellow); padding-top: 6px; }
.fd-kids { display: flex; gap: 10px; margin-top: 22px; height: 64px; }
.fd-kid { width: 40px; height: 64px; fill: #E6E6E6; }
.fd-kid.is-on { fill: var(--fd-coral); }
.fd-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 22px; max-width: 360px; }
.fd-dots i { aspect-ratio: 1; border-radius: 50%; background: #E6E6E6; }
.fd-dots i.is-on { background: var(--fd-blue); }
.js-reveal .fd-kid.is-on, .js-reveal .fd-dots i.is-on { transition: fill .4s ease, background .4s ease; transition-delay: calc(var(--k) * 90ms + 300ms); }
.js-reveal .fd-stat:not(.is-in) .fd-kid.is-on { fill: #E6E6E6; }
.js-reveal .fd-stat:not(.is-in) .fd-dots i.is-on { background: #E6E6E6; }
.fd-hold { margin-top: 56px; font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; max-width: 34ch; color: var(--fd-ink); padding-left: 22px; border-left: 8px solid var(--fd-ink); }

/* What 321 brings */
.fd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.fd-card { position: relative; background: #F8F9FA; padding: 34px 30px 46px; transition: transform .25s ease, box-shadow .25s ease; }
.fd-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(0,0,0,.35); }
.fd-circle { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 40px; color: var(--fd-ink); margin-bottom: 24px; }
.fd-card h3 { font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: .01em; color: var(--fd-ink); margin-bottom: 12px; }
.fd-card p { font-weight: 500; font-size: 15.5px; line-height: 1.65; }
.fd-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; transform-origin: left; transition: transform .6s ease; }
.js-reveal .fd-card:not(.is-in) .fd-bar { transform: scaleX(0); }

/* Shown: before and after */
.fd-shown { align-items: center; }
.fd-chart { background: #fff; border: 3px solid var(--fd-ink); padding: 34px 34px 26px; box-shadow: 8px 8px 0 var(--fd-ink); }
.fd-chart-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; height: 280px; border-bottom: 3px solid var(--fd-ink); padding: 0 18px; }
.fd-col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.fd-col span { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.fd-colbar { width: 100%; transform-origin: bottom; transition: transform 1s cubic-bezier(.3,1.3,.5,1); position: relative; }
.fd-before { height: 30%; background: #E6E6E6; }
.fd-after { height: 90%; background: var(--fd-blue); transition-delay: .35s; }
.fd-after b { position: absolute; top: -58px; left: 50%; transform: translateX(-50%); background: var(--fd-coral); color: #fff; font-weight: 900; font-size: 26px; padding: 6px 14px; border: 3px solid var(--fd-ink); white-space: nowrap; }
.js-reveal .fd-chart:not(.is-in) .fd-colbar { transform: scaleY(0); }
.fd-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 52px; }
.fd-chips span { font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; background: var(--fd-yellow); padding: 8px 12px; }
.fd-chips b { font-weight: 900; }

/* Close */
.fd-close { background: var(--fd-ink); color: #fff; text-align: center; padding: 96px 0; }
.fd-close h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 8px; }
.fd-close .fd-btn { background: var(--fd-yellow); color: var(--fd-ink); border-color: var(--fd-yellow); padding: 18px 64px; }
.fd-close .fd-btn:hover { box-shadow: 6px 6px 0 var(--fd-coral); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fd-hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; gap: 0; }
  .fd-hero-copy { padding-bottom: 36px; }
  .fd-tower { --s: 72px; margin-bottom: 0; }
  .fd-two, .fd-stats, .fd-cards { grid-template-columns: 1fr; gap: 28px; }
  .fd-sec { padding: 72px 0; }
}
@media (max-width: 420px) { .fd-tower { --s: 62px; } .fd-stat, .fd-chart { padding: 24px 20px; box-shadow: 5px 5px 0 var(--fd-ink); } .fd-chart-bars { height: 220px; } }

@media (prefers-reduced-motion: reduce) {
  .fd-b, .fd-spark, .fd-ticker-in { animation: none !important; }
  .fd-spark { opacity: 1; }
}
