:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #2b3335;
  --bg-surface-alt: #232a2c;
  --bg-surface-glass: rgba(43, 51, 53, 0.78);
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-hover: #0d9488;
  --accent-subtle: rgba(20, 184, 166, 0.12);
  --border-subtle: #3a4447;
  --border-accent: rgba(20, 184, 166, 0.4);
  --hard-shadow: 4px 4px 0 #0d1113;
  --font-stack: "Trebuchet MS", "Segoe UI", -apple-system, sans-serif;
  --max-width: 1200px;
}

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

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #5eead4;
  text-decoration: underline;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Header */
.site-header {
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  width: 100%;
  z-index: 50;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-canvas);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -1px;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.desktop-nav {
  display: flex;
  gap: 1.25rem;
}
.desktop-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-bottom: 2px solid transparent;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom-color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--accent-primary);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 0.5rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* Layout Core */
main {
  flex: 1 0 auto;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.narrow-reading {
  max-width: 70ch;
  margin: 0 auto;
}

/* Hero Section */
.hero-charcoal {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4.5rem 1.5rem 3.5rem;
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-tagline {
  color: var(--accent-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.hero-charcoal h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 900px;
  margin-bottom: 1.5rem;
}
.hero-charcoal p.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 72ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.btn-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: #12181a;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  border: 1px solid #14b8a6;
  box-shadow: var(--hard-shadow);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #0d1113;
  color: #081110;
  text-decoration: none;
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--hard-shadow);
  cursor: pointer;
  margin-left: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}
.btn-secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #0d1113;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  text-decoration: none;
}

/* Clip paths & section transitions */
.section-diagonal {
  background: var(--bg-surface-alt);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  padding: 6rem 1.5rem;
  margin: -1.5rem 0;
}
.section-flat {
  padding: 4.5rem 1.5rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.bento-cell-4 { grid-column: span 4; }
.bento-cell-6 { grid-column: span 6; }
.bento-cell-8 { grid-column: span 8; }
.bento-cell-12 { grid-column: span 12; }

.bento-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}
.bento-card:hover {
  border-color: var(--border-accent);
}
.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.meta-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

/* Spatial Plan & Vector Illustrations */
.vector-schematic {
  width: 100%;
  height: 180px;
  background: #191f21;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spatial-diagram {
  background: #171c1e;
  border-left: 3px solid var(--accent-primary);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  color: #a7f3d0;
}

/* Image Containers */
.aspect-16-9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}
.aspect-4-3 {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

/* Comparison Matrix */
.matrix-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.matrix-table th {
  background: #192022;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--accent-primary);
  color: var(--text-primary);
  font-weight: 600;
}
.matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
}
.matrix-table tr:hover td {
  background: #323b3e;
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}
.faq-trigger:hover {
  color: var(--accent-primary);
}
.faq-icon {
  font-size: 1.4rem;
  color: var(--accent-primary);
  line-height: 1;
}
.faq-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}
.faq-item.active .faq-body {
  display: block;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Contact Composer */
.composer-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.form-input, .form-textarea, .form-select {
  background: #1c2124;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.composer-status {
  padding: 0.75rem 1rem;
  background: #142a27;
  border: 1px solid var(--accent-primary);
  color: #a7f3d0;
  font-size: 0.9rem;
  display: none;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background: #14171a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--accent-primary);
}
.footer-legal-bar {
  border-top: 1px solid #232a2c;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-cell-4 { grid-column: span 6; }
  .bento-cell-8 { grid-column: span 12; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .bento-cell-6, .bento-cell-4 { grid-column: span 12; }
  .footer-top { grid-column-gap: 1.5rem; grid-template-columns: 1fr; }
  .hero-charcoal { padding: 3rem 1.5rem 2.5rem; }
  .btn-secondary { margin-left: 0; margin-top: 0.75rem; display: block; text-align: center; }
  .btn-primary { display: block; text-align: center; }
}

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