:root {
  --ink: #17365e;
  --ink-deep: #121b2b;
  --muted: #5c6f87;
  --paper: #ffffff;
  --canvas: #f3f7f8;
  --line: #c9d8de;
  --blue: #2f66ad;
  --cyan: #18c4d8;
  --pink: #ec4e8b;
  --yellow: #ffc533;
  --purple: #a46cc1;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 11px 15px;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 7px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin: 0 auto;
}

.home-page .page-shell {
  grid-template-rows: 1fr auto;
}

.site-header {
  min-height: clamp(76px, 9vh, 96px);
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  width: clamp(90px, 7.5vw, 110px);
  flex: 0 0 auto;
  display: block;
  padding: 6px 8px;
  background: var(--paper);
  border: 1px solid #d6e1e5;
  border-radius: 11px;
  box-shadow: 0 8px 25px rgba(21, 52, 94, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(21, 52, 94, 0.13);
}

.brand:focus-visible,
.header-links a:focus-visible {
  outline: 3px solid var(--ink-deep);
  outline-offset: 4px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-context {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.header-label,
.eyebrow,
.tool-type,
.tool-location,
.relationship-label {
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-label {
  color: var(--pink);
}

.header-title {
  color: var(--ink-deep);
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.developer-link {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 13px;
  color: #fff;
  background: var(--ink-deep);
  border: 1px solid var(--ink-deep);
  border-radius: 11px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.developer-link:hover,
.developer-link:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
}

.developer-link span {
  color: #b6c8da;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.developer-link strong {
  margin-top: 1px;
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0 5px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--pink);
  border-color: var(--pink);
}

main {
  align-self: center;
  padding: clamp(14px, 2vh, 26px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(290px, 0.62fr);
  gap: clamp(24px, 4.5vw, 58px);
  align-items: end;
  margin-bottom: clamp(14px, 2vh, 22px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(10px, 1.3vh, 16px);
  color: var(--ink-deep);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--cyan);
  border-radius: 50%;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-deep);
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 3.35vw, 3.05rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.headline-accent {
  text-decoration-line: underline;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.08em;
  text-decoration-skip-ink: none;
}

.headline-accent--blue {
  text-decoration-color: var(--cyan);
}

.headline-accent--pink {
  text-decoration-color: var(--pink);
}

.intro-text {
  max-width: 410px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.tool-card {
  position: relative;
  min-width: 0;
  min-height: clamp(292px, 35vh, 370px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(18px, 1.65vw, 23px);
  background: var(--paper);
  border: 1px solid #dbe6e9;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(21, 52, 94, 0.055);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--card-accent);
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-accent) 42%, #dbe6e9);
  box-shadow: 0 14px 34px rgba(21, 52, 94, 0.09);
}

.tool-card:focus-visible {
  outline: 3px solid var(--ink-deep);
  outline-offset: 4px;
}

.dashboard-card {
  --card-accent: var(--blue);
  --visual-bg: #eaf1fa;
  --visual-line: #c2d5ea;
}

.atlas-card {
  --card-accent: var(--cyan);
  --card-action-ink: #102846;
  --visual-bg: #e3f6f6;
  --visual-line: #b8e1e4;
}

.tool-card-top,
.tool-card-top > div,
.tool-action {
  display: flex;
  align-items: center;
}

.tool-card-top {
  justify-content: space-between;
  gap: 18px;
}

.tool-card-top > div {
  gap: 10px;
}

.tool-number {
  min-width: 36px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--ink-deep);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
}

.tool-type {
  color: var(--muted);
}

.tool-arrow {
  color: var(--card-accent);
  font-size: 1.45rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.tool-card:hover .tool-arrow,
.tool-card:focus-visible .tool-arrow {
  transform: translate(2px, -2px);
}

.tool-visual {
  flex: 1 1 auto;
  min-height: 92px;
  max-height: 132px;
  margin: clamp(11px, 1.6vh, 16px) 0;
  overflow: hidden;
  background: var(--visual-bg);
  border: 1px solid var(--visual-line);
  border-radius: 13px;
}

.tool-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-grid circle,
.chart-grid path,
.bar-grid path {
  fill: none;
  stroke: #b3c9df;
  stroke-width: 1.2;
}

.radar-fill {
  fill: rgba(47, 102, 173, 0.2);
}

.radar-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.bar-one,
.bar-two,
.bar-three {
  fill: var(--blue);
}

.bar-two {
  fill: var(--cyan);
}

.bar-three {
  fill: var(--purple);
}

.route-lines path {
  fill: none;
  stroke: #91c4ca;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 4 13;
}

.hexes path {
  stroke: #fff;
  stroke-width: 5;
}

.hex-one {
  fill: var(--cyan);
}

.hex-two,
.hex-five {
  fill: var(--yellow);
}

.hex-three {
  fill: var(--pink);
}

.hex-four {
  fill: var(--purple);
}

.map-pin circle:first-child,
.map-pin path {
  fill: var(--ink-deep);
}

.map-pin circle:nth-child(2) {
  fill: white;
}

.tool-copy {
  max-width: 520px;
}

.tool-location {
  margin-bottom: 8px;
  color: var(--card-accent);
}

.tool-copy h2 {
  margin-bottom: 7px;
  color: var(--ink-deep);
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: clamp(1.38rem, 1.75vw, 1.74rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.tool-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tool-action {
  width: fit-content;
  gap: 12px;
  margin-top: clamp(10px, 1.4vh, 14px);
  padding: 8px 13px;
  color: var(--card-action-ink, #ffffff);
  background: color-mix(in srgb, var(--card-accent) 88%, #ffffff);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.action-line {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: width 180ms ease;
}

.tool-card:hover .action-line,
.tool-card:focus-visible .action-line {
  width: 34px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(10px, 1.3vh, 14px);
}

.relationship,
.partner-panel {
  min-height: 70px;
  border-radius: 12px;
}

.relationship {
  display: grid;
  grid-template-columns: minmax(118px, 0.22fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  background: #eef3f4;
  border: 1px solid var(--line);
}

.relationship-label {
  color: var(--pink);
}

.relationship p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--ink);
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  font-weight: 500;
  line-height: 1.45;
}

.partner-panel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-height: 44px;
  padding: 7px 9px 7px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(21, 52, 94, 0.06);
}

.partner-logo {
  width: 26px;
  height: 26px;
  display: block;
  order: 2;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.partner-copy {
  order: 1;
  min-width: 0;
}

.partner-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}

.partner-hit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.partner-panel:hover {
  border-color: #aebfc8;
  box-shadow: 0 10px 24px rgba(21, 52, 94, 0.085);
}

.partner-hit:focus-visible {
  outline: 3px solid var(--ink-deep);
  outline-offset: 4px;
}

.site-footer {
  min-height: clamp(64px, 7vh, 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.funding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.funding img {
  width: 46px;
  height: auto;
  display: block;
}

.funding p,
.footer-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.funding p {
  max-width: 440px;
}

.footer-credit {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.eu-disclaimer {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: -20px 0 0;
  color: color-mix(in srgb, var(--muted) 74%, #ffffff);
  font-size: 0.58rem;
  line-height: 1.45;
}

.eu-disclaimer em {
  font-style: italic;
}

@media (max-width: 1020px) {
  .developer-link {
    display: none;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  main {
    align-self: start;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .intro-text {
    max-width: 650px;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 380px;
  }

  .tool-visual {
    max-height: 150px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 96px;
    gap: 14px;
  }

  .brand {
    width: 100px;
  }

  .header-context {
    gap: 5px;
    align-items: flex-start;
    flex-direction: column;
    padding-left: 14px;
  }

  .header-title {
    font-size: 0.88rem;
  }

  .header-links {
    display: none;
  }

  main {
    padding: 22px 0 26px;
  }

  .intro {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .intro-text {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .tool-card {
    min-height: 0;
    padding: 21px;
    border-radius: 16px;
  }

  .tool-visual {
    flex: none;
    height: clamp(120px, 38vw, 154px);
    margin: 18px 0;
  }

  .tool-copy h2 {
    font-size: 1.46rem;
  }

  .relationship {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 14px;
  }

  .partner-panel {
    padding: 14px;
  }

  .site-footer {
    align-items: flex-start;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .footer-credit {
    text-align: left;
  }

  .eu-disclaimer {
    margin-top: -4px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand {
    width: 92px;
  }

  .tool-card-top > div {
    gap: 8px;
  }

  .tool-type {
    font-size: 0.68rem;
  }

  .partner-panel {
    justify-self: stretch;
  }
}

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

  .brand {
    width: 88px;
    padding: 5px 7px;
  }

  .developer-link {
    min-height: 46px;
  }

  main {
    padding: 14px 0;
  }

  .intro {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(1.95rem, 3.2vw, 2.65rem);
  }

  .tool-card {
    min-height: 290px;
    padding: 17px;
  }

  .tool-visual {
    min-height: 84px;
    max-height: 104px;
    margin: 12px 0;
  }

  .tool-action {
    margin-top: 10px;
  }

  .relationship,
  .partner-panel {
    min-height: 76px;
  }

  .site-footer {
    min-height: 60px;
    padding: 10px 0;
  }

  .eu-disclaimer {
    margin-top: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .tool-card,
  .tool-arrow,
  .action-line {
    transition: none;
  }
}
