:root {
  --ink: #12222a;
  --muted: #5f7078;
  --brand: #0d4352;
  --brand-strong: #0a2c36;
  --accent: #f47c36;
  --accent-hover: #ff9563;
  --accent-text: #c9541c;
  --paper: #ffffff;
  --wash: #f4f7f7;
  --line: #d8e0e2;
  --shadow: 0 18px 45px rgba(10, 44, 54, 0.16);
  color-scheme: light;
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--wash);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.58;
}

a {
  color: var(--brand);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--brand);
  border: 2px solid var(--accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  background: var(--brand-strong);
  box-shadow: 0 8px 20px rgba(8, 28, 35, 0.2);
}

.brand img {
  width: 172px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  color: #eaf3f4;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.home-hero {
  position: relative;
  min-height: min(660px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--brand-strong);
}

.home-hero img,
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 31, 39, 0.84), rgba(5, 31, 39, 0.36) 58%, rgba(5, 31, 39, 0.08));
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 16vh, 11rem) 0 clamp(4.5rem, 13vh, 8rem);
  color: #ffffff;
}

.home-hero h1 {
  margin: 0.1rem 0 0.8rem;
  font-size: clamp(3.4rem, 11vw, 7.4rem);
  line-height: 0.92;
  font-weight: 900;
}

.home-hero p {
  max-width: 620px;
  margin: 0 0 1.5rem;
  color: #edf6f6;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  color: var(--brand-strong);
  background: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band > div {
  min-height: 160px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--wash);
}

.intro-band h2,
.side-panel h2,
.content-panel h2 {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  line-height: 1.25;
}

.intro-band p,
.item-card p,
.side-panel p,
.content-panel p {
  color: var(--muted);
}

.feature-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-heading {
  width: min(680px, 100%);
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

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

.item-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.item-card:hover,
.item-card:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.item-card span {
  color: var(--accent-text);
  font-weight: 900;
}

.item-card h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.page-hero {
  position: relative;
  min-height: clamp(210px, 32vw, 340px);
  overflow: hidden;
  background: var(--brand-strong);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 31, 39, 0.35), rgba(5, 31, 39, 0.02));
}

.subnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  width: min(1180px, calc(100% - 2rem));
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  background: var(--brand);
  box-shadow: var(--shadow);
}

.subnav a {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  color: #ffffff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.subnav a:hover,
.subnav a:focus,
.subnav a[aria-current="page"] {
  background: var(--accent);
  color: var(--brand-strong);
}

.subnav span {
  color: currentColor;
  opacity: 0.8;
  font-size: 0.9rem;
}

.content-shell {
  width: min(1180px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.content-panel {
  min-width: 0;
}

.content-panel h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02;
}

.content-panel h2 {
  margin-top: 2rem;
}

.content-panel ul {
  padding-left: 1.3rem;
}

.content-panel li + li {
  margin-top: 0.35rem;
}

.content-panel a {
  font-weight: 700;
}

.matrix {
  max-width: 760px;
  margin: 1.6rem 0 0;
  border: 1px solid var(--line);
  background: var(--wash);
}

.matrix img {
  width: 100%;
}

.matrix figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.side-panel {
  align-self: start;
  display: grid;
  gap: 1.2rem;
  padding: 1rem;
  background: var(--wash);
  border-left: 4px solid var(--accent);
}

.side-panel section {
  padding-top: 0.2rem;
}

.side-panel ul {
  margin: 0.6rem 0 0.9rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.side-image {
  width: 100%;
  aspect-ratio: 258 / 167;
  object-fit: cover;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.contact-panel dl {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.contact-panel dl div {
  display: grid;
  gap: 0.1rem;
}

.contact-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 3.5rem);
  color: #dbe8e9;
  background: var(--brand-strong);
  font-size: 0.95rem;
}

.site-footer div {
  display: grid;
  gap: 0.15rem;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .intro-band,
  .item-grid,
  .content-shell {
    grid-template-columns: 1fr;
  }

  .side-panel {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
    gap: 0.8rem;
  }

  .brand img {
    width: 148px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .site-nav a {
    padding-left: 0;
  }

  .home-hero {
    min-height: 560px;
  }

  .home-hero-copy {
    padding-bottom: 4rem;
  }

  .subnav {
    margin-top: 0;
    width: 100%;
  }

  .content-shell,
  .feature-section {
    width: min(100% - 1.25rem, 1180px);
  }

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