/* Teacher review: native page scrolling, deliberate motion and clear project editing. */
html { scroll-padding-top: 100px; }
.journey { height: 100svh; min-height: 540px; }
.journey .stage { position: relative; height: 100%; min-height: inherit; }
.hero-content { inset: 0; height: 100%; }
.hero-intro-label,.hero-disciplines { position: absolute; left: 5vw; right: 5vw; text-align: center; color: var(--blue,#0051ff); }
.hero-intro-label { top: 17%; font-size: 10px; letter-spacing: .14em; }
.hero-disciplines { bottom: 19%; font-size: clamp(12px,1.3vw,17px); }
.hero-explore { position: absolute; bottom: 42px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 20px; color: #0051ff; font-size: 12px; text-decoration: none; white-space: nowrap; z-index: 5; }
.hero-explore span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d7e1fa; border-radius: 50%; font-size: 20px; }
.journey .avatar-scene { width: min(66vw,59svh,650px); height: min(66vw,59svh,650px); top: 49%; pointer-events: none; }
.w-position { transform: none; }
.portfolio .project-stage { position: relative; inset: auto; padding: 70px 0 44px; display: block; height: auto; min-height: 0; opacity: 1; visibility: visible; pointer-events: auto; transform: none; background: #fff; overflow: hidden; scroll-margin-top: 0; }
.project-stage .projects-heading { position: static; margin: 0 5vw; padding: 0; width: auto; }
.project-index { margin: 20px 5vw 0; display: flex; gap: 8px; flex-wrap: wrap; }
.project-index button { padding: 7px 12px; border: 1px solid transparent; background: transparent; color: #66728a; border-radius: 8px; font: inherit; font-size: 11px; cursor: pointer; min-height: 36px; }
.project-index button span { margin-right: 7px; font-size: 9px; opacity: .6; }
.project-index button[aria-current] { border-color: #d8e4ff; color: #0051ff; background: #f5f8ff; }
.project-index button:hover { color: #0051ff; }
.project-stage .project-viewport { position: relative; top: auto; height: auto; margin-top: 18px; padding: 22px 0 32px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 5vw; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #abc4ff transparent; perspective: none; isolation: auto; touch-action: pan-x pan-y; }
body:not(.reduced) .project-stage .project-track { --card-width: min(62vw,660px); position: relative; display: flex; width: max-content; height: auto; gap: 28px; padding: 0 calc((100vw - var(--card-width))/2); transform: none; transform-style: flat; }
.project-stage .project-card { position: relative; top: auto; left: auto; width: var(--card-width); flex: 0 0 var(--card-width); margin: 0; scroll-snap-align: center; scroll-margin-top: 110px; opacity: 1; visibility: visible; transform: perspective(1200px) rotateY(calc(var(--card-distance,0)*-5deg)); transition: box-shadow .3s; will-change: auto; }
body:not(.reduced) .project-stage .card-media { height: auto; aspect-ratio: 1.7; min-height: 0; max-height: none; }
.project-stage .card-media img { width: 100%; height: 100%; object-fit: contain; background: #f3f5fa; }
.project-stage .card-info { padding: 18px 12px; }
.project-stage .card-info h3 { font-size: clamp(20px,2vw,28px); }
.project-stage .card-info p { font-size: 10px; }
.project-stage .project-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px; height: auto; padding: 24px 5vw 0; margin: 0; }
.project-footer p,.project-footer a { font-size: 11px; color: #657188; text-decoration: none; }
.project-footer a { color: #0051ff; }
.project-footer .journey-progress { grid-column: 1/-1; height: 25px; width: 100%; }
.project-footer .curve-track,.project-footer .curve-fill { stroke-width: 2; }
.theme-dark .project-stage { background: #0051ff; }
.theme-dark .hero-intro-label,.theme-dark .hero-disciplines,.theme-dark .hero-explore,.theme-dark .project-index button,.theme-dark .project-footer a,.theme-dark .project-footer p { color: white; }
.theme-dark .project-index button[aria-current] { background: #ffffff18; border-color: #ffffff66; }
.contact-field small { font-size: 10px; font-weight: 400; color: #6c7890; }
.contact-email-fallback { display: inline-flex; width: fit-content; font-size: 12px; margin-top: 12px; }
.contact-status:empty { display: none; }
.contact-form[data-state="error"] .contact-status { color: #bc2945; }
.contact-form[data-state="success"] .contact-status { color: #087b53; }
.contact-status a { color: inherit; }
@media(max-width:700px) {
 .journey { min-height: 520px; }
 .hero-intro-label { top: 20%; font-size: 8px; }
 .journey .avatar-scene { width: min(87vw,55svh); height: min(87vw,55svh); }
 .hero-disciplines { bottom: 23%; }
 .hero-explore { bottom: 48px; }
 .portfolio .project-stage { padding-top: 28px; }
 .project-stage .projects-heading { gap: 15px; flex-wrap: wrap; }
 .project-filters { gap: 6px; }
 .project-stage .project-filters button { min-height: 38px; padding: 8px 11px; }
 .project-index { margin-top: 14px; gap: 0; }
 .project-index button { padding: 7px 9px; font-size: 10px; min-height: 36px; }
 body:not(.reduced) .project-stage .project-track { --card-width: 84vw; gap: 16px; }
 body:not(.reduced) .project-stage .card-media { aspect-ratio: 1.25; }
 .project-stage .card-info { padding: 14px 6px; }
 .project-stage .card-info p { font-size: 8px; line-height: 1.6; }
 .project-stage .project-footer { padding-top: 18px; }
}
@media(max-height:560px) and (min-width:701px) { .hero-intro-label { top: 20%; }.hero-disciplines { bottom: 18%; }.hero-explore { bottom: 18px; }.hero-explore span { width: 32px; height: 32px; }.portfolio .project-stage { padding-top: 35px; } }
@media(prefers-reduced-motion:reduce) { .project-stage .project-card { transform: none; }.project-stage .project-viewport { scroll-behavior: auto; } }
