:root {
  --bg-canvas: #eef7f2;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f5fbf7;
  --bg-band: #14532d;
  --bg-band-deep: #0c351c;
  --text-primary: #1f2937;
  --text-muted: #4b5563;
  --text-on-dark: #f0fdf4;
  --text-muted-on-dark: #bbf7d0;
  --accent-primary: #14532d;
  --accent-secondary: #166534;
  --accent-soft: #dcfce7;
  --border-subtle: #cde2d5;
  --border-dark: rgba(220, 252, 231, 0.22);
  --radius-sm: 4px;
  --radius-pill: 999px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 10px 26px -6px rgba(20, 83, 45, 0.14);
  --glow-accent: 0 0 20px -6px rgba(20, 83, 45, 0.35);
  --font-heading: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-top: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: 0.1em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin-bottom: 0.5rem; }

p { margin: 0 0 1.15rem; }
a { color: var(--accent-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover { color: var(--accent-secondary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

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

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

.prose-measure {
  max-width: 70ch;
}

.prose-center {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Header: strictly static/relative normal flow, far-left brand, transparent over hero, solid when scrolled or on standard pages */
.site-header {
  position: relative;
  z-index: 30;
  width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s var(--ease-kinetic), border-color 0.3s var(--ease-kinetic);
}

.site-header.over-hero {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: -76px;
}

.site-header.over-hero.is-solid {
  background-color: var(--bg-band-deep);
  border-bottom-color: var(--border-dark);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.over-hero .brand-link {
  color: #ffffff;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.desktop-nav a {
  text-decoration: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.over-hero .desktop-nav a {
  color: rgba(255, 255, 255, 0.92);
}

.over-hero .desktop-nav a:hover,
.over-hero .desktop-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--accent-soft);
}

.menu-dots-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.over-hero .menu-dots-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.mobile-drawer {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--accent-primary);
  padding: 1rem 1.25rem 1.5rem;
}

.over-hero .mobile-drawer {
  background-color: var(--bg-band-deep);
  border-bottom-color: var(--accent-soft);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
}

.mobile-drawer a {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-primary);
}

.over-hero .mobile-drawer a {
  color: #ffffff;
  border-bottom-color: var(--border-dark);
}

/* Hero */
.hero-viewport {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 6.5rem 1.25rem 4rem;
  background-color: var(--bg-band-deep);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  z-index: 1;
  opacity: 0.62;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 53, 28, 0.72) 0%, rgba(15, 38, 24, 0.58) 50%, rgba(12, 53, 28, 0.88) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.hero-viewport .eyebrow,
.forest-band .eyebrow {
  background-color: rgba(220, 252, 231, 0.16);
  color: var(--accent-soft);
  border: 1px solid rgba(220, 252, 231, 0.3);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(240, 253, 244, 0.94);
  max-width: 64ch;
  margin: 1rem auto 2rem;
}

/* Subpage Banner */
.page-banner {
  background-color: var(--bg-band);
  color: var(--text-on-dark);
  padding: 3.5rem 0 3rem;
  border-bottom: 4px solid var(--accent-secondary);
}

.page-banner p {
  color: var(--text-muted-on-dark);
  max-width: 68ch;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Pill Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.65rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  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 {
  background-color: var(--accent-secondary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.btn-pill-light {
  background-color: #ffffff;
  color: var(--accent-primary);
}

.btn-pill-light:hover {
  background-color: var(--accent-soft);
  color: var(--accent-primary);
}

/* Sections & Forest Bands */
.section-pale {
  padding: 4.5rem 0;
  background-color: var(--bg-canvas);
}

.forest-band {
  padding: 4.5rem 0;
  background-color: var(--bg-band);
  color: var(--text-on-dark);
}

.forest-band a:not(.btn-pill) {
  color: var(--accent-soft);
}

.section-header {
  margin-bottom: 2.25rem;
}

/* Unequal Bento Regions (No card grids — divider-separated lists & captioned panels) */
.bento-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  align-items: start;
}

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

.bento-region {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
}

.forest-band .bento-region {
  background-color: rgba(12, 53, 28, 0.65);
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}

/* Icon-led phenomenon rows split by thin dividers */
.phenomenon-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phenomenon-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.phenomenon-row:first-child {
  padding-top: 0.25rem;
}

.phenomenon-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.forest-band .phenomenon-row {
  border-bottom-color: var(--border-dark);
}

.row-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-soft);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  margin-top: 0.15rem;
}

.forest-band .row-icon {
  background-color: rgba(220, 252, 231, 0.15);
  color: var(--accent-soft);
}

.row-body h3 {
  margin-bottom: 0.3rem;
}

.row-body p {
  margin-bottom: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.forest-band .row-body p {
  color: var(--text-muted-on-dark);
}

/* Captioned Photo Enlargements */
.photo-enlargement {
  margin: 0;
}

.photo-frame-16x9 {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.photo-frame-4x3 {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.photo-caption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-primary);
  padding-left: 0.75rem;
}

.forest-band .photo-caption {
  color: var(--text-muted-on-dark);
  border-left-color: var(--accent-soft);
}

/* Evidence Note & Process Diagram Box */
.evidence-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background-color: var(--bg-canvas);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
}

.forest-band .evidence-note {
  background-color: rgba(255, 255, 255, 0.07);
  border-left-color: var(--accent-soft);
}

.evidence-note strong {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.25rem;
}

.diagram-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.diagram-svg {
  width: 100%;
  height: auto;
  display: block;
}

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

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

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

th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background-color: var(--accent-soft);
  color: var(--accent-primary);
}

/* FAQ Disclosures */
.faq-list {
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

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

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

.faq-answer {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  max-width: 70ch;
}

.forest-band .faq-list,
.forest-band .faq-item {
  border-color: var(--border-dark);
}

.forest-band .faq-item summary::after {
  color: var(--accent-soft);
}

.forest-band .faq-answer {
  color: var(--text-muted-on-dark);
}

/* Contact Tool Form */
.field-group {
  margin-bottom: 1.15rem;
}

.field-group label {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.field-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

textarea.field-input {
  min-height: 130px;
  resize: vertical;
}

.tool-output {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
}

.tool-preview {
  white-space: pre-wrap;
  background-color: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.status-msg {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
}

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Footer */
.site-footer {
  background-color: var(--bg-band-deep);
  color: var(--text-on-dark);
  padding: 3.5rem 0 2.5rem;
  border-top: 4px solid var(--accent-primary);
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
}

.site-footer h3 {
  font-size: 1rem;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--text-muted-on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal-bar {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted-on-dark);
  font-size: 0.85rem;
}

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

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-dots-btn {
    display: inline-flex;
  }
  .hero-viewport {
    min-height: 80vh;
    padding-top: 6rem;
  }
  .section-pale, .forest-band {
    padding: 3.25rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bento-region {
    padding: 1.25rem;
  }
  .phenomenon-row {
    flex-direction: column;
    gap: 0.6rem;
  }
}