:root {
  --bg-canvas: #eef7f2;
  --bg-surface: #dcece2;
  --bg-surface-elevated: rgba(220, 236, 226, 0.85);
  --bg-forest: #14532d;
  --bg-forest-deep: #0e3a1f;
  --bg-band-alt: #e3f1e9;
  --text-primary: #1f2923;
  --text-muted: #3d5244;
  --text-on-dark: #f0f7f3;
  --text-on-dark-muted: #c2decb;
  --accent-primary: #14532d;
  --accent-mint: #2e8b57;
  --accent-highlight: #4ade80;
  --border-subtle: rgba(20, 83, 45, 0.18);
  --border-glass: rgba(255, 255, 255, 0.45);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 10px 28px -6px rgba(14, 58, 31, 0.15);
  --glass-backdrop: blur(12px) saturate(160%);
  --container-max: 1100px;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

body {
  font-family: Charter, Cambria, Georgia, serif;
  line-height: 1.65;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
}

/* Header & Inset Navigation */
.site-header {
  position: relative;
  width: 100%;
  padding: 1.25rem 1rem;
  background: transparent;
  z-index: 100;
}

.nav-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(20, 83, 45, 0.08);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-forest);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: -0.01em;
  text-transform: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--bg-forest-deep);
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-primary);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* Mobile Dropdown */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 1rem;
  right: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-elevation);
  flex-direction: column;
  gap: 0.85rem;
  z-index: 1000;
}

.mobile-nav-panel.is-open {
  display: flex;
}

.mobile-nav-panel .nav-link {
  font-size: 1.05rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(20, 83, 45, 0.08);
}

/* Common Layout Elements */
.content-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Alternating Tonal Bands with clipped transitions */
.band {
  padding: 4.5rem 0;
  position: relative;
}

.band-base {
  background-color: var(--bg-canvas);
}

.band-tint {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.band-forest h2, .band-forest h3, .band-forest strong {
  color: #ffffff;
}

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

/* Hero Section */
.hero-band {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero-band h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  color: var(--bg-forest-deep);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 auto 1.75rem;
}

/* Small-caps classification badges */
.building-type-badge {
  font-variant: all-small-caps;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: rgba(20, 83, 45, 0.12);
  color: var(--accent-primary);
  margin-bottom: 0.65rem;
}

.band-forest .building-type-badge {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);
}

/* Buttons and Links */
.btn-forest {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 0.85rem 1.85rem;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-kinetic), box-shadow 0.25s var(--ease-kinetic), background-color 0.2s ease;
}

.btn-forest:hover {
  background-color: var(--bg-forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 83, 45, 0.25);
}

.link-grow {
  display: inline-block;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding-bottom: 2px;
}

.link-grow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.link-grow:hover::after {
  width: 100%;
}

.band-forest .link-grow {
  color: #ffffff;
}

.band-forest .link-grow::after {
  background-color: #a7f3d0;
}

/* Grid Framework & Translucent Study Cards */
.studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.study-card {
  background: var(--bg-surface-elevated);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
}

.band-forest .study-card {
  background: rgba(14, 58, 31, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
}

.card-figure {
  width: 100%;
  aspect-ratio: 16/9;
  background: #c7ded0;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.35rem;
}

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

.study-card h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  color: var(--bg-forest-deep);
}

.study-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Disclosure Panels & Acoustic Disclaimers */
.acoustic-disclosure {
  background: #f4faf6;
  border-left: 3px solid var(--accent-primary);
  padding: 0.9rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.band-forest .acoustic-disclosure {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #34d399;
  color: var(--text-on-dark-muted);
}

/* Section Cutaway Visual Box */
.cutaway-panel {
  background: #d4ebd9;
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin: 2.5rem 0;
}

.cutaway-visual {
  width: 100%;
  aspect-ratio: 21/9;
  background: #c3e2cc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.cutaway-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Table */
.table-scroll {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  background: #fff;
}

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

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

th {
  background-color: var(--bg-surface);
  color: var(--bg-forest-deep);
  font-weight: 700;
  font-variant: all-small-caps;
  letter-spacing: 0.08em;
}

tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion Styling */
.faq-block {
  margin: 2rem 0;
}

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

.faq-question {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--bg-forest-deep);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Contact Composer Tool */
.composer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--bg-forest-deep);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-secondary {
  background: #ffffff;
  color: var(--bg-forest-deep);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: #d4ebd9;
}

.status-feedback {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--accent-primary);
  font-weight: 600;
  min-height: 1.3rem;
}

/* Reveal Transitions */
.reveal-entry {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}

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

/* Footer (Strictly unified format) */
.site-footer {
  background-color: var(--bg-forest-deep);
  color: var(--text-on-dark-muted);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  max-width: 380px;
}

.footer-brand a {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #4ade80;
}

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-legal-creds {
  line-height: 1.5;
}

.footer-legal-creds span {
  display: block;
}

/* Media Queries */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .nav-toggle-btn {
    display: block;
  }
  .band {
    padding: 3rem 0;
  }
  .studies-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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