:root {
  --ink: #121820;
  --muted: #5d6874;
  --line: #dce2e8;
  --panel: #f5f7f8;
  --paper: #ffffff;
  --steel: #314253;
  --accent: #1f6f8b;
  --accent-dark: #154b61;
  --dark: #111923;
  --dark-soft: #1b2632;
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5.25rem);
  max-width: 920px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

ul {
  color: var(--muted);
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: .45rem;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  left: 0;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 1.4rem;
  font-size: .9rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav .active {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  padding: .7rem .95rem;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
  padding: .65rem .8rem;
}

.hero {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  margin: 0 auto;
  max-width: var(--max);
  min-height: 720px;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 3vw, 2rem);
}

.hero-copy {
  align-self: center;
}

.lead {
  color: #3e4a56;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  max-width: 680px;
}

.eyebrow {
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: .8rem;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.button {
  border: 1px solid var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-width: 150px;
  padding: .9rem 1.1rem;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  color: var(--ink);
}

.button.inverted {
  border-color: rgba(255, 255, 255, .5);
  color: var(--paper);
  margin-top: 2rem;
}

.button:disabled {
  cursor: wait;
  opacity: .65;
}

.hero-visual {
  align-self: stretch;
  display: flex;
  min-height: 480px;
}

.hero-image {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
  max-height: 570px;
  object-fit: contain;
  padding: 1rem;
  width: 100%;
}

.section,
.page-hero {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 3vw, 2rem);
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero-with-image {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr) 425px;
}

.page-hero-copy {
  min-width: 0;
}

.page-hero-with-image h1 {
  font-size: clamp(2.5rem, 4vw, 4.25rem);
}

.page-hero-media {
  height: 425px;
  width: 425px;
}

.page-hero-media img {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature,
.service-detail,
.contact-aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.feature-number {
  color: var(--accent);
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 2rem;
}

.split-section {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: .9fr 1.1fr;
}

.service-list {
  display: grid;
  gap: .75rem;
}

.service-list a {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
}

.service-list a::after {
  content: ">";
  color: var(--accent);
}

.text-link {
  border-bottom: 1px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
}

.dark-band {
  background: var(--dark);
  color: var(--paper);
  max-width: none;
}

.dark-band > * {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}

.dark-band h2,
.dark-band h3 {
  color: var(--paper);
}

.dark-band p {
  color: #b8c4ce;
}

.case-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
}

.case-study-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.case-study-cta .button.inverted {
  margin-top: 0;
}

.case-card {
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1rem;
}

.case-media,
.case-study-media,
.about-media {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-media {
  aspect-ratio: 244 / 180;
  margin-bottom: 1rem;
}

.case-media img,
.case-study-media img,
.about-media img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.cta-panel {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  max-width: calc(var(--max) - 4rem);
}

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

.service-detail:first-child {
  grid-column: span 2;
}

.case-study-list {
  display: grid;
  gap: 1.4rem;
}

.case-study {
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 2rem;
  grid-template-columns: .75fr 1.25fr;
  padding: 1rem;
}

.case-study-media {
  aspect-ratio: 1;
  min-height: 280px;
}

.process {
  display: grid;
  gap: 1rem;
}

.process article {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 90px 1fr 1.2fr;
  padding: 1.4rem 0;
}

.process span {
  color: var(--accent);
  font-weight: 700;
}

.about-media {
  min-height: 520px;
}

.page-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  padding-top: 2.5rem;
}

.contact-layout {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.35fr .65fr;
}

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

.contact-form label {
  color: var(--ink);
  display: grid;
  font-size: .9rem;
  font-weight: 700;
  gap: .45rem;
}

.contact-form .full,
.contact-form button {
  grid-column: span 2;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  padding: .9rem;
  width: 100%;
}

textarea {
  resize: vertical;
}

.form-status {
  display: none;
  font-weight: 700;
  margin: 0;
  padding: 1rem;
}

.form-status.success,
.form-status.error {
  display: block;
}

.form-status.success {
  background: #edf7f1;
  border: 1px solid #9dcbb0;
  color: #245f3d;
}

.form-status.error {
  background: #fff2f1;
  border: 1px solid #e3aaa4;
  color: #8a2f28;
}

.form-status a {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
}

.footer-brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-brand:hover {
  color: var(--accent-dark);
}

@media (max-width: 960px) {
  .page-hero-with-image {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 38vw);
  }

  .page-hero-media {
    height: auto;
    max-width: 425px;
    width: 100%;
  }

  .page-hero-media img {
    aspect-ratio: 1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: 67px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .split-section,
  .contact-layout,
  .case-study,
  .page-hero-with-image {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .page-hero-media {
    justify-self: start;
  }

  .feature-grid.three,
  .case-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail:first-child,
  .contact-form .full,
  .contact-form button {
    grid-column: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .process article {
    grid-template-columns: 1fr;
  }

  .cta-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-visual {
    min-height: 340px;
  }

  .page-hero-media {
    width: 100%;
  }

  .page-actions .button {
    width: 100%;
  }
}
