:root {
  color-scheme: light;
  --bg: #f5efe4;
  --panel: rgba(255, 252, 247, 0.78);
  --text: #243123;
  --muted: #5f695a;
  --primary: #496b43;
  --primary-dark: #31472d;
  --accent: #9b6d2f;
  --line: rgba(52, 68, 49, 0.15);
  --shadow: 0 24px 60px rgba(56, 43, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1em;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(233, 209, 158, 0.38), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(140, 182, 128, 0.2), transparent 24%),
    linear-gradient(180deg, #fbf6ec 0%, var(--bg) 38%, #efe5d6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.7) 25%, transparent 25%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%);
  background-position: 14px 0, 14px 0, 0 0, 0 0;
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-frame {
  position: relative;
}

.site-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, #a08a47 0%, #4d6d42 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.topbar,
.section,
.footer,
.hero-copy,
.video-card,
.feature-card,
.impact-panel,
.quote-panel,
.contact-card,
.stats div,
.sidebar-card,
.gallery-item,
.lightbox-dialog {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 0;
  background: rgba(255, 250, 241, 0.76);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--primary-dark);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topnav a:hover,
.topnav a:focus-visible {
  border-bottom-color: var(--primary);
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: linear-gradient(180deg, #f6e2b8 0%, #d7a24e 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.brand-mark span {
  width: 28px;
  height: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.88) 0 16%, transparent 17%),
    linear-gradient(180deg, #2f4d2c 0%, #20311f 100%);
  clip-path: polygon(50% 0, 61% 18%, 76% 16%, 70% 31%, 83% 42%, 66% 47%, 64% 67%, 50% 57%, 36% 67%, 34% 47%, 17% 42%, 30% 31%, 24% 16%, 39% 18%);
}

h1,
h2,
h3,
h4,
blockquote,
.sidebar-kicker,
.eyebrow {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  margin: 0;
}

h1 {
  font-size: 1.3em;
  line-height: 1.15;
  font-weight: 800;
}

h2 {
  font-size: 1.3em;
  line-height: 1.15;
  font-weight: 800;
  
}

h3 {
  font-size: 1.15em;
  line-height: 1.2;
  font-weight: 800;
}

h4 {
  font-size: 1em;
  line-height: 1.2;
  font-weight: 800;
}

blockquote {
  line-height: 1.4;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.14em;  
  font-size: 1em;
  color: var(--primary-dark);
  font-weight: 700;
}

.topbar-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 18px 36px rgba(49, 71, 45, 0.24);
}

.button-secondary,
.topbar-link {
  border: 1px solid rgba(49, 71, 45, 0.18);
  background: rgba(255, 250, 241, 0.7);
}

.button:hover,
.topbar-link:hover,
.button:focus-visible,
.topbar-link:focus-visible {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 12px;
}

.hero-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-copy {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 0;
}

.lead {
  margin: 20px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1em;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
}

.stats div {
  padding: 18px 16px;
  border-radius: 0;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid rgba(49, 71, 45, 0.12);
}

.stats dt {
  font-size: 1.2em;
  line-height: 1.1;
  font-weight: 800;
  color: var(--primary-dark);
}

.stats dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.video-card {
  padding: 16px;
  border-radius: 0;
}

.video-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.video-pill,
.video-meta,
.quote-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 0;
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.video-pill {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #7f5520 100%);
}

.video-meta,
.quote-label {
  border: 1px solid rgba(49, 71, 45, 0.12);
  background: rgba(255, 250, 241, 0.76);
  color: var(--primary-dark);
}

.project-video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  background: #1e2c1c;
}

.video-caption {
  margin: 14px 4px 0;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 0;
  background: rgba(255, 251, 245, 0.62);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-grid,
.gallery-grid,
.contact-grid,
.split-layout {
  display: grid;
  gap: 18px;
}

.feature-grid,
.contact-grid,
.split-layout {
  align-items: start;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  padding: 22px;
  border-radius: 0;
}

.feature-card p,
.impact-list,
.contact-card p,
.quote-panel blockquote,
.sidebar-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.split-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: stretch;
}

.impact-panel,
.quote-panel,
.contact-card,
.sidebar-card {
  padding: 24px;
  border-radius: 0;
}

.sidebar-card {
  display: grid;
  gap: 12px;
}

.sidebar-kicker {
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0;
}

.impact-list {
  padding-left: 20px;
}

.impact-list li + li {
  margin-top: 12px;
}

.quote-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  background: linear-gradient(180deg, rgba(241, 230, 208, 0.7), rgba(255, 250, 241, 0.78));
}

.quote-panel blockquote {
  font-size: 1.1em;
  color: var(--primary-dark);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

#pitch .feature-grid {
  width: 100%;
}

.gallery-caption {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 12px 14px;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(35, 49, 33, 0.05), rgba(35, 49, 33, 0.78));
  text-align: left;
}

.gallery-caption strong {
  display: block;
  font-size: 1em;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 4px;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-card a {
  color: var(--primary-dark);
  
}

.footer {
  margin-top: 20px;
  padding: 12px 6px 0;
  color: var(--muted);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(18, 25, 15, 0.72);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  margin: 0;
  padding: 14px;
  border-radius: 0;
  background: rgba(255, 251, 244, 0.96);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38);
}

.lightbox-dialog img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border-radius: 0;
}

.lightbox-viewport {
  position: relative;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  cursor: grab;
  background: #101610;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-viewport:active {
  cursor: grabbing;
}

.lightbox-viewport img {
  width: 100%;
  height: 72vh;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  transition: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-nav {
  position: absolute;
  top: calc(50% - 27px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(36, 49, 35, 0.7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(36, 49, 35, 0.9);
  transform: none;
}

.lightbox-nav span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.lightbox-nav-prev {
  left: 14px;
}

.lightbox-nav-next {
  right: 14px;
}

.lightbox-nav[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.lightbox-dialog figcaption {
  display: grid;
  gap: 8px;
  padding: 14px 8px 6px;
}

.lightbox-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lightbox-dialog p a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lightbox-dialog p a:hover,
.lightbox-dialog p a:focus-visible {
  color: var(--primary);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: rgba(36, 49, 35, 0.82);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero,
  .split-layout,
  .feature-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 2;
  }

  .hero-sidebar {
    order: 1;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .site-rail {
    width: 8px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .topnav {
    justify-content: flex-start;
  }

  .hero,
  .split-layout,
  .feature-grid,
  .gallery-grid,
  .contact-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 10px;
  }

  .section {
    padding: 20px;
  }

  h2 {
    max-width: none;
  }

  .lightbox {
    padding: 12px;
  }
}
