/* First-stage homepage additions. Shared brand and legal styles stay in styles.css. */
#student-projects, #game-creation, #app-development { scroll-margin-top: 96px; }
.showcase-hero { min-height: min(820px, 100svh); padding: calc(var(--nav-h) + 52px) 0 60px; }
.showcase-hero .hero-grid { gap: 56px; grid-template-columns: 1fr 1fr; }
.showcase-hero .hero-title { font-size: clamp(48px, 5.8vw, 80px); }
.showcase-hero .hero-sub { font-size: 18px; margin: 0 0 26px; }
.showcase-hero .hero-actions { margin-bottom: 30px; }
.showcase-hero .hero-meta { gap: 18px 24px; padding-top: 20px; }
.showcase-hero .hero-meta .val { font-size: 13px; }
.student-feature { min-width: 0; }
.student-feature h2 { font-size: clamp(19px, 2vw, 25px); font-weight: 500; margin: 0 0 20px; }
.student-poster { display: block; position: relative; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--ink); color: white; overflow: hidden; text-align: left; aspect-ratio: 16 / 9; }
.student-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.student-poster:hover img { transform: scale(1.025); }
.student-poster::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; }
.student-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; padding-left: 3px; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(255,255,255,.2); z-index: 1; }
.student-watch { position: absolute; bottom: 16px; left: 20px; right: 20px; font-size: 13px; display: flex; justify-content: space-between; z-index: 1; }
.student-feature-caption { margin: 16px 0 0; font-size: 15px; font-weight: 500; }
.student-feature-caption span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.student-projects { padding: 72px 0 80px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.student-projects .h-section { margin-top: 16px; font-size: clamp(28px, 3.5vw, 42px); }
.student-intro { color: var(--ink-3); margin: 20px 0 36px; }
.student-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.student-name { font-size: 12px; letter-spacing: .04em; color: var(--ink-3); margin: 22px 0 8px; }
.student-card { display: flex; flex-direction: column; min-width: 0; }
.student-card h3 { font-size: 21px; font-weight: 500; margin: 0; }
.student-description { font-size: 15px; line-height: 1.8; color: var(--ink-3); margin: 14px 0 24px; }
.student-course { color: var(--accent); font-size: 14px; margin-top: auto; align-self: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.student-course:hover { border-color: var(--accent); }
.student-dialog { padding: 18px; border: 1px solid var(--line); width: min(960px, calc(100vw - 32px)); max-height: 90svh; background: var(--bg); color: var(--ink); }
.student-dialog::backdrop { background: rgba(15,25,32,.8); }
.student-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.student-external { font-size: 13px; text-decoration: underline; }
.student-close { background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 26px; width: 44px; height: 44px; }
.student-player { aspect-ratio: 16 / 9; background: var(--ink); }
.student-player iframe { width: 100%; height: 100%; border: 0; }
.student-poster:focus-visible, .student-close:focus-visible, .student-course:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
@media (max-width: 980px) {
 .showcase-hero { min-height: auto; padding: calc(var(--nav-h) + 28px) 0 36px; }
 .showcase-hero .hero-grid { grid-template-columns: 1fr; gap: 26px; }
 .showcase-hero .hero-grid > div:first-child { display: contents; }
 .showcase-hero .hero-eyebrow { grid-row: 1; margin: 0; font-size: 10px; }
 .showcase-hero .hero-title { grid-row: 2; margin: 0; font-size: clamp(36px, 7vw, 62px); }
 .showcase-hero .hero-sub { grid-row: 3; margin: 0; font-size: 16px; }
 .showcase-hero .student-feature { grid-row: 4; }
 .showcase-hero .hero-actions { grid-row: 5; margin: 0; }
 .showcase-hero .hero-meta { display: none; }
 .student-feature h2 { margin-bottom: 12px; font-size: 20px; }
 .student-feature .student-poster { max-width: 620px; }
 .student-grid { gap: 22px; }
}
@media (max-width: 600px) {
 .showcase-hero .hero-grid { gap: 16px; }
 .showcase-hero .hero-title .line { display: inline; white-space: normal; }
 .showcase-hero .hero-title { font-size: 32px; line-height: 1.2; letter-spacing: -.04em; }
 html[lang="en"] .showcase-hero .hero-title { font-size: 38px; }
 .showcase-hero .hero-sub { font-size: 14px; line-height: 1.65; }
 .showcase-hero .hero-eyebrow { letter-spacing: .12em; }
 .student-feature-caption { margin-top: 10px; font-size: 14px; }
 .student-feature-caption span { font-size: 12px; }
 .student-feature h2 { font-size: 18px; }
 .student-grid { grid-template-columns: 1fr; gap: 38px; }
 .student-projects { padding: 44px 0 52px; }
 .student-intro { font-size: 15px; }
 .student-dialog { padding: 10px; }
 .student-watch { bottom: 12px; left: 14px; right: 14px; }
 .showcase-hero .cta-btn { font-size: 12px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .student-poster img { transition: none; }
 .showcase-hero .reveal { opacity: 1; transform: none; transition: none; }
 .showcase-hero .pulse { animation: none; }
}
@media (max-width: 600px) {
 .nav .brand { font-size: 10px; letter-spacing: .14em; white-space: nowrap; gap: 7px; }
 .nav-right { gap: 12px; flex-shrink: 0; }
 .nav-right .cta-btn { white-space: nowrap; padding: 9px 12px; font-size: 12px; }
 .nav-right .lang-toggle { font-size: 11px; gap: 6px; }
 html[lang="zh-CN"] .showcase-hero .hero-title .line { display: block; }
}
@media (max-width: 360px) {
 .nav-right .cta-btn { padding: 8px; }
 .nav-right .cta-btn .arrow { display: none; }
 .nav .brand { letter-spacing: .06em; font-size: 9px; }
 .nav-right { gap: 8px; }
}
@media (max-width: 600px) {
 .who-grid > *, .who-stats > * { min-width: 0; }
 .who-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .who-stats .lbl { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
 .who-stats { gap: 12px; }
 .who-stat .v { font-size: 28px; }
}
@media (min-width: 601px) and (max-width: 980px) {
 .phase-node:first-of-type .pn-meta { transform: translateX(-20%); }
 .phase-node:last-of-type .pn-meta { transform: translateX(-80%); }
}

/* Real project cards have no play icon: the image leads to the project itself. */
.project-cover { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.project-cover-website img { object-fit: cover; object-position: top; }
.project-cover:hover img { transform: scale(1.025); }
.project-cover:focus-visible, .student-more-videos:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
.student-all { text-align: right; margin: 36px 0 0; }
.student-more-videos { display: inline-block; color: var(--accent); font-size: 13px; margin-top: 14px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.student-page-main { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 72px; }
.student-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-3); font-size: 13px; margin-bottom: 40px; }
.student-breadcrumb a:hover { text-decoration: underline; }
.student-page h1 { font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.25; margin: 16px 0; overflow-wrap: anywhere; }
.student-page .student-grid { row-gap: 48px; margin-top: 36px; }
.student-page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 28px; font-size: 13px; color: var(--ink-3); }
.project-author { color: var(--accent); }
.project-artwork { max-width: 1000px; margin: 32px 0; }
.project-artwork img { display: block; max-width: 100%; height: auto; }
.project-stage { max-width: 1000px; margin: 32px 0; }
.project-canvas { max-width: 100%; overflow: hidden; position: relative; }
.project-preview { display: block; width: 100%; max-height: 65svh; object-fit: contain; object-position: left center; }
.project-canvas.is-running iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; max-width: none; }
.project-subheading { font-size: 22px; font-weight: 500; margin: 32px 0 20px; }
.project-screenshots { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.project-screenshots img { width: calc(75% - 12px); border: 1px solid var(--line); }
.project-screenshots img + img { width: calc(25% - 12px); }
.project-return { margin-top: 48px; }
.student-video-title { font-size: 21px; font-weight: 500; margin: 0; }
@media (max-width: 600px) {
 .student-more-videos { margin-top: 8px; }
 .student-page-main { padding-top: calc(var(--nav-h) + 24px); }
 .student-breadcrumb { margin-bottom: 28px; }
 .project-screenshots { flex-direction: column; }
 .project-screenshots img { width: 100%; }
 .project-screenshots img + img { width: min(100%, 280px); align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .project-cover img { transition: none; } }
@media (max-width: 360px) {
 .showcase-hero .hero-grid { gap: 12px; }
 html[lang="en"] .student-feature h2 { font-size: 15px; }
}
