:root {
  --bg-base: #1e1612;
  --bg-surface: #2c211a;
  --bg-surface-hover: #382921;
  --text-main: #f5ecdf;
  --text-muted: #c8b9a6;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-dark: #b45309;
  --border-thin: #453328;
  
  --font-serif: Charter, Cambria, Georgia, serif;
  
  --space-unit: 8px;
  --radius-badge: 50%;
  --radius-header: 9999px;
  
  --ease-kinetic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 400ms;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  lang: en;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.5rem 0; }
a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s var(--ease-kinetic);
}
a:hover { color: var(--accent); }
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  fill: currentColor;
}

/* Small Caps Labels */
.label-sc {
  font-size: 0.875rem;
  text-transform: lowercase;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.lead-block {
  max-width: 72ch;
  margin: 0 auto 4rem auto;
  font-size: 1.25rem;
  text-align: center;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}
.content-column {
  max-width: 72ch;
  margin: 0 auto;
}

/* Diagonal Edges & Sections */
.section {
  padding: 6rem 0;
  position: relative;
}
.bg-surface {
  background-color: var(--bg-surface);
}
.clip-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding-bottom: calc(6rem + 3vw);
  margin-bottom: -3vw;
  z-index: 2;
}
.clip-top {
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(6rem + 3vw);
}

/* Header */
.site-header {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}
.header-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-thin);
  border-radius: var(--radius-header);
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.brand-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.main-nav {
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-thin);
  border-radius: 8px;
  padding: 16px;
  min-width: 200px;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.mobile-nav.active {
  display: flex;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-base);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-base));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
}
.hero-subtitle {
  color: var(--accent);
  font-size: 1.125rem;
  text-transform: lowercase;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

/* Page Headers (Non-Hero) */
.page-header {
  padding: 12rem 0 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-thin);
}

/* Buttons */
.btn-solid {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-base);
  font-weight: 700;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0 var(--text-main);
  transition: all 0.2s var(--ease-kinetic);
  cursor: pointer;
  text-align: center;
}
.btn-solid:hover, .btn-solid:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--text-main);
  color: var(--bg-base);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-solid:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--text-main);
}
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-thin);
  box-shadow: 4px 4px 0 var(--border-thin);
}
.btn-secondary:hover {
  border-color: var(--text-main);
  background: var(--bg-surface);
}

/* Row-Based Lists (No Cards) */
.list-container {
  border-top: 1px solid var(--border-thin);
  margin: 2rem 0;
}
.list-row {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-thin);
  gap: 1.5rem;
  transition: background 0.2s var(--ease-kinetic);
}
.list-row:hover {
  background: var(--bg-surface-hover);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.list-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-thin);
  border-radius: var(--radius-badge);
  background: var(--bg-surface);
}
.list-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-badge);
}
.list-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}
.list-content {
  flex-grow: 1;
}
.list-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.list-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Standard Imagery */
.detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 1px solid var(--border-thin);
}
.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

/* Tools (Excavation Estimator) */
.tool-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-thin);
  padding: 2rem;
  margin: 2rem 0;
}
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.input-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
}
.input-group label {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.input-group input, .input-group select {
  background: var(--bg-base);
  border: 1px solid var(--border-thin);
  color: var(--text-main);
  padding: 10px;
  font-family: var(--font-serif);
  font-size: 1rem;
}
.input-group input:focus, .input-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.tool-results {
  border-top: 1px solid var(--border-thin);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--accent);
  color: var(--bg-base);
  border-top-left-radius: 50% 8%;
  border-top-right-radius: 50% 8%;
  padding: 6rem 24px 3rem 24px;
  margin-top: 4rem;
  position: relative;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}
.footer-col h4 {
  color: var(--bg-base);
  margin-bottom: 1.5rem;
}
.footer-col p, .footer-col a {
  color: var(--bg-base);
  opacity: 0.9;
  font-size: 0.95rem;
}
.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links li::before {
  content: '—';
  margin-right: 0.5rem;
}
.floating-contact {
  position: absolute;
  top: -24px;
  right: 10%;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-thin);
  color: var(--text-main);
  padding: 12px;
  font-family: var(--font-serif);
  font-size: 1rem;
}
.form-control:focus {
  outline: 2px solid var(--accent);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Motion Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration) var(--ease-kinetic), transform var(--duration) var(--ease-kinetic);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .header-inner {
    padding: 8px 16px;
  }
  .site-footer {
    border-top-left-radius: 50% 4%;
    border-top-right-radius: 50% 4%;
    padding-top: 4rem;
  }
  .floating-contact {
    position: static;
    display: block;
    margin: 0 auto 2rem auto;
    width: max-content;
  }
}