/* =========================================================
   Mostly Harmless Solutions — Corporate Stylesheet
   ========================================================= */

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

:root {
  --navy:       #0b0f1e;
  --navy-mid:   #111827;
  --navy-light: #1e2a3a;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --white:      #f8f9fa;
  --off-white:  #e2e8f0;
  --muted:      #94a3b8;
  --border:     rgba(255,255,255,0.08);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:      1160px;
  --radius:     4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--off-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--off-white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--off-white);
}
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--off-white); }
.nav-links .btn { margin-left: 0.5rem; }

/* ---- Nav Dropdown ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
  cursor: default;
  user-select: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-dropdown:hover .nav-dropdown-trigger { color: var(--off-white); }
.nav-caret {
  font-size: 0.55rem;
  opacity: 0.5;
  display: inline-block;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  padding-top: 0.875rem;
  background: transparent;
  z-index: 200;
  overflow: visible;
}
.nav-dropdown-panel::before {
  content: '';
  display: block;
  position: absolute;
  top: 0.875rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(0,0,0,0.65);
  z-index: -1;
}
.nav-dropdown:hover .nav-dropdown-panel { display: block; }

.nav-service-row {
  display: block;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  text-decoration: none;
  cursor: default;
  transition: background 0.15s;
}
.nav-service-row:last-child { border-bottom: none; }

.nav-service-available { cursor: pointer; }
.nav-service-available:hover { background: var(--navy-light); }

.nav-service-pending {
  opacity: 0.45;
  transition: opacity 0.15s, background 0.15s;
}
.nav-service-pending:hover {
  background: var(--navy-light);
  opacity: 1;
}

.nav-service-product {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.nav-service-available .nav-service-product { color: var(--gold); }

.nav-service-name {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.nav-service-status {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}

/* ---- Nav Service Tooltip ---- */
.nav-service-tooltip {
  display: none;
  position: absolute;
  right: calc(100% + 0.75rem);
  left: auto;
  top: 0;
  width: 265px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 300;
  pointer-events: none;
}
.nav-service-pending:hover .nav-service-tooltip { display: block; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 7rem;
  background:
    linear-gradient(to right, rgba(11,15,30,0.92) 0%, rgba(11,15,30,0.75) 55%, rgba(11,15,30,0.35) 100%),
    linear-gradient(to bottom, rgba(11,15,30,0.3) 0%, rgba(11,15,30,0.55) 100%),
    url('/assets/dont-panic-this-is-fine.png') center center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-headline .accent {
  color: var(--gold);
}

.hero-mission {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-bg-text {
  display: none;
}

/* ---- Quote band ---- */
.quote-band {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.pull-quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.pull-quote cite {
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.quote-author {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(148,163,184,0.4);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.quote-author:hover {
  color: rgba(148,163,184,0.7);
}
.quote-author:visited {
  color: rgba(148,163,184,0.4);
}

/* ---- Stats ---- */
.stats-band {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat { padding: 1rem; }
.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Section headings ---- */
.section-header {
  max-width: 560px;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- Services ---- */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--navy);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.2s;
}
.service-card:hover {
  background: var(--navy-light);
}

.service-icon {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.service-product {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* ---- About ---- */
.about {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text .section-eyebrow { margin-bottom: 0.75rem; }
.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.about-text p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.value-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.value-item:first-child { border-top: 1px solid var(--border); }
.value-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.value-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- CTA band ---- */
.cta-band {
  padding: 7rem 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    var(--navy);
}

.cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.cta-inner > p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.cta-fine-print {
  margin-top: 1.5rem !important;
  font-size: 0.75rem !important;
  color: rgba(148,163,184,0.5) !important;
  font-style: italic;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--off-white);
}
.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-legal {
  font-size: 0.75rem;
  color: rgba(148,163,184,0.5);
  text-align: right;
  line-height: 1.6;
}
.footer-legal small { opacity: 0.7; }

.nav-dropdown-divider {
  padding: 0.4rem 1.25rem 0.3rem;
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-section-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.4);
}

/* ---- Add-on teaser card ---- */
.dd-addon-card {
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.5rem;
  max-width: 680px;
}
.dd-addon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.dd-addon-product {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: -0.01em;
}
.dd-addon-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.dd-addon-card p:last-of-type { margin-bottom: 1.25rem; }

/* ---- PivotShield flow diagram ---- */
.dd-pivot-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 3rem auto 0;
}
.dd-pivot-step {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dd-pivot-step-alert {
  border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.03);
}
.dd-pivot-step-gold {
  border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.06);
}
.dd-pivot-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
}
.dd-pivot-label {
  font-size: 0.8125rem;
  color: var(--off-white);
  font-weight: 500;
  line-height: 1.5;
}
.dd-pivot-label small {
  display: block;
  font-size: 0.725rem;
  line-height: 1.5;
  margin-top: 0.2rem;
}
.dd-pivot-step-gold .dd-pivot-label { color: var(--gold-light); }
.dd-pivot-arrow {
  font-size: 0.875rem;
  color: rgba(201,168,76,0.25);
  line-height: 1;
  padding: 0.2rem 0;
}
.dd-pivot-terminal {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 2px;
  text-align: center;
}

/* ---- Service card link ---- */
.service-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.service-link:hover { opacity: 1; }

/* ---- Deep Dive Pages ---- */
.dd-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(201,168,76,0.06) 0%, transparent 70%),
    var(--navy);
}

.dd-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.dd-breadcrumb { margin-bottom: 1.5rem; }
.dd-breadcrumb a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.dd-breadcrumb a:hover { color: var(--gold); }

.dd-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 1rem 0 1.5rem;
}

.dd-hero-lead {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.dd-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.dd-section:last-of-type { border-bottom: none; }

.dd-prose { max-width: 720px; }

.dd-lede {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.dd-prose p,
.dd-phase-content p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.dd-prose p:last-child,
.dd-phase-content p:last-child { margin-bottom: 0; }

.dd-prose em,
.dd-phase-content em { color: var(--off-white); font-style: italic; }
.dd-phase-content strong { color: var(--off-white); font-weight: 600; }

.dd-phases {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dd-phase {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  align-items: start;
}
.dd-phase:last-child { border-bottom: none; }

.dd-phase-num {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  letter-spacing: -0.04em;
  padding-top: 0.25rem;
}

.dd-phase-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.dd-examples {
  list-style: none;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dd-example {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}
.dd-example:last-child { border-bottom: none; }
.dd-example strong { color: var(--gold-light); font-weight: 600; }

.dd-blockquote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold);
  background: var(--navy-light);
}
.dd-blockquote p {
  font-size: 0.9375rem !important;
  font-style: italic;
  color: var(--off-white) !important;
  line-height: 1.6;
  margin-bottom: 0.5rem !important;
}
.dd-blockquote cite {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.03em;
}

.dd-caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.dd-cap {
  background: var(--navy);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.dd-cap:hover { background: var(--navy-light); }

.dd-cap-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.dd-cap p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
}

.dd-video-section {
  width: 100%;
  background: var(--navy-mid);
  line-height: 0;
  display: flex;
  justify-content: center;
}
.dd-asset-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  line-height: 0;
}
.dd-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--navy-mid);
  opacity: 0.9;
}
.dd-asset-label {
  position: absolute;
  bottom: 0.6rem;
  right: 0.75rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  line-height: 1.6;
  pointer-events: none;
  user-select: none;
}

.dd-full-picture {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--navy-mid);
}
.dd-full-picture-figure {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  line-height: 0;
}
.dd-full-picture-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.dd-full-picture-caption {
  display: block;
  line-height: 1.5;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(148,163,184,0.45);
  font-style: italic;
  letter-spacing: 0.02em;
  text-align: center;
}

.dd-result { background: var(--navy-mid); }
.dd-result-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ---- 418 Teapot ---- */
.teapot-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--navy);
}

.teapot-terminal {
  width: 100%;
  max-width: 640px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.teapot-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.teapot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.teapot-dot:nth-child(1) { background: #ff5f57; }
.teapot-dot:nth-child(2) { background: #febc2e; }
.teapot-dot:nth-child(3) { background: #28c840; }
.teapot-bar-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  font-family: monospace;
}

.teapot-body {
  padding: 2rem 2.5rem 2.5rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
}

.teapot-proto {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.35rem;
}
.teapot-code {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}
.teapot-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.8;
}

.teapot-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 1.5rem 0;
}

.teapot-headline {
  font-family: var(--font);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.teapot-desc {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.teapot-sig {
  font-family: var(--font);
  font-size: 0.8rem;
  color: rgba(148,163,184,0.5);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.teapot-sig span {
  font-size: 0.7rem;
  opacity: 0.7;
}

.teapot-back {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.teapot-back:hover { opacity: 1; }

/* ---- Not Services landing ---- */
.ns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.ns-card {
  background: var(--navy);
  padding: 2.5rem 2rem;
  position: relative;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: background 0.2s;
}
.ns-card-available:hover { background: var(--navy-light); }
.ns-card-teased { opacity: 0.5; cursor: default; }
.ns-card-teased:hover { background: var(--navy-light); opacity: 0.7; }
.ns-card-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.ns-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.ns-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
}
.ns-card-status {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.ns-card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.ns-card-available:hover .ns-card-link { opacity: 1; }

/* ---- ELDERBERRY Pentagon SVG ---- */
.eb-pentagon-wrap {
  display: flex;
  justify-content: center;
  padding: 3rem 0 1.5rem;
}
.eb-pentagon-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* ---- ELDERBERRY maturity levels ---- */
.eb-maturity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.eb-maturity-level {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.eb-maturity-level:last-child {
  border-bottom: none;
  background: rgba(201,168,76,0.03);
}
.eb-maturity-level:hover { background: var(--navy-light); }
.eb-maturity-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  padding-top: 0.15rem;
}
.eb-maturity-level:last-child .eb-maturity-num { color: rgba(201,168,76,0.5); }
.eb-maturity-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.eb-maturity-level:last-child .eb-maturity-name { color: var(--gold-light); }
.eb-maturity-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- ELDERBERRY FAQ ---- */
.eb-faq { display: flex; flex-direction: column; gap: 0; }
.eb-faq-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.eb-faq-item:last-child { border-bottom: none; }
.eb-faq-q {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.eb-faq-a { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }
.eb-faq-a p { margin-bottom: 0.75rem; }
.eb-faq-a p:last-child { margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
  .ns-grid { grid-template-columns: 1fr; }
  .eb-maturity-level { grid-template-columns: 2rem 1fr; gap: 1rem; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-dropdown { display: none; }
  .hero { padding: 5rem 0 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
  .logo-text { display: none; }
  .dd-hero { padding: 4rem 0 3rem; }
  .dd-phase { grid-template-columns: 1fr; gap: 0.5rem; }
  .dd-phase-num { font-size: 2rem; }
  .dd-caps-grid { grid-template-columns: 1fr; }
}
