:root {
  --bg-canvas: #f4eee2;
  --bg-surface: #ffffff;
  --bg-surface-alt: #eae0d0;
  --bg-dark: #1f1b16;
  --text-primary: #262422;
  --text-muted: #6b645c;
  --text-light: #fdfbf7;
  --accent-primary: #b84314;
  --accent-secondary: #d97706;
  --accent-deep: #78350f;
  --border-subtle: #d8cbbc;
  --border-strong: #262422;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-hard: 4px 4px 0px #262422;
  --shadow-hover: 1px 1px 0px #262422;
  --frame-padding: clamp(12px, 2.5vw, 28px);
}

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

html {
  font-size: 16px;
  background-color: #e5dac9;
  color: var(--text-primary);
  font-family: Charter, Cambria, Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

body {
  margin: var(--frame-padding);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  min-height: calc(100vh - (var(--frame-padding) * 2));
  color: var(--text-primary);
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
}

/* Typography & Display */
h1, h2, h3, h4, h5 {
  font-family: Charter, Cambria, Georgia, serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: #383430;
}

.kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-primary);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.max-readable {
  max-width: 70ch;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-symbol {
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  border: 2px solid var(--border-strong);
  margin-right: 0.75rem;
  box-shadow: 2px 2px 0 var(--border-strong);
  display: inline-block;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.brand-title span {
  color: var(--accent-primary);
}

/* Navigation */
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  border-bottom-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  line-height: 1;
  color: var(--text-primary);
  text-align: center;
}

.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-strong);
  padding: 1.5rem 2rem;
  box-shadow: 0 16px 24px rgba(0,0,0,0.1);
  z-index: 100;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
}

/* Layout Containers */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Hero with Floating Fact Block */
.hero-block {
  position: relative;
  margin-bottom: 3.5rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-dark);
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) brightness(0.85);
  display: block;
}

.hero-fact-card {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  max-width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  padding: 1.75rem;
  z-index: 2;
}

.hero-fact-card h3 {
  font-size: 1.15rem;
  border-bottom: 2px solid var(--accent-secondary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.hero-fact-list {
  list-style: none;
}

.hero-fact-list li {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-primary);
  color: var(--text-primary);
}

.hero-header-banner {
  padding: 2.5rem 0 1rem;
}

/* Lead Block & Two-Column Grid */
.lead-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-hard);
}

.lead-block h2 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
  color: var(--accent-deep);
}

.lead-block p.lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.two-column-stream {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.single-column-body {
  max-width: 72ch;
  margin: 0 auto 3rem;
}

/* Content Cards */
.arch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease-kinetic), box-shadow 0.2s var(--ease-kinetic);
}

.arch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) grayscale(15%);
  transition: transform 0.4s ease;
}

.arch-card:hover .card-media img {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  transform: translateY(50%);
  background: var(--accent-primary);
  color: var(--text-light);
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-strong);
  z-index: 3;
}

.card-badge.gold {
  background: var(--accent-secondary);
}

.card-badge.ochre {
  background: var(--accent-deep);
}

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

.card-body h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

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

/* Buttons & Links */
.btn {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: fit-content;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
  color: var(--text-light);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.text-link {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--accent-deep);
}

/* Feature Callout Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.feature-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}

.feature-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-deep);
}

.feature-box p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Spec Tables */
.table-scroll-frame {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

table.spec-table th,
table.spec-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

table.spec-table th {
  background: var(--bg-surface-alt);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-strong);
}

/* Accordion FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.faq-trigger::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-primary);
  margin-left: 1rem;
}

.faq-item.active .faq-trigger::after {
  content: "−";
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.98rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.faq-item.active .faq-content {
  display: block;
}

/* Interactive Dispatcher / Contact Tool */
.contact-workbench {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-hard);
  padding: 2rem;
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  background: #ffffff;
}

.workbench-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.output-preview {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-surface-alt);
  border: 1px dashed var(--border-strong);
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  min-height: 80px;
}

.notice-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Footer (Global) */
.site-footer {
  margin-top: 4rem;
  background: var(--bg-dark);
  color: #c9c1b6;
  border-top: 2px solid var(--border-strong);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand h4 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #a39b90;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-column h5 {
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border-bottom: 1px solid #4a443c;
  padding-bottom: 0.4rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #c9c1b6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

.footer-legal-bar {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #3d3730;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #8c8479;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-bar a {
  color: #c9c1b6;
  text-decoration: underline;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .two-column-stream {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-media-wrapper {
    height: 380px;
  }

  .hero-fact-card {
    position: static;
    max-width: 100%;
    border-top: 2px solid var(--border-strong);
    box-shadow: none;
  }

  .lead-block {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --frame-padding: 6px;
  }

  .wrapper {
    padding: 1.5rem 1rem;
  }

  .site-header {
    padding: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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