:root {
  --ink: #1f282d;
  --muted: #5e6b6f;
  --line: #d9e1df;
  --paper: #f7f8f4;
  --panel: #ffffff;
  --teal: #327f99;
  --green: #509f7e;
  --coral: #e68156;
  --amber: #b8954c;
  --focus: #1d6f8f;
  --shadow: 0 18px 55px rgba(36, 49, 54, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(29, 111, 143, .45);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(31, 40, 45, .12);
  background: rgba(247, 248, 244, .92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 168px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(50, 127, 153, .12);
  color: var(--ink);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  border-color: rgba(31, 40, 45, .2);
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(640px, calc(100dvh - 72px));
  padding: 72px 0 48px;
  background-image:
    linear-gradient(90deg, rgba(247, 248, 244, .95) 0%, rgba(247, 248, 244, .88) 36%, rgba(247, 248, 244, .18) 68%),
    linear-gradient(0deg, rgba(31, 40, 45, .22), rgba(31, 40, 45, .02)),
    url("../images/national-archives-server-room.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(31, 40, 45, .12);
}

.hero-content {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(44px, 7vw, 78px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  max-width: 660px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 820px;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  min-height: 104px;
  padding: 18px;
  background: #fff;
}

.metric strong {
  display: block;
  font-size: 23px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(31, 40, 45, .13);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-strip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
}

.status-strip span {
  padding: 9px 12px;
  border: 1px solid rgba(31, 40, 45, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 8px 26px rgba(31, 40, 45, .12);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section.compact {
  padding-top: 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.page-heading {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.page-heading h1 {
  font-size: clamp(38px, 4.8vw, 58px);
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.card p,
.step p,
.application p,
.contact-block p {
  margin-top: 12px;
  color: var(--muted);
}

.accent {
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--teal);
}

.accent.green {
  background: var(--green);
}

.accent.coral {
  background: var(--coral);
}

.capability-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.capability-item {
  min-height: 210px;
  padding: 26px;
  border-left: 1px solid var(--line);
}

.capability-item:first-child {
  border-left: 0;
}

.capability-item p {
  margin-top: 12px;
  color: var(--muted);
}

.ops-panel {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 30px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ops-photo,
.photo-strip {
  min-height: 340px;
  border: 1px solid rgba(31, 40, 45, .12);
  border-radius: 8px;
  background-image:
    linear-gradient(0deg, rgba(31, 40, 45, .62), rgba(31, 40, 45, .18)),
    url("../images/national-archives-server-room.jpg");
  background-position: center;
  background-size: cover;
}

.ops-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 4px;
}

.ops-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.handoff-list {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.handoff-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.handoff-list strong {
  color: var(--ink);
}

.handoff-list span {
  color: var(--muted);
}

.photo-strip {
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  margin-top: 30px;
  padding: 24px;
  color: #fff;
  background-position: center 42%;
}

.photo-strip p {
  max-width: 560px;
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
}

.application-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.application-matrix .application {
  min-height: 188px;
  padding: 26px;
  border-top: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-matrix .application:nth-child(2n) {
  border-right: 0;
}

.application-matrix .application:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--green);
}

.process-list {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-number {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: rgba(50, 127, 153, .12);
  color: var(--teal);
  font-weight: 850;
}

.application {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.application:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-block h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cbd5d2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  transform: none;
  opacity: 1;
}

.reveal.is-visible {
  transform: none;
  opacity: 1;
}

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

  .reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 880px) {
  .nav {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .nav-links a {
    flex: 1 1 calc(33.333% - 6px);
    padding: 8px 6px;
    text-align: center;
    font-size: 13px;
  }

  .brand-logo {
    width: 154px;
  }

  .hero,
  .section-heading,
  .section-heading.page-heading,
  .grid.three,
  .grid.two,
  .capability-row,
  .ops-panel,
  .handoff-list div,
  .application-matrix,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
    padding: 42px 0;
    background-image:
      linear-gradient(0deg, rgba(247, 248, 244, .98) 0%, rgba(247, 248, 244, .92) 46%, rgba(247, 248, 244, .25) 100%),
      url("../images/national-archives-server-room.jpg");
    background-position: 58% center;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    margin-top: 16px;
    font-size: 17px;
  }

  .hero-metrics {
    display: none;
  }

  .hero-visual img {
    max-height: 260px;
    object-fit: cover;
    object-position: center top;
  }

  .status-strip {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

  .capability-item,
  .capability-item:first-child,
  .application-matrix .application,
  .application-matrix .application:nth-child(2n),
  .application-matrix .application:nth-last-child(-n + 2) {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading.page-heading {
    align-items: start;
  }

  .application-matrix .application {
    min-height: 0;
    padding: 22px;
  }

  .capability-item:last-child,
  .application-matrix .application:last-child {
    border-bottom: 0;
  }

  .ops-panel {
    padding: 16px;
    gap: 20px;
  }

  .ops-photo,
  .photo-strip {
    min-height: 220px;
  }

  .handoff-list div {
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
