/* ── OBJECT & EVENT GRAPH SECTION ─────────────────────────── */
.oeg { position: relative; overflow: hidden; padding: 120px 0 140px; border-top: 1px solid var(--hair); }
.oeg__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 70% 10%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(700px 500px at 20% 90%, rgba(59,130,246,0.06), transparent 60%);
}
.oeg .container { position: relative; z-index: 1; }

/* ── Hero ── */
.oeg__hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 140px;
}
.oeg__copy h2.oeg__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink-100);
  margin: 18px 0 22px;
}
.oeg__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 560px;
  margin-bottom: 32px;
}
.oeg__lead strong { color: var(--ink-100); font-weight: 600; }
.oeg__sig {
  display: flex;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
  margin-bottom: 24px;
}
.oeg__sig-item { flex: 1; padding-right: 22px; }
.oeg__sig-item + .oeg__sig-item { border-left: 1px solid var(--hair); padding-left: 22px; }
.oeg__sig-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-100);
  line-height: 1;
}
.oeg__sig-lab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin-top: 8px;
}
.oeg__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.oeg__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-80);
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
}
.oeg__chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: oeg-dot 1.8s ease-in-out infinite;
}
.oeg__chip:nth-child(2) .oeg__chip-dot { animation-delay: 0.3s; }
.oeg__chip:nth-child(3) .oeg__chip-dot { animation-delay: 0.6s; }
.oeg__chip:nth-child(4) .oeg__chip-dot { animation-delay: 0.9s; }
@keyframes oeg-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Motion panel — live graph */
.oeg__motion { position: relative; padding: 14px; zoom: 0.8; }
.oeg__panel {
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8,13,24,0.96), rgba(8,13,24,0.86));
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.6),
    0 0 0 1px rgba(59,130,246,0.10),
    inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
}
.oeg__panel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
  background: rgba(255,255,255,0.02);
}
.oeg__panel-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.oeg__panel-dot--r { background: #ff5f57; }
.oeg__panel-dot--y { background: #febc2e; }
.oeg__panel-dot--g { background: #28c840; }
.oeg__panel-name {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-70);
}
.oeg__panel-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #28c840;
  border: 1px solid rgba(40,200,64,0.4);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.oeg__panel-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #28c840; box-shadow: 0 0 8px #28c840;
  animation: oeg-pulse 1.6s ease-out infinite;
}
@keyframes oeg-pulse { 0%,100% {opacity:1;} 50% {opacity:0.4;} }

/* Graph SVG container */
.oeg__graph-wrap {
  position: relative;
  padding: 26px 22px 10px;
  background:
    radial-gradient(600px 320px at 50% 50%, rgba(59,130,246,0.05), transparent 70%);
}
.oeg__graph { display: block; width: 100%; height: auto; }
.oeg__graph .node { fill: rgba(8,13,24,0.92); stroke: rgba(96,165,250,0.55); stroke-width: 1.2; }
.oeg__graph .node-fill { fill: var(--accent); }
.oeg__graph .node-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--ink-80);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.oeg__graph .node-type {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--ink-60);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.oeg__graph .edge { stroke: rgba(96,165,250,0.22); stroke-width: 1; fill: none; }
.oeg__graph .edge-hot { stroke: rgba(96,165,250,0.55); stroke-width: 1.2; }
.oeg__graph .pulse { fill: #7dd3fc; }
.oeg__graph .ring {
  fill: none;
  stroke: rgba(96,165,250,0.4);
  stroke-width: 1.2;
}
.oeg__graph .ring-anim {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
}

.oeg__panel-foot {
  display: flex; gap: 22px;
  padding: 14px 20px;
  border-top: 1px solid var(--hair);
  background: rgba(255,255,255,0.015);
  flex-wrap: wrap;
}
.oeg__metric { display: flex; flex-direction: column; gap: 2px; }
.oeg__metric-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-70); }
.oeg__metric-v { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-90, var(--ink-80)); }

.oeg__float {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-80);
  background: rgba(8,13,24,0.92);
  border: 1px solid rgba(96,165,250,0.30);
  border-radius: 999px;
  padding: 6px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6);
  z-index: 2;
  animation: oeg-float 5s ease-in-out infinite;
}
.oeg__float--tl { top: -4px; left: -10px; }
.oeg__float--tr { top: 38px; right: -14px; animation-delay: 1.6s; }
.oeg__float--bl { bottom: 4px; left: -8px; animation-delay: 3s; }
@keyframes oeg-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Section heads */
.oeg__section-head { margin: 0 0 56px; max-width: 880px; }
.oeg__section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

/* Pipeline (5 stages: Objects → Relationships → Events → Context → Intelligence) */
.oeg__pipe {
  list-style: none; padding: 0; margin: 0 0 140px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8,13,24,0.4), rgba(8,13,24,0.15));
  position: relative;
}
.oeg__stage {
  padding: 28px 24px 28px;
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column;
  position: relative;
  transition: background 280ms ease;
}
.oeg__stage:hover { background: rgba(59,130,246,0.04); }
.oeg__stage:last-child { border-right: 0; }
.oeg__stage-mark {
  width: 36px; height: 36px;
  border: 1px solid rgba(96,165,250,0.28);
  background: rgba(8,13,24,0.92);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  color: var(--accent);
}
.oeg__stage-mark svg { width: 22px; height: 22px; display: block; }
.oeg__stage-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.oeg__stage h4 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink-100);
  margin: 0 0 10px;
  line-height: 1.2;
}
.oeg__stage p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-70);
  margin: 0;
}
.oeg__stage p em { font-style: normal; color: var(--accent); font-family: var(--font-mono); font-size: 11.5px; }

/* Capabilities (3×2) */
.oeg__caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 140px;
}
.oeg__cap {
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 26px 24px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005));
  transition: transform 280ms cubic-bezier(0.22,1,0.36,1), border-color 280ms ease, background 280ms ease;
}
.oeg__cap:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.4);
  background: linear-gradient(180deg, rgba(59,130,246,0.06), rgba(59,130,246,0.015));
}
.oeg__cap-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.oeg__cap-mo {
  width: 36px; height: 36px;
  border: 1px solid rgba(96,165,250,0.28);
  background: rgba(59,130,246,0.05);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
}
.oeg__cap-mo svg { width: 24px; height: 24px; display: block; }
.oeg__cap:hover .oeg__cap-mo {
  border-color: rgba(96,165,250,0.55);
  background: rgba(59,130,246,0.12);
}
.oeg__cap-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.oeg__cap h4 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-100);
  margin: 0 0 10px;
  line-height: 1.2;
}
.oeg__cap p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0 0 16px;
}
.oeg__cap-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}
.oeg__cap-meta span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  padding: 4px 9px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}

/* Business value */
.oeg__value {
  border: 1px solid var(--hair);
  border-radius: 14px;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(59,130,246,0.08), transparent 60%),
    linear-gradient(180deg, rgba(8,13,24,0.6), rgba(8,13,24,0.3));
  padding: 48px 48px 40px;
  margin-bottom: 32px;
}
.oeg__value-head { margin-bottom: 36px; max-width: 720px; }
.oeg__value-head h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-100);
  margin: 14px 0 0;
}
.oeg__value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.oeg__vcell {
  padding: 0 24px;
  border-right: 1px solid var(--hair);
}
.oeg__vcell:last-child { border-right: 0; }
.oeg__vcell:first-child { padding-left: 0; }
.oeg__vnum {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-100);
  margin-bottom: 10px;
}
.oeg__vname {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.oeg__vcell p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0;
}

.oeg__closing {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 900px;
  margin: 0;
}
.oeg__closing strong { color: var(--ink-100); font-weight: 500; }

/* Responsive */
@media (max-width: 1080px) {
  .oeg__hero { grid-template-columns: 1fr; gap: 40px; }
  .oeg__pipe { grid-template-columns: repeat(3, 1fr); }
  .oeg__pipe::before { display: none; }
  .oeg__stage { border-bottom: 1px solid var(--hair); }
  .oeg__stage:nth-child(3n) { border-right: 0; }
  .oeg__caps { grid-template-columns: repeat(2, 1fr); }
  .oeg__value-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .oeg__vcell:nth-child(2) { border-right: 0; }
  .oeg__vcell:nth-child(3), .oeg__vcell:nth-child(4) { padding-left: 0; padding-top: 0; }
}
@media (max-width: 640px) {
  .oeg { padding: 80px 0 90px; }
  .oeg__pipe { grid-template-columns: 1fr; }
  .oeg__stage { border-right: 0; border-bottom: 1px solid var(--hair); }
  .oeg__stage:last-child { border-bottom: 0; }
  .oeg__caps { grid-template-columns: 1fr; }
  .oeg__sig { flex-wrap: wrap; gap: 20px 0; }
  .oeg__sig-item + .oeg__sig-item { border-left: 0; padding-left: 0; }
  .oeg__value { padding: 32px 24px 24px; }
  .oeg__value-grid { grid-template-columns: 1fr; }
  .oeg__vcell { border-right: 0; padding: 0 0 18px; border-bottom: 1px solid var(--hair); }
  .oeg__vcell:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .oeg__chip-dot, .oeg__panel-pill::before, .oeg__float { animation: none !important; opacity: 1 !important; transform: none !important; }
  .oeg__graph * { animation: none !important; }
}


/* Explanatory figures: full-width framed diagrams, generous rhythm */
.oeg__fig { margin: 0 0 84px; }
.oeg__fig .mk__canvas { background: #070f1e; }


/* Explorer fills the hero panel — the drawing owns its ratio */
.oeg__graph-wrap { aspect-ratio: auto; min-height: 0; }
/* No ratio here on purpose — the renderer stamps its own, so a concept
   rewrite can never leave a stale letterbox behind. */
.oeg__graph-wrap > svg[data-oeg-explorer] { display: block; width: 100%; height: auto; }
