/* DOBLIER — Enterprise AI Infrastructure
   Brand: Teal #00D4AA on near-black #0A0A0A
   Type: Geist (sans), JetBrains Mono (mono)
*/

:root {
  --teal: #00D4AA;
  --teal-dim: #00b894;
  --teal-glow: rgba(0, 212, 170, 0.18);
  --teal-faint: rgba(0, 212, 170, 0.08);
  --bg: #0A0A0A;
  --bg-card: #111111;
  --bg-elev: #161616;
  --bg-light: #F5F4F0;
  --bg-light-card: #FFFFFF;
  --border: #1F1F1F;
  --border-bright: #2A2A2A;
  --border-light: #E5E5E5;
  --text: #FFFFFF;
  --text-dim: #A0A0A0;
  --text-mute: #6B6B6B;
  --text-dark: #0A0A0A;
  --text-dark-dim: #555555;
  --red: #E24B4A;
  --red-faint: rgba(226, 75, 74, 0.12);

  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace;

  --container: 1280px;
  --container-narrow: 960px;
  --gutter: 32px;
  --section-pad: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "//";
  color: var(--teal);
  opacity: 0.6;
}
.eyebrow.muted { color: var(--text-mute); }
.eyebrow.muted::before { color: var(--text-mute); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
h1 { font-size: clamp(48px, 7.5vw, 104px); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.028em; }
h3 { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.02em; }
h4 { font-size: 20px; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 720px;
}

.mono { font-family: var(--font-mono); }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 2px;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #001a14;
  font-weight: 600;
}
/* On very narrow phones, let long button labels wrap to two lines rather than
   forcing horizontal overflow (.btn is nowrap by default). */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: left; }
}
.btn-primary:hover {
  background: #00ebbd;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--teal-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-text {
  padding: 0;
  background: none;
  color: var(--teal);
  font-weight: 500;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.btn-text:hover { border-bottom-color: var(--teal); }

.btn .arrow {
  width: 14px; height: 14px;
  display: inline-block;
  transition: transform 0.18s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Section ===== */
.section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section.no-border { border-bottom: none; }
.section.light {
  background: var(--bg-light);
  color: var(--text-dark);
  border-color: var(--border-light);
}
.section.light h1, .section.light h2, .section.light h3, .section.light h4 { color: var(--text-dark); }
.section.light .lead { color: var(--text-dark-dim); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head.center .lead { margin: 0 auto; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ===== Hairlines and dividers ===== */
.hairline {
  height: 1px;
  background: var(--border);
  width: 100%;
}
.section.light .hairline { background: var(--border-light); }

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-bright);
}
.card.accent {
  border-top: 1px solid var(--teal);
}

/* ===== Grid system ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: height 0.18s ease;
}
.nav.scrolled .nav-inner { height: 60px; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 22px;
  width: auto;
  transition: height 0.18s ease;
}
.nav.scrolled .nav-logo img { height: 19px; }
.nav-items {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 10px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.15s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item:hover, .nav-item.active { color: var(--text); }
.nav-item .chev {
  width: 10px; height: 10px;
  transition: transform 0.2s;
}
.nav-item.open .chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: #0c0c0c;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  z-index: 60;
}
.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}
.mega-headline { color: var(--text); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.mega-headline .mono { display: block; font-size: 11px; color: var(--teal); margin-bottom: 12px; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 32px;
}
.mega-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.15s;
}
.mega-link:hover { color: var(--teal); }
.mega-link .sub {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Mobile hamburger button — hidden on desktop, shown with the drawer below 1080px */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 2px;
  color: var(--text);
  flex-shrink: 0;
  transition: color 0.15s;
}
.nav-burger:hover { color: var(--teal); }

/* Mobile navigation drawer — full-screen overlay below the sticky bar.
   Rendered as a sibling of .nav (not a child) so position:fixed resolves
   against the viewport — .nav's backdrop-filter would otherwise clip it. */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: gd-fade 0.18s ease-out;
}
.nav-drawer-inner {
  padding: 88px var(--gutter) 48px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.nav-drawer-group { margin-bottom: 24px; }
.nav-drawer-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
  opacity: 0.7;
  margin-bottom: 4px;
}
.nav-drawer-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.nav-drawer-link:hover, .nav-drawer-link:active { color: var(--teal); }
.nav-drawer-link .sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mute);
  margin-top: 3px;
  letter-spacing: 0;
}
.nav-drawer-cta {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 1080px) {
  .nav-items { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-drawer { display: block; }
}

/* On phones the header collapses to logo + hamburger; the CTA lives in the drawer */
@media (max-width: 560px) {
  .nav-cta { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 100px;
}
/* On mobile, let the hero be content-driven instead of a near-full-screen
   banner. (The decorative meta strip is hidden in a rule placed after its
   base definition below — source order matters.) */
@media (max-width: 880px) {
  .hero { min-height: auto; padding: 48px 0 56px; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}
.hero h1 {
  max-width: 16ch;
  margin-top: 32px;
}
.hero h1 .accent {
  color: var(--teal);
}
.hero .lead {
  margin-top: 32px;
  max-width: 640px;
  font-size: clamp(18px, 1.4vw, 22px);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
  z-index: 1;
}
.hero-meta .dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
/* Hide the decorative hero meta on mobile — its two items collide on a narrow
   row. Placed AFTER the base .hero-meta rule so it wins on source order. */
@media (max-width: 880px) {
  .hero-meta { display: none; }
}

/* Hero grid background */
.grid-bg {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 0%, transparent 75%);
}
.glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.glow.top-right { top: -300px; right: -200px; }
.glow.bottom-left { bottom: -400px; left: -200px; opacity: 0.5; }

/* Hero scanline overlay */
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}

/* Hero V2: blueprint */
.hero-v2 .blueprint {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  opacity: 0.55;
  pointer-events: none;
}
/* HeroV2 sets a 1fr 1fr grid inline; collapse to one column on mobile.
   !important is required to beat the inline style. */
@media (max-width: 880px) {
  .hero-v2 .hero-content { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* Hero V3: type-forward */
.hero-v3 h1 {
  font-size: clamp(56px, 9vw, 140px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: none;
}
.hero-v3 h1 .accent {
  font-style: italic;
  font-family: 'Geist', serif;
  font-weight: 300;
}

/* ===== Problem punch cards ===== */
.punch-card {
  position: relative;
  padding: 36px 32px 32px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0e0e0e 0%, #0a0a0a 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.punch-card .corner {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.06em;
}
.punch-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
  margin-top: 32px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
/* Stacked on mobile, the 320px min-height + 32px heading offset leave big dead
   space. Let the cards size to content. */
@media (max-width: 880px) {
  .punch-card { min-height: 0; padding: 28px 24px; }
  .punch-card h3 { margin-top: 20px; font-size: 24px; }
}
.punch-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
}
.punch-card .stat {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ===== Data flow diagrams ===== */
.flow-stage {
  position: relative;
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px;
  min-height: 480px;
  overflow: hidden;
}
/* The diagram is a wide 1200-unit horizontal SVG; squeezed into a phone its
   labels render at ~3px. Instead, keep it at a legible size and let the stage
   scroll horizontally (standard pattern for wide diagrams). */
@media (max-width: 880px) {
  .flow-stage {
    padding: 16px;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .flow-stage > svg { min-width: 680px; }
}
.flow-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  gap: 0;
}
.flow-toggle button {
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
}
.flow-toggle button.active {
  background: var(--teal);
  color: #001a14;
  font-weight: 600;
}
.flow-toggle button:not(.active):hover { color: var(--text); }

.flow-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.flow-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.flow-label.vendor { color: var(--red); }
.flow-label.doblier { color: var(--teal); }

/* ===== Isometric layer stack ===== */
.iso-stage {
  perspective: 1600px;
  perspective-origin: 50% 30%;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* The iso stack is a fixed 480px-wide 3D-rotated element. It can't fit a phone
   without either clipping (the rotation widens its box past the viewport) or
   scaling so far its labels become unreadable. It's decorative — the layer
   tabs/cards beside it convey and control the same content — so hide it on
   mobile rather than ship a broken visual. */
@media (max-width: 880px) {
  .iso-stage { display: none; }
}
.iso-wrap {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-42deg);
  width: 480px;
  height: 320px;
}
.iso-layer {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--teal);
  background: linear-gradient(135deg, rgba(0,212,170,0.04) 0%, rgba(0,212,170,0.10) 100%);
  border-radius: 2px;
  transform-style: preserve-3d;
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), border-color 0.25s, background 0.25s;
}
.iso-layer.active {
  border-color: #00ffc4;
  background: linear-gradient(135deg, rgba(0,212,170,0.18) 0%, rgba(0,212,170,0.28) 100%);
  box-shadow: 0 0 60px 8px var(--teal-glow);
}
.iso-layer .iso-label {
  position: absolute;
  top: 24px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.iso-layer .iso-title {
  position: absolute;
  bottom: 28px;
  left: 28px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}
.iso-layer .iso-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,212,170,0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,212,170,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.layer-detail {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  padding: 32px;
  min-height: 280px;
}
.layer-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.layer-tab {
  flex: 1;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  padding-left: 24px;
}
.layer-tab .num { color: var(--teal); font-size: 11px; }
.layer-tab .name { color: var(--text-dim); font-family: var(--font-sans); font-size: 18px; text-transform: none; letter-spacing: -0.01em; font-weight: 500; }
.layer-tab.active { border-bottom-color: var(--teal); }
.layer-tab.active .name { color: var(--text); }
.layer-tab:hover .name { color: var(--text); }
/* Collapse the AORBIT two-up grid globally. The homepage ships this rule in an
   inline <style>, but aorbit.jsx (the /aorbit page) reuses .aorbit-grid and has
   no such rule, so it must live here to apply everywhere. */
@media (max-width: 980px) {
  .aorbit-grid { grid-template-columns: 1fr !important; }
}
/* Let the aorbit two-up grid shrink below its content on mobile, and stack the
   layer tabs vertically so three side-by-side labels don't force overflow. */
@media (max-width: 880px) {
  .aorbit-grid > * { min-width: 0; }
}
@media (max-width: 560px) {
  .layer-tabs { flex-direction: column; gap: 0; border-bottom: none; margin-bottom: 20px; }
  .layer-tab {
    padding: 14px 0 14px 14px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    margin-bottom: 0;
  }
  .layer-tab.active { border-bottom-color: var(--border); border-left-color: var(--teal); }
  .layer-detail { padding: 24px; }
}

/* ===== Production proof ===== */
.proof-stat {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.proof-stat .num {
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: "ss01", "tnum";
}
.proof-stat .num .suffix { color: var(--teal); opacity: 0.6; font-size: 0.5em; vertical-align: super; }
.proof-stat .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 12px;
}
.proof-stat .desc {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 15px;
}

.industry-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 80px;
  border: 1px solid var(--border);
  background: var(--border);
}
.industry-cell {
  background: var(--bg);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.industry-cell svg { width: 36px; height: 36px; color: var(--text-dim); }
.industry-cell .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@media (max-width: 880px) {
  .industry-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Enhancement (light) ===== */
.enh-stack {
  position: relative;
  margin-top: 48px;
}
/* Footer row sets a 1fr 1fr grid inline with a right-aligned nowrap button;
   collapse to one column on mobile so the button doesn't overflow. */
@media (max-width: 880px) {
  .enh-foot { grid-template-columns: 1fr !important; gap: 24px !important; }
  .enh-foot > div:last-child { text-align: left !important; }
}
.enh-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.enh-row.aorbit { border-top: 2px solid var(--teal); padding-top: 28px; margin-top: 16px; border-bottom: none; }
/* Stack the label above the bar on mobile — the fixed 200px label column
   otherwise leaves the bar too narrow to read. (Bar height/font overrides live
   after the base .enh-bar rules below — source order matters.) */
@media (max-width: 880px) {
  .enh-row { grid-template-columns: 1fr; gap: 8px; }
}
.enh-row .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark-dim);
}
.enh-row.aorbit .label { color: var(--teal); font-weight: 600; }
.enh-bar {
  height: 36px;
  background: #E8E5DC;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.enh-bar.aorbit {
  background: #001a14;
  color: var(--teal);
  height: 56px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.enh-bar.aorbit::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 240px;
  background: linear-gradient(90deg, transparent, var(--teal-glow));
}
/* Mobile: fixed 36/56px bar heights + overflow:hidden clip wrapped text, and
   the AORBIT bar's 15px reads oversized on a phone. Let bars grow to content
   and dial the AORBIT text down. (Placed after the base rules to win order.) */
@media (max-width: 880px) {
  .enh-bar { height: auto; min-height: 40px; padding: 9px 16px; line-height: 1.4; overflow: visible; }
  .enh-bar.aorbit { height: auto; min-height: 48px; font-size: 13.5px; padding: 12px 16px; }
}

/* ===== Service cards ===== */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
}
.service-card h3 {
  font-size: 26px;
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}
.service-card p {
  color: var(--text-dim);
  font-size: 15px;
  flex: 1;
}
.service-card .footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.service-card .glow-blob {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 240px;
  height: 240px;
  background: var(--teal);
  opacity: 0.04;
  filter: blur(40px);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s;
}
.service-card:hover .glow-blob { opacity: 0.10; }

/* ===== Closing CTA ===== */
.closing {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
@media (max-width: 880px) { .closing { padding: 72px 0; } }
.closing h2 {
  font-size: clamp(48px, 6.5vw, 88px);
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin: 0 auto;
  text-wrap: balance;
}
.closing .lead { margin: 32px auto 56px; text-align: center; }
.closing .closing-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.closing .secondary-line {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.closing .secondary-line a:hover { color: var(--teal); }

/* ===== Footer ===== */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  font-size: 14px;
}
@media (max-width: 880px) { .footer { padding: 48px 0 32px; } }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { padding: 6px 0; color: var(--text-dim); cursor: pointer; }
.footer li:hover { color: var(--teal); }
.footer-base {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer-logo { height: 56px; margin-bottom: 20px; display: block; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0;
}
.footer-base .sep { margin: 0 10px; opacity: 0.5; }
.footer-base .legal {
  color: var(--text-mute);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-base .legal:hover { color: var(--teal); }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-tm {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  text-transform: none;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 8px;
}
.footer-legal-links .legal { white-space: nowrap; }
.footer .social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer .social {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-mute);
  border-radius: 2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.footer .social:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(0, 212, 170, 0.04);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .footer-base { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-legal-links { gap: 0; }
}
/* On phones the fixed-height logo (≈200px wide) forces a too-wide column;
   collapse the footer to one column. */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-logo { max-width: 100%; }
  /* The "Do Not Sell…" link is nowrap and ~300px wide — allow it to wrap */
  .footer-legal-links .legal { white-space: normal; }
}

/* ===== Architecture diagram ===== */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.arch-row {
  background: var(--bg-card);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  gap: 32px;
  align-items: center;
  transition: background 0.2s;
}
.arch-row:hover { background: var(--bg-elev); }
.arch-row.governance { border-left: 3px solid var(--teal); }
.arch-row .arch-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
.arch-row .arch-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.arch-row .arch-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
}
.arch-row .arch-tag {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@media (max-width: 880px) {
  .arch-row { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .arch-row .arch-tag { text-align: left; }
}

/* ===== Whitepaper sections ===== */
.wp-pull {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  border-left: 2px solid var(--teal);
  padding: 16px 0 16px 32px;
  margin: 56px 0;
  color: var(--text);
  text-wrap: balance;
}

.toc {
  position: sticky;
  top: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.toc h5 { color: var(--text-mute); margin-bottom: 16px; text-transform: uppercase; font-size: 11px; font-weight: 500; }
.toc a {
  display: block;
  padding: 8px 0;
  color: var(--text-dim);
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-left: -2px;
  text-transform: uppercase;
  font-size: 11px;
}
.toc a.active, .toc a:hover { color: var(--teal); border-left-color: var(--teal); }

/* ===== Stat callouts ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-row .num {
  font-size: 48px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: -0.03em;
}
.stat-row .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 8px;
}
@media (max-width: 880px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ===== Case studies list ===== */
.cs-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px 200px 80px;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.cs-row:hover { background: rgba(0,212,170,0.03); }
.cs-row .cs-num { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); letter-spacing: 0.06em; }
.cs-row .cs-name { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.cs-row .cs-sub { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.cs-row .cs-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); }
.cs-row .cs-stat .num { color: var(--teal); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.cs-row .cs-arrow { text-align: right; color: var(--text-mute); }
.cs-row:hover .cs-arrow { color: var(--teal); }
/* Stack the row on mobile. !important overrides the inline gridTemplateColumns
   the Careers roles list sets on .cs-row (page-stubs.jsx). */
@media (max-width: 880px) {
  .cs-row { grid-template-columns: 1fr !important; gap: 6px; padding: 22px 0; }
  .cs-row .cs-arrow { display: none; }
}

/* ===== Page hero (interior) ===== */
.page-hero {
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--border);
}
/* Interior heroes shed ~120px of vertical padding on mobile so content
   isn't pushed three-quarters of the way down the screen. */
@media (max-width: 880px) {
  .page-hero { padding: 40px 0 48px; }
  .page-hero .eyebrow { margin-bottom: 20px; }
  .page-hero .lead { margin-top: 20px; }
}
.page-hero .eyebrow { margin-bottom: 32px; }
.page-hero h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.page-hero .lead { margin-top: 32px; max-width: 680px; }

/* ===== Two col layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
}
@media (max-width: 880px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .two-col > * { min-width: 0; }
}
/* Architecture-gap "mistake" cards use an inline 120px 1fr grid; stack it on
   phones so it doesn't overflow the narrowed article column. (.grid-1 is unique
   to that page.) */
@media (max-width: 640px) {
  .grid-1 > .card { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* ===== Tweaks panel custom branding ===== */
.tweaks-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(.2,.7,.2,1) both; }
.fade-up-1 { animation-delay: 0.06s; }
.fade-up-2 { animation-delay: 0.14s; }
.fade-up-3 { animation-delay: 0.22s; }
.fade-up-4 { animation-delay: 0.30s; }

@keyframes flowRight {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* density */
body.density-compact { --section-pad: 88px; }
body.density-spacious { --section-pad: 152px; }

/* Mobile: tighten global spacing so phones aren't drowning in whitespace.
   Every .container / .section / .nav / .footer reads these vars. */
@media (max-width: 880px) {
  :root { --gutter: 20px; --section-pad: 48px; }
}
@media (max-width: 560px) {
  :root { --section-pad: 40px; }
}

/* =============================================================================
   AORBIT — Chunk 3 components
   ============================================================================= */

/* Layer badge (in eyebrows like "01 // FOUNDATION") */
.layer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  background: var(--teal);
  color: #001a14;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  margin-right: 6px;
}

/* ---- Architecture table (Overview + Architecture) ---- */
.arch-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}
.arch-table-head,
.arch-table-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
.arch-table-head {
  background: #0c0c0c;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.arch-table-head > div {
  padding: 16px 24px;
}
.arch-table-row {
  border-top: 1px solid var(--border);
  transition: background 0.15s ease;
}
.arch-table-row:first-of-type { border-top: none; }
.arch-table-row.is-highlight { background: var(--teal-faint); }
.arch-table-cell {
  padding: 22px 24px;
  border-left: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}
.arch-table-cell:first-child { border-left: none; }
.arch-table-cell.layer {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.arch-table-cell.components { color: var(--text-dim); }
@media (max-width: 720px) {
  .arch-table-head,
  .arch-table-row { grid-template-columns: 1fr; }
  .arch-table-cell { border-left: none; }
}

/* ---- Logo / tech ecosystem bar ---- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}
.logo-row-item {
  flex: 1 1 0;
  min-width: 160px;
  padding: 28px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-left: 1px solid var(--border);
  transition: color 0.18s ease, background 0.18s ease;
}
.logo-row-item:first-child { border-left: none; }
.logo-row-item:hover {
  color: var(--teal);
  background: var(--teal-faint);
}

/* ---- Capability card ---- */
.cap-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.cap-card h3 { margin: 0; }
.cap-card.is-trust {
  border-top: 1px solid var(--teal);
  background: linear-gradient(180deg, rgba(0,212,170,0.04) 0%, var(--bg-card) 40%);
}
.trust-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--teal);
  border-radius: 2px;
}

/* ---- Step flow (Intelligence "How it works") ---- */
.step-flow {
  display: grid;
  grid-template-columns: repeat(11, auto);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  padding: 8px;
  overflow-x: auto;
}
.step-flow-item {
  padding: 24px 20px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0c0c0c;
  border-radius: 2px;
}
.step-flow-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.step-flow-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.step-flow-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}
.step-flow-arrow {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--teal);
  padding: 0 4px;
  opacity: 0.6;
}
@media (max-width: 1080px) {
  .step-flow {
    grid-template-columns: 1fr;
  }
  .step-flow-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }
}

/* ---- Deployment models table (Foundation) ---- */
.deploy-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}
.deploy-table-head,
.deploy-table-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
}
.deploy-table-head {
  background: #0c0c0c;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.deploy-table-head > div { padding: 16px 24px; }
.deploy-table-row { border-top: 1px solid var(--border); }
.deploy-table-row:first-of-type { border-top: none; }
.deploy-cell {
  padding: 24px;
  border-left: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}
.deploy-cell:first-child { border-left: none; }
.deploy-cell.model {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.deploy-cell.best { color: var(--text); }
@media (max-width: 880px) {
  .deploy-table-head,
  .deploy-table-row { grid-template-columns: 1fr; }
  .deploy-cell { border-left: none; }
}

/* ---- Compliance matrix (Foundation + Frontier) ---- */
.compliance-matrix {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
}
.compliance-head,
.compliance-row {
  display: grid;
  grid-template-columns: 280px 1fr;
}
.compliance-head {
  background: #0c0c0c;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.compliance-head > div { padding: 16px 24px; }
.compliance-row { border-top: 1px solid var(--border); }
.compliance-row:first-of-type { border-top: none; }
.compliance-cell {
  padding: 22px 24px;
  border-left: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
}
.compliance-cell:first-child { border-left: none; }
/* Stack the compliance matrix on mobile — its fixed 280px first column
   otherwise squishes the description to ~140px (one word per line). */
@media (max-width: 880px) {
  .compliance-head { display: none; }
  .compliance-row { grid-template-columns: 1fr; }
  .compliance-cell { border-left: none; padding: 18px 20px; }
  .compliance-cell.fw { padding-bottom: 4px; }
  .compliance-cell.fw + .compliance-cell { padding-top: 4px; }
}
.compliance-cell.fw {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: none;
}

/* ---- Architecture interactive layer stack (Architecture page) ---- */
.arch-interactive {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}
.arch-interactive-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.arch-layer {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: background 0.15s ease, border-left-color 0.15s ease;
  border-left: 2px solid transparent;
}
.arch-layer:hover { background: var(--bg-elev); }
.arch-layer.is-active {
  background: var(--bg-elev);
  border-left-color: var(--teal);
}
.arch-layer-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.arch-layer-name {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.arch-layer-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.arch-layer.is-active .arch-layer-hint { color: var(--teal); }
.arch-interactive-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  min-height: 240px;
}
@media (max-width: 880px) {
  .arch-interactive { grid-template-columns: 1fr; }
}

/* ---- Principle card (Architecture) ---- */
.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 1px solid var(--teal);
  border-radius: 4px;
  padding: 36px;
  transition: border-color 0.18s ease;
}
.principle-card:hover { border-color: var(--border-bright); border-top-color: var(--teal); }
.principle-card h3 { margin: 0; }

/* ---- Integration hub (Architecture) ---- */
.integration-hub {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  padding: 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.integration-center {
  background: var(--bg);
  border: 1px solid var(--teal);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px -10px var(--teal-glow);
}
.integration-center-title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.integration-ring {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.integration-node {
  background: var(--bg);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}
.integration-node:hover {
  color: var(--teal);
  background: var(--teal-faint);
}
@media (max-width: 880px) {
  .integration-hub { grid-template-columns: 1fr; }
  .integration-ring { grid-template-columns: repeat(2, 1fr); }
}


/* =============================================================================
   Chunk 4 — Why Doblier · Industries · Services
   Added: ag-proof (Architecture Gap third-party stats), industry-track-record
          (Banking 6-bullet list), domain-card (Security 4-domain), framework-row
          (Security compliance shields), engagement-table (Services tables).
   ============================================================================= */

/* ---- Architecture Gap · third-party proof block ---- */
.ag-proof {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.ag-proof-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.ag-proof-num {
  font-family: var(--font-sans);
  font-size: clamp(72px, 8vw, 128px);
  font-weight: 500;
  line-height: 0.9;
  color: var(--teal);
  letter-spacing: -0.04em;
}
.ag-proof-text h4 {
  margin: 0;
  letter-spacing: -0.015em;
}
@media (max-width: 880px) {
  .ag-proof-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .ag-proof-num { font-size: 64px; }
}

/* ---- Industry track-record list (Banking · 6 anchored proofs) ---- */
.track-record {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.track-record-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.track-record-item .check {
  color: var(--teal);
  margin-top: 4px;
}
.track-record-item p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* ---- Domain card (Security · 4 domains) ---- */
.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.18s ease;
}
.domain-card:hover { border-color: var(--border-bright); }
.domain-card .icon-wrap {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-bright);
  color: var(--teal);
  border-radius: 2px;
}
.domain-card h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.domain-card p { color: var(--text-dim); line-height: 1.6; margin: 0; font-size: 15px; }

/* ---- Framework badges row (Security · compliance shields) ---- */
.framework-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.framework-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--border-bright);
  border-radius: 2px;
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.framework-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

/* ---- Engagement / delivery tables (Services pages) ---- */
.engagement-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.engagement-head,
.engagement-row {
  display: grid;
  grid-template-columns: 220px 1.4fr 1fr;
  gap: 0;
}
.engagement-head {
  background: rgba(0,212,170,0.04);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.engagement-row {
  border-bottom: 1px solid var(--border);
}
.engagement-row:last-child { border-bottom: none; }
.engagement-cell {
  padding: 24px 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
  border-left: 1px solid var(--border);
}
.engagement-cell:first-child { border-left: none; }
.engagement-cell.model {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
}
@media (max-width: 880px) {
  .engagement-head { display: none; }
  /* !important is required: some engagement tables set gridTemplateColumns
     inline (page-stubs.jsx), which would otherwise beat this media query. */
  .engagement-row { grid-template-columns: 1fr !important; }
  .engagement-cell { border-left: none; border-bottom: 1px solid var(--border); }
  .engagement-cell:last-child { border-bottom: none; }
}

/* ---- Case study card (Case Studies page · expandable feel) ---- */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.case-card:hover { border-color: var(--border-bright); }
.case-card .case-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-bright);
  color: var(--teal);
  border-radius: 2px;
}
.case-card h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.case-card .case-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 8px;
}
.case-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 24px 0 8px;
}
.case-card p { color: var(--text-dim); line-height: 1.65; margin: 0; }
.case-card .case-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.case-card .case-cta:hover { text-decoration: underline; }
@media (max-width: 880px) {
  .case-card { grid-template-columns: 1fr; padding: 28px; }
}

/* ---- Bilingual lockup (Government Vision 2030 callout) ---- */
.bilingual-lockup {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  background: var(--bg-card);
  margin-top: 32px;
}
.bilingual-lockup .arabic {
  font-family: var(--font-sans);
  font-size: 48px;
  letter-spacing: 0;
  color: var(--teal);
  direction: rtl;
  line-height: 1;
}
.bilingual-lockup .divider {
  width: 1px;
  height: 48px;
  background: var(--border-bright);
}
.bilingual-lockup .english {
  font-family: var(--font-sans);
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.bilingual-lockup .meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
@media (max-width: 880px) {
  .bilingual-lockup { flex-wrap: wrap; gap: 16px; }
  .bilingual-lockup .meta { margin-left: 0; }
}


/* ===== Form consent & privacy notice (legal compliance) ===== */
.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(0, 212, 170, 0.03);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.consent-row:hover { border-color: var(--border-bright); }
.consent-row input[type="checkbox"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.form-privacy-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.55;
  text-align: center;
}
.form-privacy-note a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border-bright);
  transition: color 0.15s, border-color 0.15s;
}
.form-privacy-note a:hover { color: var(--teal); border-color: var(--teal); }


/* =============================================================================
   Gated download modal
   ============================================================================= */
.gd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: gd-fade 0.18s ease-out;
}
@keyframes gd-fade { from { opacity: 0; } to { opacity: 1; } }
.gd-modal {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 212, 170, 0.05);
  animation: gd-slide 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes gd-slide { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.gd-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  border-radius: 2px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.gd-close:hover { color: var(--teal); border-color: var(--teal); }

.gd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
}
.gd-meta {
  padding: 40px 36px;
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.04) 0%, transparent 100%), var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.gd-title {
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 16px;
  color: var(--text);
}
.gd-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.45;
}
.gd-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 20px;
  line-height: 1.6;
}
.gd-inside-label {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.gd-inside {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gd-inside li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.gd-bullet {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 3px;
  flex-shrink: 0;
}
.gd-trust {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-mute);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.gd-trust svg { flex-shrink: 0; color: var(--teal); opacity: 0.7; }

.gd-form {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gd-form-h {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 12px;
  margin-bottom: 4px;
}
.gd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gd-form input:focus,
.gd-form textarea:focus {
  border-color: var(--teal) !important;
}

.gd-thanks {
  padding: 80px 48px;
  text-align: center;
}
.gd-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.1);
  color: var(--teal);
  border: 1px solid var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .gd-grid { grid-template-columns: 1fr; }
  .gd-meta { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 24px; }
  .gd-form { padding: 32px 24px; }
  .gd-thanks { padding: 56px 24px; }
  .gd-title { font-size: 22px; }
}

/* Pre-fill notice on contact forms (set from ?interest / ?layer / ?source) */
.form-prefill-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.28);
  border-radius: 2px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.form-prefill-note .pf-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
  margin-right: 4px;
}
.form-prefill-note strong { color: var(--text); font-weight: 500; }


/* =============================================================================
   Breadcrumbs (auto-rendered above page hero on all interior routes)
   ============================================================================= */
.breadcrumbs {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.breadcrumbs-inner ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  align-items: center;
}
.breadcrumbs-inner li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs-inner a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
  text-transform: uppercase;
}
.breadcrumbs-inner a:hover { color: var(--teal); }
.breadcrumbs-inner span[aria-current="page"] {
  color: var(--text);
  text-transform: uppercase;
}
.breadcrumbs-inner .bc-sep {
  color: var(--text-mute);
  opacity: 0.5;
  margin: 0 10px;
}

/* =============================================================================
   Mobile spacing tightening (consolidated, end-of-file so these win on source
   order over the base rules they override). Reduces the gaps between cards,
   between sections, and large desktop-scale internal margins on phones.
   ============================================================================= */
@media (max-width: 880px) {
  /* card grids: 24px → 16px between stacked cards */
  .grid-2, .grid-3, .grid-4 { gap: 16px; }
  /* gap between a section's heading block and its content */
  .section-head { margin-bottom: 28px; }
  /* large internal section margins scaled for desktop */
  .industry-row { margin-top: 36px; }
  .wp-pull { margin: 32px 0; }
  .proof-foot { margin-top: 32px !important; gap: 24px !important; }
  .enh-foot { margin-top: 32px !important; }
  .enh-stack { margin-top: 28px; }
  /* closing CTA was padded heavier than a normal section */
  .closing { padding: 56px 0; }
  .stat-row { margin: 32px 0; padding: 24px 0; }
  /* footer inner spacing */
  .footer-grid { padding-bottom: 36px; }
  /* interior diagrams / wide blocks padded for desktop */
  .integration-hub { padding: 28px; gap: 24px; }
  .two-col { gap: 32px; }
  .arch-interactive { gap: 20px; }
  /* Inline desktop-scale spacing set via style attributes (e.g. the
     architecture-gap article separators, wide form grids). Halve the big ones
     on mobile. !important is required to beat inline styles. */
  [style*="margin-top: 96px"] { margin-top: 44px !important; }
  [style*="margin-top: 64px"] { margin-top: 36px !important; }
  [style*="gap: 64px"] { gap: 24px !important; }
}
