:root {
  color-scheme: light;
  --color-ink: #1d211d;
  --color-muted: #666b62;
  --color-paper: #f4f4f1;
  --color-surface: #fff;
  --color-line: #d9dbd4;
  --color-brand: #2f7d32;
  --color-brand-dark: #267b28;
  --page-gutter: clamp(1rem, 4vw, 3.5rem);
  --content-width: 76rem;
  --radius-card: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  background: var(--color-paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img,
video,
picture,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 4px;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 6.75rem);
  font-weight: 760;
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.75rem);
  font-weight: 720;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  color: #fff;
  background: var(--color-ink);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: fixed;
  z-index: 10;
  inset: 1rem 0 auto;
  padding-inline: var(--page-gutter);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  width: min(100%, var(--content-width));
  min-height: 4.5rem;
  margin-inline: auto;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(29 33 29 / 10%);
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.5rem 2rem rgb(29 33 29 / 7%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 0.5rem;
}

.brand img {
  display: block;
  width: 3.25rem;
  height: auto;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 1vw, 0.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a,
.site-footer nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.site-footer nav a:hover {
  color: var(--color-ink);
  background: var(--color-paper);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-cta,
.button--primary {
  color: #fff;
  background: var(--color-brand);
}

.header-cta:hover,
.button--primary:hover {
  color: #fff;
  background: var(--color-brand-dark);
}

.mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.mobile-menu summary {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-icon,
.menu-icon span {
  display: block;
}

.menu-icon {
  display: grid;
  gap: 0.28rem;
}

.menu-icon span {
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-menu__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  display: grid;
  min-width: 13rem;
  gap: 0.25rem;
  padding: 0.65rem;
  border: 1px solid var(--color-line);
  border-radius: 1rem;
  background: var(--color-surface);
  box-shadow: 0 1rem 2rem rgb(29 33 29 / 12%);
}

.mobile-menu__panel a {
  padding: 0.75rem 0.85rem;
  border-radius: 0.6rem;
  text-decoration: none;
}

.mobile-menu__panel a:hover {
  background: var(--color-paper);
}

.page-width,
.section-width {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width));
  margin-inline: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: min(48rem, 92svh);
  overflow: hidden;
  color: #fff;
  background: #253128;
}

.hero__content {
  position: relative;
  z-index: 0;
  display: flex;
  width: 100%;
  min-height: inherit;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10rem clamp(2rem, 5vw, 5rem) 6rem;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(12 20 14 / 70%) 0%, rgb(12 20 14 / 48%) 48%, rgb(12 20 14 / 14%) 100%), linear-gradient(0deg, rgb(12 20 14 / 22%), transparent 62%);
  content: "";
}

.hero__background {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero__background img {
  display: block;
  width: 100%;
  height: 180%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.72) contrast(1.06) brightness(0.78);
  transform: scale(1.08);
}

.hero .eyebrow,
.hero .hero__intro {
  color: rgb(255 255 255 / 88%);
}

.hero .button--secondary {
  border-color: rgb(255 255 255 / 65%);
  color: #fff;
  background: rgb(20 27 21 / 28%);
}

.hero .button--secondary:hover {
  border-color: #fff;
  color: #fff;
  background: rgb(20 27 21 / 55%);
}

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--color-brand-dark);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero__intro {
  max-width: 40rem;
  color: var(--color-muted);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button--secondary {
  border-color: var(--color-line);
  background: transparent;
}

.button--secondary:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.about,
.gallery,
.contact {
  padding-block: clamp(4rem, 9vw, 8rem);
  scroll-margin-top: 5rem;
}

.about {
  border-top: 1px solid var(--color-line);
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.8rem;
}

.section-heading > p:last-child {
  margin-top: 1rem;
  color: var(--color-muted);
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.about__copy {
  display: grid;
  gap: 1.1rem;
  max-width: 38rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.about__image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #e2e3dc;
  cursor: zoom-in;
}

.about__image picture {
  display: block;
}

.about__image img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery {
  border-top: 1px solid var(--color-line);
}

.section-heading--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading__note {
  max-width: 24rem;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(9rem, 14vw, 12rem);
  gap: clamp(0.55rem, 1.1vw, 0.9rem);
}

.gallery-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0.55rem;
  background: #e1e1dc;
}

.gallery-card--image {
  padding: 0;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}

.gallery-card picture,
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-card img {
  object-fit: cover;
}

.gallery-card--video {
  color: #fff;
  text-decoration: none;
}

.gallery-card--video img,
.gallery-card--image img {
  transition: transform 220ms ease;
}

.gallery-card--video:hover img,
.gallery-card--image:hover img {
  transform: scale(1.035);
}

.lightbox {
  position: fixed;
  width: min(96vw, 84rem);
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 3.5rem 1rem 1rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 1rem;
  color: #fff;
  background: #111411;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 84%);
}

.lightbox__close {
  position: absolute;
  z-index: 1;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 10%);
  cursor: pointer;
  padding: 0;
  appearance: none;
  font: inherit;
  font-size: 1.8rem;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.lightbox__stage {
  display: grid;
  min-height: 12rem;
  max-height: calc(94vh - 5rem);
  max-height: calc(94dvh - 5rem);
  place-items: center;
}

.lightbox__stage img,
.lightbox__stage video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 5rem);
  max-height: calc(94dvh - 5rem);
  object-fit: contain;
}

.lightbox__stage video {
  width: min(100%, 80rem);
  background: #000;
}

.gallery-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;
  background: rgb(20 24 20 / 72%);
}

.gallery-card__play::after {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.8rem solid #fff;
  content: "";
}

.gallery-card__label {
  position: absolute;
  inset: auto 0 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 75%));
  font-size: 0.9rem;
  font-weight: 650;
}

.contact {
  border-top: 1px solid var(--color-line);
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  font-style: normal;
}

.contact-card strong {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.contact-card a:not(.directions-link) {
  color: var(--color-muted);
}

.directions-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--color-brand-dark);
  font-weight: 700;
}

.map-frame {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #e1e1dc;
}

.map-frame::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1.45rem;
  background: var(--color-surface);
  content: "";
}

.map {
  display: block;
  width: 100%;
  height: calc(20rem + 2.25rem);
  border: 0;
  background: transparent;
}

.map-attribution {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.25rem 0.45rem;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.map-attribution a {
  color: inherit;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--page-gutter);
  border-top: 1px solid var(--color-line);
}

.site-footer nav {
  flex-wrap: wrap;
}

.site-footer p {
  padding-inline: 0.75rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.legal-page {
  width: min(calc(100% - 2 * var(--page-gutter)), 52rem);
  min-height: 72svh;
  margin: 0 auto;
  padding-block: 12rem 6rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.legal-copy {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  color: var(--color-muted);
}

.legal-copy h2 {
  margin-top: 1.5rem;
  color: var(--color-ink);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.legal-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin-top: 1.5rem;
  font-style: normal;
}

.job-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.25rem;
}

@media (max-width: 920px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 760px) {
  .about__layout,
  .contact__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__image {
    width: 100%;
  }

  .map-frame {
    min-height: 18rem;
  }

  .map {
    height: calc(18rem + 2.25rem);
  }
}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(9rem, 24vw, 12rem);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(9rem, 42vw, 12rem);
  }

  .site-footer {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 82svh;
  }

  .hero__content {
    min-height: inherit;
    padding-block: 8rem 4rem;
  }

  .hero::before {
    background: linear-gradient(90deg, rgb(12 20 14 / 68%), rgb(12 20 14 / 38%)), linear-gradient(0deg, rgb(12 20 14 / 24%), transparent 65%);
  }

  .gallery-grid {
    gap: 0.5rem;
  }

  .gallery-card__label {
    padding: 2rem 0.65rem 0.65rem;
    font-size: 0.78rem;
  }

  .site-footer nav {
    justify-content: center;
    gap: 0;
  }

  .lightbox {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    padding: 3.25rem 0.6rem 0.6rem;
    border-radius: 0.75rem;
  }

  .lightbox__stage {
    max-height: calc(100dvh - 4rem);
  }

  .lightbox__stage img,
  .lightbox__stage video {
    max-height: calc(100dvh - 4rem);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
