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

:root {
  --ink:     #0A0A0B;
  --ink-2:   #3A3A3F;
  --ink-3:   #7A7A82;
  --ink-4:   #ABABB3;
  --rule:    #E2E2E6;
  --surface: #F7F7F8;
  --white:   #FFFFFF;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --mono:    'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main section[id] {
  scroll-margin-top: 88px;
}

/* ─── HEADER / NAV ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  overflow: visible;
}

nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
  height: 64px;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.logo-strata {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 14px;
}

.strata-bar {
  height: 3px;
  width: 100%;
}

.strata-bar:nth-child(1) { background: #94A3B8; }
.strata-bar:nth-child(2) { background: #64748B; width: 80%; }
.strata-bar:nth-child(3) { background: #CBD5E1; width: 55%; }

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
}

.logo-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
  line-height: 1;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  background: var(--ink);
  color: var(--white) !important;
  padding: 9px 22px;
  letter-spacing: 0.04em;
  transition: opacity 0.15s !important;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover { opacity: 0.82; }

/* Mobile menu (toggle visible ≤640px) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -8px 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  border-radius: 4px;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(10, 10, 11, 0.06);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
  pointer-events: none;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

body.nav-menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  z-index: 0;
  background: rgba(10, 10, 11, 0.45);
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 641px) {
  .nav-backdrop {
    display: none !important;
  }
}

body.nav-menu-open {
  overflow: hidden;
}

/* Avoid backdrop-filter creating layout quirks for fixed menu children on some engines */
body.nav-menu-open .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255, 255, 255, 0.99);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bar,
  .nav-menu {
    transition: none !important;
  }
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 30px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
  border: 1px solid transparent;
  font-family: var(--sans);
  line-height: 1;
}

.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { opacity: 0.85; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-strata-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.strata-panel {
  flex: 1;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 48px;
  position: relative;
  overflow: hidden;
}

.strata-panel:last-child { border-bottom: none; }

.strata-panel.surface-panel { background: rgba(148,163,184,0.06); }
.strata-panel.deep-panel    { background: rgba(71,85,105,0.10); }
.strata-panel.dark-panel    { background: rgba(15,23,42,0.50); }

.strata-panel-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strata-panel.surface-panel .strata-panel-label .layer-name { color: rgba(148,163,184,0.9); }
.strata-panel.deep-panel    .strata-panel-label .layer-name { color: rgba(100,116,139,0.9); }
.strata-panel.dark-panel    .strata-panel-label .layer-name { color: rgba(71,85,105,0.9); }

.strata-panel-label .layer-index {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.15);
}

.strata-data-row {
  position: absolute;
  right: 48px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.12);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  line-height: 1.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.45);
}

.hero-body {
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 52px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 80px;
}

.hero-footnote {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  display: flex;
  gap: 28px;
}

.hero-footnote span { color: rgba(255,255,255,0.35); }

/* ─── SECTION PRIMITIVES ───────────────────────────────── */
.section-wrap {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-h2 em { font-style: italic; }

.section-sub {
  font-size: 16px;
  color: var(--ink-3);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 64px;
}

/* Capabilities vs sectors: alternate surface / white so adjacent bands are not identical */
#capabilities {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

#about .usecases-outer {
  background: var(--white);
}

/* ─── WHAT WE DO ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 56px;
}

.service-card {
  background: var(--white);
  padding: 44px 36px;
  transition: background 0.2s;
  position: relative;
}

.service-card:hover { background: var(--surface); }

.service-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-index::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.service-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.72;
  font-weight: 300;
  margin-bottom: 24px;
}

.service-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.service-link:hover { color: var(--ink); }

.service-link::after {
  content: '→';
  transition: transform 0.15s;
}

.service-link:hover::after { transform: translateX(3px); }

/* ─── SD2 PHILOSOPHY ───────────────────────────────────── */
.philosophy-outer {
  background: var(--ink);
  padding: 100px 60px;
}

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

.philosophy-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* About page: title block full width at top, body below (avoids short headline bottom-aligned beside long copy) */
#about-us .philosophy-header {
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.philosophy-h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.philosophy-h2 em { font-style: italic; color: rgba(255,255,255,0.35); }

.philosophy-intro {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  font-weight: 300;
}

.philosophy-intro strong {
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

.philosophy-intro--tight {
  margin-top: 1.15rem;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.layer-card {
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.layer-card.surface-card { background: rgba(148,163,184,0.06); }
.layer-card.deep-card    { background: rgba(71,85,105,0.08); }
.layer-card.dark-card    { background: rgba(15,23,42,0.5); }

.layer-bar {
  width: 28px;
  height: 3px;
  margin-bottom: 28px;
}

.surface-card .layer-bar { background: #94A3B8; }
.deep-card    .layer-bar { background: #475569; }
.dark-card    .layer-bar { background: #1E293B; }

.layer-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.layer-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.layer-subtitle {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.layer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.72;
  font-weight: 300;
}

/* ─── PLATFORM SHOWCASE ────────────────────────────────── */
.platform-outer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.platform-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.platform-left {}

.platform-right {}

.dash-frame {
  background: var(--white);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.dash-topbar {
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #16A34A;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}

.d-metric {
  padding: 16px 18px;
  border-right: 1px solid var(--rule);
}

.d-metric:last-child { border-right: none; }

.d-metric-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.d-metric-val {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.d-metric-val.crit { color: #DC2626; }
.d-metric-val.warn { color: #B45309; }

.dash-map {
  height: 120px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
}

.map-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.dot { position: absolute; border-radius: 50%; z-index: 2; }
.dot-r { width: 7px; height: 7px; background: #DC2626; animation: blink 1.8s infinite; }
.dot-a { width: 6px; height: 6px; background: #D97706; animation: blink 2.4s infinite; }
.dot-g { width: 5px; height: 5px; background: #16A34A; animation: blink 2s 0.5s infinite; }

.dash-feed { }

.feed-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
}

.feed-row:last-child { border-bottom: none; }

.feed-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 1px;
  letter-spacing: 0.08em;
}

.tag-c { background: #FEE2E2; color: #991B1B; }
.tag-h { background: #FEF3C7; color: #92400E; }
.tag-m { background: #F0FDF4; color: #166534; }

.feed-text { color: var(--ink-2); line-height: 1.5; flex: 1; }
.feed-time { font-family: var(--mono); font-size: 9px; color: var(--ink-4); flex-shrink: 0; margin-top: 2px; }

/* ─── METRICS BAND ─────────────────────────────────────── */
.metrics-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.m-item {
  padding: 0 40px;
  border-right: 1px solid var(--rule);
  text-align: center;
}

.m-item:first-child { padding-left: 0; text-align: left; }
.m-item:last-child  { border-right: none; text-align: right; }

.m-num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.m-label {
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* ─── USE CASES ────────────────────────────────────────── */
.usecases-outer {
  padding: 100px 60px;
  border-bottom: 1px solid var(--rule);
}

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

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.usecase-card {
  background: var(--white);
  padding: 44px 40px;
  transition: background 0.2s;
}

.usecase-card:hover { background: var(--surface); }

.usecase-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.usecase-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.2;
}

.usecase-title em { font-style: italic; }

.usecase-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.72;
  font-weight: 300;
}

.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  text-transform: uppercase;
}

/* ─── WHY SD2 / DIFFERENTIATORS ────────────────────────── */
.why-outer {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 100px 60px;
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.why-left h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: sticky;
  top: 80px;
}

.why-left h2 em { font-style: italic; }

.why-items { display: flex; flex-direction: column; gap: 0; }

.why-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 24px;
  align-items: start;
}

.why-item:first-child { border-top: 1px solid var(--rule); }

.why-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.why-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.why-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.72;
  font-weight: 300;
}

/* ─── TESTIMONIAL / PROOF BAND ─────────────────────────── */
.proof-outer {
  background: var(--ink);
  padding: 80px 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.07);
}

.proof-card {
  padding: 44px 40px;
}

.proof-card.left  { background: rgba(255,255,255,0.02); }
.proof-card.mid   { background: rgba(255,255,255,0.04); }
.proof-card.right { background: rgba(255,255,255,0.02); }

.proof-quote {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin-bottom: 24px;
}

.proof-attr {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proof-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.proof-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.22);
  text-transform: uppercase;
}

/* ─── CTA BAND ─────────────────────────────────────────── */
.cta-outer {
  background: var(--ink);
  padding: 120px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.cta-h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cta-h2 em { font-style: italic; color: rgba(255,255,255,0.35); }

.cta-body {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 36px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo-mark {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-strata {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 12px;
}

.f-strata-bar { height: 2px; }
.f-strata-bar:nth-child(1) { background: #94A3B8; width: 100%; }
.f-strata-bar:nth-child(2) { background: #64748B; width: 75%; }
.f-strata-bar:nth-child(3) { background: rgba(148,163,184,0.3); width: 50%; }

.footer-logo-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
}

.footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
  font-weight: 300;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
}

.footer-col-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.footer-col-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 300;
}

.footer-col-links a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.18);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.18);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.4); }

/* ─── COMPANY HOME (sd2industries.com) ──────────────────── */
.hero--company {
  display: block;
  min-height: min(88vh, 920px);
  padding: 0;
}

.hero--company .hero-layout {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 72px) clamp(24px, 5vw, 72px) clamp(56px, 10vh, 120px);
}

.hero-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  width: min(140%, 1200px);
  height: min(70vh, 560px);
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.07) 0%, transparent 62%);
  pointer-events: none;
  z-index: 1;
}

.hero-content--brand {
  max-width: 920px;
}

.hero-brand-stack {
  margin-bottom: 2rem;
}

/* Company name: inherits .hero-h1 (Playfair); kept on one line */
.hero-title-primary.hero-h1 {
  margin: 0 0 1.75rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .hero-title-primary.hero-h1 {
    font-size: clamp(34px, 10.5vw, 52px);
  }
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-kicker::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.hero-subtitle-line {
  font-family: var(--sans);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin: 0 0 1.5rem;
}

.hero-valueprop {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: 22em;
}

.hero-valueprop em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
}

.hero--company .hero-body {
  font-size: 17px;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero--company .hero-body strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.hero--company .hero-actions {
  margin-bottom: 0;
  flex-wrap: wrap;
}

.metrics-band--company .m-num {
  font-family: var(--sans);
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.platform-inner--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.products-lede {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.78;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 52em;
}

.products-card {
  padding: 32px 36px;
  border: 1px solid var(--rule);
  background: var(--white);
}

.products-card-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--ink);
}

.products-card-body {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.72;
  font-weight: 300;
  margin: 0;
}

.products-card-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.products-card--spaced {
  margin-top: 32px;
}

/* ─── PRODUCTS PAGE ───────────────────────────────────── */
.products-page-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px clamp(24px, 5vw, 60px) 48px;
}

.products-page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px clamp(24px, 5vw, 60px) 100px;
}

.products-page-h2 {
  margin-bottom: 16px;
}

.products-page-sub {
  margin-bottom: 24px;
  max-width: none;
}

.products-page-note {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.72;
  font-weight: 300;
  margin: 0;
}

.products-page-lede {
  margin-bottom: 0;
  max-width: none;
}

.products-page-hero-title {
  margin-bottom: 0.35rem;
}

.products-page-hero-ctas {
  margin-top: 8px;
}

.spectre-note-margin {
  margin-top: 1.25rem;
}

.spectre-note-margin-sm {
  margin-top: 1rem;
}

.products-card-actions--row {
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .products-page-hero-inner { padding-top: 56px; }
  .products-page-content { padding-bottom: 72px; }
}

/* Spectre product page */
.spectre-hero-tagline {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.spectre-screenshot-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px clamp(24px, 5vw, 60px) 56px;
}

.spectre-screenshot {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(10, 10, 11, 0.14);
  overflow: hidden;
  background: #0a0c10;
}

.spectre-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.spectre-screenshot figcaption {
  padding: 14px 18px 16px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.55;
  background: var(--white);
  border-top: 1px solid var(--rule);
}

.spectre-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.products-page-content > .spectre-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.spectre-section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.spectre-section-lede {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.75;
  font-weight: 300;
  max-width: 42em;
  margin-bottom: 1.25rem;
}

.spectre-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 1.5rem 0 0;
}

.spectre-benefit-card {
  background: var(--white);
  padding: 28px 24px;
}

.spectre-benefit-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.spectre-benefit-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  font-weight: 300;
  margin: 0;
}

.spectre-bullet-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.spectre-bullet-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.1rem;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 300;
  border-bottom: 1px solid var(--rule);
}

.spectre-bullet-list li:last-child {
  border-bottom: none;
}

.spectre-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 1px;
}

.spectre-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 0;
  border: 1px solid var(--rule);
}

.spectre-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spectre-table th,
.spectre-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.spectre-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-4);
  background: var(--surface);
}

.spectre-table td {
  color: var(--ink-3);
  font-weight: 300;
  line-height: 1.5;
}

.spectre-table td:first-child {
  color: var(--ink);
  font-weight: 400;
}

.spectre-table tr:last-child td {
  border-bottom: none;
}

.spectre-cta-band {
  margin-top: 3rem;
  padding: 0;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.spectre-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 36px) 24px;
}

.spectre-cta-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.spectre-cta-lede {
  margin: 0;
  max-width: 36em;
  font-size: 16px;
  color: var(--ink-2);
  font-weight: 300;
  line-height: 1.6;
}

.spectre-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.spectre-disclaimer {
  margin: 0;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 768px) {
  .spectre-benefit-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── CONTACT PAGE ────────────────────────────────────── */
.contact-page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.contact-page-inner {
  max-width: 560px;
  padding-top: 72px;
  padding-bottom: 100px;
}

.contact-page-title {
  margin-bottom: 0.75rem;
}

.contact-page-lede {
  margin-bottom: 2rem;
}

.contact-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form {
  position: relative;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.45rem;
}

.form-req {
  color: var(--ink-4);
  font-weight: 400;
}

.form-input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 12px 14px;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--ink-3);
}

.form-input::placeholder {
  color: var(--ink-4);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A7A82' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 1.75rem;
}

.form-actions .btn {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav.site-nav { padding: 0 32px; }
  .nav-links { gap: 20px; }
  .hero:not(.hero--company) { padding: 0 32px 64px; }
  .hero--company { padding: 0; }
  .hero-strata-visual { display: none; }
  .section-wrap { padding: 72px 32px; }
  .philosophy-outer { padding: 72px 32px; }
  .platform-outer { }
  .platform-inner { grid-template-columns: 1fr; padding: 72px 32px; gap: 48px; }
  .metrics-inner { grid-template-columns: repeat(2,1fr); padding: 40px 32px; gap: 0; }
  .m-item:nth-child(2) { border-right: none; }
  .m-item:nth-child(3) { border-top: 1px solid var(--rule); }
  .m-item:nth-child(4) { border-top: 1px solid var(--rule); text-align: center; }
  .m-item { text-align: center !important; padding: 24px 20px !important; }
  .services-grid { grid-template-columns: 1fr; }
  .philosophy-header { grid-template-columns: 1fr; gap: 32px; }
  .layers-grid { grid-template-columns: 1fr; }
  .usecases-outer { padding: 72px 32px; }
  .usecases-grid { grid-template-columns: 1fr; }
  .why-outer { padding: 72px 32px; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-left h2 { position: static; }
  .proof-outer { padding: 64px 32px; }
  .proof-inner { grid-template-columns: 1fr; }
  .cta-outer { padding: 80px 32px; }
  footer { padding: 48px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 640px) {
  nav.site-nav { padding: 0 16px 0 20px; height: 56px; }
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    z-index: 400;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 40px rgba(10, 10, 11, 0.12);
    max-height: min(320px, calc(100vh - 56px - env(safe-area-inset-top, 0px)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }

  body.nav-menu-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-menu-open .nav-backdrop {
    display: block;
  }

  .nav-menu .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav-menu .nav-links li {
    border-bottom: 1px solid var(--rule);
    margin: 0;
  }

  .nav-menu .nav-links li:last-child {
    border-bottom: none;
    margin-top: 0;
    padding-top: 0;
  }

  .nav-menu .nav-links a {
    display: block;
    padding: 18px 20px;
    font-size: 16px;
    color: var(--ink-2);
    -webkit-tap-highlight-color: rgba(10, 10, 11, 0.06);
  }

  .nav-menu .nav-links a:active {
    background: var(--surface);
  }

  .nav-menu .nav-links a[aria-current="page"] {
    color: var(--ink);
    font-weight: 500;
    background: var(--surface);
  }

  .nav-menu .nav-links .nav-cta {
    display: block;
    text-align: center;
    padding: 16px 22px;
    margin: 10px 16px 14px;
    border-radius: 2px;
    border: none;
    width: auto;
  }

  .hero:not(.hero--company) { padding: 0 20px 56px; }
  .hero--company { padding: 0; }
  .hero-h1 { font-size: 44px; }
  .hero-title-primary.hero-h1 {
    white-space: normal;
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section-wrap { padding: 56px 20px; }
  .section-sub { margin-bottom: 40px; }
  footer { padding: 40px 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
}
