:root {
  color-scheme: light;
  --canvas: #eef3fb;
  --paper: #ffffff;
  --ink: #162238;
  --muted: #4e5d74;
  --line: #c9d4e6;
  --blue: #244dc9;
  --blue-deep: #153793;
  --lime: #e3edab;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: var(--canvas);
  color: var(--ink);
}

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

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--blue);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
input,
select,
textarea,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.4rem, 6.6vw, 6.2rem);
}

h2 {
  font-size: clamp(2.35rem, 4vw, 4rem);
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.6rem;
}

.shell {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header > div.shell {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.wordmark img,
.wordmark svg {
  width: 34px;
  height: 34px;
}

.site-header > p.shell {
  padding-bottom: 1rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.9375rem;
}

.primary-nav a {
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.55em;
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.65rem 1.05rem;
  border-radius: 3px;
}

.hero {
  padding-block: 76px 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.eyebrow {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 1.7rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-copy > :where(.button, .form-actions) {
  margin-top: 2rem;
}

.hero-art {
  position: relative;
  background: var(--blue);
  border-radius: 3px;
  overflow: hidden;
}

.hero-art > img,
.hero-art > svg {
  display: block;
  width: 100%;
}

.hero-note {
  padding: 1.1rem 1.4rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.button:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--blue);
  background: #e2eaff;
  color: var(--blue);
}

.text-link {
  display: inline-block;
  font-weight: 550;
  color: var(--blue);
}

.section {
  padding-block: 80px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 0.5rem 2.5rem;
  margin-bottom: 2.7rem;
}

.section-heading > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  max-width: 43rem;
}

.section-heading > p:where(:not(.eyebrow)),
.section-intro {
  max-width: 30rem;
  color: var(--muted);
}

.section-intro {
  margin-top: 1.5rem;
  margin-bottom: 2.6rem;
  font-size: 1.125rem;
}

.section-heading > .section-intro {
  margin: 0;
}

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

.project-grid,
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  min-width: 0;
  padding: 2rem 1.75rem;
  border-top: 2px solid var(--blue);
  background: var(--paper);
}

.service-card p {
  margin-top: 1rem;
  color: var(--muted);
}

.service-card .text-link {
  margin-top: 1.6rem;
}

.service-card > svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

.service-card math,
.service-card mtext {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.service-card math {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.65;
}

.project-card {
  min-width: 0;
}

.project-visual {
  overflow: hidden;
  border-radius: 3px;
  background: #dce5f3;
  aspect-ratio: 4 / 3;
}

.project-visual img,
.project-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-copy {
  padding-top: 1.3rem;
}

.project-copy p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.project-meta {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.project-copy .project-meta {
  margin-top: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}

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

.process-item {
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

.process-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.process-item p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.callout {
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
}

.callout h2 {
  max-width: 42rem;
}

.callout p {
  max-width: 39rem;
  margin-top: 1.3rem;
  color: #e6edff;
  font-size: 1.125rem;
}

.callout .eyebrow {
  color: var(--lime);
  font-size: 0.875rem;
}

.callout .button {
  margin-top: 1.8rem;
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.callout .button:hover {
  border-color: #f2f7d8;
  background: #f2f7d8;
  color: var(--ink);
}

.small-note,
.fine-print {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.small-note + .small-note,
.fine-print + .fine-print {
  margin-top: 0.5rem;
}

.wordmark .small-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

.utility-strip {
  padding-block: 1.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.utility-strip > .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.site-footer {
  margin-top: 80px;
  padding-block: 56px 24px;
  background: #e1e9f5;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-grid p {
  max-width: 25rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  font-size: 0.9375rem;
}

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.trail-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 1.8rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.prose {
  max-width: 48rem;
}

.prose > :where(p) + p {
  margin-top: 1.3rem;
}

.prose > h2 {
  margin-top: 3rem;
  margin-bottom: 1.4rem;
}

.prose > h3 {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.prose > p,
.prose > ul,
.prose > ol {
  color: var(--muted);
  font-size: 1.0625rem;
}

.side-note {
  padding: 1.5rem;
  background: #e2eaff;
  border-left: 2px solid var(--blue);
}

.side-note h3 {
  font-size: 1.125rem;
}

.side-note h2,
.contact-card h2,
.definition h2 {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.side-note p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.side-note + .side-note {
  margin-top: 1.5rem;
}

.term-button {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted var(--blue);
  background: transparent;
  color: var(--blue);
  line-height: inherit;
}

.term-button svg {
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.2em;
}

.definition {
  max-width: min(28rem, calc(100vw - 40px));
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 48px #1622381a;
}

.definition::backdrop {
  background: #16223822;
}

.definition p {
  margin-top: 0.75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-card {
  padding: 2rem;
  background: #e1e9f5;
}

.contact-card p {
  margin-top: 1rem;
  color: var(--muted);
}

.contact-card :where(h3) + p {
  margin-top: 0.75rem;
}

.contact-card + .contact-card {
  margin-top: 1.5rem;
}

.project-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.project-form > p {
  margin-top: 0.8rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.field {
  display: block;
  margin-bottom: 1.3rem;
}

.field label,
.field > span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 550;
}

.field input,
.field select,
.field textarea,
.search-form input,
.search-form select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid #a9b8ce;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field select,
.search-form select {
  appearance: none;
  padding-right: 2.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23162238' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #66758c;
  opacity: 1;
}

.field input[type="checkbox"],
.field input[type="radio"] {
  display: inline-block;
  width: 1.1rem;
  min-height: 1.1rem;
  margin-right: 0.5rem;
  accent-color: var(--blue);
}

.field input[type="hidden"] {
  display: none;
}

.field small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.form-feedback {
  margin-top: 1.4rem;
  padding: 1rem;
  border-left: 2px solid var(--blue);
  background: var(--canvas);
}

.form-feedback:empty {
  display: none;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 550;
}

.faq-list :where(details) p {
  max-width: 48rem;
  margin-top: 1rem;
  color: var(--muted);
}

.compact-links,
.menu-list {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.compact-links li + li,
.menu-list li + li {
  margin: 0;
}

.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--line);
  background: #f8faff;
  font-size: 0.9375rem;
}

.visibility-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.service-grid.visibility-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.visibility-notes p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.image-card {
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.image-card img {
  display: block;
  width: 100%;
}

.image-card figcaption {
  margin-top: 0.8rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.closing-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.search-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.search-form label {
  display: block;
  font-size: 0.9375rem;
}

.search-form input,
.search-form select {
  margin-top: 0.4rem;
}

.archived-note {
  display: none;
}

.sr-only,
.screen-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body > a.sr-only:focus-visible {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1rem;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 960px) {
  .shell {
    width: calc(100% - 56px);
  }

  .hero-grid,
  .split {
    gap: 2.5rem;
  }

  .hero {
    padding-block: 56px 64px;
  }

  .section {
    padding-block: 64px;
  }

  .service-grid {
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-grid,
  .content-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 40px);
  }

  .site-header > div.shell {
    min-height: 85px;
    gap: 1rem;
  }

  .wordmark {
    gap: 0.5rem;
    font-size: 1.125rem;
  }

  .wordmark img,
  .wordmark svg {
    width: 28px;
    height: 28px;
  }

  .primary-nav {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .nav-cta {
    padding: 0.55rem 0.75rem;
  }

  .hero-grid,
  .split,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 44px 56px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1.0625rem;
  }

  .hero-art {
    max-width: 520px;
  }

  .section {
    padding-block: 52px;
  }

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

  .section-heading > p,
  .section-heading > .text-link {
    margin-top: 1.2rem;
  }

  .section-heading > .eyebrow {
    margin-top: 0;
  }

  .service-grid,
  .service-grid.visibility-notes,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .project-visual {
    aspect-ratio: 3 / 2;
  }

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

  .callout {
    padding: 2rem;
  }

  .site-footer {
    margin-top: 56px;
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem 1.5rem;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .visibility-notes {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 430px) {
  .site-header > div.shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
    padding-block: 20px;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .field-grid,
  .image-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .image-grid {
    gap: 1rem;
  }

  .project-form,
  .contact-card {
    padding: 1.4rem;
  }

  .form-actions :where(.button, .button-secondary) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: Reduced motion must override component transitions. */
    scroll-behavior: auto !important;
    /* biome-ignore lint/complexity/noImportantStyles: Reduced motion must override component transitions. */
    transition: none !important;
  }
}
