:root {
  --navy-950: #172554;
  --navy-900: #1e3a8a;
  --navy-800: #263b70;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #172554;
  --muted: #5f677b;
  --line: #e6e8ee;
  --surface: #ffffff;
  --soft-shadow: 0 18px 42px rgba(23, 37, 84, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 104px 0; }
.eyebrow { margin: 0 0 12px; color: var(--green-700); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-950); line-height: 1.08; }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); letter-spacing: -.045em; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--green-600); border-radius: .45rem; padding: .82rem 1.25rem; background: var(--green-600); color: white; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.button:hover { background: var(--green-700); transform: translateY(-2px); }
.button-small { padding: .58rem .95rem; font-size: .88rem; }
.button-light { background: white; border-color: white; color: var(--green-700); }
.button-light:hover { background: var(--green-50); }
.text-link { display: inline-flex; gap: .4rem; color: var(--green-700); font-weight: 800; }
.text-link:hover { color: var(--navy-900); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--navy-950); font-size: 1.55rem; font-weight: 900; letter-spacing: .06em; }
.brand-dot { color: var(--green-600); }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 25px; }
.nav-links a, .nav-signin { font-size: .92rem; font-weight: 750; }
.nav-links a:hover, .nav-signin:hover { color: var(--green-700); }
.mobile-nav { display: none; }

.hero { position: relative; min-height: calc(100vh - 79px); overflow: hidden; display: grid; align-content: center; padding: 72px 0 0; background: linear-gradient(180deg, #fff 0%, #fcfffd 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero h1 { max-width: 760px; margin: 0 auto 28px; font-size: clamp(3rem, 6vw, 5.25rem); letter-spacing: -.055em; }
.hero-copy { max-width: 620px; margin: 0 auto 28px; color: var(--navy-800); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; }
.hero-art { position: absolute; width: 24vw; max-width: 360px; opacity: .92; pointer-events: none; }
.hero-art img { width: 100%; height: auto; object-fit: contain; }
.hero-art-left { left: -8vw; top: 8%; }
.hero-art-right { right: -8vw; top: 16%; }
.hero-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: clamp(50px, 7vh, 85px) auto 30px; max-width: 1080px; text-align: left; }
.hero-step { padding: 27px 22px; border: 1px solid #edf0f4; border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: var(--soft-shadow); }
.step-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: .72rem; font-weight: 900; }
.hero-step h2 { margin-bottom: 9px; font-size: 1.15rem; letter-spacing: -.02em; }
.hero-step p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.sponsor-ticker { position: relative; z-index: 2; overflow: hidden; padding: 18px 0 22px; border-top: 1px solid var(--line); background: white; }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 58px; padding-left: 2rem; color: #7c8190; font-size: 1.25rem; font-weight: 800; animation: ticker 28s linear infinite; }
.ticker-track span { white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

.stats-section { background: white; border-top: 1px solid var(--line); }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: none; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat-card { min-height: 154px; padding: 24px 18px; border: 1px solid #e8edf0; border-top: 3px solid var(--green-500); border-radius: 10px; background: white; }
.stat-card strong { display: block; margin-bottom: 7px; color: var(--navy-950); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; }
.stat-card span { color: var(--muted); font-size: .85rem; font-weight: 700; }

.mission-section { background: var(--green-50); }
.vision-section { background: white; }
.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-grid-reverse { grid-template-columns: 1.1fr .9fr; }
.image-panel { min-height: 390px; display: grid; place-items: center; border-radius: 24px; color: white; font-weight: 900; letter-spacing: .1em; text-align: center; box-shadow: var(--soft-shadow); }
.image-panel-mission { background: linear-gradient(145deg, rgba(23,37,84,.35), rgba(22,163,74,.75)), linear-gradient(145deg, var(--navy-900), var(--green-600)); }
.image-panel-vision { background: linear-gradient(145deg, #1f6b50, var(--green-600)); }
.image-panel-photo { overflow: hidden; background: var(--navy-950); line-height: 0; }
.image-panel-photo img { display: block; width: 100%; height: 100%; min-width: 100%; min-height: 100%; object-fit: cover; }
.copy-panel p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.04rem; }
.vision-rule { width: 64px; height: 3px; margin: 28px 0 18px; background: var(--green-500); }
.vision-note { color: var(--navy-950) !important; font-size: 1.18rem !important; font-weight: 750; }

.leadership-section { background: #fbfcfe; }
.leadership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.leader-card h3 { margin: 17px 0 5px; font-size: 1.06rem; letter-spacing: -.02em; }
.leader-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.leader-photo { aspect-ratio: 1 / 1.08; overflow: hidden; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(140deg, #d8f4df, #a0d7b0); color: var(--navy-950); font-size: 2.3rem; font-weight: 900; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo-one { background: linear-gradient(145deg, #e2f2e7, #6fb78b); }
.leader-photo-two { background: linear-gradient(145deg, #d8e6fb, #89b8dc); }
.leader-photo-three { background: linear-gradient(145deg, #fce5b4, #e5a25f); }
.leader-photo-four { background: linear-gradient(145deg, #e5e1f8, #9b94cc); }

.cta-section { padding: 82px 0; background: var(--green-600); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cta-card { padding: clamp(32px, 5vw, 56px); border-radius: 18px; background: #0e6332; color: white; }
.cta-card-outline { border: 1px solid rgba(255,255,255,.55); background: transparent; }
.cta-card h2 { max-width: 480px; color: white; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.cta-card p:not(.eyebrow) { max-width: 460px; color: rgba(255,255,255,.85); }
.cta-card .eyebrow { color: #c7f9d5; }

.site-footer { padding: 72px 0 22px; background: var(--navy-950); color: #d6ddf1; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 48px; padding-bottom: 50px; }
.brand-footer { color: white; }
.site-footer p { max-width: 420px; color: #afbddc; }
.site-footer h2 { margin-bottom: 15px; color: white; font-size: 1rem; letter-spacing: 0; }
.site-footer section:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover { color: var(--green-500); }
.footer-bottom { padding-top: 21px; border-top: 1px solid rgba(255,255,255,.14); color: #91a0c2; font-size: .82rem; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .mobile-nav { display: block; order: 4; }
  .mobile-nav summary { cursor: pointer; list-style: none; font-weight: 800; }
  .mobile-nav-panel { position: absolute; right: 24px; top: 66px; display: grid; min-width: 210px; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--soft-shadow); }
  .hero { padding-top: 60px; }
  .hero-art { opacity: .24; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .split-grid, .split-grid-reverse { grid-template-columns: 1fr; }
  .split-grid-reverse .copy-panel { order: 1; }
  .split-grid-reverse .image-panel { order: 2; }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 32px, 1120px); }
  .site-nav { min-height: 66px; gap: 14px; }
  .nav-actions .button { display: none; }
  .hero { min-height: auto; padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-steps, .cta-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-steps { gap: 14px; margin-top: 46px; }
  .hero-step { padding: 20px; }
  .ticker-track { gap: 36px; font-size: 1rem; }
  .section { padding: 72px 0; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 120px; }
  .image-panel { min-height: 270px; }
  .leadership-grid { gap: 14px; }
  .cta-section { padding: 54px 0; }
}

/* KIUP homepage refinement: mission-led copy, five-second sponsor snapshots,
   and touch-friendly leadership cards. */
.hero { padding-top: 42px; }
.hero h1 { max-width: 850px; font-size: clamp(2.9rem, 5.6vw, 5rem); }
.hero-copy { max-width: 690px; }
.hero-steps { margin: clamp(28px, 4vh, 48px) auto 20px; }
.hero-step { border-color: rgba(21, 128, 61, .14); }
.sponsor-showcase { position: relative; z-index: 2; width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 10px 0 20px; text-align: center; }
.sponsor-caption { margin: 0 0 10px; color: #8990a0; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.sponsor-carousel { min-height: 74px; }
.sponsor-slide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 5vw, 68px); min-height: 74px; animation: sponsor-snapshot .55s ease both; }
.sponsor-slide[hidden] { display: none; }
.sponsor-logo { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 64px; color: #606979; font-size: clamp(1.05rem, 2vw, 1.55rem); font-weight: 850; letter-spacing: -.04em; }
.sponsor-logo img { width: auto; max-width: 100%; max-height: 58px; object-fit: contain; filter: grayscale(1); opacity: .76; transition: filter .2s ease, opacity .2s ease, transform .2s ease; }
.sponsor-logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
.sponsor-logo-wordmark { color: #727987; }
.sponsor-dots { display: flex; justify-content: center; gap: 7px; min-height: 10px; margin-top: 4px; }
.sponsor-dots:empty { display: none; }
.sponsor-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #c8ced8; cursor: pointer; transition: width .2s ease, background .2s ease; }
.sponsor-dots button.is-active { width: 20px; border-radius: 9px; background: var(--green-600); }
@keyframes sponsor-snapshot { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.leader-card { cursor: pointer; outline: none; }
.leader-photo { transform-origin: center; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-radius .35s ease; }
.leader-card:hover .leader-photo,
.leader-card:focus .leader-photo,
.leader-card:focus-within .leader-photo,
.leader-card.is-expanded .leader-photo { transform: scale(1.08); border-radius: 30px; box-shadow: 0 20px 36px rgba(23, 37, 84, .22); }
.leader-card:hover h3,
.leader-card:focus h3,
.leader-card.is-expanded h3 { color: var(--green-700); }

@media (max-width: 620px) {
  .hero { padding-top: 34px; }
  .sponsor-showcase { width: min(100% - 32px, 960px); padding-bottom: 14px; }
  .sponsor-slide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; min-height: 100px; }
  .sponsor-logo { min-height: 42px; font-size: 1rem; }
  .sponsor-logo img { max-height: 39px; }
}

/* Showcase archive */
.showcase-registration-hero { position: relative; min-height: min(680px, calc(100vh - 79px)); display: flex; align-items: center; overflow: hidden; background: var(--navy-950); color: white; }
.showcase-registration-image { position: absolute; inset: 0; opacity: .24; background: center / cover no-repeat url("../images/showcase/hero-2026.b3c991c1ff12.webp"); transform: scale(1.03); }
.showcase-registration-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-950) 5%, rgba(23,37,84,.78) 46%, rgba(23,37,84,.25)); }
.showcase-registration-content { position: relative; z-index: 1; padding: 88px 0 138px; }
.showcase-registration-content .eyebrow { color: #bbf7d0; }
.showcase-registration-content h1 { max-width: 760px; margin-bottom: 20px; color: white; font-size: clamp(3rem, 7vw, 6.2rem); letter-spacing: -.065em; }
.showcase-registration-content > p:not(.eyebrow) { max-width: 580px; margin-bottom: 30px; color: #e0e7ff; font-size: 1.13rem; }
.competition-note { position: absolute; z-index: 1; right: max(24px, calc((100% - 1120px) / 2)); bottom: 28px; max-width: 420px; margin: 0; padding-left: 16px; border-left: 3px solid var(--green-500); color: #d9e4ff; font-size: .88rem; }

.showcase-intro { padding-bottom: 62px; }
.showcase-intro-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: end; }
.showcase-intro-grid h2 { max-width: 780px; }
.showcase-intro-grid > p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.showcase-search-section { padding: 0 0 80px; }
.archive-search { padding: 28px; border-radius: 16px; background: var(--green-50); }
.archive-search label { display: block; margin-bottom: 12px; color: var(--navy-950); font-size: 1.12rem; font-weight: 850; }
.archive-search > div { display: flex; gap: 10px; }
.archive-search input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #bddfc7; border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.archive-search input:focus { outline: 3px solid rgba(34,197,94,.24); border-color: var(--green-600); }
.search-results { margin-top: 18px; }
.search-results > p { color: var(--muted); }
.search-results ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.search-results li { padding: 15px; border: 1px solid var(--line); border-radius: 9px; }
.search-results li a { display: grid; gap: 3px; }
.search-results li strong { color: var(--navy-950); }
.search-results li span { color: var(--muted); font-size: .9rem; }

.student-week-section { min-height: 100vh; display: grid; align-items: center; background: var(--navy-950); }
.student-week-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 9vw, 150px); align-items: center; }
.student-week-photo { min-height: min(58vh, 620px); display: grid; place-items: center; overflow: hidden; border-radius: 28px; background: radial-gradient(circle at 30% 25%, #36cb72, transparent 38%), linear-gradient(145deg, #1e3a8a, #101a3a); color: white; font-size: clamp(4rem, 10vw, 8rem); font-weight: 900; }
.student-week-photo img { width: 100%; height: 100%; object-fit: cover; }
.student-week-copy { color: white; }
.student-week-copy .eyebrow { color: #86efac; }
.student-week-copy h2 { margin-bottom: 10px; color: white; font-size: clamp(3rem, 5vw, 5rem); }
.student-week-copy > p:not(.eyebrow) { max-width: 600px; color: #d5def2; font-size: 1.04rem; }
.student-programme { color: #a7f3d0 !important; font-weight: 800; }
.student-achievement { color: white !important; font-size: clamp(1.35rem, 2.4vw, 2rem) !important; font-weight: 800; line-height: 1.2; }
.button-light-outline { border-color: #bbf7d0; background: transparent; color: white; }
.button-light-outline:hover { background: white; color: var(--green-700); }

.archive-section { background: #fbfcfe; }
.showcase-hackathon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.showcase-hackathon-card, .showcase-project-card { overflow: hidden; border: 1px solid #e8edf0; border-radius: 16px; background: white; box-shadow: 0 12px 32px rgba(23,37,84,.07); }
.showcase-hackathon-image { position: relative; aspect-ratio: 1 / .75; overflow: hidden; background: var(--navy-900); }
.showcase-hackathon-image img, .showcase-project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.showcase-hackathon-card:hover img, .showcase-project-card:hover img { transform: scale(1.05); }
.showcase-hackathon-image span { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 5px; background: var(--navy-950); color: white; font-size: .78rem; font-weight: 850; }
.showcase-hackathon-body, .showcase-project-body { padding: 19px; }
.showcase-hackathon-body h3, .showcase-project-body h3 { margin-bottom: 8px; font-size: 1.15rem; letter-spacing: -.025em; }
.showcase-hackathon-body p:last-of-type, .showcase-project-body > p:last-of-type { color: var(--muted); font-size: .9rem; }
.project-meta { margin-bottom: 7px; color: var(--green-700); font-size: .76rem; font-weight: 850; }
.project-recognition { margin-bottom: 8px; color: var(--navy-900); font-size: .82rem; font-weight: 800; }

.projects-section { background: white; }
.showcase-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.showcase-project-image { aspect-ratio: 1.45 / 1; overflow: hidden; background: linear-gradient(145deg, var(--navy-900), var(--green-600)); }
.project-image-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: white; font-size: 3rem; font-weight: 900; }

.gallery-section { background: var(--green-50); }
.showcase-gallery { display: grid; grid-template-columns: 1.05fr .95fr; gap: 15px; }
.showcase-gallery figure { position: relative; min-height: 0; margin: 0; overflow: hidden; border-radius: 16px; background: var(--navy-950); }
.showcase-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.showcase-gallery figure:hover img { transform: scale(1.04); }
.gallery-feature { min-height: 420px !important; }
.gallery-minor-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 15px; }
.gallery-minor-grid figure { min-height: 200px; }
.showcase-gallery figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 28px 13px 12px; background: linear-gradient(transparent, rgba(23,37,84,.82)); color: white; font-size: .78rem; font-weight: 750; }

.showcase-sponsors { padding: 74px 0; background: white; text-align: center; }
.showcase-sponsor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; align-items: center; margin-top: 28px; }
.showcase-sponsor-grid div { min-height: 54px; display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.showcase-sponsor-grid img { max-width: 100%; max-height: 50px; object-fit: contain; filter: grayscale(1); opacity: .72; }

@media (max-width: 900px) {
  .showcase-hackathon-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-intro-grid, .student-week-layout { grid-template-columns: 1fr; gap: 32px; }
  .competition-note { right: 50%; bottom: 24px; width: min(620px, calc(100% - 48px)); max-width: none; transform: translateX(50%); }
  .student-week-section { padding: 80px 0; }
  .student-week-photo { min-height: 360px; }
}
@media (max-width: 620px) {
  .showcase-registration-hero { min-height: calc(100vh - 66px); }
  .showcase-registration-content { padding: 64px 0 170px; }
  .competition-note { width: min(100% - 32px, 620px); font-size: .82rem; }
  .archive-search { padding: 18px; }
  .archive-search > div { flex-direction: column; }
  .showcase-project-grid, .showcase-hackathon-grid { grid-template-columns: 1fr; }
  .showcase-gallery { grid-template-columns: 1fr; }
  .gallery-feature { min-height: 330px !important; }
  .gallery-minor-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-minor-grid figure { min-height: 145px; }
  .showcase-sponsor-grid { grid-template-columns: repeat(2, 1fr); }
}


/* Public-directory grids, original-colour logos, gallery rotation and entrance motion. */
.sponsor-logo img, .sponsor-logo:hover img, .showcase-sponsor-grid img { filter: none; opacity: 1; }
.sponsor-logo img { max-height: 58px; }
.hero-content > .eyebrow, .hero-content > h1, .hero-content > .hero-copy, .hero-content > .hero-actions { opacity: 0; transform: translateY(28px); animation: hero-rise .72s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-content > h1 { animation-delay: .08s; }
.hero-content > .hero-copy { animation-delay: .18s; }
.hero-content > .hero-actions { animation-delay: .28s; }
.sponsor-caption { opacity: 0; transform: translateX(-28px); animation: hero-slide-left .7s .42s cubic-bezier(.2,.8,.2,1) forwards; }
.showcase-registration-content > .eyebrow, .showcase-registration-content > h1, .showcase-registration-content > p:not(.eyebrow), .showcase-registration-content > .button { opacity: 0; transform: translateY(28px); animation: hero-rise .72s cubic-bezier(.2,.8,.2,1) forwards; }
.showcase-registration-content > h1 { animation-delay: .08s; }
.showcase-registration-content > p:not(.eyebrow) { animation-delay: .18s; }
.showcase-registration-content > .button { animation-delay: .28s; }
.competition-note { opacity: 0; transform: translateX(-32px); animation: hero-slide-left .7s .42s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes hero-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes hero-slide-left { to { opacity: 1; transform: translateX(0); } }
.gallery-note { max-width: 620px; margin: -22px 0 34px; color: var(--muted); }
.showcase-gallery [data-gallery-slot] img { opacity: 1; transform: scale(1); transition: opacity .42s ease, transform .42s ease; }
.showcase-gallery [data-gallery-slot].is-swapping img { opacity: 0; transform: scale(1.035); }
.directory-hero { padding: clamp(80px, 13vw, 156px) 0 clamp(62px, 9vw, 104px); background: linear-gradient(135deg, var(--green-50), #fff 56%, #e8f7ed); }
.directory-hero-sponsors { background: linear-gradient(135deg, #fff, var(--green-50) 56%, #dff5e5); }
.directory-hero-management { background: linear-gradient(135deg, #effbf2, #fff 52%, #e9edfb); }
.directory-hero h1 { max-width: 750px; margin-bottom: 18px; font-size: clamp(3rem, 6vw, 5.4rem); letter-spacing: -.06em; }
.directory-hero p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.directory-section { background: #fbfcfe; }
.directory-grid { display: grid; gap: 22px; }
.sponsor-directory-grid, .partner-directory-grid, .ecosystem-directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.directory-card { min-width: 0; padding: 23px; border: 1px solid #e5eaf0; border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(23,37,84,.06); transition: transform .25s ease, box-shadow .25s ease; }
.directory-card:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow); }
.directory-logo { display: grid; min-height: 108px; place-items: center; margin-bottom: 19px; border-radius: 12px; background: #fbfcfe; color: var(--green-700); font-size: 2rem; font-weight: 900; }
.directory-logo img { max-width: 88%; max-height: 84px; object-fit: contain; filter: none; opacity: 1; }
.directory-card h2 { margin-bottom: 7px; font-size: 1.08rem; letter-spacing: -.025em; }
.directory-card p { margin: 0; color: var(--muted); font-size: .87rem; }
.sponsor-card { min-height: 250px; text-align: center; }
.sponsor-card .directory-logo { min-height: 118px; }
.sponsor-card > p { margin-top: 11px; }
.directory-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 50px; padding: 30px; border-radius: 16px; background: var(--navy-950); color: white; }
.directory-cta p { margin: 0; font-size: 1.1rem; font-weight: 750; }
.directory-filter { display: grid; gap: 10px; margin-bottom: 36px; padding: 20px; border-radius: 14px; background: var(--green-50); }
.directory-filter label { color: var(--navy-950); font-weight: 850; }
.directory-filter > div { display: grid; grid-template-columns: 1fr 190px auto; gap: 10px; }
.directory-filter input, .directory-filter select { min-height: 48px; padding: 0 13px; border: 1px solid #c7dfce; border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.directory-empty { color: var(--muted); }
.ecosystem-heading { margin: 90px 0 30px; }
.ecosystem-heading h2 { margin: 0; }
.management-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.management-card { overflow: hidden; border: 1px solid #e5eaf0; border-radius: 18px; background: white; box-shadow: 0 10px 30px rgba(23,37,84,.06); transition: transform .25s ease, box-shadow .25s ease; }
.management-card:hover, .management-card:focus { transform: translateY(-6px); box-shadow: var(--soft-shadow); outline: none; }
.management-image { position: relative; display: grid; aspect-ratio: 1.15 / .82; place-items: center; overflow: hidden; background: linear-gradient(145deg, #d9f1df, #9ccbad); color: var(--navy-950); font-size: 2.4rem; font-weight: 900; }
.management-card:nth-child(4n + 2) .management-image { background: linear-gradient(145deg, #dce9fd, #9fc2e5); }
.management-card:nth-child(4n + 3) .management-image { background: linear-gradient(145deg, #fff0cf, #e3b777); }
.management-card:nth-child(4n) .management-image { background: linear-gradient(145deg, #e9e2fc, #afa1d4); }
.management-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.management-card:hover .management-image img { transform: scale(1.06); }
.management-card-copy { padding: 21px; }
.management-card h2 { margin-bottom: 7px; font-size: 1.12rem; letter-spacing: -.03em; }
.management-card p { margin-bottom: 8px; color: var(--muted); font-size: .86rem; }
.management-card .management-role { color: var(--green-700); font-weight: 800; }
.management-card .management-university { color: var(--navy-900); font-weight: 700; }
.management-card .management-bio { margin: 13px 0 0; }
@media (max-width: 900px) { .sponsor-directory-grid, .partner-directory-grid, .ecosystem-directory-grid, .management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .directory-hero { padding-top: 80px; } .directory-filter > div { grid-template-columns: 1fr; } .sponsor-directory-grid, .partner-directory-grid, .ecosystem-directory-grid, .management-grid { grid-template-columns: 1fr; } .directory-cta { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .hero-content > .eyebrow, .hero-content > h1, .hero-content > .hero-copy, .hero-content > .hero-actions, .sponsor-caption, .showcase-registration-content > .eyebrow, .showcase-registration-content > h1, .showcase-registration-content > p:not(.eyebrow), .showcase-registration-content > .button, .competition-note { opacity: 1; transform: none; animation: none; } .showcase-gallery [data-gallery-slot] img { transition: none; } }


/* Split directory heroes: supplied image placeholder can be replaced without changing layout. */
.directory-hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: clamp(40px, 8vw, 112px); }
.directory-hero-copy { min-width: 0; }
.directory-hero-image { overflow: hidden; border-radius: 28px; line-height: 0; }
.directory-hero-image img { width: 100%; height: auto; aspect-ratio: 1.4 / 1; object-fit: cover; }
/* Bigger, readable directory cards: three columns at desktop, two on tablet. */
.sponsor-directory-grid, .partner-directory-grid, .ecosystem-directory-grid, .management-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.directory-card { padding: 29px; }
.directory-logo { min-height: 142px; margin-bottom: 23px; }
.sponsor-card { min-height: 300px; }
.sponsor-card .directory-logo { min-height: 150px; }
.management-image { aspect-ratio: 1.12 / .88; }
.management-card-copy { padding: 25px; }
.management-card h2 { font-size: 1.26rem; }
.management-card p { font-size: .94rem; }
@media (max-width: 900px) { .directory-hero-layout { grid-template-columns: 1fr; gap: 34px; } .sponsor-directory-grid, .partner-directory-grid, .ecosystem-directory-grid, .management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sponsor-directory-grid, .partner-directory-grid, .ecosystem-directory-grid, .management-grid { grid-template-columns: 1fr; } .directory-card { padding: 24px; } }


/* Medium-inspired, server-rendered hackathon archive articles. */
.archive-article { background: #fff; }
.archive-article-hero { position: relative; min-height: min(560px, calc(100vh - 79px)); display: grid; align-items: end; overflow: hidden; background: var(--navy-950); }
.archive-article-image { position: absolute; inset: 0; background-position: center; background-size: cover; }
.archive-article-hero-copy { position: relative; z-index: 1; padding: 110px 0 78px; color: white; }
.archive-back { display: inline-flex; margin-bottom: 50px; color: #d7f9e2; font-size: .9rem; font-weight: 800; }
.archive-article-hero .eyebrow { color: #bbf7d0; }
.archive-article-hero h1 { max-width: 920px; margin-bottom: 20px; color: white; font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -.065em; }
.archive-article-theme { max-width: 720px; margin: 0; color: #e1e9ff; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.archive-article-layout { display: grid; grid-template-columns: minmax(0, 720px) 220px; justify-content: space-between; gap: 68px; padding-top: 92px; padding-bottom: 120px; }
.archive-article-main { font-family: Georgia, "Times New Roman", serif; color: #28334f; font-size: clamp(1.08rem, 1.7vw, 1.24rem); line-height: 1.78; }
.archive-article-intro { margin: 0 0 58px; color: var(--navy-950); font-size: clamp(1.42rem, 2.5vw, 1.8rem); line-height: 1.48; }
.archive-article-section, .archive-article-prizes, .archive-article-conclusion { margin-top: 52px; }
.archive-article-main h2 { margin-bottom: 16px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -.045em; }
.archive-article-main p { margin-bottom: 0; }
.archive-article-prizes { min-height: 100px; padding-top: 30px; border-top: 1px solid var(--line); }
.archive-article-prizes h2 { margin-bottom: 0; }
.archive-article-prizes p + p { margin-top: 10px; }
.archive-article-conclusion { padding: 30px; border-left: 4px solid var(--green-500); background: var(--green-50); }
.archive-article-aside { align-self: start; position: sticky; top: 110px; display: grid; gap: 7px; padding: 22px 0; border-top: 3px solid var(--green-500); color: var(--muted); font-size: .86rem; }
.archive-article-aside p { margin: 14px 0 0; color: var(--green-700); font-size: .67rem; font-weight: 900; letter-spacing: .1em; }
.archive-article-aside strong { color: var(--navy-950); font-size: 1.45rem; }
.archive-article-aside span { color: var(--navy-950); font-weight: 700; }
.archive-article-aside .text-link { margin-top: 24px; }
@media (max-width: 800px) { .archive-article-layout { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 78px; } .archive-article-aside { position: static; order: -1; grid-template-columns: auto 1fr; gap: 7px 16px; } .archive-article-aside .text-link { grid-column: 1 / -1; } }

.archive-article-topics { margin: 0 0 52px; padding: 22px; border: 1px solid #dceee1; border-radius: 14px; background: var(--green-50); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.archive-article-topics .eyebrow { margin-bottom: 12px; }
.archive-article-topics > div { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-article-topics span { padding: 6px 10px; border: 1px solid #bde3c8; border-radius: 999px; color: var(--green-700); font-size: .75rem; font-weight: 800; line-height: 1.3; }
.archive-article-media { margin-top: 58px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.archive-article-media > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.archive-article-media figure { position: relative; min-height: 180px; margin: 0; overflow: hidden; border-radius: 12px; background: var(--navy-950); }
.archive-article-media img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.archive-article-media figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 28px 10px 9px; background: linear-gradient(transparent, rgba(23,37,84,.8)); color: white; font-size: .72rem; line-height: 1.35; }
@media (max-width: 560px) { .archive-article-media > div { grid-template-columns: 1fr; } }


.management-card-link { display: block; height: 100%; color: inherit; }
.management-profile-link { display: inline-flex; gap: 6px; margin-top: 16px; color: var(--green-700); font-size: .86rem; font-weight: 850; }
.management-card:hover .management-profile-link { color: var(--navy-900); }
.archive-event-sponsors { margin: 0 0 52px; padding: 0; background: white; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.archive-event-sponsors h2 { margin-bottom: 20px; font-size: 1.35rem; }
.archive-sponsor-logo-grid { display: grid; grid-template-columns: repeat(auto-fit, 108px); justify-content: start; align-items: center; gap: 16px 20px; }
.archive-sponsor-logo-grid > a, .archive-sponsor-logo-grid > div { display: grid; width: 108px; height: 56px; place-items: center; background: white; }
.archive-sponsor-logo-grid img { display: block; width: auto; max-width: 82px; max-height: 38px; object-fit: contain; transition: transform .2s ease; }
.archive-sponsor-logo-grid a:hover img, .archive-sponsor-logo-grid a:focus-visible img { transform: scale(1.04); }
@media (max-width: 560px) { .archive-sponsor-logo-grid { grid-template-columns: repeat(auto-fit, 88px); gap: 14px; } .archive-sponsor-logo-grid > a, .archive-sponsor-logo-grid > div { width: 88px; height: 50px; } .archive-sponsor-logo-grid img { max-width: 70px; max-height: 34px; } }
.leadership-profile-hero { padding: 70px 0; background: linear-gradient(135deg, var(--navy-950), #233f86); color: white; }
.leadership-profile-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(42px, 9vw, 125px); align-items: center; }
.leadership-profile-hero .archive-back { margin-bottom: 46px; }
.leadership-profile-hero .eyebrow { color: #86efac; }
.leadership-profile-hero h1 { margin-bottom: 14px; color: white; font-size: clamp(3rem, 6vw, 5.8rem); letter-spacing: -.06em; }
.leadership-profile-role { margin: 0 0 7px; color: white; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 750; }
.leadership-profile-university { margin: 0; color: #b9c8eb; font-size: 1rem; }
.leadership-profile-hero-image { aspect-ratio: 1.1 / .834; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg, #c9e8d2, #62a179); }
.leadership-profile-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.leadership-profile-hero-image span, .leadership-profile-avatar span { display: grid; width: 100%; height: 100%; place-items: center; color: var(--navy-950); font-size: 4rem; font-weight: 900; }
.leadership-profile-layout { display: grid; grid-template-columns: 235px minmax(0, 720px); justify-content: space-between; gap: 72px; padding-top: 88px; padding-bottom: 120px; }
.leadership-profile-summary { align-self: start; position: sticky; top: 110px; display: grid; gap: 8px; padding-top: 4px; color: var(--muted); }
.leadership-profile-avatar { width: 132px; aspect-ratio: 1; margin-bottom: 18px; overflow: hidden; border-radius: 50%; background: var(--green-100); }
.leadership-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leadership-profile-summary .eyebrow { margin: 15px 0 0; }
.leadership-profile-summary strong, .leadership-profile-summary > span { color: var(--navy-950); font-size: .95rem; line-height: 1.45; }
.leadership-profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.leadership-profile-tags span { padding: 5px 8px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font-size: .72rem; font-weight: 800; }
.leadership-profile-main { color: #303a54; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.78; }
.leadership-profile-main section { margin-top: 51px; }
.leadership-profile-main h2 { margin-bottom: 15px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.8rem; letter-spacing: -.04em; }
.leadership-profile-main p { margin: 0; }
.leadership-profile-introduction { margin: 0 !important; color: var(--navy-950); font-size: 1.45rem; line-height: 1.52; }
.leadership-profile-main ul { margin: 0; padding-left: 1.2rem; }
.leadership-profile-main li + li { margin-top: 10px; }
.leadership-publications { padding-left: 0 !important; list-style: none; }
.leadership-publications li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.leadership-publications span { color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .84rem; }
.leadership-profile-vision { padding: 28px; border-left: 4px solid var(--green-500); background: var(--green-50); }
@media (max-width: 800px) { .leadership-profile-hero-grid, .leadership-profile-layout { grid-template-columns: 1fr; } .leadership-profile-hero-image { max-width: 620px; } .leadership-profile-layout { gap: 34px; padding-top: 60px; padding-bottom: 78px; } .leadership-profile-summary { position: static; grid-template-columns: 132px 1fr; column-gap: 25px; } .leadership-profile-summary .eyebrow { margin-top: 0; } .leadership-profile-tags { grid-column: 1 / -1; } }


/* The competition notice becomes normal document flow on phones, so long copy cannot be clipped. */
@media (max-width: 620px) {
  .showcase-registration-hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .showcase-registration-content { padding: 64px 0 34px; }
  .competition-note { position: relative; right: auto; bottom: auto; width: auto; max-width: none; margin: 0 16px 18px; padding: 13px 0 0 14px; transform: none; font-size: .84rem; line-height: 1.5; }
}


/* Passwordless access and contact support */
.auth-page { min-height: calc(100vh - 79px); padding: clamp(58px, 9vw, 118px) 0; background: linear-gradient(135deg, #f2fcf5 0%, #fff 48%, #eef2ff 100%); }
.auth-layout, .contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(410px, .8fr); align-items: center; gap: clamp(44px, 9vw, 130px); }
.auth-intro h1, .contact-intro h1 { max-width: 610px; margin-bottom: 22px; font-size: clamp(3rem, 5.4vw, 5.5rem); letter-spacing: -.065em; }
.auth-intro > p:not(.eyebrow), .contact-intro > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 1.08rem; }
.auth-benefits { display: grid; gap: 15px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--navy-950); font-weight: 750; }
.auth-benefits span, .contact-points span { display: inline-grid; width: 28px; height: 28px; margin-right: 10px; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-700); }
.auth-card, .contact-card { padding: clamp(28px, 4vw, 48px); border: 1px solid #e5ece8; border-radius: 22px; background: white; box-shadow: var(--soft-shadow); }
.auth-card-head h2, .contact-card h2 { margin-bottom: 10px; font-size: clamp(2rem, 3vw, 2.8rem); }
.auth-card-head > p:last-child { color: var(--muted); }
.auth-form, .contact-form { display: grid; gap: 14px; margin-top: 27px; }
.auth-input, .auth-fields label, .contact-form label { position: relative; display: block; }
.auth-input > [aria-hidden] { position: absolute; z-index: 1; top: 50%; left: 15px; color: var(--green-700); font-weight: 900; transform: translateY(-50%); }
.auth-input input, .auth-fields input, .auth-select-wrap select, .contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 52px; border: 1px solid #dbe6df; border-radius: 10px; background: #fbfefc; color: var(--ink); font: inherit; transition: border-color .18s ease, box-shadow .18s ease; }
.auth-input input, .auth-fields input { padding: 20px 15px 5px 44px; }
.auth-input-label { position: absolute; z-index: 1; top: 7px; left: 44px; color: var(--muted); font-size: .68rem; font-weight: 750; line-height: 1; }
.auth-card b, .auth-field-label b { color: var(--green-700); }
.auth-card [hidden] { display: none !important; }
.contact-form input, .contact-form select, .contact-form textarea { margin-top: 7px; padding: 12px 14px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.auth-input input:focus, .auth-fields input:focus, .auth-select-wrap select:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(34,197,94,.14); }
.auth-two-col, .contact-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-role-field, .auth-field-label, .contact-form label { color: var(--navy-950); font-size: .88rem; font-weight: 800; }
.auth-select-wrap { position: relative; margin-top: 7px; }
.auth-select-wrap > span { position: absolute; z-index: 1; top: 50%; left: 15px; color: var(--green-700); transform: translateY(-50%); }
.auth-select-wrap select { padding: 0 38px 0 43px; appearance: none; }
.auth-role-field small { display: block; margin-top: 8px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.auth-submit { width: 100%; gap: 10px; margin-top: 7px; min-height: 53px; }
.auth-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.auth-alert { margin-top: 18px; padding: 12px 14px; border-radius: 9px; font-size: .9rem; font-weight: 700; }
.auth-alert.is-error { background: #fff1f2; color: #b42318; }
.auth-alert.is-success { background: var(--green-50); color: var(--green-700); }
.auth-otp-copy { margin: 0; color: var(--muted); }
.auth-otp-input input { letter-spacing: .5em; font-size: 1.3rem; font-weight: 900; text-align: center; }
.auth-text-button { justify-self: center; padding: 5px; border: 0; background: none; color: var(--green-700); font: inherit; font-weight: 800; cursor: pointer; }
.auth-switch { margin: 25px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.auth-switch a { color: var(--green-700); font-weight: 850; }
.contact-page { min-height: calc(100vh - 79px); background: #fbfcfe; }
.contact-intro { align-self: stretch; padding: clamp(32px, 5vw, 58px); border-radius: 24px; background: var(--navy-950); color: white; }
.contact-intro h1 { color: white; }
.contact-intro > p:not(.eyebrow) { color: #d3dcf1; }
.contact-intro .eyebrow { color: #86efac; }
.contact-points { display: grid; gap: 16px; margin-top: 42px; }
.contact-points p { display: flex; align-items: center; margin: 0; color: #e4ebfa; font-size: .91rem; }
.contact-points span { flex: 0 0 auto; background: rgba(134,239,172,.16); color: #86efac; }
.contact-message { margin-top: 18px; padding: 12px 14px; border-radius: 9px; font-weight: 700; }
.contact-message.success { background: var(--green-50); color: var(--green-700); }
.contact-message.error { background: #fff1f2; color: #b42318; }
@media (max-width: 850px) { .auth-layout, .contact-layout { grid-template-columns: 1fr; gap: 34px; } .auth-intro { max-width: 650px; } }
@media (max-width: 520px) { .auth-page { padding: 40px 0; } .auth-card, .contact-card, .contact-intro { padding: 25px 20px; border-radius: 16px; } .auth-two-col, .contact-two-col { grid-template-columns: 1fr; } .auth-intro h1, .contact-intro h1 { font-size: clamp(2.65rem, 14vw, 3.8rem); } }
