:root {
  --bg-canvas: #f3f0fa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f9f7fd;
  --text-primary: #334155;
  --text-muted: #5b6478;
  --accent-primary: #593664;
  --accent-secondary: #7c4d8b;
  --border-subtle: rgba(89, 54, 100, 0.16);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 14px 30px -6px rgba(89, 54, 100, 0.12);
  --glow-accent: 0 0 24px -4px rgba(89, 54, 100, 0.22);
  --radius-panel: 20px;
}

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

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent-primary);
  line-height: 1.25;
  font-weight: normal;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1.1rem; }

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Header & Navigation (Normal Flow, Far Left Brand, Centered Nav Row Below) */
.site-header {
  position: relative;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 0 0.9rem;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--accent-primary);
  font-weight: bold;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-primary);
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  background: var(--bg-canvas);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.nav-row a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.25rem 0;
}

.nav-row a:hover, .nav-row a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

/* Dot Grid Backgrounds */
.dot-grid-bg {
  background-image: radial-gradient(rgba(89, 54, 100, 0.18) 1.25px, transparent 1.25px);
  background-size: 18px 18px;
}

/* Atlas Layout Architecture */
.section-block {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.large-planning-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 2.25rem;
  box-shadow: var(--shadow-elevation);
  margin-bottom: 2.25rem;
}

.two-col-atlas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

.panel-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 1.85rem;
  box-shadow: var(--shadow-elevation);
}

/* Hero Render & Floating Panel */
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.render-frame {
  position: relative;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #e9e2f5;
}

.render-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-panel);
}

.render-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.6rem 0.9rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.floating-facts-panel {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-panel);
  padding: 1.65rem;
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.fact-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.85rem;
  background: var(--bg-canvas);
}

/* Thinly Divided Icon-Led Planning Rows */
.planning-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1rem 0;
}

.planning-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
}

.planning-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-canvas);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Outlined Square Buttons */
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--accent-primary);
  border-radius: 0;
  background: transparent;
  color: var(--accent-primary);
  padding: 0.75rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-surface);
}

/* Side-by-Side Footprint Diagrams */
.diagram-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.diagram-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 1.25rem;
}

.diagram-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

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

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

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

th {
  background: var(--bg-canvas);
  color: var(--accent-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
}

/* Disclosures / FAQs */
details.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

details.faq-item summary {
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: var(--accent-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::after {
  content: "+";
  font-family: monospace;
  font-size: 1.25rem;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  padding-top: 0.75rem;
  color: var(--text-primary);
}

/* Contact Tool Form */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--accent-primary);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.output-preview {
  background: var(--bg-canvas);
  border: 1px dashed var(--accent-primary);
  border-radius: var(--radius-panel);
  padding: 1.2rem;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.88rem;
  margin: 1rem 0;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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

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

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

.js-enabled .reveal-item:not(.reveal-visible) {
  opacity: 0;
  transform: translateY(16px);
}

@media (max-width: 900px) {
  .hero-stage, .two-col-atlas, .diagram-pair, .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: inline-block;
  }
  .nav-row {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 0 0.5rem;
  }
  .nav-row.nav-open {
    display: flex;
  }
}

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