:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-strong: #fbfaf6;
  --ink: #111827;
  --muted: #596273;
  --line: rgba(17, 24, 39, .16);
  --blue: #2455d6;
  --blue-deep: #163ca6;
  --teal: #0d9488;
  --amber: #da8c13;
  --navy: #14213d;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; min-width: 320px; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
::selection { color: #fff; background: var(--blue); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 24, 39, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 680px);
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.brand, .site-footer > div { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a, .language-link { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .language-link:hover { color: var(--blue); }
.language-link { justify-self: end; border-bottom: 1px solid currentColor; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  min-height: 520px;
  padding: 60px 0 68px;
}
.eyebrow, .section-index, .project-meta, .flow-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(13, 148, 136, .12); }
.hero h1 {
  max-width: 900px;
  margin: 24px 0 22px;
  font-size: clamp(48px, 5.5vw, 68px);
  font-weight: 760;
  line-height: .94;
  letter-spacing: -.065em;
}
.hero h1 em { color: var(--blue); font-family: var(--serif); font-weight: 400; }
.hero-intro { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; min-width: 170px; padding: 12px 15px; border: 1px solid var(--ink); font-size: 13px; font-weight: 750; text-decoration: none; transition: .2s ease; }
.button-primary { color: #fff; background: var(--ink); }
.button-primary:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.button-secondary:hover { color: #fff; background: var(--ink); transform: translateY(-2px); }
.hero-aside { align-self: stretch; display: grid; align-items: center; }
.signal-card { position: relative; padding: 20px; background: rgba(251, 250, 246, .8); border: 1px solid var(--line); box-shadow: 12px 12px 0 rgba(36, 85, 214, .1); }
.signal-card::before, .signal-card::after { content: ""; position: absolute; width: 34px; height: 34px; border-color: var(--blue); }
.signal-card::before { top: -8px; left: -8px; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); }
.signal-card::after { right: -8px; bottom: -8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.signal-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 88px; margin: 18px -4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.waveform i { display: block; width: 3px; height: 18px; background: var(--blue); border-radius: 3px; }
.waveform i:nth-child(3n) { height: 34px; }
.waveform i:nth-child(4n) { height: 52px; background: var(--teal); }
.waveform i:nth-child(7n) { height: 70px; }
.waveform i:nth-child(8n) { height: 32px; }
.signal-card > p { margin: 0; font-size: 15px; line-height: 1.55; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.focus-tags span { padding: 6px 9px; color: var(--blue-deep); background: rgba(36, 85, 214, .08); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: 76px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 36px; }
.section-index { color: var(--blue); padding-top: 10px; }
.section-heading h2, .about h2 { max-width: 760px; margin: 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; letter-spacing: -.04em; }
.section-heading > div > p { max-width: 660px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.project-card { min-width: 0; background: var(--paper-strong); border: 1px solid var(--line); }
.project-card-featured { grid-column: auto; display: block; }
.project-visual, .project-card-featured .project-visual { display: block; height: 240px; min-height: 0; overflow: hidden; background: #dfe7fb; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-visual img { transform: scale(1.025); }
.project-visual-contain { display: grid; place-items: center; padding: 20px; background: #e7eaf0; }
.project-visual-contain img { object-fit: contain; }
.project-copy { display: flex; flex-direction: column; min-height: 265px; padding: 26px; }
.project-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.project-copy h3, .project-card:not(.project-card-featured) .project-copy h3 { margin: 28px 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1; letter-spacing: -.035em; }
.project-copy > p:not(.project-meta) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 24px; }
.project-links a, .tool-copy > a, .about-links a { font-size: 14px; font-weight: 780; text-decoration: none; border-bottom: 1px solid currentColor; }
.project-links a:hover, .tool-copy > a:hover, .about-links a:hover { color: var(--blue); }
.project-blue { border-top: 5px solid var(--blue); }
.project-teal { border-top: 5px solid var(--teal); }
.project-amber { border-top: 5px solid var(--amber); }
.project-navy { border-top: 5px solid var(--navy); }
.benchmark-visual { display: flex; flex-direction: column; height: 240px; min-height: 0; padding: 22px; color: #fff; background: var(--teal); text-decoration: none; }
.bench-topline { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.benchmark-visual strong { margin-top: 24px; font-size: clamp(56px, 7vw, 82px); line-height: .8; letter-spacing: -.07em; }
.bench-label { margin-top: 10px; font-size: 13px; }
.bench-meter { height: 5px; margin-top: 18px; background: rgba(255,255,255,.24); }
.bench-meter i { display: block; width: 87.9%; height: 100%; background: #fff; }
.bench-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35); }
.bench-stats span { font-size: 10px; text-transform: uppercase; }
.bench-stats b { display: block; font-size: 17px; }

.research-story { width: 100vw; margin-left: calc(50% - 50vw); padding-inline: max(24px, calc((100vw - var(--max)) / 2)); color: #fff; background: var(--navy); border: 0; }
.section-heading-light .section-index { color: #73d5ca; }
.section-heading-light > div > p { color: #b6c2d4; }
.research-flow { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; gap: 10px; align-items: stretch; }
.research-flow article { padding: 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.035); }
.flow-number { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--navy); background: #73d5ca; font-size: 10px; font-weight: 850; }
.flow-label { margin-top: 24px; color: #73d5ca; }
.research-flow h3 { margin: 10px 0; font-size: 21px; line-height: 1.18; }
.research-flow article > p:last-child { margin: 0; color: #b6c2d4; font-size: 14px; }
.flow-arrow { display: grid; place-items: center; color: #73d5ca; font-size: 22px; }
.research-evidence { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 24px; align-items: end; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.research-evidence div { display: flex; align-items: baseline; gap: 12px; }
.research-evidence strong { color: #73d5ca; font-size: 32px; }
.research-evidence span { color: #b6c2d4; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.research-evidence a { color: #fff; font-weight: 750; text-decoration: none; border-bottom: 1px solid #73d5ca; }

.tool-list { margin-left: 202px; }
.tool-card { display: grid; grid-template-columns: 180px 1fr; min-height: 220px; border: 1px solid var(--line); background: var(--paper-strong); }
.tool-image { min-height: 100%; overflow: hidden; background: #dfe7fb; }
.tool-image img { width: 100%; height: 100%; object-fit: cover; }
.tool-copy { display: flex; flex-direction: column; padding: 26px; }
.tool-copy h3 { margin: 26px 0 10px; font-size: 25px; line-height: 1.05; }
.tool-copy > p:not(.project-meta) { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.tool-copy > a, .tool-copy .project-links { margin-top: auto; align-self: flex-start; }

.about { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; }
.about h2 { margin-bottom: 28px; }
.about-copy > p { max-width: 760px; margin: 0 0 14px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.about-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 96px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer p:last-child { justify-self: end; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-aside { max-width: 600px; }
  .research-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); min-height: 40px; }
  .research-evidence { grid-template-columns: repeat(3, 1fr); }
  .research-evidence a { grid-column: 1 / -1; justify-self: start; }
  .tool-list { margin-left: 0; }
  .tool-card { grid-template-columns: 160px 1fr; }
}

@media (max-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 32px, var(--max)); }
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; }
  .primary-nav { display: none; }
  .hero { gap: 38px; padding: 52px 0 60px; }
  .hero h1 { font-size: clamp(42px, 13vw, 56px); }
  .hero-intro { font-size: 18px; }
  .button { flex: 1 1 100%; }
  .section { padding: 60px 0; }
  .section-heading, .about { grid-template-columns: 1fr; gap: 22px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .about h2 { font-size: 34px; }
  .project-grid, .tool-list { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; }
  .project-visual, .project-card-featured .project-visual, .benchmark-visual { height: 220px; min-height: 0; }
  .project-copy { min-height: 0; }
  .project-copy h3, .project-card:not(.project-card-featured) .project-copy h3 { margin-top: 26px; }
  .research-story { padding-inline: 16px; }
  .research-evidence { grid-template-columns: 1fr; gap: 12px; }
  .research-evidence a { grid-column: auto; margin-top: 18px; }
  .tool-card { grid-template-columns: 112px 1fr; min-height: 240px; }
  .tool-copy { padding: 24px 20px; }
  .tool-copy h3 { margin-top: 32px; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .site-footer p:last-child { justify-self: start; }
}

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