:root {
  /* Dynamic Palette: Amber Industry Towns (Strictly No Blue) */
  --bg-canvas: #1e1612; /* Espresso brown base */
  --bg-surface: rgba(30, 22, 18, 0.6); /* Translucent dark */
  --bg-surface-solid: #2a1f1a;
  --bg-surface-hover: rgba(45, 34, 28, 0.85);
  --text-primary: #f5ecdf; /* Warm cream text */
  --text-muted: rgba(245, 236, 223, 0.7);
  --accent-primary: #f59e0b; /* Amber */
  --accent-secondary: #d97706;
  --border-subtle: rgba(245, 158, 11, 0.3);
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
  --glow-accent: 0 0 16px -4px var(--accent-primary);
  --glass-backdrop: blur(12px) saturate(150%);
  
  /* Layout constraints */
  --max-width: 1200px;
  --nav-height: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-secondary); }
ul, ol { margin-left: 1.5rem; margin-bottom: 1.5rem; }

/* Structural Utility */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }
.readable-text { max-width: 72ch; margin: 0 auto; }

/* Header & Nav */
header {
  position: static; /* Scrolls out of view naturally */
  width: 100%;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand span { color: var(--accent-primary); }

.desktop-nav { display: flex; gap: 1.5rem; align-items: center; }
.desktop-nav a {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0%; height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}
.desktop-nav a:hover::after { width: 100%; }
.contact-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(30, 22, 18, 0.95);
  backdrop-filter: var(--glass-backdrop);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-overlay a {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
}
.close-mobile {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--text-primary);
  font-size: 2rem; cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 4rem 1.5rem;
  background: var(--bg-canvas);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-headline { margin-bottom: 0; }

/* Interactive Timeline / Vertical Flow Layout */
.timeline-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.timeline-section:nth-child(even) {
  background: var(--bg-surface-solid);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}
.timeline-section:nth-child(odd) {
  background: var(--bg-canvas);
}

.timeline-container {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* The Vertical Line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 2.5rem; /* Offset for line */
  width: 2px;
  background: var(--border-subtle);
}

.timeline-node {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-kinetic);
}
.timeline-node.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
/* The Node Marker */
.timeline-node::before {
  content: '';
  position: absolute;
  left: 1.05rem; /* Align with line left 2.5rem (1.5 padding + 1 rem) -> 2.5rem minus half width */
  top: 0.5rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: var(--glow-accent);
  border: 3px solid var(--bg-canvas);
  z-index: 2;
}

/* Cards & Media */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: 4px; /* Brief explicitly requested 4px */
  padding: 2rem;
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic);
}
.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  background: var(--bg-surface-hover);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.img-container {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
  transition: transform 0.6s ease;
}
.img-container:hover img { transform: scale(1.05); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 0; /* Square ends as requested */
  transition: all 0.3s var(--ease-kinetic);
  text-align: center;
}
.btn:hover, .btn:focus-visible {
  background: var(--accent-primary);
  color: var(--bg-canvas);
  box-shadow: var(--glow-accent);
}

/* Contact Form - Kinetic Narrative Tool */
.form-step {
  display: none;
  animation: fadeIn 0.5s var(--ease-kinetic);
}
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.input-group { margin-bottom: 1.5rem; }
.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.input-group input, .input-group textarea, .input-group select {
  width: 100%;
  padding: 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: inherit;
}
.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* Footer */
footer {
  background: var(--bg-surface-solid);
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
  text-align: left;
}
.footer-col h4 { margin-bottom: 1rem; color: var(--accent-primary); }
.footer-col ul { list-style: none; margin-left: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Table */
table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
th, td { border: 1px solid var(--border-subtle); padding: 1rem; text-align: left; }
th { background: rgba(245, 158, 11, 0.1); color: var(--accent-primary); font-weight: 700; }

/* Responsive */
@media (max-width: 1024px) {
  .contact-meta { display: none; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .timeline-container::before { left: 1rem; }
  .timeline-node { padding-left: 2.5rem; }
  .timeline-node::before { left: -0.45rem; }
  .hero { padding: 3rem 1rem; }
  .timeline-section { padding: 4rem 0; clip-path: none !important; }
}

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