:root {
  --bg: #040508;
  --gold: #c5a028;
  --gold-light: #f1d57b;
  --text: #f8fafc;
  --muted: #94a3b8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: "Plus Jakarta Sans", sans-serif; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 12px 18px; color: #040508; background: var(--gold-light); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 20px; }
.ambient { position: fixed; z-index: -1; width: 650px; height: 650px; border-radius: 50%; pointer-events: none; }
.ambient-one { top: -360px; left: -260px; background: radial-gradient(circle, rgba(197,160,40,.18), transparent 68%); }
.ambient-two { right: -320px; bottom: -320px; background: radial-gradient(circle, rgba(34,211,238,.13), transparent 68%); }
.map-header, .map-shell, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.map-header { position: relative; padding: 38px 0 34px; text-align: center; }
.back-link { position: absolute; top: 32px; left: 0; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; transition: .25s ease; }
.back-link:hover, .back-link:focus-visible { color: var(--gold-light); outline: none; }
.university-logo { display: block; clear: both; width: 125px; height: auto; margin: 0 auto 20px; object-fit: contain; filter: drop-shadow(0 0 25px rgba(197,160,40,.45)); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 8px 18px; color: var(--gold-light); background: rgba(197,160,40,.1); border: 1px solid rgba(197,160,40,.32); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
h1 { margin: 0; color: var(--gold-light); background: linear-gradient(110deg, #a48119, #f1d57b 45%, #fff 53%, #f1d57b 61%, #a48119); background-size: 220% auto; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: "Cinzel", serif; font-size: clamp(35px, 6vw, 68px); line-height: 1.08; }
.intro { max-width: 650px; margin: 18px auto 0; color: var(--muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.7; }
.map-shell { padding: 22px 0 60px; }
.map-level { position: relative; }
.level-label { margin: 0 0 18px; color: #dbe5f1; font-size: 13px; font-weight: 800; letter-spacing: 2.8px; text-align: center; text-transform: uppercase; }
.map-entry { display: flex; flex-direction: column; align-items: center; }
.map-entry > .card-grid { width: 100%; }
.featured-card { width: min(560px, 100%); }
.card-grid { display: grid; position: relative; gap: 16px; padding-top: 28px; }
.card-grid-two { grid-template-columns: repeat(2, 1fr); }
.card-grid-three { grid-template-columns: repeat(3, 1fr); }
.card-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid-projects { grid-template-columns: repeat(5, 1fr); }
.card-grid::before { content: ""; position: absolute; z-index: 0; top: 0; right: 10%; left: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(197,160,40,.72) 12%, rgba(34,211,238,.65) 88%, transparent); }
.card-grid-two::before { right: 25%; left: 25%; }
.card-grid-three::before { right: 16.6667%; left: 16.6667%; }
.card-grid-four::before { right: 12.5%; left: 12.5%; }
.card-grid > .map-card { z-index: 1; }
.card-grid > .map-card::after { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: rgba(34,211,238,.55); }
.map-entry > .card-grid { padding-top: 0; }
.map-entry > .card-grid::before, .map-entry > .card-grid > .map-card::after { display: none; }
.project-category { margin-top: 22px; padding: 24px; background: linear-gradient(145deg, rgba(15,19,32,.72), rgba(6,8,14,.74)); border: 1px solid rgba(148,163,184,.16); border-radius: 22px; }
.featured-project-label { margin-bottom: 0; }
.featured-project-branches { display: grid; position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 28px; }
.featured-project-branches::after { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: linear-gradient(rgba(197,160,40,.72), rgba(34,211,238,.65)); }
.featured-project-branches::before { content: ""; position: absolute; top: 0; right: 25%; left: 25%; height: 1px; background: linear-gradient(90deg, rgba(197,160,40,.72), rgba(34,211,238,.65)); }
.featured-project-branches > .project-category { position: relative; margin: 0; }
.featured-project-branches > .project-category::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: linear-gradient(rgba(197,160,40,.72), rgba(34,211,238,.65)); }
.healthcare-category > .card-grid-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-category > .card-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-category h3 { margin: 0 0 18px; color: #dbe5f1; font-size: 16px; letter-spacing: .5px; }
.category-parent { width: min(620px, 100%); min-height: 88px; margin: 0 auto; }
.project-category > .card-grid { margin-top: 0; }
.project-category > .card-grid::after { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: rgba(34,211,238,.55); }
.cpip-parent-card { width: min(620px, 100%); margin: 0 auto; }
.cpip-level > .cpip-route { position: relative; margin-top: 36px; }
.cpip-level > .cpip-route::before { content: ""; position: absolute; top: -37px; left: 50%; width: 1px; height: 37px; background: linear-gradient(rgba(34,211,238,.65), rgba(96,165,250,.65)); }
.map-card { --accent: var(--gold); display: flex; position: relative; isolation: isolate; align-items: center; gap: 15px; min-height: 116px; padding: 22px; overflow: visible; color: var(--text); background: linear-gradient(145deg, rgba(15,19,32,.99), rgba(6,8,14,.99)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 18px; box-shadow: 0 18px 38px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.05); text-decoration: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.map-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .75; }
.map-card:hover, .map-card:focus-visible { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 22px 46px rgba(0,0,0,.48), 0 0 22px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.card-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 14px; font-size: 20px; }
.card-copy { display: flex; flex: 1; flex-direction: column; gap: 7px; min-width: 0; }
.card-copy strong { font-size: 16px; line-height: 1.25; }
.card-copy small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.card-arrow { color: var(--accent); font-size: 12px; }
.compact-card { min-height: 145px; padding: 19px 16px; flex-direction: column; align-items: flex-start; }
.compact-card .card-icon { flex-basis: 44px; width: 44px; height: 44px; }
.card-gold { --accent: #d6ae37; }
.card-cyan { --accent: #22d3ee; }
.card-violet { --accent: #a78bfa; }
.card-blue { --accent: #60a5fa; }
.card-pink { --accent: #f472b6; }
.flow-line { width: 1px; height: 48px; margin: 0 auto; background: linear-gradient(var(--gold), rgba(34,211,238,.55)); box-shadow: 0 0 12px rgba(197,160,40,.5); }
.research-project-flow { width: 100%; height: 48px; background: linear-gradient(rgba(34,211,238,.65),rgba(34,211,238,.65)) 62.5% 0 / 1px 24px no-repeat, linear-gradient(90deg,rgba(34,211,238,.65),rgba(34,211,238,.65)) 50% 24px / 12.5% 1px no-repeat, linear-gradient(rgba(197,160,40,.72),rgba(34,211,238,.65)) 50% 25px / 1px 23px no-repeat; box-shadow: none; }
.cpip-route { margin-top: 50px; padding: 28px; background: linear-gradient(135deg, rgba(12,18,32,.96), rgba(7,9,15,.96)); border: 1px solid rgba(96,165,250,.3); border-radius: 22px; box-shadow: 0 25px 55px rgba(0,0,0,.38); }
.route-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.route-icon { display: grid; width: 50px; height: 50px; place-items: center; color: #60a5fa; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.3); border-radius: 14px; }
.route-heading p, .route-heading h2 { margin: 0; }
.route-heading p { margin-bottom: 3px; color: #60a5fa; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.route-heading h2 { font-family: "Cinzel", serif; font-size: 22px; }
.route-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.route-steps li { position: relative; }
.route-steps li:not(:last-child)::after { content: "\f054"; position: absolute; top: 50%; right: -10px; z-index: 2; color: #60a5fa; font: 900 9px/1 "Font Awesome 6 Free"; transform: translateY(-50%); }
.route-steps a { display: flex; align-items: center; gap: 10px; padding: 14px; color: #dbeafe; background: rgba(96,165,250,.07); border: 1px solid rgba(96,165,250,.2); border-radius: 12px; font-size: 13px; font-weight: 700; text-decoration: none; transition: .25s ease; }
.route-steps a:hover, .route-steps a:focus-visible { color: #fff; background: rgba(96,165,250,.16); border-color: #60a5fa; outline: none; }
.route-steps span { color: #60a5fa; font-size: 10px; }
footer { padding: 10px 0 38px; text-align: center; }
.enter-button { display: inline-flex; align-items: center; gap: 13px; padding: 16px 32px; color: #040508; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-radius: 999px; box-shadow: 0 14px 30px rgba(197,160,40,.28); font-size: 14px; font-weight: 800; letter-spacing: 1px; text-decoration: none; text-transform: uppercase; transition: .25s ease; }
.enter-button:hover, .enter-button:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(197,160,40,.42); outline: none; }
footer p { margin: 26px 0 0; color: #64748b; font-size: 12px; }
@media (max-width: 950px) { .card-grid-three, .card-grid-four, .card-grid-projects { grid-template-columns: repeat(2, 1fr); } .research-project-flow { background: linear-gradient(rgba(34,211,238,.65),rgba(34,211,238,.65)) 25% 0 / 1px 24px no-repeat, linear-gradient(90deg,rgba(34,211,238,.65),rgba(34,211,238,.65)) 25% 24px / 25% 1px no-repeat, linear-gradient(rgba(197,160,40,.72),rgba(34,211,238,.65)) 50% 25px / 1px 23px no-repeat; } .card-grid-three::before, .card-grid-four::before, .card-grid-projects::before { right: 25%; left: 25%; } .compact-card { min-height: 116px; flex-direction: row; align-items: center; } }
@media (max-width: 650px) { .map-header, .map-shell, footer { width: min(100% - 28px, 1180px); } .map-header { padding-top: 90px; } .back-link { top: 24px; } .university-logo { width: 105px; } .card-grid-two, .card-grid-three, .card-grid-four, .card-grid-projects, .featured-project-branches, .healthcare-category > .card-grid-projects, .ai-category > .card-grid-three { grid-template-columns: 1fr; } .card-grid { gap: 16px; padding: 0 0 0 24px; } .card-grid::before { top: 0; right: auto; bottom: 0; left: 7px; width: 1px; height: auto; background: linear-gradient(rgba(197,160,40,.7), rgba(34,211,238,.65)); } .card-grid.card-grid-four::before { right: auto; left: 7px; } .card-grid > .map-card::after { top: 50%; right: auto; bottom: auto; left: -17px; width: 17px; height: 1px; background: rgba(34,211,238,.55); } .map-entry > .card-grid { padding: 0; } .map-entry > .card-grid::before, .map-entry > .card-grid > .map-card::after { display: none; } .project-category { padding: 18px; } .featured-project-branches { gap: 22px; padding: 0 0 0 24px; } .featured-project-branches::before { top: 0; right: auto; bottom: 0; left: 7px; width: 1px; height: auto; background: linear-gradient(rgba(197,160,40,.7), rgba(34,211,238,.65)); } .featured-project-branches::after { top: -28px; right: auto; left: 7px; height: 28px; } .featured-project-branches > .project-category::before { top: 50%; right: auto; left: -17px; width: 17px; height: 1px; } .project-category > .card-grid { margin-top: 0; } .project-category > .card-grid::after { display: none; } .map-card, .compact-card { min-height: 100px; padding: 18px; flex-direction: row; align-items: center; } .flow-line { height: 36px; } .cpip-route { padding: 22px 16px; } .route-steps { grid-template-columns: 1fr; } .route-steps li:not(:last-child)::after { top: auto; right: 50%; bottom: -10px; transform: translateX(50%) rotate(90deg); } }
@media (max-width: 650px) {
  .research-project-flow {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--gold), rgba(34,211,238,.55));
    box-shadow: 0 0 12px rgba(197,160,40,.5);
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
