:root {
  --ink: #2b2b2b;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --paper: #ffffff;
  --sand: #f6f6f6;
  --red: #f46455;
  --red-dark: #d84b3d;
  --header: 4.5rem;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; }
a { color: var(--red-dark); }
button, input { font: inherit; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 5;
}
.skip:focus { top: 0.5rem; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(72rem, calc(100% - 2rem));
  height: var(--header);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 3.25rem;
}
.brand img {
  display: block;
  width: 10.5rem;
  height: 3.25rem;
  object-fit: contain;
  object-position: left center;
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  min-width: 0;
}
.social { display: flex; gap: 0.35rem; }
.social a {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}
.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop > a,
.menu > summary {
  color: var(--ink);
  text-decoration: none;
  font-family: Dosis, "Open Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.7rem;
}
.nav-desktop a[aria-current="page"],
.menu[open] > summary { color: var(--red); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 16rem;
  margin: 0;
  padding: 0.4rem 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.menu-panel a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  text-decoration: none;
}
.menu-panel a:hover,
.menu-panel a[aria-current="page"] { color: var(--red); background: #fff6f5; }
.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.45rem;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}
.nav-mobile, .nav-scrim { display: none; }

.hero { position: relative; min-height: 28rem; background: #222; color: #fff; overflow: hidden; }
.slide { display: none; min-height: 28rem; }
.slide.is-on { display: grid; }
.slide img { width: 100%; height: 28rem; object-fit: cover; }
.slide-copy {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.15));
}
.slide-copy h1, .slide-copy p { margin: 0; }
.slide-copy h1 {
  font-family: Dosis, sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
}
.slide-copy p { margin-top: 0.6rem; font-size: 1.25rem; }
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.btn:hover { background: var(--red-dark); }
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.hero-nav.prev { left: 0.5rem; }
.hero-nav.next { right: 0.5rem; }

.wrap { width: min(72rem, calc(100% - 2rem)); margin: 0 auto; }
.features, .cards, .tiles { display: grid; gap: 1.5rem; }
.features { grid-template-columns: repeat(3, 1fr); margin: 2.5rem auto; }
.feature { text-align: center; }
.feature img { width: 100%; height: 14rem; object-fit: cover; }
.feature h2 { font-family: Dosis, sans-serif; font-size: 1.45rem; }
.tiles { grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative;
  min-height: 13rem;
  display: grid;
  align-items: end;
  color: #fff;
  text-decoration: none;
  background: #333 center/cover no-repeat;
}
.tile span {
  position: relative;
  z-index: 1;
  padding: 1rem;
  font-family: Dosis, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.band {
  margin: 2rem 0;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #fff;
  background: #333 center/cover no-repeat;
}
.band h2 { margin: 0 0 0.4rem; font-family: Dosis, sans-serif; }
.band strong { color: var(--red); }
.section { padding: 1rem 0 2rem; }
.section h2 { font-family: Dosis, sans-serif; text-align: center; letter-spacing: 0.04em; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--sand); padding: 1.1rem 1.2rem; }
.card h3 { margin: 0 0 0.4rem; font-family: Dosis, sans-serif; }
.prose { padding: 2rem 0 3rem; }
.prose h1, .prose h2, .prose h3 { font-family: Dosis, sans-serif; }
.prose p, .prose li { line-height: 1.65; }
.lead { font-size: 1.15rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-bottom: 3rem; }
.contact-grid a { color: var(--ink); font-weight: 700; text-decoration: none; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.6rem;
  padding-bottom: 3rem;
}
.gallery a, .gallery button {
  display: block;
  padding: 0;
  border: 0;
  background: #eee;
  cursor: pointer;
}
.gallery img { width: 100%; height: 9rem; object-fit: cover; display: block; }
.photo-page { padding-bottom: 3rem; }
.photo-page img { width: 100%; height: auto; }
.foot {
  background: #2b2b2b;
  color: #fff;
  padding: 1.5rem 0;
}
.foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.foot-copy { text-align: left; }
.foot-copy p { margin: 0; }
.foot-copy p + p { margin-top: 0.15rem; }
.foot a { color: #fff; }
.powered {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  color: #fff;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.powered-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.03em;
}
.powered .brand-mark { display: block; width: 1.15rem; height: 1.15rem; flex: none; }
.powered .mark-leaf { fill: currentColor; stroke: currentColor; }
.powered .mark-orange { fill: #da6f40; stroke: #da6f40; }
.powered .mark-gap { fill: #2b2b2b; stroke: #2b2b2b; }

dialog.lightbox { border: 0; padding: 0; background: transparent; color: #fff; }
dialog.lightbox[open] {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: transparent;
}
dialog.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
dialog.lightbox figure { margin: 0; }
dialog.lightbox img {
  display: block;
  max-width: min(84vw, 80rem);
  max-height: 86vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
dialog.lightbox figcaption { margin-top: 0.45rem; text-align: center; }
dialog.lightbox figcaption[hidden] { display: none; }
.lightbox-close,
.lightbox-step {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 0 0.45rem rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  top: 0.35rem;
  right: 0.65rem;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-step {
  top: 50%;
  width: 3rem;
  height: 4.5rem;
  transform: translateY(-50%);
  font-size: 3.2rem;
  line-height: 1;
}
.lightbox-prev { left: 0.35rem; }
.lightbox-next { right: 0.35rem; }

@media (max-width: 860px) {
  .social, .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .nav-mobile {
    display: block;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  body:not(.menu-open) .nav-mobile { display: none; }
  .nav-mobile a, .nav-mobile summary { display: block; padding: 0.8rem 1rem; color: var(--ink); text-decoration: none; }
  .menu-panel { position: static; box-shadow: none; border: 0; }
  .features, .tiles, .cards, .contact-grid { grid-template-columns: 1fr; display: grid; }
  .powered { flex-direction: column; align-items: flex-start; gap: 0.35rem; white-space: normal; }
  .hero, .slide, .slide img { min-height: 18rem; height: 18rem; }
}
