:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #1d2528;
  --muted: #5c676b;
  --line: #d8d2c8;
  --slate: #34444a;
  --teal: #1f6f68;
  --brass: #a47d3a;
  --shadow: 0 18px 50px rgba(29, 37, 40, 0.12);
  --wrap: min(1120px, calc(100% - 40px));
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(31, 111, 104, 0.45);
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid rgba(31, 111, 104, 0.42);
  outline-offset: 4px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  padding: 10px 14px;
  transition: transform 160ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 210, 200, 0.8);
  background: rgba(247, 244, 238, 0.91);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

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

.nav-links a {
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 9px 13px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  background: rgba(31, 111, 104, 0.1);
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(52, 68, 74, 0.22);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle-line {
  position: relative;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 56px 0;
}

.hero {
  position: relative;
  min-height: clamp(640px, 86vh, 860px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px 0 88px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 45%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.97) 0%, rgba(247, 244, 238, 0.88) 37%, rgba(247, 244, 238, 0.33) 67%, rgba(247, 244, 238, 0.08) 100%),
    linear-gradient(0deg, rgba(29, 37, 40, 0.25), rgba(29, 37, 40, 0));
}

.hero-content {
  max-width: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4rem, 8vw, 7.4rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 4.6rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.hero-intro {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--slate);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.2;
  padding: 13px 19px;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--teal);
  color: #ffffff;
}

.button-primary:hover {
  background: #195b55;
  color: #ffffff;
}

.button-secondary {
  border-color: rgba(52, 68, 74, 0.26);
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(31, 111, 104, 0.38);
  background: var(--paper);
  color: var(--teal);
}

.highlight-band {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading.narrow h2 {
  max-width: 720px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.highlight {
  min-height: 190px;
  background: var(--paper);
  padding: 24px;
}

.metric {
  display: block;
  margin-bottom: 18px;
  color: var(--brass);
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  font-weight: 780;
  line-height: 1.05;
}

.highlight p {
  margin: 0;
  color: var(--slate);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 112px;
}

.prose {
  color: var(--slate);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
}

.prose p {
  margin: 0 0 24px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.muted-section {
  background: #ebe6dd;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  border: 1px solid rgba(52, 68, 74, 0.16);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  padding: clamp(24px, 3.2vw, 34px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-card:hover {
  border-color: rgba(31, 111, 104, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.wide-card {
  grid-column: 1 / -1;
}

.case-kicker {
  margin-bottom: 14px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card dl {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.case-card dt {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card dd {
  margin: -8px 0 8px;
  color: var(--muted);
}

.recognition-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.link-list {
  display: grid;
  gap: 12px;
}

.resource-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.resource-link:hover {
  border-color: rgba(31, 111, 104, 0.36);
  box-shadow: 0 12px 30px rgba(29, 37, 40, 0.09);
  color: var(--ink);
  transform: translateY(-2px);
}

.resource-link span {
  display: block;
  color: var(--ink);
  font-weight: 780;
}

.resource-link small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-section {
  padding-top: 24px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(28px, 5vw, 56px);
}

.contact-panel h2 {
  max-width: 680px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.6vw, 3.8rem);
}

.contact-panel .eyebrow {
  color: #83c9c0;
}

.contact-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
}

.contact-panel .button-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

.contact-panel .button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .highlights-grid,
  .case-grid,
  .two-column,
  .recognition-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .wide-card {
    grid-column: auto;
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --wrap: min(100% - 28px, 1120px);
  }

  html {
    scroll-padding-top: 74px;
  }

  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    padding: 8px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    border-radius: 6px;
    padding: 12px;
  }

  .section {
    padding: 72px 0;
  }

  .section-tight {
    padding: 42px 0;
  }

  .hero {
    min-height: 680px;
    padding: 92px 0 48px;
    align-items: end;
  }

  .hero-image {
    object-position: 57% 42%;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(247, 244, 238, 0.98) 0%, rgba(247, 244, 238, 0.92) 46%, rgba(247, 244, 238, 0.58) 100%),
      linear-gradient(90deg, rgba(29, 37, 40, 0.13), rgba(29, 37, 40, 0));
  }

  h1 {
    max-width: 8ch;
  }

  .hero-intro {
    max-width: 100%;
  }

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

  .highlight {
    min-height: auto;
  }

  .contact-panel {
    padding: 28px;
  }

  .contact-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }

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