:root {
  /* Strictly No Blue: Espresso, Amber, Sand */
  --bg-canvas: #1e1612;
  --bg-surface: #362923;
  --bg-surface-hover: #45342c;
  --text-primary: #f5ecdf;
  --text-muted: #d4c3b3;
  --accent-primary: #f59e0b;
  --accent-secondary: #d97706;
  --border-subtle: rgba(245, 236, 223, 0.1);
  --shadow-hard: 4px 4px 0px 0px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 12px 32px -4px rgba(0, 0, 0, 0.4);
  --radius: 4px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, "Segoe UI", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

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

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

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

ul, ol {
  list-style-position: inside;
}

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

/* Radial Gradients Background */
.gradient-bg {
  position: relative;
  z-index: 1;
}
.gradient-bg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vw;
  height: 150vh;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Layout Architecture: Bento Grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.bento-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-kinetic), box-shadow 0.4s var(--ease-kinetic), background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.6);
  background-color: var(--bg-surface-hover);
}

.bento-card.image-card {
  padding: 0;
}
.bento-card.image-card img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}
.bento-card.image-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(30, 22, 18, 0.9), transparent);
}

/* Bento Span Utilities */
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
  }
  .col-span-2 { grid-column: span 2; }
  .col-span-3 { grid-column: span 3; }
  .col-span-4 { grid-column: span 4; }
  .row-span-2 { grid-row: span 2; }
}

/* Header (Strictly Far Left, Static) */
.site-header {
  position: static;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
}

.top-bar {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand span { color: var(--accent-primary); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    z-index: 50;
  }
  .nav-links.active {
    display: flex;
  }
  .site-header { position: relative; }
  .mobile-menu-btn { display: block; }
}

/* Hero Section with Overlapping Imagery */
.hero {
  padding: 4rem 1rem 6rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}
.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.hero-collage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 400px;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-collage img {
  position: absolute;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-kinetic);
}
.hero-img-1 { width: 45%; z-index: 2; left: 5%; top: 10%; transform: rotate(-3deg); }
.hero-img-2 { width: 50%; z-index: 3; left: 25%; top: 20%; }
.hero-img-3 { width: 45%; z-index: 1; right: 5%; top: 5%; transform: rotate(4deg); }
.hero-collage:hover img { transform: scale(1.02); }

@media (max-width: 768px) {
  .hero-collage { height: 250px; }
  .hero-img-1 { width: 60%; left: 0; }
  .hero-img-2 { width: 65%; left: 20%; top: 10%; }
  .hero-img-3 { display: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #1e1612;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn:hover, .btn:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.9);
  color: #1e1612;
  outline: none;
}
.btn-secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: none;
}
.btn-secondary:hover {
  background-color: var(--accent-primary);
  color: #1e1612;
  transform: none;
}

/* Article & Reading Widths */
.reading-content {
  max-width: 70ch;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.reading-content h2, .reading-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.reading-content p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.reading-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

/* Standard HTML Table */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th, td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
th {
  background-color: var(--bg-surface);
  font-weight: 800;
  color: var(--accent-primary);
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background-color: rgba(255,255,255,0.02); }

/* List Rows for Material Specs */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.spec-row:last-child { border-bottom: none; }
.spec-label { font-weight: 800; color: var(--text-primary); }
.spec-value { color: var(--accent-primary); text-align: right; }

/* Contact Tool Inside Bento */
.contact-tool {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-pane {
  display: none;
}
.step-pane.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.4s var(--ease-kinetic);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}
.tool-result {
  background: var(--bg-canvas);
  padding: 1rem;
  border-radius: var(--radius);
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  border: 1px dashed var(--accent-primary);
  color: var(--text-muted);
}
.tool-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* FAQ Accordion */
.accordion {
  margin: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}
.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}
.accordion-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-btn:hover { color: var(--accent-primary); }
.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-content p {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}
.accordion-item.active .accordion-content {
  max-height: 500px; /* arbitrary high number */
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1rem 2rem;
  margin-top: 4rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand h2 { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--accent-primary); }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Utility / Micro-Interactions */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
/* ENDFILE */

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