/* Local refinement: header, opening scene and funding only. */
.masthead .nav-download {
  background: linear-gradient(125deg, #efd5a1, #dfb66f);
  border: 1px solid #f1d9ac; border-radius: 999px;
  color: #35121e; padding-inline: 20px; font-weight: 600; font-size: 16px;
  box-shadow: inset 0 1px 0 #fff7dc88, 0 4px 16px #16081018;
}
.masthead .nav-download:hover {
  background: linear-gradient(125deg, #f6dfb4, #e8c183);
  border-color: #f8e6c1;
  box-shadow: inset 0 1px 0 #fff9e8aa, 0 6px 20px #16081028;
}
.hero .hero-assurance { margin-top: 20px; color: #dbc8c6; }
.hero .flying-award {
  background: radial-gradient(ellipse at 0 0, #fffefa 0%, transparent 65%), linear-gradient(145deg, #f8f1e5, #eee0c9);
  border-color: #f4dfbb;
  box-shadow: 0 36px 64px #13060e55, 0 9px 18px #17081028, inset 0 1px 0 #fffdf3;
}
.hero .flying-award::after { border-color: #a17b4540; }
.hero .flying-award::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 25%, #fffdf53b 45%, transparent 64%);
}
.hero .flying-award .flying-logo { border-bottom-color: #b08a5359; }
.hero .flying-body small { color: #755b4c; }
/* Shared heading row, with vertical centers aligned instead of baselines. */
.funding-grid { min-height: 320px; align-items: stretch; row-gap:24px; }
.funding-intro, .funding-figure { display: grid; grid-template-rows: 1fr auto; gap: 24px; }
.funding-intro h2, .funding-number { align-self: center; }
@media(min-width:601px) {
 .funding-grid { grid-template-rows:1fr auto; }
 .funding-intro,.funding-figure { grid-row:1 / span 2; grid-template-rows:subgrid; }
}
.funding-grid .funding-intro > p, .funding-grid .figure-context { margin-top: 0; font-size: 18px; line-height: 1.8; color: #765f57; }
.funding-grid .figure-context { max-width: none; }
.match-copy h2, .story-pinned .match-copy h2 { font-size: clamp(45px,5.1vw,76px); }
/* Deeper tinted stock separates the four cards from the warm page. */
.cloud-card { border-color: #92765a80; box-shadow: 0 26px 44px #3d20302b, 0 5px 12px #3d203018, inset 0 1px 0 #ffffffb3; }
.cloud-card::before { border-color: #765b4533; }
.cloud-card.cloud-0 { background: linear-gradient(140deg,#f4e9e8,#ddc7ca); }
.cloud-card.cloud-1 { background: linear-gradient(140deg,#eaf1f4,#c4d6dd); }
.cloud-card.cloud-2 { background: linear-gradient(140deg,#f5e8cb,#ddc18c); }
.cloud-card.cloud-3 { background: linear-gradient(140deg,#ece8f1,#cec4de); }
.cloud-card small { color: #5c4850; }
/* Quick enough to read during a scroll, with a hold at each state. */
.map-point { animation-duration: 2.2s; }
.point-b { animation-duration: 2.5s; animation-delay: -.8s; }
.point-c { animation-duration: 2.3s; animation-delay: -1.5s; }
.map-ring { animation-duration: 3s; }
.map-ring.second { animation-delay: -1.5s; }
.local-chip { animation-duration: 2.6s; }
.pool-dots i { animation-duration: 3.6s; }
.effort-options > span, .effort-options .effort-slider { animation-duration: 4.2s; }
.effort-options .effort-slider { background: #c2c9b9; }
@keyframes location-float {
  0%,100% { transform: translateY(6px) scale(.9); box-shadow: 0 0 0 5px #e8bb7c20; }
  50% { transform: translateY(-13px) scale(1.2); box-shadow: 0 0 0 11px #e8bb7c16; }
}
@keyframes effort-slide {
  0%,12%,100% { transform: translateX(200%); background: #bd747b; }
  30%,38% { transform: translateX(100%); background: #e2bf76; }
  56%,85% { transform: translateX(0); background: #c2c9b9; }
}
@media(max-width:900px) {
 .funding h2, .match-copy h2, .story-pinned .match-copy h2 { font-size: 48px; }
 .funding-grid .funding-intro > p, .funding-grid .figure-context { font-size: 16px; }
}
@media(max-width:600px) {
 .funding-grid { min-height: 0; gap: 30px; }
 .funding-intro, .funding-figure { display: block; }
 .funding h2, .match-copy h2, .story-pinned .match-copy h2 { font-size: 44px; }
 .funding-grid .funding-intro > p, .funding-grid .figure-context { margin-top: 20px; font-size: 16px; }
}
@media(max-width:350px) {
 .funding h2, .match-copy h2, .story-pinned .match-copy h2 { font-size: 40px; }
}
/* Keep the active label readable against all three semantic colors. */
@keyframes effort-low { 0%,38%,100% { color:#d1b6b8; } 56%,85% { color:#35141e; } }
@keyframes effort-medium { 0%,12%,56%,100% { color:#d1b6b8; } 30%,38% { color:#35141e; } }
@keyframes effort-high { 0%,12%,100% { color:#35141e; } 30%,85% { color:#d1b6b8; } }
/* Shared chapter typography. Hero retains its display scale. */
.motion-home { --chapter-title: clamp(52px,5.6vw,84px); --chapter-subtitle: clamp(18px,1.45vw,22px); }
.motion-home :is(.section-heading h2,.funding h2,.match-copy h2,.focus-heading h2,.how-heading h2,.stories-heading h2,.faq-section h2,.closing h2,.hero-second h2) {
 font-size: var(--chapter-title); line-height: 1.12; letter-spacing: -.05em;
}
.motion-home :is(.hero-description,.section-heading>p,.funding-grid .funding-intro>p,.funding-grid .figure-context,.match-copy .animated-story>p,.match-copy .static-story>p,.focus-heading>p:not(.eyebrow),.how-heading>p,.stories-heading>p,.faq-section>div:first-child>p,.closing-actions>p) {
 font-size: var(--chapter-subtitle); line-height: 1.75;
}
.stories-heading { align-items: end; }
.stories-heading>p { max-width: 340px; }
/* Keep the six-card wall stable while the next interaction is evaluated. */
.student-story-grid { gap:30px; }
.student-story,.student-story:hover { transform:none; transition:box-shadow .3s,border-color .3s; }
.student-story { box-shadow:0 12px 32px #67462b0b,inset 0 1px 0 #fff9; }
.student-identity img { box-shadow:0 0 0 4px #fffdf8,0 0 0 5px #d7c4aa55; }
.student-award { position:relative; border-top-color:#cbb18f80; padding-top:22px; }
.student-award::before { content:''; position:absolute; top:-1px; left:0; width:52px; height:2px; background:#ad7b44; transform-origin:left; }
.student-award strong { color:#70472a; }
@media(hover:hover) and (pointer:fine) {
 .student-story:hover { border-color:#bda080; box-shadow:0 18px 38px #67462b16,inset 0 1px 0 #fff; }

}
@media(max-width:900px) { .motion-home { --chapter-title:56px; --chapter-subtitle:19px; } .student-story-grid{gap:24px;} }
@media(max-width:600px) { .motion-home { --chapter-title:44px; --chapter-subtitle:17px; } .student-story-grid{gap:22px;} }
@media(max-width:350px) { .motion-home { --chapter-title:40px; } }
.motion-off .student-story,.motion-off .student-story:hover { transform:none; }
@media(prefers-reduced-motion:reduce) { .student-story,.student-story:hover { transform:none; } .student-story::before { transition:none; } }
/* A composed final invitation, then a clear, useful footer. */
.closing { min-height:640px; padding-block:90px; background:radial-gradient(ellipse at 85% 45%,#63303e80,transparent 58%),linear-gradient(120deg,#270c17,#421723); }
.closing-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:36px; align-items:center; }
.closing-copy { position:relative; z-index:1; }
.closing h2 { max-width:850px; }
.closing-actions { margin-top:38px; justify-content:flex-start; }
.closing-actions .pill { background:linear-gradient(125deg,#efd5a1,#dfb66f); color:#35121e; border:1px solid #f1d9ac; box-shadow:inset 0 1px 0 #fff7dc88; min-height:58px; font-size:16px; }
.closing-actions .pill:hover { background:#f2d9ac; }
.closing-art { position:relative; width:100%; max-width:470px; justify-self:end; }
.closing-art::before { content:''; position:absolute; inset:20% 3% 4%; border-radius:50%; background:#e8bb7420; filter:blur(42px); }
.closing-art img { position:relative; width:100%; height:auto; filter:drop-shadow(0 28px 22px #13060d33); }
.closing-line { height:1px; background:#d6b379; transform:none; }
.footer { background:#f2ebdf; color:#35141e; padding:65px 0 32px; }
.footer-top { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,.7fr) minmax(0,.8fr) 48px; align-items:start; gap:50px; }
.footer-brand .wordmark { font-size:34px; gap:12px; letter-spacing:-1.5px; }
.footer-brand .wordmark img { width:40px; height:40px; border-radius:11px; }
.footer-brand>p { margin-top:22px; font:400 25px/1.4 var(--serif); color:#76594b; letter-spacing:-.02em; }
.footer-contact { display:inline-flex; align-items:center; gap:15px; margin-top:20px; min-height:44px; font-size:14px; color:#684e44; }
.footer-contact:hover { color:#35141e; }
.footer-column>h2 { font:600 14px/1.5 var(--sans); letter-spacing:.01em; color:#815d3c; margin:7px 0 17px; }
.footer .footer-column nav { display:grid; gap:2px; margin:0; }
.footer .footer-column nav a { font-size:16px; min-height:40px; justify-self:start; }
.footer .footer-column nav a:hover { color:#986836; text-decoration:underline; text-underline-offset:5px; }
.footer-back { width:48px; height:48px; display:grid; place-items:center; border:1px solid #bfa38280; border-radius:50%; transition:background .2s,border-color .2s; }
.footer-back:hover { background:#e7d7bf; border-color:#b1916c; }
.footer-back svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.4; }
.footer-bottom { margin-top:43px; padding-top:24px; border-top:1px solid #bba28355; font-size:12px; line-height:1.7; color:#80695f; padding-right:165px; gap:25px; }
@media(max-width:1100px) {
 .closing { min-height:550px; padding-block:80px; }
 .closing-layout { grid-template-columns:1.4fr 1fr; gap:24px; }
 .footer-top { gap:30px; grid-template-columns:minmax(0,1.4fr) .7fr .8fr 44px; }
 .footer-contact { font-size:12px; gap:8px; }
}
@media(max-width:700px) {
 .closing { min-height:0; padding:65px 0 38px; }
 .closing-layout { grid-template-columns:1fr; gap:30px; }
 .closing-art { max-width:260px; justify-self:center; }
 .closing-actions { margin-top:28px; }
 .closing-actions .pill { font-size:15px; min-height:54px; }
 .footer { padding:43px 0 82px; }
 .footer-top { grid-template-columns:1fr 1fr; gap:30px 25px; position:relative; }
 .footer-brand { grid-column:1 / -1; padding-right:40px; }
 .footer-brand .wordmark { font-size:31px; }
 .footer-brand>p { font-size:23px; margin-top:18px; }
 .footer-contact { font-size:13px; margin-top:14px; gap:10px; }
 .footer-back { position:absolute; right:0; top:0; width:42px; height:42px; }
 .footer-column>h2 { margin:0 0 12px; }
 .footer .footer-column nav a { font-size:15px; min-height:42px; }
 .footer-bottom { margin-top:28px; padding-top:22px; padding-right:0; display:grid; gap:9px; font-size:11px; }
}
@media(min-width:901px) and (max-width:1100px) { .masthead .nav-download { font-size:14px; } }
/* Bring the second hero headline closer to the card fan without moving the scene. */
.hero-second{margin-top:clamp(30px,5vh,64px)}
@media(max-width:900px){.hero-second{margin-top:28px}}
@media(max-width:600px){.hero-second{margin-top:20px}}
@media(min-width:901px) and (max-height:650px){.hero-second{margin-top:24px}}
/* The same scroll-driven story, arranged vertically on smaller screens. */
@media(max-width:1099px){
.story-pinned .match-sticky{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:22px;height:100svh;min-height:0;padding:90px 0 24px}
.story-pinned .match-copy .animated-story{min-height:0}
.story-pinned .match-copy .animated-story>p{margin-top:16px;max-width:650px}
.story-pinned .match-art{width:100%;max-width:590px;height:480px;min-height:0;flex:1;align-self:center;transform:none}
.story-pinned .match-card{width:100%;max-width:490px;margin-inline:auto}
.story-pinned .local-discovery{display:flex!important}
.story-pinned .cloud-card{width:calc(50% - 16px);min-height:0;padding:18px;}
.story-pinned .cloud-card img{height:40px;margin-bottom:12px}
.story-pinned .cloud-card strong{font-size:36px;margin-top:8px}
.story-pinned .cloud-card span{min-height:0}
.story-pinned .cloud-card small{margin-top:4px}
.story-pinned .match-card{padding:18px 22px}
.story-pinned .match-card-top{margin-bottom:12px}
.story-pinned .award-value{margin:12px 0}
.story-pinned .criteria-school{padding:10px 0}
.story-pinned .profile-demo{margin-top:10px}
.story-pinned .reason-list{margin-top:10px}
}
@media(max-width:600px){
.story-pinned .match-sticky{padding:78px 0 20px;gap:16px}
.story-pinned .match-copy .animated-story>p{margin-top:12px;max-width:none}
.story-pinned .match-art{max-width:420px}
.story-pinned .cloud-card{padding:14px 12px;border-radius:14px}
.story-pinned .cloud-card img{max-width:100px;width:100%;height:36px}
.story-pinned .cloud-card span{font-size:12px;line-height:1.4;min-height:34px}
.story-pinned .cloud-card strong{font-size:30px}
.story-pinned .cloud-card small{font-size:11px}
.story-pinned .local-orbit{width:240px;height:240px}
.story-pinned .local-orbit.orbit-b{width:320px;height:320px}
.story-pinned .local-discovery-card{width:220px;padding:20px}
.story-pinned .local-discovery-card strong{font-size:44px;margin:10px 0}
.story-pinned .local-route span{font-size:11px;padding:7px 9px}
.story-pinned .route-community{right:0;top:32%}
.story-pinned .route-school{top:1%}
.story-pinned .route-foundation{bottom:1%;left:0}
.story-pinned .match-card{padding:14px 16px}
.story-pinned .match-card h3{font-size:24px}
.story-pinned .award-value strong{font-size:38px}
.story-pinned .criteria-school>p{font-size:12px;line-height:1.6;margin-top:4px}
.story-pinned .criteria-label{font-size:12px}
.story-pinned .profile-controls{margin-top:6px}
.story-pinned .profile-controls button{min-height:36px;padding:6px 14px;font-size:13px}
.story-pinned .reason-list p{padding:7px 9px;font-size:12px}
.story-pinned .match-verdict{margin-top:7px;font-size:12px}
}
/* Closing invitation: staggered type and a gently unfurling illustration. */
@keyframes closing-type-in{from{opacity:0;transform:translateY(35px);clip-path:inset(100% 0 0)}to{opacity:1;transform:translateY(0);clip-path:inset(0)}}
@keyframes closing-art-in{from{opacity:0;transform:translate(65px,35px) rotate(9deg) scale(.88)}to{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}
@keyframes closing-button-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.closing-arrived h2>span{display:block;animation:closing-type-in .85s cubic-bezier(.2,.65,.25,1) both}
.closing-arrived h2>em{display:block;animation:closing-type-in .9s .13s cubic-bezier(.2,.65,.25,1) both}
.closing-arrived .closing-art img{animation:closing-art-in 1.2s .12s cubic-bezier(.2,.65,.25,1) both}
.closing-arrived .closing-actions{animation:closing-button-in .7s .35s ease-out both}
@media(prefers-reduced-motion:reduce){.closing-arrived h2>span,.closing-arrived h2>em,.closing-arrived .closing-art img,.closing-arrived .closing-actions{animation:none}}
@media(min-width:601px) and (max-width:1099px) and (max-height:760px){
.story-pinned .match-sticky{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:26px;align-items:center}
.story-pinned .match-art{height:100%;max-height:550px;display:flex;align-items:center}
.story-pinned .match-card{padding:16px}
.story-pinned .local-orbit{width:220px;height:220px}
.story-pinned .local-orbit.orbit-b{width:290px;height:290px}
.story-pinned .local-discovery-card{width:210px;padding:18px}
.story-pinned .local-route span{font-size:11px;padding:7px}
.story-pinned .route-community{right:0}
.story-pinned .cloud-card{padding:12px}
.story-pinned .cloud-card img{max-width:100%;height:34px}
.story-pinned .cloud-card strong{font-size:30px}
}
@media(max-width:600px) and (max-height:750px){
.story-pinned .match-sticky{gap:12px;padding-bottom:12px}
.story-pinned .match-card{padding:12px}
.story-pinned .match-card-top{margin-bottom:8px}
.story-pinned .match-card h3{font-size:22px}
.story-pinned .award-value{margin:8px 0;gap:14px}
.story-pinned .award-value strong{font-size:34px}
.story-pinned .criteria-school{padding:6px 0}
.story-pinned .profile-demo,.story-pinned .reason-list{margin-top:6px}
.story-pinned .match-verdict{margin-top:4px}
.story-pinned .match-copy .animated-story>p{line-height:1.5}
}
@media(min-width:601px) and (max-width:1099px) and (max-height:760px){
.story-pinned .match-card h3{font-size:28px}
.story-pinned .award-value strong{font-size:48px}
.story-pinned .criteria-school>p{font-size:14px;line-height:1.6}
.story-pinned .profile-controls button{min-height:38px;padding:7px 14px}
.story-pinned .match-art{align-self:stretch}
}
/* Give the third-stage award breathing room below the supporting copy. */
@media(min-width:601px) and (max-width:1099px) and (min-height:761px){
.story-pinned .match-card{margin-top:24px}
}
@media(max-width:600px){.story-pinned .match-card{margin-top:20px}}
@media(max-width:600px) and (max-height:750px){.story-pinned .match-card{margin-top:12px}}
@media(max-width:600px) and (max-height:750px){
.story-pinned .match-card{padding-block:8px}
.story-pinned .match-card-top{margin-bottom:6px}
.story-pinned .award-value{margin-block:5px}
.story-pinned .criteria-school{padding-block:4px}
.story-pinned .match-verdict{margin-top:2px}
}
