:root {
  color-scheme: light;
  --navy: #0b2545;
  --navy-2: #163a5f;
  --blue: #2e74b5;
  --teal: #0f766e;
  --amber: #d29b38;
  --coral: #e65f43;
  --ink: #17212b;
  --muted: #607181;
  --line: #d7e0e6;
  --paper: #ffffff;
  --wash: #f3f6f7;
  --soft-blue: #eaf1f7;
  --soft-green: #e6f3ef;
  --soft-coral: #faece8;
  --header-height: 68px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}
button, input, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1.05rem; height: 1.05rem; stroke-width: 1.8; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 9px 14px;
  background: white;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 4vw, 54px);
  color: white;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 325px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  background: white;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .84rem; letter-spacing: 0; }
.brand-copy small { margin-top: 4px; color: #bdd3e5; font-size: .67rem; letter-spacing: .05em; }
.site-header nav { display: flex; align-items: center; justify-content: center; gap: 26px; flex: 1; }
.site-header nav a {
  color: #eaf3f9;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: white; text-decoration: underline; text-underline-offset: 5px; }

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 4px;
  color: white;
  background: transparent;
  cursor: pointer;
}
.icon-button:hover, .icon-button:focus-visible { background: rgba(255,255,255,.12); }

.hero {
  position: relative;
  min-height: min(790px, 82vh);
  height: max(680px, 82vh);
  overflow: hidden;
  color: white;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 20, 34, .88) 0%, rgba(7, 20, 34, .65) 38%, rgba(7, 20, 34, .16) 68%, rgba(7, 20, 34, .18) 100%), linear-gradient(0deg, rgba(7,20,34,.62), transparent 36%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-top: clamp(145px, 21vh, 210px);
}
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  font-size: .72rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .16em;
}
.eyebrow { color: #cfe1ee; }
.section-kicker { color: var(--coral); }
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .95;
  letter-spacing: 0;
  font-weight: 850;
}
.hero-lead { max-width: 640px; margin: 26px 0 0; color: #f3f7fa; font-size: clamp(1rem, 1.5vw, 1.24rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--coral); color: white; }
.button.primary:hover { background: #c94b32; }
.button.secondary { border-color: rgba(255,255,255,.65); color: white; background: rgba(5,18,31,.3); }
.button.secondary:hover { background: rgba(255,255,255,.14); }
.button.dark { background: var(--navy); color: white; }
.button.outline { border-color: var(--navy); color: var(--navy); background: white; }
.hero-boundary { margin: 18px 0 0; color: #bfd0dc; font-size: .76rem; }

.snapshot-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--navy);
  color: white;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
}
.metric { min-height: 118px; display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; border-left: 1px solid rgba(255,255,255,.16); }
.metric:last-child { border-right: 1px solid rgba(255,255,255,.16); }
.metric strong { font-size: 2rem; line-height: 1; }
.metric span { margin-top: 10px; color: #c6d8e5; font-size: .76rem; }

.section-shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; padding: 96px 0; }
.section-band { background: var(--wash); }
.section-band > .section-shell { padding-block: 88px; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.08; letter-spacing: 0; }
.intro-copy p { margin: 0 0 18px; color: #334454; font-size: 1.05rem; }
.intro-copy strong { color: var(--teal); }

.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { max-width: 760px; font-size: clamp(2rem, 4vw, 3.2rem); }
.section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: .92rem; }
.architecture-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 46px; align-items: center; }
.department-bars { display: grid; gap: 15px; }
.bar-row { display: grid; grid-template-columns: minmax(160px, 1.5fr) 3fr 32px; gap: 12px; align-items: center; }
.bar-label { font-size: .79rem; font-weight: 700; color: #324758; }
.bar-track { position: relative; height: 11px; background: #dce5e9; overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue); transform-origin: left; }
.bar-row:nth-child(2) .bar-fill { background: var(--teal); }
.bar-value { text-align: right; font-weight: 900; color: var(--navy); }
.report-figure { margin: 0; padding: 18px; background: white; border: 1px solid var(--line); }
.report-figure img { aspect-ratio: 16 / 9; width: 100%; object-fit: contain; }
.report-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .74rem; }

.production-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
}
.production-flow li { position: relative; min-height: 126px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; border-right: 1px solid var(--line); color: var(--navy); }
.production-flow li:last-child { border-right: 0; }
.production-flow li:not(:last-child)::after { content: ""; position: absolute; z-index: 2; right: -5px; width: 8px; height: 8px; border-top: 2px solid var(--coral); border-right: 2px solid var(--coral); transform: rotate(45deg); background: white; }
.production-flow svg { width: 25px; height: 25px; color: var(--coral); }
.production-flow span { font-size: .75rem; font-weight: 800; }

.vector-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.vector-list article { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.vector-list article:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 40px; }
.vector-list article:nth-child(even) { padding-left: 40px; }
.vector-list article > span { font-size: 2rem; color: var(--coral); font-weight: 900; line-height: 1; }
.vector-list h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.04rem; }
.vector-list p { margin: 0; color: #506171; font-size: .9rem; }

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) auto minmax(180px, .65fr) minmax(180px, .65fr) 42px;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.search-field { position: relative; }
.search-field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bdc9d1;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
.search-field input { padding: 9px 12px 9px 40px; }
select { padding: 9px 34px 9px 11px; }
.segmented { display: flex; border: 1px solid #bdc9d1; border-radius: 4px; overflow: hidden; }
.segmented button { min-height: 40px; padding: 8px 11px; border: 0; border-right: 1px solid #bdc9d1; background: white; color: #465b6c; cursor: pointer; font-size: .76rem; font-weight: 800; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--navy); color: white; }
.reset-button { min-height: 42px; display: grid; place-items: center; border: 1px solid #bdc9d1; border-radius: 4px; background: white; color: var(--navy); cursor: pointer; }

.role-table { border-top: 2px solid var(--navy); }
.role-table-head, .role-row { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr 42px; gap: 22px; align-items: center; }
.role-table-head { min-height: 46px; color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.role-row { width: 100%; min-height: 112px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; color: var(--ink); cursor: pointer; }
.role-row:hover, .role-row:focus-visible { background: #f7fafb; outline: none; box-shadow: inset 4px 0 var(--coral); padding-left: 14px; }
.role-title { display: grid; gap: 5px; }
.role-title strong { color: var(--navy); font-size: 1rem; }
.role-title span, .role-org span { color: var(--muted); font-size: .74rem; }
.role-org { display: grid; gap: 3px; font-size: .81rem; }
.role-mission { color: #405364; font-size: .84rem; line-height: 1.55; }
.role-open { width: 36px; height: 36px; display: grid; place-items: center; color: var(--coral); }
.track-badge { width: fit-content; display: inline-flex; padding: 3px 8px; border-radius: 99px; background: var(--soft-blue); color: var(--blue); font-size: .68rem; font-weight: 900; }
.track-badge[data-track="Internship"] { background: var(--soft-green); color: var(--teal); }
.track-badge[data-track="New Grad"] { background: var(--soft-coral); color: #b5452f; }
.empty-state { padding: 70px 0; text-align: center; color: var(--muted); }
.empty-state svg { width: 34px; height: 34px; }
.empty-state h3 { margin: 12px 0 4px; color: var(--navy); }
.empty-state p { margin: 0; }

.change-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.change-column { padding: 28px 28px 28px 0; }
.change-column + .change-column { padding-left: 28px; border-left: 1px solid var(--line); }
.change-column h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 20px; color: var(--navy); font-size: 1rem; }
.change-column.added h3 svg { color: var(--teal); }
.change-column.removed h3 svg { color: var(--coral); }
.change-column.renamed h3 svg { color: var(--amber); }
.change-column p { display: grid; gap: 3px; margin: 0 0 16px; }
.change-column p strong { font-size: .86rem; }
.change-column p span { color: var(--muted); font-size: .76rem; }

.lane-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.lane-grid > div { min-height: 190px; padding: 28px; border-right: 1px solid var(--line); }
.lane-grid > div:last-child { border-right: 0; }
.lane-grid h3 { margin: 0 0 13px; color: var(--navy); font-size: 1rem; }
.lane-grid p { margin: 0; color: #506171; font-size: .9rem; }

.evidence-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.evidence h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.evidence p { color: #415666; }
.download-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.evidence-list { margin: 0; border-top: 2px solid var(--navy); }
.evidence-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.evidence-list dt { color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.evidence-list dd { margin: 0; color: var(--navy); font-size: .84rem; }
.evidence-list code { font-family: Consolas, monospace; font-size: .78rem; }

footer { display: flex; justify-content: space-between; gap: 40px; padding: 42px max(20px, calc((100vw - var(--max)) / 2)); background: #071a2d; color: white; }
footer strong { font-size: .88rem; }
footer p { margin: 5px 0 0; color: #a9c0d1; font-size: .76rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links a { color: #dce9f2; font-size: .76rem; }

dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 6px; color: var(--ink); box-shadow: 0 28px 80px rgba(5,18,32,.42); }
dialog::backdrop { background: rgba(6, 17, 29, .72); backdrop-filter: blur(5px); }
.dialog-shell { background: white; }
.dialog-topbar { height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 26px; border-bottom: 1px solid var(--line); }
.dialog-close { color: var(--navy); border-color: var(--line); }
.dialog-content { padding: 34px 34px 38px; }
.dialog-id { margin: 0 0 8px; color: var(--muted); font-family: Consolas, monospace; font-size: .76rem; }
.dialog-content h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
.dialog-meta { margin: 10px 0 28px; color: var(--muted); }
.dialog-section { padding: 18px 0; border-top: 1px solid var(--line); }
.dialog-section > span { color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .11em; }
.dialog-section p { margin: 8px 0 0; color: #354a5a; }
.dialog-section.inference { border-left: 4px solid var(--amber); padding-left: 18px; background: #fffaf0; }
.dialog-section.inference > span { color: #8d641d; }
.dialog-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 18px 0 28px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dialog-facts > div { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-facts span { display: block; color: var(--muted); font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.dialog-facts strong { display: block; margin-top: 4px; color: var(--navy); font-size: .82rem; overflow-wrap: anywhere; }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .brand { min-width: 0; flex: 1; }
  .snapshot-band { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(4) { border-left: 0; }
  .filter-toolbar { grid-template-columns: 1fr 1fr 1fr 42px; }
  .search-field { grid-column: 1 / -1; }
  .segmented { grid-column: 1 / span 2; }
  .architecture-grid { grid-template-columns: 1fr; }
  .production-flow { grid-template-columns: repeat(4, 1fr); }
  .production-flow li:nth-child(4) { border-right: 0; }
  .production-flow li:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --header-height: 58px; }
  .site-header { padding-inline: 14px; }
  .brand-copy strong { font-size: .72rem; }
  .brand-copy small { display: none; }
  .hero { min-height: 680px; height: 82vh; }
  .hero > img { object-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,20,34,.9), rgba(7,20,34,.45)), linear-gradient(0deg, rgba(7,20,34,.8), transparent 55%); }
  .hero-content { padding-top: 125px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .snapshot-band { grid-template-columns: repeat(2, 1fr); padding-inline: 0; }
  .metric { min-height: 96px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.16); }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:last-child { border-right: 0; }
  .section-shell { width: min(100% - 28px, var(--max)); padding-block: 70px; }
  .section-band > .section-shell { padding-block: 66px; }
  .intro-grid, .evidence-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-heading { display: grid; gap: 18px; margin-bottom: 30px; }
  .bar-row { grid-template-columns: minmax(112px, 1.15fr) 2fr 24px; gap: 8px; }
  .bar-label { font-size: .68rem; }
  .report-figure { padding: 8px; }
  .production-flow { grid-template-columns: repeat(2, 1fr); }
  .production-flow li { min-height: 112px; border-bottom: 1px solid var(--line); }
  .production-flow li:nth-child(even) { border-right: 0; }
  .production-flow li:nth-child(4) { border-right: 0; }
  .vector-list { grid-template-columns: 1fr; }
  .vector-list article, .vector-list article:nth-child(odd), .vector-list article:nth-child(even) { border-right: 0; padding: 22px 0; }
  .filter-toolbar { grid-template-columns: 1fr 42px; }
  .search-field, .segmented { grid-column: 1 / -1; }
  .segmented { overflow-x: auto; }
  .segmented button { flex: 1 0 auto; }
  .filter-toolbar label:has(select) { grid-column: 1 / -1; }
  .reset-button { grid-column: 2; grid-row: 5; }
  .role-table-head { display: none; }
  .role-row { grid-template-columns: 1fr 34px; gap: 12px; min-height: 0; padding: 20px 4px; }
  .role-title, .role-org, .role-mission { grid-column: 1; }
  .role-open { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .change-grid, .lane-grid { grid-template-columns: 1fr; }
  .change-column, .change-column + .change-column { padding: 25px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .change-column:last-child { border-bottom: 0; }
  .lane-grid > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .lane-grid > div:last-child { border-bottom: 0; }
  footer { display: grid; }
  .footer-links { display: grid; gap: 8px; }
  dialog { width: 100%; max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }
  .dialog-content { padding: 26px 20px 36px; }
  .dialog-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
