:root {
  color-scheme: light;
  --ink: #10243a;
  --muted: #587086;
  --soft: #eff6fb;
  --paper: #ffffff;
  --line: #d8e6f0;
  --blue: #0f5ea8;
  --blue-deep: #073b70;
  --blue-soft: #d7ecfb;
  --cyan: #18a7c6;
  --green: #38a169;
  --shadow: 0 22px 60px rgba(10, 45, 83, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7fbfe;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px 32px;
  color: #f7fbff;
  background: rgba(7, 32, 56, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  color: rgba(247, 251, 255, 0.84);
}

.nav-links a,
.language-toggle button {
  min-height: 38px;
  border-radius: 8px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.94rem;
  font-weight: 640;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.language-toggle button {
  border: 0;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 740;
  cursor: pointer;
}

.language-toggle button.active {
  color: var(--blue-deep);
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: 650px;
  height: calc(100vh - 36px);
  max-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--blue-deep);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-lab-ai.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 20, 37, 0.84) 0%, rgba(6, 35, 65, 0.72) 42%, rgba(8, 43, 76, 0.22) 100%),
    linear-gradient(0deg, rgba(4, 20, 37, 0.66) 0%, rgba(4, 20, 37, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 140px 0 64px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  width: min(860px, 100%);
  margin: 0;
  font-size: 4.4rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy {
  width: min(720px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 780;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--blue-deep);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.button.secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.facts-band {
  position: relative;
  z-index: 2;
  padding: 0 0 34px;
  background: #f7fbfe;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  margin: -36px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 46px rgba(21, 67, 107, 0.12);
}

.quick-facts div {
  min-width: 0;
  padding: 20px 22px;
  background: #ffffff;
}

.quick-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.98rem;
  font-weight: 720;
}

.section {
  padding: 96px 0;
  background: var(--paper);
}

.section-inner {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.intro-band,
.focus-band {
  background: var(--soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.contact-layout h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 2.35rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-grid p:last-child {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.94fr 0.94fr;
  gap: 18px;
}

.project-card,
.focus-grid article,
.updates article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.project-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(22, 62, 98, 0.08);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover {
  border-color: rgba(15, 94, 168, 0.38);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-card.featured {
  color: #ffffff;
  border-color: rgba(15, 94, 168, 0);
  background:
    linear-gradient(135deg, rgba(15, 94, 168, 0.94), rgba(7, 59, 112, 0.98)),
    var(--blue);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
  text-transform: uppercase;
}

.project-card.featured .project-meta {
  color: rgba(255, 255, 255, 0.72);
}

.project-card h3 {
  margin: 64px 0 18px;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.project-links {
  display: flex;
  margin-top: auto;
  padding-top: 28px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 2px solid currentColor;
  color: var(--blue);
  font-weight: 780;
}

.project-card.featured .project-links a {
  color: #ffffff;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.focus-grid article {
  padding: 28px;
  background: rgba(255, 255, 255, 0.76);
}

.focus-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-weight: 860;
}

.focus-grid h3 {
  margin: 32px 0 10px;
  color: var(--blue-deep);
  font-size: 1.22rem;
  line-height: 1.25;
}

.focus-grid p,
.updates p {
  margin: 0;
  color: var(--muted);
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1fr);
  gap: 56px;
}

.notes-layout .section-heading {
  display: block;
  margin: 0;
}

.updates {
  display: grid;
  gap: 14px;
}

.updates article {
  position: relative;
  padding: 22px 24px 22px 100px;
  overflow: hidden;
}

.updates time {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--green);
  font-weight: 860;
}

.updates h3 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 1.12rem;
  line-height: 1.25;
}

.contact-band {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 59, 112, 0.96), rgba(12, 86, 151, 0.96)),
    var(--blue-deep);
}

.contact-band .section-kicker,
.contact-band h2 {
  color: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.contact-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.contact-panel a {
  display: grid;
  gap: 4px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 180ms ease;
}

.contact-panel a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.contact-panel span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
}

.contact-panel strong {
  font-size: 1.02rem;
  font-weight: 760;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  color: var(--muted);
  background: #f7fbfe;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    gap: 14px;
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 640px;
    height: calc(100vh - 30px);
    max-height: 720px;
  }

  .hero-content {
    width: min(var(--max), calc(100% - 36px));
    padding: 118px 0 54px;
  }

  .hero h1 {
    font-size: 3rem;
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .quick-facts,
  .intro-grid,
  .section-heading,
  .project-grid,
  .focus-grid,
  .notes-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-inner {
    width: min(var(--max), calc(100% - 36px));
  }

  .intro-grid,
  .section-heading,
  .notes-layout,
  .contact-layout {
    gap: 28px;
  }

  .intro-grid h2,
  .section-heading h2,
  .contact-layout h2 {
    font-size: 2rem;
  }

  .project-card {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

  .language-toggle button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 650px;
    height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 20, 37, 0.9), rgba(6, 35, 65, 0.66)),
      linear-gradient(0deg, rgba(4, 20, 37, 0.75), rgba(4, 20, 37, 0.04));
  }

  .hero h1 {
    font-size: 2.38rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .quick-facts div {
    padding: 14px 16px;
  }

  .project-card,
  .focus-grid article {
    padding: 22px;
  }

  .project-card h3 {
    margin-top: 42px;
    font-size: 1.62rem;
  }

  .updates article {
    padding: 68px 20px 20px;
  }

  .updates time {
    top: 20px;
    left: 20px;
  }

  .site-footer {
    display: grid;
    padding: 24px 18px;
  }
}
