:root {
  --paper: #edf2f8;
  --white: #ffffff;
  --ink: #161b25;
  --signal: #3457ad;
  --rule: #c6d0e2;
  --muted: #596469;
  --page-width: 1200px;
  --body-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --technical-font: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 5px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
}

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

.page-width {
  width: min(100% - 3rem, var(--page-width));
  margin-inline: auto;
}

.site-header {
  background: var(--paper);
}

.header-inner,
.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: 0.8rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--signal);
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}
.hero-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

/* The same home control is kept locally so each project remains independent. */
.home-button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border: 1px solid #cbd3db;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #253244;
  font: 650 0.875rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.home-button span[aria-hidden] {
  font-size: 1.2rem;
  line-height: 1;
}

.home-button:hover {
  background: #e6edf4;
  border-color: #8293a5;
  color: #182638;
}

.home-button:focus-visible {
  outline: 3px solid #547cb4;
  outline-offset: 4px;
}

.image-link {
  display: block;
  border-radius: inherit;
  cursor: zoom-in;
}

.image-link:focus-visible {
  outline: 3px solid #547cb4;
  outline-offset: -4px;
}

.capture-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  font: 650 0.8rem/1.4 system-ui, sans-serif;
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

.hero {
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.hero-layout {
  min-height: min(780px, 86svh);
  padding-block: clamp(4rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-copy {
  max-width: 570px;
}

.project-type,
.section-label {
  margin-bottom: 1rem;
  color: var(--signal);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero h1 {
  max-width: none;
  margin-bottom: 0.45rem;
  font-family: var(--display-font);
  font-size: clamp(4.25rem, 9vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.hero-tagline {
  margin-bottom: 1.2rem;
  font-family: var(--display-font);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.hero-description {
  max-width: 35rem;
  margin-bottom: 1.7rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.75;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--signal);
  font-size: 0.95rem;
  font-weight: 700;
  text-underline-offset: 0.28em;
}

.hero-link span {
  color: var(--signal);
  font-size: 1.2rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  margin: 2.7rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid #b9c4c8;
}

.hero-facts dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--technical-font);
}

.hero-art {
  min-width: 0;
  margin: 0;
}

.artboard {
  padding: clamp(0.7rem, 2vw, 1.2rem);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 12px 12px 0 #d8e2f2;
}

.artboard img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
}

.hero-art figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.caption-rule {
  width: 1.2rem;
  height: 2px;
  flex: 0 0 auto;
  margin-top: 0.55em;
  background: var(--signal);
}

.process-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  align-items: end;
  gap: 2rem 5rem;
  margin-bottom: 2.7rem;
}

.section-label {
  margin-bottom: 0.7rem;
  color: var(--signal);
}

.section-heading h2,
.study-heading h2 {
  max-width: 15ch;
  margin-bottom: 0;
  font-family: var(--display-font);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-description {
  max-width: 31rem;
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process-step;
}

.process-step {
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  counter-increment: process-step;
}

.process-step:nth-child(6) {
  grid-column: auto;
}

.process-step:nth-child(8) {
  grid-column: span 2;
}

.process-step figure {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.process-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
}

.process-step:nth-child(6) .process-image {
  aspect-ratio: 1;
}

.process-step:nth-child(8) .process-image {
  aspect-ratio: 2;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.process-step figcaption {
  padding-top: 0.95rem;
}

.process-step figcaption::before {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--signal);
  content: counter(process-step, decimal-leading-zero);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  margin-bottom: 0.38rem;
  font-family: var(--display-font);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.process-step p {
  max-width: 30rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.study-section {
  color: var(--white);
  background: var(--ink);
}

.study-layout {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.study-heading .section-label {
  color: var(--white);
}

.study-heading h2 {
  max-width: 12ch;
  margin-bottom: 1.1rem;
}

.study-heading > p:last-child {
  max-width: 29rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.7;
}

.study-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.study-list li {
  padding-block: 1.1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.study-list h3 {
  margin-bottom: 0.4rem;
  color: var(--white);
  font-family: var(--display-font);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.study-list p {
  max-width: 34rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  line-height: 1.68;
}

.site-footer {
  color: var(--muted);
  background: var(--paper);
}

.footer-inner {
  min-height: 84px;
}

.footer-inner > p {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .process-step:nth-child(8) {
    grid-column: 1 / -1;
  }

  .process-image {
    aspect-ratio: 5 / 3.5;
  }
}

@media (max-width: 840px) {
  .hero-layout {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 38rem;
  }

  .hero h1 {
    font-size: clamp(4.25rem, 10vw, 6.5rem);
  }

  .hero-art {
    width: min(100%, 38rem);
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .page-width {
    width: min(100% - 2rem, var(--page-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .hero-layout {
    padding-block: 3.5rem 3rem;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 38rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.6rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-facts {
    margin-top: 2rem;
  }

  .hero-art {
    width: min(100%, 36rem);
    margin-inline: auto;
  }

  .section-heading,
  .study-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading h2,
  .study-heading h2 {
    max-width: 16ch;
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }

  .process-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
  }

  .process-step:nth-child(6),
  .process-step:nth-child(8) {
    grid-column: auto;
  }

  .process-image,
  .process-step:nth-child(6) .process-image,
  .process-step:nth-child(8) .process-image {
    aspect-ratio: 1;
  }

  .process-step figcaption {
    padding-top: 0.8rem;
  }

  .study-layout {
    padding-block: 4rem;
  }

  .footer-inner {
    min-height: 82px;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    padding-block: 1.1rem;
  }
}

@media (max-width: 390px) {
  .brand {
    gap: 0.5rem;
    font-size: 1rem;
  }

  .brand-mark {
    width: 1.8rem;
    height: 1.8rem;
  }

  .hero-facts {
    gap: 0.85rem 0.7rem;
  }
}
