:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #233238;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
}

h1,
h2,
p,
figure {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.15;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(72vh, 620px);
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #38616a;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    0deg,
    rgb(15 32 39 / 72%),
    rgb(15 32 39 / 48%)
  );
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(90%, 760px);
  padding: 5rem 1rem;
}

.hero-copy > p:last-child {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.eyebrow {
  margin-bottom: 0.65rem;
  color: #387c78;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d3f0e2;
}

.content-width {
  width: min(100% - 3rem, 1440px);
  margin-inline: auto;
}

.intro,
.videos,
.projects {
  padding-block: 5rem;
}

.intro > p:not(.eyebrow),
.videos > p:not(.eyebrow) {
  max-width: 1080px;
  color: #526267;
}

.gallery-section {
  padding-block: 5rem;
  background: #f3f7f5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.gallery figure {
  margin-bottom: 0;
}

.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  cursor: zoom-in;
}

.gallery-image-button:focus-visible,
.gallery-modal button:focus-visible {
  outline: 3px solid #387c78;
  outline-offset: 3px;
}

.gallery-image-button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-image-button:hover img {
  transform: scale(1.025);
}

.gallery figcaption {
  padding-top: 0.75rem;
  color: #526267;
  font-size: 0.95rem;
}

.project-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.service-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-links a {
  display: flex;
  min-height: 100%;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid #dce6e2;
  border-radius: 0.75rem;
  color: #28645f;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.project-links a:hover {
  border-color: #9cbdb4;
  background: #f3f7f5;
  text-decoration: underline;
}

.project-links a:focus-visible {
  outline: 3px solid #387c78;
  outline-offset: 3px;
}

.gallery-modal {
  position: relative;
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  padding: 2rem;
  overflow: visible;
  border: 0;
  border-radius: 1rem;
  background: #101719;
  color: #fff;
}

.gallery-modal::backdrop {
  background: rgb(0 0 0 / 82%);
}

.gallery-modal figure {
  display: grid;
  max-height: calc(94vh - 4rem);
  margin: 0;
  justify-items: center;
  gap: 0.75rem;
}

.gallery-modal-image {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 7rem);
  object-fit: contain;
}

.gallery-modal-caption {
  color: #e5eeeb;
  text-align: center;
}

.gallery-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal-navigation {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal-previous {
  left: 0.5rem;
}

.gallery-modal-next {
  right: 0.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.video-grid iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.75rem;
  background: #e7eeeb;
}

footer {
  padding: 1.5rem;
  color: #e5eeeb;
  text-align: center;
  background: #233238;
}

footer p {
  margin: 0;
}

footer a {
  color: #c4cfcc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

footer a:focus-visible {
  color: #fff;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .content-width {
    width: min(100% - 2rem, 1080px);
  }

  .intro,
  .videos,
  .projects,
  .gallery-section {
    padding-block: 3.5rem;
  }

  .gallery,
  .video-grid,
  .project-links {
    grid-template-columns: 1fr;
  }

  .gallery-modal {
    width: 96vw;
    padding: 2.5rem 1rem 1rem;
  }

  .gallery-modal-navigation {
    width: 2.5rem;
    height: 2.5rem;
  }
}
