:root {
  --bg-canvas: #ffffff;
  --bg-band: #f1f5f9;
  --bg-surface: rgba(241, 245, 249, 0.8);
  --bg-surface-hover: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --accent-primary: #c2410c;
  --border-subtle: rgba(30, 41, 59, 0.1);
  --radius-strict: 4px;
  --shadow-block: 4px 4px 0px var(--accent-primary);
  --shadow-none: 0px 0px 0px var(--accent-primary);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-backdrop: blur(12px) saturate(150%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6, .tech-label, nav, th {
  font-family: ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

a { color: var(--accent-primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; border-radius: var(--radius-strict); display: block; object-fit: cover; }
.img-contrast { filter: contrast(1.15) brightness(0.95); }

/* Header - Strict Far-Left Brand Rule */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-canvas);
  border-bottom: 2px solid var(--text-primary);
  position: relative;
  z-index: 100;
}
.brand {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-family: ui-monospace, Consolas, monospace;
  font-weight: bold;
}
nav.desktop-nav { display: flex; gap: 2rem; }
nav.desktop-nav a { color: var(--text-primary); font-size: 0.9rem; }
nav.desktop-nav a:hover { color: var(--accent-primary); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: bold;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-canvas);
  border-bottom: 2px solid var(--text-primary);
  padding: 1rem 2rem;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav.active { display: flex; }

/* Hero Text Band */
.hero-band {
  background: var(--bg-band);
  padding: 4rem 2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-band h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.1;
  color: var(--text-primary);
}
.hero-band p {
  max-width: 900px;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Base Layout Container */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.copy-wrapper { max-width: 72ch; margin: 0 auto; }

/* Asymmetric Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
  margin-top: 3rem;
}
.bento-tile {
  background: var(--bg-band);
  border-radius: var(--radius-strict);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s var(--ease-kinetic);
}
.bento-tile:hover { transform: translateY(-4px); }
.bento-tile.span-2 { grid-column: span 2; }
.bento-tile.span-row-2 { grid-row: span 2; }
.bento-tile img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.bento-content {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  padding: 1.25rem;
  border-radius: var(--radius-strict);
  border: 1px solid rgba(255,255,255,0.4);
}
.bento-content h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.bento-content p { font-size: 0.9rem; color: var(--text-primary); font-family: system-ui; }

/* Buttons & Inputs */
.btn {
  display: inline-block;
  background: var(--text-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-strict);
  cursor: pointer;
  box-shadow: var(--shadow-block);
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn:hover, .btn:focus-visible {
  transform: translate(4px, 4px);
  box-shadow: var(--shadow-none);
  color: #fff;
  outline: none;
}
.btn-accent { background: var(--accent-primary); box-shadow: 4px 4px 0px var(--text-primary); }
.btn-accent:hover { box-shadow: 0px 0px 0px var(--text-primary); }

.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-family: ui-monospace, Consolas; font-size: 0.85rem; }
.input-group input, .input-group select, .input-group textarea {
  width: 100%; padding: 0.75rem; border: 2px solid var(--text-primary); border-radius: var(--radius-strict);
  font-family: system-ui; font-size: 1rem; background: var(--bg-canvas);
}

/* Specs Tables */
.table-wrapper { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius-strict); 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: var(--bg-band); font-size: 0.85rem; }
td { font-family: system-ui; font-size: 0.95rem; }

/* Horizontal Splits for History */
.history-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 4rem 0;
}
.history-split.reverse { direction: rtl; }
.history-split.reverse > * { direction: ltr; }
.history-content h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--accent-primary); }

/* Editorial Text Elements */
.content-section { margin-bottom: 3rem; }
.content-section h2 { margin-bottom: 1rem; border-bottom: 2px solid var(--bg-band); padding-bottom: 0.5rem; }
.content-section p { margin-bottom: 1rem; color: var(--text-primary); }
.content-section ul { margin: 1rem 0 1rem 2rem; }

/* FAQ List */
.faq-item { margin-bottom: 2rem; padding: 1.5rem; background: var(--bg-band); border-radius: var(--radius-strict); border-left: 4px solid var(--accent-primary); }
.faq-item h3 { margin-bottom: 0.75rem; font-family: system-ui; font-weight: 700; text-transform: none; }

/* Footer */
footer {
  background: var(--text-primary);
  color: #fff;
  padding: 4rem 2rem 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;
}
.footer-col h4 { color: var(--accent-primary); margin-bottom: 1.25rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #cbd5e1; font-family: system-ui; font-size: 0.9rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-legal {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: ui-monospace, Consolas, monospace;
}
.footer-legal a { color: #cbd5e1; margin: 0 0.5rem; }

/* Tool Output Box */
#tool-output {
  background: var(--bg-band);
  padding: 1.5rem;
  border-radius: var(--radius-strict);
  border: 1px dashed var(--text-primary);
  margin-top: 1.5rem;
  display: none;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s var(--ease-kinetic); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* Breakpoints */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile.span-2 { grid-column: span 1; }
  .history-split { grid-template-columns: 1fr; gap: 2rem; }
  .history-split.reverse { direction: ltr; }
  .hero-band { padding: 3rem 1.5rem; }
  .hero-band h1 { font-size: 2rem; }
}

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