:root {
  color-scheme: light;
  --ink: #101626;
  --muted: #5c6678;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --line: rgba(16, 22, 38, 0.13);
  --navy: #101a33;
  --navy-2: #172447;
  --cyan: #16a8d8;
  --red: #d85151;
  --violet: #6967c7;
  --shadow: 0 18px 48px rgba(16, 22, 38, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(22, 168, 216, 0.09), transparent 34%),
    linear-gradient(225deg, rgba(216, 81, 81, 0.08), transparent 38%),
    var(--paper);
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 0;
}

.navbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(22, 168, 216, 0.12);
}

.nav-links a:focus-visible,
.brand:focus-visible,
.read-more:focus-visible,
.back-link:focus-visible,
.team-card a:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid rgba(240, 178, 74, 0.55);
  outline-offset: 3px;
}

.hero-header {
  width: 100%;
  padding: 24px max(20px, calc((100% - 1180px) / 2)) 0;
  overflow: hidden;
  color: #f7fbff;
  background:
    linear-gradient(120deg, rgba(22, 168, 216, 0.2), transparent 38%),
    linear-gradient(145deg, var(--navy), var(--navy-2) 58%, #2b1f4d);
}

.hero-header .brand,
.hero-header .nav-links a {
  color: #f7fbff;
}

.hero-header .nav-links a:hover,
.hero-header .nav-links a[aria-current="page"] {
  background: rgba(247, 251, 255, 0.13);
}

.hero {
  width: min(1180px, 100%);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 54px 0 96px;
}

.hero-copy {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(220px, 282px) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.hero-logo-panel {
  width: min(282px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 251, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-logo {
  width: min(162px, 70%);
  height: auto;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.35));
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.benefit-band .section-kicker,
.problem-card .section-kicker {
  font-size: clamp(0.9rem, 1.35vw, 1.08rem);
  line-height: 1.35;
}

.hero .eyebrow {
  color: #f7fbff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(4.25rem, 12vw, 8.6rem);
  line-height: 0.9;
  font-weight: 900;
}

.tagline {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(247, 251, 255, 0.9);
  font-size: clamp(1.16rem, 1.9vw, 1.48rem);
  line-height: 1.4;
  font-weight: 600;
}

.hero-actions,
.resource-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  background: var(--violet);
  color: #f7fbff;
}

.secondary-action {
  border: 1px solid rgba(247, 251, 255, 0.28);
  color: #f7fbff;
}

main {
  flex: 1;
}

.section-shell,
.subpage {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.publication-band {
  padding: 48px 0;
  background: #eaf1f9;
}

.publication-card {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.publication-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.publication-header .section-kicker {
  margin-bottom: 8px;
}

.publication-label p:last-child {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 850;
  line-height: 1.3;
}

.artifact-badges {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.artifact-badges img {
  width: 76px;
  height: auto;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 22, 38, 0.1);
}

.publication-card h2 {
  max-width: 890px;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.publication-card p {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.publication-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.benefit-band {
  padding: 76px 0;
  background: #f7f5ef;
}

.benefit-band h2,
.page-intro h1,
.coming-soon h1 {
  max-width: 820px;
  margin-bottom: 32px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
}

.benefit-band h2 {
  max-width: none;
}

.page-label {
  margin-bottom: 34px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
}

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

.benefit-card,
.post-card,
.team-card,
.coming-soon {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.benefit-card {
  min-height: 230px;
  padding: 26px;
}

.icon-badge {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f6fb;
  color: var(--cyan);
}

.icon-badge svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.benefit-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.benefit-card p,
.problem-card p,
.post-card p,
.team-card p,
.blog-post p,
.switch-figure figcaption {
  color: var(--muted);
  line-height: 1.68;
}

.problem-band {
  padding: 82px 0 92px;
  background:
    linear-gradient(90deg, rgba(16, 26, 51, 0.96), rgba(43, 31, 77, 0.9)),
    var(--navy);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.problem-card {
  min-height: 360px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
}

.problem-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.problem-card-dark {
  background: linear-gradient(145deg, #121c3a, #1d2a57);
  color: #f7fbff;
}

.problem-card-dark p {
  color: rgba(247, 251, 255, 0.78);
}

.problem-card-light {
  background: linear-gradient(145deg, #e7f6fb, #ebeaff);
}

.subpage {
  padding: 74px 0 86px;
}

.page-intro {
  max-width: 920px;
  margin-bottom: 34px;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.post-card {
  padding: clamp(24px, 4vw, 36px);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--violet);
  font-size: 0.9rem;
  font-weight: 800;
}

.post-meta span::after {
  content: "/";
  margin-left: 12px;
  color: rgba(92, 102, 120, 0.55);
}

.post-card h2,
.blog-post h1 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card h2 a:hover,
.team-card a:hover,
.back-link:hover {
  color: var(--violet);
}

.read-more,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid rgba(22, 168, 216, 0.24);
  border-radius: 8px;
  padding: 8px 13px;
  background: rgba(22, 168, 216, 0.08);
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.read-more:hover,
.back-link:hover {
  border-color: rgba(22, 168, 216, 0.42);
  background: rgba(22, 168, 216, 0.14);
  color: var(--navy);
}

.article-layout {
  width: min(920px, calc(100% - 40px));
}

.blog-post {
  padding: clamp(24px, 5vw, 56px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.blog-post h1 {
  margin-bottom: 26px;
}

.blog-post p {
  font-size: 1.07rem;
}

.back-link {
  margin-bottom: 28px;
  color: var(--violet);
}

.switch-figure {
  margin: 46px 0;
  overflow-x: auto;
  text-align: center;
}

.switch-figure svg {
  width: 100%;
  min-width: 720px;
  height: auto;
  font-family: inherit;
}

.switch-figure figcaption {
  max-width: 690px;
  margin: 14px auto 0;
  font-size: 0.94rem;
}

.figure-panel {
  fill: rgba(244, 247, 251, 0.88);
  stroke: rgba(16, 22, 38, 0.16);
  stroke-width: 1.2;
}

.state-box {
  fill: #ddf4fb;
  stroke: #16a8d8;
  stroke-width: 1.6;
}

.gap-box {
  fill: #ffd9cf;
  stroke: #d85151;
  stroke-width: 1.6;
}

.model-box {
  fill: #ebeaff;
  stroke: #6967c7;
  stroke-width: 1.6;
}

.figure-arrow {
  stroke: #5c6678;
  stroke-linecap: round;
  stroke-width: 2.4;
  marker-end: url(#arrow);
}

.figure-heading {
  font-size: 20px;
  font-weight: 800;
}

.figure-note,
.figure-label {
  fill: #5c6678;
}

.figure-label {
  font-size: 16px;
  font-weight: 800;
}

.coming-soon {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.documentation-grid {
  display: grid;
  gap: 22px;
}

.coming-soon img {
  width: 94px;
  height: auto;
  margin-bottom: 22px;
  object-fit: contain;
}

.coming-soon h1 {
  margin-bottom: 10px;
}

.resource-links {
  justify-content: center;
  margin-top: 10px;
}

.research-card .resource-links {
  max-width: none;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  min-height: 260px;
  padding: 22px;
}

.avatar {
  width: 116px;
  height: 116px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: #f7fbff;
  font-size: 2rem;
  font-weight: 900;
}

.team-card h2 {
  margin-bottom: 8px;
  font-size: 1.16rem;
  line-height: 1.2;
}

.team-heading {
  max-width: none;
  color: var(--violet);
  font-size: clamp(1.45rem, 2.7vw, 2.45rem);
  line-height: 1.08;
  white-space: nowrap;
  word-break: normal;
}

.team-heading span {
  font-size: 1em;
}

.team-card h2 a {
  text-decoration: none;
}

.team-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero {
    min-height: 560px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .problem-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-shell,
  .subpage,
  .article-layout,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding-inline: 9px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 0;
    padding: 44px 0 70px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 5.8rem);
  }

  .hero-logo-panel {
    width: min(282px, 100%);
  }

  .publication-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .artifact-badges {
    justify-content: flex-start;
  }

  .benefit-band h2,
  .team-heading {
    font-size: clamp(1.05rem, 4.6vw, 1.6rem);
  }

  .team-heading {
    line-height: 1.12;
    overflow-wrap: normal;
    text-wrap: balance;
    white-space: normal;
  }

  .benefit-band,
  .problem-band {
    padding: 54px 0;
  }

  .benefit-grid,
  .problem-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: 0;
  }

  .post-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .post-meta span::after {
    content: "";
    margin-left: 0;
  }
}
