:root {
  --bg-canvas: #251e1b;
  --bg-surface: #352b25;
  --bg-surface-hover: #42362e;
  --text-primary: #f5eee6;
  --text-muted: #c4b5a6;
  --accent-primary: #ff6f59;
  --accent-secondary: #e09f3e;
  --border-subtle: rgba(245, 238, 230, 0.16);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 24px -4px rgba(255, 111, 89, 0.35);
}

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

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 28px;
}

.page-frame {
  border: 1px solid var(--border-subtle);
  max-width: 1360px;
  margin: 0 auto;
  background-color: var(--bg-canvas);
  position: relative;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.prose p, .prose ul, .prose ol {
  max-width: 70ch;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.25s var(--ease-kinetic);
}

a:hover {
  color: var(--accent-primary);
}

/* Header - Static, Left Brand, Two Nav Groups */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-transform: lowercase;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  display: inline-block;
  flex-shrink: 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-group-secondary {
  padding-left: 1.75rem;
  border-left: 1px solid var(--border-subtle);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link[aria-current="page"]::after, .text-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  width: 40px;
  height: 40px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons & Expanding Links */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #1a120f;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.btn-primary:hover {
  color: #1a120f;
  transform: translateY(-3px) scale(1.015);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-primary);
  position: relative;
  padding-bottom: 3px;
  font-size: 0.95rem;
}

/* Full Viewport Hero */
.hero-viewport {
  position: relative;
  min-height: calc(92vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37, 30, 27, 0.55) 0%, rgba(37, 30, 27, 0.88) 70%, #251e1b 100%);
  z-index: 2;
}

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

.hero-kicker {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #1a120f;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-primary);
  max-width: 64ch;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* Page Sub-hero */
.page-banner {
  position: relative;
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.page-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.banner-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-subtle);
}

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

/* Pavement Sequence Timeline / Vertical Line */
.sequence-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
}

.sequence-stream {
  position: relative;
  padding-left: 3.5rem;
  border-left: 1px solid var(--accent-primary);
}

.story-station {
  position: relative;
  margin-bottom: 5rem;
}

.story-station:last-child {
  margin-bottom: 1rem;
}

.station-badge {
  position: absolute;
  left: -4.85rem;
  top: 0;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #1a120f;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--bg-canvas);
}

.station-header {
  margin-bottom: 2rem;
}

.station-kicker {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.35rem;
}

/* Pull Quote Along Line */
.line-quote {
  position: relative;
  margin: 3.5rem 0;
  padding: 1.75rem 2rem;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
}

.line-quote blockquote {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.line-quote cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

/* Editorial Cards with Overlapping Coral Badges */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.75rem;
}

.editorial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}

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

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
}

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

.coral-badge {
  position: absolute;
  bottom: -14px;
  left: 1.25rem;
  background-color: var(--accent-primary);
  color: #1a120f;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  z-index: 2;
}

.card-body {
  padding: 1.85rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.96rem;
  flex-grow: 1;
}

/* Annotated Crop Comparison Component */
.crop-comparison {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin: 2rem 0;
}

.crop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.crop-frame {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  padding: 1rem;
}

.crop-img-holder {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
}

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

.crop-note-pill {
  display: inline-block;
  border-radius: 999px;
  background-color: var(--accent-primary);
  color: #1a120f;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}

/* Compact Exhibition Notes & Tables */
.exhibition-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.exhibition-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.exhibition-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.table-scroll {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  text-align: left;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
}

th {
  background-color: rgba(0, 0, 0, 0.2);
  font-weight: 800;
  color: var(--accent-primary);
}

/* FAQ Accordion / List */
.faq-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.faq-block h3 {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

/* Contact Tool Form */
.observation-form {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  max-width: 740px;
}

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

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

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

.tool-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.output-preview {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--accent-primary);
  font-family: monospace;
  white-space: pre-wrap;
  font-size: 0.9rem;
  display: none;
}

.output-preview.active {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 3.5rem 2rem 2.5rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

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

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .page-banner-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  .site-header {
    padding: 1rem 1.25rem;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    z-index: 50;
  }
  .nav-wrapper.is-open {
    display: flex;
  }
  .nav-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
  }
  .nav-group-secondary {
    padding-left: 0;
    padding-top: 1rem;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
  .sequence-container {
    padding: 2.5rem 1.25rem;
  }
  .sequence-stream {
    padding-left: 2rem;
  }
  .station-badge {
    left: -3.1rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 6px;
  }
  .hero-viewport {
    min-height: 75vh;
    padding: 2rem 1rem;
  }
}

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