:root {
  --bg-canvas: #f7f5f0;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f0ece1;
  --text-primary: #111111;
  --text-muted: #5e5850;
  --accent-primary: #d62828;
  --accent-secondary: #ba181b;
  --accent-warm: #f77f00;
  --accent-tint: rgba(214, 40, 40, 0.08);
  --border-subtle: #ded8cb;
  --border-strong: #111111;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1140px;
  --reading-width: 70ch;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(214, 40, 40, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(247, 127, 0, 0.04) 0%, transparent 35%);
}

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

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

/* Base Header */
.site-header {
  position: relative;
  margin: 1.5rem auto 2.5rem;
  max-width: var(--max-width);
  padding: 0 1rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  display: inline-block;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-name:hover {
  color: var(--accent-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s var(--ease-kinetic);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  color: var(--text-primary);
}

/* Mobile Dropdown */
.mobile-nav-panel {
  display: none;
  margin-top: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}

.mobile-nav-panel.open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-panel a {
  font-size: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bg-surface-alt);
}

/* Main Layout & Typography */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.reading-column {
  max-width: var(--reading-width);
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
}

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

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Buttons and Links */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-kinetic);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  color: #ffffff;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-primary);
  position: relative;
  padding-bottom: 2px;
}

.text-action::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s var(--ease-kinetic);
}

.text-action:hover::after {
  width: 100%;
}

/* Hero Triple Overlapping Image Layout */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
}

.hero-content {
  max-width: 540px;
}

.hero-meta-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: var(--accent-tint);
  color: var(--accent-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero-trio {
  position: relative;
  height: 380px;
  width: 100%;
}

.trio-img {
  position: absolute;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
}

.trio-1 {
  width: 68%;
  height: 270px;
  top: 0;
  left: 0;
  z-index: 1;
}

.trio-2 {
  width: 55%;
  height: 220px;
  top: 70px;
  right: 0;
  z-index: 2;
}

.trio-3 {
  width: 50%;
  height: 180px;
  bottom: 0;
  left: 20%;
  z-index: 3;
}

/* Breakout Elements */
.pullquote-breakout {
  margin: 3rem -2rem;
  padding: 2rem 2.5rem;
  background: var(--bg-surface-alt);
  border-left: 4px solid var(--accent-primary);
}

.pullquote-breakout p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pullquote-cite {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

.image-breakout {
  margin: 2.5rem -3rem;
}

.image-breakout figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding: 0 0.5rem;
  font-style: italic;
}

/* Flat 1px Border Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}

.card-flat {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-kinetic);
}

.card-flat:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-img-wrap {
  width: 100%;
  height: 200px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

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

/* Technical Data Panels & Lists */
.spec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  margin: 2rem 0;
}

.spec-list {
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.95rem;
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--text-muted);
}

.spec-value {
  font-weight: 600;
  color: var(--text-primary);
}

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

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

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

th {
  background: var(--bg-surface-alt);
  font-family: var(--font-serif);
  font-weight: 700;
}

/* FAQ Accordion */
.faq-accordion {
  margin: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

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

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--text-muted);
}

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

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Interactive Dispatcher / Contact Tool */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  margin: 2.5rem 0;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}

.action-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.preview-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  height: 250px;
  overflow-y: auto;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  background: #e5e5e5;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

/* Footer (Mandatory Specs) */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.25rem 2.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 360px;
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  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);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-trio {
    height: 320px;
    max-width: 480px;
    margin: 0 auto;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .pullquote-breakout,
  .image-breakout {
    margin-left: 0;
    margin-right: 0;
  }
}

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