:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #252a32;
  --bg-surface-hover: #2d333d;
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-secondary: #0d9488;
  --accent-contrast: #0f172a;
  --border-subtle: #374151;
  --border-dark: #111418;
  --shadow-tactile: 4px 4px 0 #000000;
  --shadow-tactile-hover: 1px 1px 0 #000000;
  --shadow-diffuse: 0 16px 32px rgba(0, 0, 0, 0.45);
  --line-height: 1.75;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Segoe UI", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  line-height: var(--line-height);
  font-size: 1rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #2dd4bf;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HEADER & NAVIGATION */
.site-header {
  position: static;
  width: 100%;
  background: var(--bg-canvas);
  border-bottom: 2px solid var(--border-subtle);
  padding: 1.5rem 0 1rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}
.brand-logo:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-primary);
  color: var(--accent-contrast);
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000000;
}

.nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-contrast);
  background-color: var(--accent-primary);
  text-decoration: none;
  box-shadow: 2px 2px 0 #000;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-tactile);
}

.btn-primary:hover {
  background-color: #2dd4bf;
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-tactile-hover);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-tactile);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--text-muted);
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-tactile-hover);
}

/* HERO SECTION - TRIPTYCH */
.hero-block {
  padding: 3rem 0 4rem;
  border-bottom: 2px solid var(--border-subtle);
}

.hero-meta {
  color: var(--accent-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 72ch;
  margin-bottom: 2rem;
}

.hero-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.triptych-card {
  background: var(--bg-surface);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-diffuse);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--border-subtle);
}

.triptych-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
}

.triptych-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #111418;
}

.triptych-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.triptych-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 42px;
  height: 42px;
  background: var(--accent-primary);
  color: var(--accent-contrast);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #000;
}

.triptych-body {
  padding: 1.25rem;
}

.triptych-body h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.triptych-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SECTION STRUCTURE */
.content-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.section-description {
  color: var(--text-muted);
  max-width: 68ch;
  margin-top: 0.5rem;
}

/* DUAL COLUMN LOGISTICAL DECK */
.dual-deck {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.card-obsidian {
  background: var(--bg-surface);
  padding: 2rem;
  box-shadow: var(--shadow-diffuse);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid var(--accent-primary);
  margin-bottom: 1.5rem;
}

.card-obsidian:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.6);
}

.card-obsidian h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.card-obsidian p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* GRID LAYOUTS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

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

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

.feature-box .step-number {
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--accent-contrast);
  font-weight: 800;
  text-align: center;
  line-height: 38px;
  margin-bottom: 1rem;
}

.feature-box h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* TIMELINE LIST */
.party-timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
}

.party-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--border-subtle);
}

.party-timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}

.party-timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-canvas);
}

.timeline-time {
  font-weight: 800;
  color: var(--accent-primary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.timeline-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CALCULATOR TOOL INTERFACE */
.tool-container {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  padding: 2.5rem;
  margin: 2rem 0;
}

.tool-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.control-group input, .control-group select, .contact-field {
  background: #111418;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border-radius: 0;
}

.control-group input:focus, .control-group select:focus, .contact-field:focus {
  border-color: var(--accent-primary);
}

.tool-results {
  background: #111418;
  border: 1px dashed var(--accent-primary);
  padding: 1.5rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  white-space: pre-wrap;
  color: #e5e7eb;
  margin-bottom: 1.5rem;
}

/* DATA TABLE */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-surface);
  font-size: 0.95rem;
}

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

.data-table th {
  background: #111418;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table tr:hover {
  background: var(--bg-surface-hover);
}

/* FAQ ACCORDION */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  display: none;
  line-height: 1.7;
}

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

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

/* FOOTER */
.site-footer {
  background: #111418;
  border-top: 3px solid var(--accent-primary);
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #6b7280;
}

/* ARTICLE CONTENT PROSE */
.article-prose {
  max-width: 72ch;
  margin: 0 auto;
}
.article-prose h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 2.5rem 0 1rem;
}
.article-prose h3 {
  font-size: 1.35rem;
  color: #e5e7eb;
  margin: 1.8rem 0 0.8rem;
}
.article-prose p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}
.article-prose ul, .article-prose ol {
  margin: 1rem 0 1.5rem 1.8rem;
  color: var(--text-muted);
}
.article-prose li {
  margin-bottom: 0.5rem;
}

/* REVEAL ANIMATION */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
  .hero-triptych {
    grid-template-columns: 1fr;
  }
  .dual-deck {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .sub-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 0 0.5rem;
    gap: 0.25rem;
  }
  .sub-nav.is-open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 0.65rem 0.5rem;
  }
  .footer-grid {
    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}}
