:root {
  --bg-canvas: #eef7f2;
  --bg-surface: rgba(255, 255, 255, 0.86);
  --bg-surface-solid: #ffffff;
  --bg-surface-hover: rgba(255, 255, 255, 0.98);
  --text-primary: #1f2937;
  --text-muted: #374151;
  --accent-primary: #14532d;
  --accent-secondary: #15803d;
  --border-subtle: rgba(20, 83, 45, 0.16);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(20, 83, 45, 0.12);
  --glow-accent: 0 0 24px -4px rgba(20, 83, 45, 0.25);
  --glass-backdrop: blur(16px) saturate(160%);
  --radius-sm: 4px;
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.small-caps, .editorial-label {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-primary);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: 70ch;
  margin: 0 auto;
}

.prose p, .prose ul, .prose ol, .prose blockquote {
  margin-bottom: 1.35rem;
}

.prose h2, .prose h3 {
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
  color: var(--text-primary);
}

.prose blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  font-style: italic;
  border-radius: var(--radius-sm);
}

/* Header - strictly non-sticky, far-left brand */
.site-header {
  position: relative;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
  z-index: 20;
}

.site-header.scrolled {
  background: var(--bg-surface-solid);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background-color: var(--accent-primary);
  border-radius: 2px;
  display: inline-block;
  box-shadow: 3px 3px 0 rgba(20, 83, 45, 0.3);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Dot pattern for Hero & Installation section only */
.dot-pattern-bg {
  background-image: radial-gradient( rgba(20, 83, 45, 0.16) 1.25px, transparent 1.25px);
  background-size: 18px 18px;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 4.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 1.15rem;
  color: var(--text-primary);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 58ch;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.78rem 1.65rem;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-kinetic), box-shadow 0.25s var(--ease-kinetic), background-color 0.2s ease;
}

.btn-pill:hover, .btn-pill:focus-visible {
  background-color: var(--accent-secondary);
  color: #ffffff;
  transform: translateY(-3px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.btn-pill-secondary {
  background-color: rgba(20, 83, 45, 0.12);
  color: var(--accent-primary);
}

.btn-pill-secondary:hover, .btn-pill-secondary:focus-visible {
  background-color: var(--accent-primary);
  color: #ffffff;
}

/* Overlapping 3-photo composition */
.hero-collage {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 34px);
}

.collage-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
  border: 2px solid var(--bg-surface-solid);
  background: #111827;
  transition: transform 0.35s var(--ease-kinetic), z-index 0s;
}

.collage-item:hover {
  transform: translateY(-5px) scale(1.02);
  z-index: 10;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-1 {
  grid-column: 1 / 9;
  grid-row: 1 / 9;
  z-index: 2;
}

.collage-2 {
  grid-column: 5 / 13;
  grid-row: 3 / 11;
  z-index: 3;
}

.collage-3 {
  grid-column: 2 / 8;
  grid-row: 7 / 13;
  z-index: 4;
}

/* Sections & Bento Grid */
.section-block {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-header h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.2;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
}

.bento-span-8 { grid-column: span 8; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-span-12 { grid-column: span 12; }

.card-tile {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic), background-color 0.25s ease;
}

.card-tile:hover {
  transform: translateY(-5px) scale(1.01);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.card-media {
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111827;
}

.ratio-16-9 { aspect-ratio: 16 / 9; width: 100%; }
.ratio-4-3 { aspect-ratio: 4 / 3; width: 100%; }
.ratio-1-1 { aspect-ratio: 1 / 1; width: 100%; }

.card-tile h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.card-tile p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 1rem;
}

.meta-line {
  font-size: 0.84rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fact-badge {
  background: rgba(20, 83, 45, 0.1);
  color: var(--accent-primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Split layout & Sidebars */
.editorial-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.context-sidebar {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.context-sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.dispatch-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.dispatch-list li {
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.92rem;
}

.dispatch-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-solid);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.93rem;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: rgba(20, 83, 45, 0.08);
  color: var(--accent-primary);
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

/* Accordion FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
}

details.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

details.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.3rem;
  font-weight: 700;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.form-control:focus {
  outline: 2px solid var(--accent-primary);
  border-color: var(--accent-primary);
}

.tool-output {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(20, 83, 45, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background: #dfeee6;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.5rem;
  margin-top: 3rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .editorial-layout {
    grid-template-columns: 1fr;
  }
  .bento-span-8, .bento-span-6, .bento-span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface-solid);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-elevation);
  }
  .main-nav.nav-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .bento-span-8, .bento-span-6, .bento-span-4 {
    grid-column: span 12;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-collage {
    min-height: 340px;
    grid-template-rows: repeat(12, 28px);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .hero-section {
    padding: 2.5rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
