.scroll-progress { position: fixed; top: 0; left: 0; z-index: 200; width: 100%; height: 4px; background: var(--orange); transform-origin: left; pointer-events: none; }
.site-header { position: sticky; top: 0; transition: height .35s ease, box-shadow .35s ease; }
.site-header::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width .45s ease; }
.site-header:hover::after { width: 100%; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--orange); transition: right .25s ease; }
.site-header nav a:hover::after { right: 0; }

.js-ready .reveal-ready:not(.is-visible) { opacity: 0; transform: translateY(46px); }
.reveal-ready { transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.stats > div:nth-child(2), .involve-grid > *:nth-child(2) { transition-delay: .1s; }
.stats > div:nth-child(3), .involve-grid > *:nth-child(3) { transition-delay: .2s; }

.hero-image { transform: scale(1.035); animation: hero-breathe 12s ease-in-out infinite alternate; }
.hero-content > * { animation: hero-enter .8s both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-breathe { to { transform: scale(1.09); } }

.project-card, .involve-grid a { overflow: hidden; transition: transform .4s ease, box-shadow .4s ease, background .25s ease; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 28px 70px rgba(8,43,89,.15); }
.project-card img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.project-card:hover img { transform: scale(1.045); filter: saturate(1.08); }
.involve-grid a:hover { transform: translateY(-8px); box-shadow: 0 18px 50px rgba(8,43,89,.1); }
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateX(-102%); transition: transform .35s ease; }
.button:hover::before { transform: none; }

.story-carousel { display: grid; grid-template-columns: .24fr 1fr; gap: 30px 7vw; align-items: start; max-width: 1050px; }
.story-count { display: flex; align-items: baseline; gap: 7px; color: #85b6ed; padding-top: 15px; }
.story-count strong { font-size: 58px; letter-spacing: -.08em; }
.story-count span { font-size: 13px; opacity: .6; }
.story-carousel blockquote { margin: 0; min-height: 330px; padding: 50px; background: #10396a; display: flex; flex-direction: column; justify-content: space-between; animation: story-in .45s ease both; }
.story-carousel blockquote > p { max-width: 780px; margin: 0; font-family: var(--font-merienda), cursive; font-size: clamp(22px,3vw,34px); line-height: 1.6; }
.story-carousel footer { display: flex; flex-direction: column; gap: 6px; margin-top: 35px; }
.story-carousel footer span { font-size: 11px; opacity: .65; }
.story-controls { grid-column: 2; display: flex; align-items: center; justify-content: space-between; }
.story-controls > button { width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: white; background: transparent; font-size: 20px; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.story-controls > button:hover { color: var(--navy); background: white; transform: scale(1.08); }
.story-controls > div { display: flex; gap: 9px; }
.story-controls > div button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.3); cursor: pointer; transition: width .25s, background .25s; }
.story-controls > div button.active { width: 34px; background: var(--orange); }
@keyframes story-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

.menu-toggle { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; color: white; background: var(--navy); opacity: 0; visibility: hidden; clip-path: circle(0 at calc(100% - 38px) 62px); transition: clip-path .7s cubic-bezier(.77,0,.18,1), opacity .2s, visibility .7s; }
.mobile-menu.open { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 38px) 62px); }
.mobile-menu nav { width: min(86vw, 620px); display: flex; flex-direction: column; gap: 0; }
.mobile-menu nav a { display: grid; grid-template-columns: 40px 1fr 30px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.17); font-size: clamp(20px,4vh,34px); font-weight: 700; }
.mobile-menu nav small { color: #85b6ed; font-size: 9px; letter-spacing: .1em; }
.mobile-menu nav span { color: var(--orange); transition: transform .2s; }
.mobile-menu nav a:hover span { transform: translateX(7px); }
.menu-orbit { position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; animation: orbit 14s linear infinite; }
.menu-orbit::after { content: ""; position: absolute; top: 30px; left: 75px; width: 17px; height: 17px; border-radius: 50%; background: var(--orange); }
@keyframes orbit { to { transform: rotate(360deg); } }

.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border: 0; border-radius: 50%; color: white; background: var(--orange); font-size: 20px; cursor: pointer; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .25s, transform .25s; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

@media(max-width:900px) {
  .menu-toggle { position: fixed; top: 20px; right: 18px; z-index: 180; width: 52px; height: 52px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 0; border-radius: 50%; color: white; background: var(--orange); cursor: pointer; }
  .menu-toggle span { width: 20px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
  .menu-toggle b { position: absolute; top: 57px; color: var(--navy); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle[aria-expanded="true"] b { color: white; }
  .site-header .button-small { margin-right: 60px; }
  .story-carousel { grid-template-columns: 1fr; }
  .story-count { display: none; }
  .story-controls { grid-column: 1; }
}
@media(max-width:560px) {
  .site-header .button-small { display: none; }
  .story-carousel blockquote { padding: 30px 24px; min-height: 370px; }
  .mobile-menu nav a { font-size: 21px; padding: 10px 0; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
