@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #0f1b2d;
  --muted: #475467;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --rule: #e4e7ec;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--bg);
  color: var(--muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1080px, 90%);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.logo {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

/* Intro */

.intro {
  padding: 6rem 0 5rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h1 {
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
}

.lede {
  font-size: 1.15rem;
  max-width: 38em;
  margin-top: 1.75rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.nav-links .btn-small,
.nav-links .btn-small:hover {
  color: #fff;
}

.text-link {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.overview {
  font-size: 1.15rem;
  max-width: 34em;
  color: var(--ink);
}

.assurances {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.assurances li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* Sections: heading in a narrow left column, content on the right */

.block {
  border-top: 1px solid var(--rule);
  padding: 5.5rem 0;
}

.block.alt {
  background: var(--bg-alt);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem;
}

.split h2 {
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink);
}

.content {
  max-width: 40rem;
}

.entry {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.entry:first-child {
  padding-top: 0;
  border-top: none;
}

.entry h3 {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.entry p {
  max-width: 34em;
}

.icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro {
  position: relative;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(29, 78, 216, 0.09), transparent 65%);
  pointer-events: none;
}

.intro-grid {
  position: relative;
  min-height: 24rem;
  display: flex;
  align-items: center;
}

.intro-text {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.hero-graphic {
  position: absolute;
  top: 50%;
  right: -2rem;
  width: min(560px, 58%);
  transform: translateY(-50%);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  mask-image: linear-gradient(to right, transparent 0%, #000 40%);
}

.g-box {
  fill: var(--bg-alt);
  stroke: var(--rule);
  stroke-width: 1.5;
}

.g-line {
  stroke: var(--rule);
  stroke-width: 3;
}

.g-accent {
  stroke: var(--accent);
}

.g-box.g-accent {
  fill: #eef2ff;
}

.g-accent-line {
  stroke: var(--accent);
  opacity: 0.45;
}

.g-flow {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.g-arrow {
  stroke: var(--accent);
  stroke-width: 1.5;
}

.g-dot {
  fill: var(--accent);
  stroke: none;
}

.wide h2 {
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 2.25rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.cards .entry,
.cards .entry:first-child {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
}

.cards .icon {
  border: none;
  padding: 0;
  margin-bottom: 1.1rem;
  background: none;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rule);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: -0.9rem;
  right: -2.4rem;
  width: 1.3rem;
  background: var(--bg);
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: center;
  color: var(--accent);
}

.next-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.next-link::after {
  content: " →";
}

.next-link:hover {
  border-color: var(--accent);
}

.steps h3 {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.meta {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.prose p + p {
  margin-top: 1.25rem;
}

.contact-lead {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24ch;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.contact-links a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-links a:hover {
  border-color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content > span {
  color: var(--ink);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Project page */

.page-lede {
  margin-top: -2rem;
  margin-bottom: 3.5rem;
}

.group-title {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.project {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-title .icon {
  flex: none;
  margin-bottom: 0;
  background: var(--bg-alt);
}

.project-head h3 {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
}

.badge {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.project-intro {
  margin-top: 1rem;
  max-width: 40em;
  font-size: 1.05rem;
  color: var(--ink);
}

.project-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin-top: 2rem;
}

.project-cols h4 {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-alt);
}

.metric strong {
  display: block;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.metric span {
  font-size: 0.9rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  margin-top: 2rem;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.features {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.features li {
  position: relative;
  padding-left: 1.25rem;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 1px;
  background: var(--accent);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.project-cta {
  margin-top: 1.5rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--rule);
}

.project-cta h2 {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* Subpages and legal pages */

.page {
  padding: 5rem 0 4rem;
}

.page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 3.5rem;
}

.legal {
  padding: 5rem 0 4rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 3.5rem;
}

.legal-box {
  max-width: 46rem;
}

.legal-box h3 {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-box h3:first-child {
  margin-top: 0;
}

.legal-box p,
.legal-box li {
  line-height: 1.8;
}

.legal-box ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--ink);
}

/* Tablet */

@media (max-width: 900px) {
  .intro-grid {
    min-height: 0;
  }

  .hero-graphic {
    right: -18%;
    width: 85%;
    opacity: 0.3;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Mobile: everything a step smaller and quieter */

@media (max-width: 760px) {
  html {
    scroll-padding-top: 4rem;
  }

  body {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .container {
    width: calc(100% - 2.5rem);
  }

  /* Header: logo and one button, section links dropped */
  .nav {
    flex-wrap: nowrap;
    padding: 0.7rem 0;
  }

  .logo {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 0.9rem;
    font-size: 0.8rem;
  }

  .nav-links:has(.btn) {
    gap: 0;
  }

  .nav-links:has(.btn) a:not(.btn) {
    display: none;
  }

  .btn-small {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Intro */
  .intro {
    padding: 3rem 0 2.5rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }

  h1 {
    font-size: 1.85rem;
    line-height: 1.17;
  }

  .lede,
  .overview {
    font-size: 1rem;
  }

  .lede {
    margin-top: 1.1rem;
  }

  .hero-graphic {
    display: none;
  }

  .intro::before {
    width: 120%;
    right: -40%;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 1.75rem;
    text-align: center;
  }

  .actions .btn {
    padding: 0.8rem 1.2rem;
  }

  .actions .text-link {
    align-self: center;
  }

  .assurances {
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
  }

  /* Sections */
  .block {
    padding: 2.75rem 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .split h2,
  .wide h2 {
    font-size: 1.15rem;
  }

  .wide h2 {
    margin-bottom: 1.5rem;
  }

  .entry h3,
  .steps h3 {
    font-size: 1.05rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cards .entry,
  .cards .entry:first-child {
    padding: 1.15rem;
  }

  .icon,
  .cards .icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .cards .icon {
    margin-bottom: 0.8rem;
  }

  .meta {
    font-size: 0.82rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .steps li {
    padding-top: 1.1rem;
  }

  .steps li:not(:last-child)::after {
    display: none;
  }

  .next-link {
    margin-top: 1.75rem;
    font-size: 0.9rem;
  }

  .contact-lead {
    font-size: 1.2rem;
  }

  .contact-links {
    margin-top: 1.75rem;
  }

  /* Footer */
  .site-footer {
    padding: 1.5rem 0;
    font-size: 0.82rem;
  }

  .footer-links {
    gap: 1.1rem;
  }

  /* Project and legal pages */
  .page,
  .legal {
    padding: 2.5rem 0 2.5rem;
  }

  .page h1,
  .legal h1 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .page-lede {
    margin-top: -1rem;
    margin-bottom: 2rem;
  }

  .back-link {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
  }

  .project {
    padding: 1.75rem 0;
  }

  .project-head h3 {
    font-size: 1.2rem;
  }

  .project-intro {
    font-size: 0.975rem;
  }

  .project-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .metrics {
    gap: 0.75rem 2rem;
    padding: 1rem 1.15rem;
    margin-top: 1.5rem;
  }

  .metric strong {
    font-size: 1.5rem;
  }

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

  .project-cta {
    padding-top: 1.75rem;
  }

  .project-cta h2 {
    font-size: 1.15rem;
  }

  .legal-box h3 {
    margin-top: 1.75rem;
    font-size: 1rem;
  }

  .legal-box p,
  .legal-box li {
    line-height: 1.7;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
