:root {
  --ink: #09273c;
  --blue: #0a4b78;
  --blue-deep: #072e4b;
  --blue-soft: #dcecf3;
  --cyan: #4cc0cb;
  --lime: #c3db42;
  --paper: #f4f2eb;
  --white: #fff;
  --line: rgba(9, 39, 60, .15);
  --muted: #587082;
  --radius: 2px;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Be Vietnam Pro", system-ui, sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 1000; transform: translateY(-140%); background: var(--lime); padding: 10px 18px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 100; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.07); }
.utility-bar { background: var(--blue-deep); color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.utility-links { display: flex; align-items: center; gap: 24px; }
.utility-links a:hover { color: white; }
.lang-button { border: 0; background: none; color: white; padding: 0; font-size: 11px; cursor: pointer; }
.lang-button span { color: rgba(255,255,255,.4); }
.nav-row { height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.brand span { display: grid; line-height: 1.18; }
.brand strong { text-transform: uppercase; font-size: 16px; letter-spacing: .03em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .04em; margin-top: 5px; }
.primary-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 700; }
.primary-nav a { position: relative; padding: 30px 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 21px; height: 2px; background: var(--lime); transition: right .25s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }
.search-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.search-button svg, .document-search svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 560px; color: white; display: flex; overflow: hidden; background: var(--blue-deep); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: saturate(.72) contrast(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,30,49,.96) 0%, rgba(4,40,65,.8) 43%, rgba(4,39,62,.12) 78%), linear-gradient(0deg, rgba(2,27,43,.55), transparent 45%); }
.hero-grid { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.hero-content { position: relative; z-index: 2; padding: 92px 0 132px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 600 11px/1.3 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 32px; height: 2px; background: var(--lime); }
.hero h1, .section-heading h2, .research h2, .student-content h2 { margin: 0; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; }
h1 em, h2 em { color: var(--lime); font-style: normal; font-weight: 500; }
.hero-copy { max-width: 620px; margin: 22px 0 28px; color: rgba(255,255,255,.78); font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-width: 190px; padding: 15px 20px; border: 1px solid transparent; font-size: 13px; font-weight: 700; transition: .2s ease; }
.button span { font-size: 18px; font-weight: 400; }
.button-primary { background: var(--lime); color: var(--ink); }
.button-primary:hover { background: #d4e95d; transform: translateY(-2px); }
.button-ghost { color: white; border-color: rgba(255,255,255,.38); }
.button-ghost:hover { background: rgba(255,255,255,.12); }
.hero-metrics { position: absolute; z-index: 3; bottom: 0; right: max(24px, calc((100vw - 1180px)/2)); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(7,46,75,.92); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.14); border-inline: 1px solid rgba(255,255,255,.1); }
.hero-metrics div { min-width: 168px; padding: 19px 22px; display: flex; align-items: center; gap: 12px; border-right: 1px solid rgba(255,255,255,.13); }
.hero-metrics div:last-child { border: 0; }
.hero-metrics strong { font: 600 28px/1 "IBM Plex Mono", monospace; color: var(--lime); }
.hero-metrics span { font-size: 11px; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.66); }

.ticker { background: var(--lime); }
.ticker-inner { min-height: 56px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; }
.ticker-label { padding: 5px 10px; background: var(--ink); color: white; font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.ticker-copy { display: flex; align-items: baseline; gap: 18px; font-size: 13px; }
.ticker-copy span { color: rgba(9,39,60,.7); }
.ticker-inner > a { font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--ink); }

.section { padding: 76px 0; }
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 190px 1fr; gap: 56px; }
.section-kicker { color: var(--blue); }
.section-kicker.light { color: var(--cyan); }
.intro-main .lead { max-width: 900px; margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.25; letter-spacing: -.03em; font-weight: 600; }
.intro-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 900px; margin: 30px 0 24px; color: var(--muted); font-size: 13px; }
.intro-columns p { margin: 0; }
.text-link { display: inline-flex; gap: 12px; font-size: 13px; font-weight: 700; padding-bottom: 5px; border-bottom: 1px solid var(--ink); }

.programs-section { background: var(--blue-deep); color: white; overflow: hidden; }
.programs-section.section { padding-top: 68px; padding-bottom: 48px; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 52px; margin-bottom: 40px; }
.section-heading h2, .student-content h2 { font-size: clamp(42px, 4.6vw, 62px); }
.section-heading > p { margin: 0 0 8px; color: rgba(255,255,255,.6); font-size: 14px; }
.section-heading.dark-text > p { color: var(--muted); }
.program-controls { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.filter-button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 13px 18px; background: none; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-button.active { color: var(--lime); border-bottom-color: var(--lime); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.15); border-left: 1px solid rgba(255,255,255,.15); }
.program-card { min-height: 278px; display: flex; flex-direction: column; padding: 24px; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); transition: background .25s, transform .25s; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.program-card.hidden { display: none; }
.program-card:hover { background: rgba(255,255,255,.055); transform: translateY(-3px); }
.program-number { font: 500 11px "IBM Plex Mono", monospace; color: var(--cyan); }
.program-icon { margin: 24px 0 18px; font: 500 34px/1 "IBM Plex Mono", monospace; color: var(--lime); }
.program-card h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.35; }
.program-card p { margin: 0 0 28px; color: rgba(255,255,255,.56); font-size: 12px; }
.program-card a { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.research { background: #e9edf0; }
.research.section { padding-block: 54px; }
.research-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr); gap: 52px; align-items: center; }
.research h2 { max-width: 680px; margin-bottom: 20px; font-size: clamp(42px, 4.35vw, 60px); line-height: 1.04; text-wrap: balance; }
.research h2 .title-line { display: block; white-space: nowrap; }
.research-copy > p { max-width: 590px; color: var(--muted); font-size: 14px; }
.research-list { margin-top: 20px; border-top: 1px solid var(--line); }
.research-item { width: 100%; min-height: 46px; display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; border: 0; border-bottom: 1px solid var(--line); padding: 9px 0; background: transparent; text-align: left; cursor: pointer; }
.research-item span { font: 500 10px "IBM Plex Mono", monospace; color: var(--muted); }
.research-item b { font-size: 14px; }
.research-item i { font-size: 22px; font-style: normal; font-weight: 300; transition: transform .2s; }
.research-item.active { color: var(--blue); }
.research-item.active i { transform: rotate(45deg); color: var(--lime); }
.circuit-card { position: relative; min-height: 500px; background: var(--blue-deep); color: white; overflow: hidden; padding: 24px; box-shadow: 18px 18px 0 var(--lime); }
.circuit-card::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 40px 40px; }
.circuit-top { position: relative; z-index: 2; display: flex; justify-content: space-between; font: 500 10px "IBM Plex Mono", monospace; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.circuit { position: relative; z-index: 1; width: 100%; height: 350px; fill: none; stroke: url(#trace); stroke-width: 2; }
.circuit .core { fill: rgba(195,219,66,.16); stroke-width: 4; }
.research-detail { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; }
.research-detail span { color: var(--lime); font-size: 18px; font-weight: 700; }
.research-detail p { color: rgba(255,255,255,.6); font-size: 12px; margin-bottom: 0; }

.students { background: var(--blue); color: white; padding-block: 0; }
.student-grid { width: 100%; max-width: none; display: grid; grid-template-columns: 1.05fr .95fr; }
.student-photo { position: relative; min-height: 520px; overflow: hidden; }
.student-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,38,61,.65), transparent 50%); }
.student-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.student-photo span { position: absolute; z-index: 2; bottom: 28px; left: 32px; font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .15em; }
.student-content { padding: 62px max(40px, calc((100vw - 1180px)/2)) 58px 58px; }
.student-content p { max-width: 530px; color: rgba(255,255,255,.65); font-size: 13px; margin: 20px 0 24px; }
.experience-list { margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.experience-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.experience-list li > span { font: 500 10px "IBM Plex Mono", monospace; color: var(--lime); }
.experience-list div { display: grid; gap: 5px; }
.experience-list b { font-size: 14px; }
.experience-list small { color: rgba(255,255,255,.55); font-size: 11px; }
.button-light { background: white; color: var(--blue-deep); }

.documents { background: var(--paper); }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.document-search { flex: 1; max-width: 520px; height: 48px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--ink); }
.document-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.document-toolbar > span { color: var(--muted); font: 500 11px "IBM Plex Mono", monospace; }
.document-list { border-top: 1px solid var(--line); }
.document-row { display: grid; grid-template-columns: 58px 1fr 30px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding .2s, background .2s; }
.document-row:hover { padding-inline: 14px; background: white; }
.document-row.hidden { display: none; }
.doc-type { width: 48px; height: 28px; display: grid; place-items: center; background: var(--blue-deep); color: white; font: 600 9px "IBM Plex Mono", monospace; }
.doc-type.xls { background: #32715c; }
.document-row > span:nth-child(2) { display: grid; gap: 5px; }
.document-row b { font-size: 14px; }
.document-row small { color: var(--muted); font-size: 11px; }
.document-row i { font-style: normal; font-size: 20px; }

.site-footer { padding: 54px 0 22px; background: #061f32; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; padding-bottom: 38px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; }
.footer-brand div { display: grid; }
.footer-brand strong { max-width: 230px; font-size: 16px; text-transform: uppercase; line-height: 1.4; }
.footer-brand span { margin-top: 6px; color: rgba(255,255,255,.5); font-size: 11px; }
.footer-grid h3 { color: var(--lime); font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid p { color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.9; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.4); font-size: 10px; }

.search-dialog { width: min(760px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; background: transparent; }
.search-dialog::backdrop { background: rgba(4,30,49,.88); backdrop-filter: blur(8px); }
.search-panel { position: relative; padding: 44px; background: var(--paper); box-shadow: 0 26px 80px rgba(0,0,0,.35); }
.search-close { position: absolute; right: 18px; top: 15px; border: 0; background: none; font-size: 32px; cursor: pointer; }
.search-panel label { display: grid; gap: 10px; }
.search-panel label span { font-size: 12px; font-weight: 700; }
.search-panel input { width: 100%; border: 0; border-bottom: 2px solid var(--ink); outline: 0; background: transparent; padding: 12px 0; font-size: 20px; }
.search-results { margin-top: 26px; color: var(--muted); font-size: 13px; }
.search-result { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }

@media (max-width: 1050px) {
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 12px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid { gap: 44px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 680px); }
  .utility-bar { display: none; }
  .nav-row { height: 76px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 13px; }
  .brand small { display: none; }
  .menu-toggle { display: grid; width: 42px; height: 42px; padding: 10px; align-content: center; gap: 4px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle span { height: 2px; background: var(--ink); }
  .menu-toggle b { position: absolute; overflow: hidden; width: 1px; height: 1px; }
  .primary-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 26px 24px; background: var(--paper); }
  .primary-nav.open { display: flex; }
  .primary-nav a { width: 100%; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .search-button { display: none; }
  .hero { min-height: 660px; }
  .hero-content { padding: 86px 0 130px; }
  .hero h1 { font-size: clamp(50px, 12vw, 78px); }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,30,49,.94), rgba(4,40,65,.52)), linear-gradient(0deg, rgba(2,27,43,.6), transparent); }
  .hero-metrics { left: 16px; right: 16px; grid-template-columns: repeat(3, 1fr); }
  .hero-metrics div { min-width: 0; padding: 18px 12px; display: grid; gap: 8px; }
  .hero-metrics strong { font-size: 21px; }
  .hero-metrics span { font-size: 8px; }
  .ticker-inner { grid-template-columns: auto 1fr; }
  .ticker-copy span, .ticker-inner > a { display: none; }
  .section { padding: 62px 0; }
  .intro-grid, .section-heading, .research-grid { grid-template-columns: 1fr; gap: 36px; }
  .intro-columns { grid-template-columns: 1fr; gap: 18px; }
  .section-heading { margin-bottom: 42px; }
  .research h2 .title-line { white-space: normal; }
  .circuit-card { min-height: 470px; box-shadow: 14px 14px 0 var(--lime); }
  .student-grid { grid-template-columns: 1fr; }
  .student-photo { min-height: 440px; }
  .student-content { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 540px) {
  .hero { min-height: 650px; }
  .hero h1 { font-size: 48px; }
  .hero-copy { font-size: 14px; }
  .button { width: 100%; }
  .program-grid { grid-template-columns: 1fr; }
  .program-controls { overflow-x: auto; }
  .filter-button { white-space: nowrap; }
  .program-card { min-height: 270px; }
  .section-heading h2, .research h2, .student-content h2 { font-size: 44px; }
  .circuit-card { min-height: 470px; padding: 18px; }
  .circuit { max-height: 340px; }
  .document-toolbar { align-items: flex-end; }
  .document-row { grid-template-columns: 48px 1fr 20px; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .search-panel { padding: 38px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
