
/* Added portfolio case study */
.case-hero>img{width:100%;max-height:540px;object-fit:cover;border-radius:18px;display:block}
.case-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.case-facts>div{background:var(--white);border:1px solid var(--line);color:var(--ink);border-radius:12px;padding:18px}
.case-facts span{display:block;color:var(--muted);font-size:12px;margin-bottom:8px}.case-facts strong{font-size:15px}
.hackathon-experience-video{width:min(100%,340px);margin:0 auto 52px}
.hackathon-experience-video iframe{display:block;width:100%;aspect-ratio:9/16;border:0;border-radius:12px;background:var(--sand);box-shadow:0 10px 28px #1228251a}
.hackathon-experience-video figcaption{margin-top:10px;font-size:12px;line-height:1.5;color:var(--muted);text-align:center}
.case-heading{margin-top:25px}.case-gallery{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:55px 0}
.case-gallery figure{margin:0}.case-gallery img{display:block;width:100%;height:310px;object-fit:cover;border-radius:13px}.case-gallery figcaption{font-size:13px;opacity:.75;margin-top:8px}
.case-note{margin-bottom:36px}.case-note p{max-width:900px}
@media(max-width:700px){.case-facts,.case-gallery{grid-template-columns:1fr}.case-gallery img{height:auto;aspect-ratio:16/10;object-fit:cover}}
/* Event snapshots overlap the cards without covering the introduction. */
.hackathon-work-grid{margin-top:100px;gap:24px}
.hackathon-work-card{position:relative;min-width:0;padding:28px;isolation:isolate}
.hackathon-work-card .num{max-width:40%;margin-bottom:82px;font-size:11px}
.hackathon-work-photo{position:absolute;z-index:1;top:-64px;right:14px;width:55%;max-width:210px;height:auto;border:5px solid #fff;border-bottom-width:12px;border-radius:3px;box-shadow:0 10px 24px #102b2026;transform:rotate(6deg)}
.hackathon-work-card:nth-child(2) .hackathon-work-photo{transform:rotate(-7deg)}
.hackathon-work-card:nth-child(3) .hackathon-work-photo{transform:rotate(5deg)}
@media(min-width:601px) and (max-width:1000px){
 .hackathon-work-grid{grid-template-columns:1fr;gap:92px}
 .hackathon-work-card{min-height:220px;padding-right:270px}
 .hackathon-work-photo{width:210px;top:-32px;right:20px}
 .hackathon-work-card .num{max-width:none;margin-bottom:28px}
}
@media(max-width:600px){
 .hackathon-work-grid{grid-template-columns:1fr;margin-top:74px;gap:88px}
 .hackathon-work-card{padding:24px}
 .hackathon-work-photo{top:-48px;right:18px;width:53%;max-width:180px}
 .hackathon-work-card .num{margin-bottom:90px;font-size:10px}
}

/* Hackathon introduction photo. */
.hackathon-intro-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:48px;align-items:center}
.hackathon-intro-copy{min-width:0}
.hackathon-intro-photo{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:18px}
@media(max-width:900px){.hackathon-intro-grid{grid-template-columns:1fr;gap:32px}.hackathon-intro-photo{max-width:560px;aspect-ratio:1600/1054}}

/* Retro title gives the event gallery its own breathing room. */
.hackathon-gallery-title{font-family:'Press Start 2P','Courier New',monospace;font-size:clamp(14px,2vw,24px);font-weight:400;line-height:1.9;text-align:center;color:var(--accent);margin:64px auto 32px;max-width:960px;letter-spacing:0;text-wrap:balance}
.hackathon-gallery-title + .case-gallery{margin-top:0}
@media(max-width:600px){.hackathon-gallery-title{margin-top:48px;margin-bottom:24px;line-height:2}}

.hackathon-results-link{margin:-20px 0 48px}.hackathon-results-link .button{line-height:1.6;text-align:center}
