:root {
  --ink: #1a1b18;
  --muted: #5f655d;
  --paper: #f6f3ed;
  --white: #ffffff;
  --moss: #536342;
  --forest: #25301f;
  --clay: #a85638;
  --lobo-red: #f40000;
  --gold: #c89d45;
  --line: rgba(26, 27, 24, 0.14);
  --shadow: 0 24px 70px rgba(26, 27, 24, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(246, 243, 237, 0.95);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(26, 27, 24, 0.11);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  width: 184px;
  min-height: 0;
  aspect-ratio: 184 / 84;
  flex-shrink: 0;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.brand img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(200, 157, 69, 0.22);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  place-items: center;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  transform: scale(1.02);
}

.hero-frame {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 750ms ease-in-out;
}

.hero-frame.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-frame.is-previous {
  opacity: 1;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 24, 20, 0.86) 0%, rgba(22, 24, 20, 0.64) 48%, rgba(22, 24, 20, 0.2) 100%),
    linear-gradient(0deg, rgba(26, 27, 24, 0.58), transparent 44%);
}

.hero-frame-map {
  background-image: url("assets/web-map.png");
}

.hero-frame-1 {
  background-image: url("assets/slide-1.jpeg");
}

.hero-frame-2 {
  background-image: url("assets/slide-2.jpeg");
}

.hero-frame-3 {
  background-image: url("assets/slide-3.jpeg");
}

.hero-frame-4 {
  background-image: url("assets/slide-4.jpeg");
}

.hero-frame-5 {
  background-image: url("assets/slide-5.jpeg");
}

.hero-overlay {
  background:
    radial-gradient(circle at 22% 28%, rgba(200, 157, 69, 0.28), transparent 24%),
    linear-gradient(0deg, rgba(26, 27, 24, 0.72), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 160px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 7.6rem);
  line-height: 0.92;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(168, 86, 56, 0.28);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--white);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.hero-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 36px));
  margin: -98px auto 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(246, 243, 237, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-proof div {
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  display: block;
  margin-bottom: 4px;
  color: var(--forest);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-section {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.76fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
}

h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  line-height: 1.02;
}

h3 {
  margin: 0;
  color: var(--forest);
  line-height: 1.14;
}

p {
  color: var(--muted);
}

.intro-grid > p,
.section-heading.split > p,
.coverage-copy > p,
.contact-grid > div > p {
  margin: 0;
  font-size: 1.12rem;
}

.affiliations-section,
.services-section,
.team-section {
  background: var(--white);
}

.affiliations-inner {
  padding-top: 0;
  padding-bottom: 58px;
}

.affiliation-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.affiliation-logos a {
  display: grid;
  min-height: 104px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.affiliation-logos img {
  max-width: 136px;
  max-height: 66px;
  object-fit: contain;
  filter: saturate(0.86);
}

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

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 34px;
  max-width: none;
  align-items: end;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfaf6);
}

.service-card h3 a,
.client-grid h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.service-card h3 a:focus-visible,
.client-grid h3 a:focus-visible {
  outline: 2px solid var(--lobo-red);
  outline-offset: 4px;
}

.service-card h3,
.client-grid h3,
.contact-panel h3 {
  font-size: 1.35rem;
}

.service-card p,
.client-grid p,
.bio p {
  margin: 14px 0 0;
}

.coverage-section {
  background: var(--forest);
  color: var(--white);
}

.coverage-section h2,
.coverage-section h3 {
  color: var(--white);
}

.coverage-section p,
.coverage-section li {
  color: rgba(255, 255, 255, 0.78);
}

.coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.map-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #11150f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.map-panel img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.coverage-copy h2 + p {
  margin-top: 24px;
}

.coverage-copy .check-list {
  margin-top: 28px;
}

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

.check-list li {
  position: relative;
  padding-left: 27px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 13px;
  height: 3px;
  background: var(--gold);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.client-grid > article {
  grid-column: span 2;
}

.client-grid > article:nth-child(4) {
  grid-column: 2 / span 2;
}

.client-grid > article:nth-child(5) {
  grid-column: 4 / span 2;
}

.image-band {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.05fr 0.9fr 1.2fr;
  min-height: 280px;
  background: var(--ink);
}

.image-band img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
}

.image-band img:nth-child(even) {
  transform: translateY(28px);
}

.client-grid article,
.contact-panel {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 24px;
}

.team-section .section-heading {
  max-width: 900px;
}

.bio {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.bio.reverse {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.bio.reverse img {
  grid-column: 2;
  grid-row: 1;
}

.bio img {
  width: 260px;
  height: 320px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 20px 46px rgba(26, 27, 24, 0.13);
}

.bio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.bio-heading h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.bio-heading a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--clay);
  font-weight: 800;
  text-decoration: none;
}

.contact-section {
  background: linear-gradient(135deg, var(--paper), #e8eadf);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
}

.contact-grid .button {
  margin-top: 28px;
}

.contact-panel {
  min-height: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 52px);
  background: var(--ink);
  color: var(--white);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer img {
  width: 144px;
  height: auto;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

@media (min-width: 961px) and (max-width: 1200px) {
  .service-card {
    padding: 20px;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .site-header.menu-open .site-nav {
    display: grid;
  }

  .site-nav a {
    border-radius: 0;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero-content {
    padding: 118px 0 150px;
  }

  .hero-proof,
  .intro-grid,
  .section-heading.split,
  .coverage-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    margin-top: -82px;
  }

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

  .service-card:last-child {
    grid-column: 1 / -1;
  }

  .client-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .client-grid > article:nth-child(4) {
    grid-column: auto / span 2;
  }

  .client-grid > article:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    width: 156px;
    min-width: 142px;
    min-height: 0;
    padding: 0;
  }

  .brand img {
    max-height: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-media {
    transform: scale(1);
  }

  .hero-frame::after {
    background:
      linear-gradient(90deg, rgba(22, 24, 20, 0.9) 0%, rgba(22, 24, 20, 0.72) 100%),
      linear-gradient(0deg, rgba(26, 27, 24, 0.48), transparent 44%);
  }

  .hero-content {
    width: min(var(--max), calc(100% - 28px));
    padding-bottom: 180px;
  }

  .hero-proof {
    width: min(var(--max), calc(100% - 28px));
    grid-template-columns: 1fr;
    margin-top: -150px;
  }

  .hero-proof div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

  .section-inner {
    width: min(var(--max), calc(100% - 28px));
    padding: 70px 0;
  }

  .service-grid,
  .client-grid,
  .affiliation-logos,
  .bio,
  .bio.reverse {
    grid-template-columns: 1fr;
  }

  .client-grid > article:nth-child(n) {
    grid-column: auto;
  }

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

  .image-band img {
    min-height: 190px;
  }

  .image-band img:nth-child(even) {
    transform: none;
  }

  .image-band img:last-child {
    grid-column: 1 / -1;
  }

  .bio.reverse img {
    grid-column: auto;
    grid-row: auto;
  }

  .bio img {
    width: 100%;
    height: auto;
    max-height: 420px;
    aspect-ratio: 4 / 5;
  }

  .bio-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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