:root {
  --ink: #10283a;
  --ink-deep: #061c2b;
  --navy: #0b3046;
  --blue: #126ab4;
  --accent: #31b7d8;
  --accent-soft: #e4f4f7;
  --muted: #60768a;
  --line: #dce5ec;
  --paper: #fff;
  --wash: #f3f7fa;
  --radius: 24px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.65 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.045em; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 15px; color: var(--ink-deep); background: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; color: #eaf5fb; background: rgba(6,28,43,.3); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); transition: background 180ms ease, box-shadow 180ms ease; }
.site-header.is-scrolled { background: rgba(6,28,43,.96); box-shadow: 0 10px 30px rgba(2,15,24,.2); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand img { width: 50px; }
.brand span { display: grid; line-height: 1.18; }
.brand strong { color: #fff; font-size: .98rem; }
.brand small { margin-top: 5px; color: #91aebe; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 27px; }
.primary-nav a { color: #dce9f1; font-size: .77rem; font-weight: 750; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; }
.primary-nav .nav-contact { padding: 9px 16px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 12px 9px; background: transparent; border: 0; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: #fff; }

.hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; color: #fff; background: radial-gradient(circle at 78% 25%, rgba(37,121,164,.3), transparent 28%), linear-gradient(120deg, #061c2b 0%, #0a354b 72%, #122a43 100%); }
.hero::after { content: ""; position: absolute; width: 680px; height: 680px; right: -330px; bottom: -420px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 85px rgba(255,255,255,.025), 0 0 0 170px rgba(255,255,255,.018); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; padding-top: 110px; padding-bottom: 70px; }
.eyebrow { margin-bottom: 24px; color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .21em; text-transform: uppercase; }
.eyebrow-light { color: #8fdcf0; }
.hero h1 { max-width: 780px; margin-bottom: 28px; font-size: clamp(3.6rem, 7vw, 6.4rem); }
.hero h1 span { color: #8fdcf0; }
.hero-lead { max-width: 680px; margin-bottom: 34px; color: #c2d5df; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 11px 20px; border-radius: 999px; font-size: .77rem; font-weight: 800; text-decoration: none; }
.button-light { color: var(--ink-deep); background: #fff; }
.button-outline { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.button-dark { color: #fff; background: var(--ink-deep); }
.hero-visual { min-height: 430px; display: grid; place-items: center; }
.hero-card { width: min(100%, 470px); padding: 28px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.hero-card img { width: 100%; }
.hero-card-label { margin: 18px 0 0; color: #9bb8c8; font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; }
.hero-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-data span { min-height: 116px; display: grid; align-content: end; padding: 16px; color: #a9c2cf; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-data strong { display: block; color: #fff; font-size: 1.65rem; letter-spacing: -.04em; text-transform: none; }

.section { padding: 112px 0; }
.section-wash { background: var(--wash); }
.section-dark { color: #fff; background: var(--ink-deep); }
.split-intro { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 80px; margin-bottom: 52px; }
.split-intro h2, .section-heading h2 { max-width: 800px; margin-bottom: 0; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.split-intro > p, .section-heading > p { color: var(--muted); }
.section-dark .split-intro > p, .section-dark .section-heading > p { color: #aac1cd; }

.path-grid, .feature-grid, .application-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 340px; display: flex; flex-direction: column; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-dark { color: #fff; background: var(--ink-deep); border-color: var(--ink-deep); }
.card-accent { background: var(--accent-soft); }
.card-index { margin-bottom: auto; color: #93aabd; font-size: .7rem; font-weight: 850; letter-spacing: .15em; }
.card-label { margin: 42px 0 14px; color: var(--blue); font-size: .67rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.card-dark .card-label { color: #91dced; }
.card h3 { margin-bottom: 16px; font-size: 1.65rem; }
.card > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.card-dark > p:last-child { color: #b2c8d4; }
.card a { width: fit-content; margin-top: 24px; color: var(--blue); font-size: .78rem; font-weight: 800; text-decoration: none; }

.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mission-card { min-height: 380px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); }
.mission-card:first-child { color: #fff; background: var(--ink-deep); border-color: var(--ink-deep); }
.mission-card span { color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.mission-card:first-child span { color: #8fdcf0; }
.mission-card h3 { margin: 78px 0 18px; font-size: 2.1rem; }
.mission-card p { margin-bottom: 0; color: var(--muted); }
.mission-card:first-child p { color: #b7cbd6; }

.people-intro { max-width: 780px; margin-bottom: 50px; }
.people-intro h2 { margin-bottom: 20px; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.people-intro p { color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 19px; }
.person-image { aspect-ratio: 1 / .9; display: grid; place-items: end center; overflow: hidden; background: #edf3f7; }
.person-image img { width: 100%; height: 100%; object-fit: cover; }
.person-copy { padding: 20px; }
.person h3 { margin-bottom: 8px; font-size: 1rem; letter-spacing: -.025em; }
.person p { margin-bottom: 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }

.research-layout, .matlab-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.research-intro, .matlab-intro { position: sticky; top: 118px; }
.research-intro h2, .matlab-intro h2 { margin-bottom: 24px; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.research-intro p, .matlab-intro p { color: #aec3cf; }
.research-list { border-top: 1px solid rgba(255,255,255,.18); }
.research-row { display: grid; grid-template-columns: 58px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.research-row span { color: #8fdcf0; font-size: .7rem; font-weight: 850; }
.research-row h3 { margin-bottom: 10px; font-size: 1.3rem; }
.research-row p { margin-bottom: 0; color: #aac1cd; font-size: .85rem; }
.research-row a { color: #fff; font-weight: 700; }

.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.step > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: var(--accent-soft); border-radius: 50%; font-size: .72rem; font-weight: 850; }
.step h3 { margin: 0 0 7px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .84rem; }
.code-list { margin-top: 24px; display: grid; gap: 10px; }
.code-list code { display: block; overflow-x: auto; padding: 17px 18px; color: #d9ecf5; background: #0a2638; border-radius: 12px; font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.media-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.media-card { min-height: 330px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.media-card-dark { color: #fff; background: var(--ink-deep); border-color: var(--ink-deep); }
.media-card h3 { margin: 100px 0 16px; font-size: 2rem; }
.media-card p { color: var(--muted); }
.media-card-dark p { color: #b2c8d4; }
.media-card a { display: inline-flex; margin-top: 10px; color: var(--blue); font-size: .79rem; font-weight: 800; text-decoration: none; }
.media-card-dark a { color: #ff99bd; }

.contact-section { padding: 90px 0; color: #fff; background: #0b3046; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-grid h2 { margin-bottom: 18px; font-size: clamp(2.5rem, 5vw, 4rem); }
.contact-grid p { margin-bottom: 0; color: #b5cad5; }
.contact-actions { display: grid; gap: 12px; }
.email-button { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; color: var(--ink); background: #fff; border: 0; border-radius: 14px; text-align: left; cursor: pointer; }
.email-button:hover { background: #edf7fa; }
.email-button span { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.email-button strong { color: var(--ink-deep); font-size: .82rem; }

.site-footer { padding: 62px 0 28px; color: #afc4cf; background: #061c2b; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 70px; padding-bottom: 52px; }
.footer-brand { width: fit-content; }
.footer-top nav { display: grid; align-content: start; gap: 10px; }
.footer-top nav a { width: fit-content; color: #afc4cf; font-size: .75rem; font-weight: 700; text-decoration: none; }
.footer-top nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 23px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; font-size: .68rem; }

.vaad-page { --accent: #2a9fc0; --accent-soft: #e1f3f6; }
.vaad-page .hero h1 span { color: #8de0ee; }
.vaad-page .hero-card { padding: 18px; background: #fff; }
.vaad-page .hero-card img { border-radius: 13px; }
.vaad-page .hero-card-label { padding-inline: 8px; color: var(--muted); }
.vaad-page .hero-mark { width: min(100%, 400px); margin-bottom: 28px; filter: brightness(0) invert(1); }
.vaad-page .application-grid .card { min-height: 280px; }

.dvp-page { --blue: #d31668; --accent: #e22775; --accent-soft: #fde7f0; }
.dvp-page .hero { background: radial-gradient(circle at 78% 25%, rgba(226,39,117,.22), transparent 28%), linear-gradient(120deg, #061c2b, #19243f); }
.dvp-page .hero h1 span { color: #ff8dbb; }
.dvp-page .hero-card { background: rgba(255,255,255,.95); }
.dvp-page .hero-card img { width: 220px; margin-bottom: 26px; }
.dvp-page .mock-window { overflow: hidden; border-radius: 14px; border: 1px solid #d9e2e8; }
.dvp-page .mock-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; background: #e9eef2; }
.dvp-page .mock-bar i { width: 7px; height: 7px; background: #9aabb6; border-radius: 50%; }
.dvp-page .mock-grid { min-height: 210px; display: grid; grid-template-columns: .8fr 1.2fr; background: #f7f9fb; }
.dvp-page .mock-grid div { display: grid; place-items: center; padding: 18px; border-right: 1px solid #e0e7ec; }
.dvp-page .mock-grid div:last-child { border: 0; background: linear-gradient(135deg, #243d52 0 50%, #e22775 50%); }
.status-note { margin-top: 20px; color: #8fa9b8; font-size: .72rem; }

@media (max-width: 980px) {
  .primary-nav { position: fixed; top: 82px; inset-inline: 0; display: grid; gap: 18px; padding: 28px 24px 36px; background: rgba(6,28,43,.99); border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-140%); transition: transform 220ms ease; }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav .nav-contact { width: fit-content; }
  .menu-button { display: block; }
  .hero-grid, .split-intro, .research-layout, .matlab-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .hero { min-height: auto; }
  .research-intro, .matlab-intro { position: static; }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .path-grid, .feature-grid, .application-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 74px; }
  .brand small { display: none; }
  .hero-grid { padding-top: 122px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-visual { min-height: auto; }
  .hero-data, .path-grid, .feature-grid, .application-grid, .mission-grid, .people-grid, .media-panel { grid-template-columns: 1fr; }
  .section { padding: 82px 0; }
  .card, .mission-card, .media-card { min-height: 310px; padding: 27px; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .person-copy { padding: 15px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 7px; }
  .email-button { align-items: flex-start; flex-direction: column; gap: 7px; }
}
