:root {
  --bg-canvas: #3b0d1a;
  --bg-surface: #4e1223;
  --bg-surface-elevated: #5d172b;
  --bg-surface-hover: #6e1d34;
  --text-primary: #fdf8ed;
  --text-muted: #d4bfa6;
  --accent-primary: #e8d5a8;
  --accent-secondary: #f4e5c2;
  --accent-dark: #260710;
  --border-subtle: rgba(232, 213, 168, 0.22);
  --border-strong: rgba(232, 213, 168, 0.45);
  --dot-color: rgba(232, 213, 168, 0.08);
  --shadow-elevation: 0 16px 36px -6px rgba(18, 4, 8, 0.65);
  --glow-accent: 0 0 20px -2px rgba(232, 213, 168, 0.35);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, .brand-text {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.18;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1.25rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.25s var(--ease-kinetic); }
a:hover { color: var(--accent-secondary); }

/* Header & Nav */
.header-wrapper {
  padding: 24px 24px 0 24px;
  position: static;
  width: 100%;
}

.floating-nav-pill {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-elevation);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
  padding: 6px 4px;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  margin: 12px 24px 0 24px;
  padding: 20px;
  box-shadow: var(--shadow-elevation);
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-list a {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  display: block;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Patterns & Containers */
.dot-pattern {
  background-image: radial-gradient(var(--dot-color) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

.main-content {
  flex: 1;
}

.reading-container {
  max-width: 72ch;
  margin: 0 auto;
}

/* Badges & Buttons */
.badge-pill {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 9999px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.25s var(--ease-kinetic), background-color 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.text-link-grow {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 6px;
  display: inline-inline-flex;
  transition: letter-spacing 0.25s var(--ease-kinetic), color 0.25s;
}

.text-link-grow:hover {
  letter-spacing: 0.18em;
  color: var(--accent-secondary);
}

/* Hero Section */
.hero-block {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .lead-text {
  font-size: 1.18rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 400;
}

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

.hero-card-frame {
  position: absolute;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
  background: var(--bg-surface);
}

.hero-frame-1 {
  width: 76%;
  height: 250px;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-frame-2 {
  width: 70%;
  height: 230px;
  bottom: 10px;
  right: 0;
  z-index: 2;
  border-color: var(--accent-primary);
}

.hero-frame-3 {
  width: 45%;
  height: 140px;
  bottom: 0;
  left: 10%;
  z-index: 3;
  background: var(--bg-surface-elevated);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Split Rows Layout */
.editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.editorial-row.reverse-split {
  direction: rtl;
}

.editorial-row.reverse-split > * {
  direction: ltr;
}

.editorial-media-wrap {
  position: relative;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.editorial-media-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.editorial-media-wrap .badge-pill {
  position: absolute;
  top: -12px;
  left: 20px;
  z-index: 2;
}

.editorial-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Pulse Metrics Bar */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.metric-pill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-elevation);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Feature Grid */
.cards-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-kinetic), border-color 0.3s;
}

.editorial-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.card-img-holder {
  position: relative;
  height: 220px;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
}

.card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img-holder .badge-pill {
  position: absolute;
  bottom: -12px;
  left: 16px;
}

.card-body {
  padding: 28px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform 0.25s var(--ease-kinetic);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 24px;
}

/* Dispatch Generator Tool */
.tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  margin-top: 32px;
  box-shadow: var(--shadow-elevation);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--accent-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-accent);
}

.tool-output-area {
  background: var(--bg-canvas);
  border: 1px dashed var(--border-strong);
  padding: 20px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  margin: 20px 0;
  min-height: 120px;
}

.tool-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--border-subtle);
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.editorial-table th {
  background: var(--bg-surface-elevated);
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 20px;
  color: var(--accent-primary);
  font-size: 0.9rem;
  border-bottom: 2px solid var(--border-strong);
}

.editorial-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.editorial-table tr:hover td {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* Scroll Reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-kinetic), transform 0.7s var(--ease-kinetic);
}

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

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 30px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-heading {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-address {
  font-style: normal;
  line-height: 1.5;
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual-deck {
    height: 320px;
    max-width: 600px;
    margin: 0 auto;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    padding: 16px 16px 0 16px;
  }
  .floating-nav-pill {
    padding: 10px 20px;
  }
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .editorial-row, .editorial-row.reverse-split {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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