/* Ontology-first graphics. Everything is scoped under .og so the short class names cannot leak into the page. */
.og .s  { stroke: rgba(245,243,238,0.72); stroke-width: 1.3; fill: none; }
.og .sg { stroke: #8FB8A2; stroke-width: 1.3; fill: none; }
.og .t  { font-family: 'Roboto Mono', monospace; font-size: 8.5px; letter-spacing: 0.12em; fill: rgba(245,243,238,0.6); text-transform: uppercase; }
.og .tg { fill: #8FB8A2; }
.og .tw { fill: #fff; }
.og .dash { stroke-dasharray: 3 5; animation: og-flow 1.4s linear infinite; }
@keyframes og-flow { to { stroke-dashoffset: -16; } }
.og .act rect { animation: og-act 6s linear infinite; }
.og .act.a2 rect { animation-delay: 2s; }
.og .act.a3 rect { animation-delay: 4s; }
@keyframes og-act { 0% { fill: rgba(143,184,162,0.3); stroke: #B9F9C9; } 30%, 100% { fill: rgba(0,0,0,0); stroke: rgba(245,243,238,0.4); } }

/* card 01: one text message, modeled */
.og .hl { fill: rgba(143,184,162,0.38); opacity: 0; }
.og .wire { stroke: #8FB8A2; stroke-width: 1.2; fill: none; stroke-dasharray: 320; stroke-dashoffset: 320; opacity: 0; }
.og .val { opacity: 0; }
.og .msg text { font-family: 'Roboto Mono', monospace; font-size: 11px; fill: rgba(245,243,238,0.9); }
.og .fld rect { fill: rgba(0,0,0,0.25); stroke: rgba(245,243,238,0.4); stroke-width: 1.2; }
.shape-visual svg.og-msg { width: 100%; }
.og-msg .t { font-size: 9.5px; letter-spacing: 0.06em; }

/* thesis: the same dots, organized */
.og-thesis { grid-column: -2 / -1; margin: clamp(40px, 6vh, 72px) 0 0; max-width: 860px; background: #0b0d0c; border-radius: 22px; padding: 14px; }
.og-thesis canvas { display: block; width: 100%; aspect-ratio: 560 / 390; }

/* how I build: three floors */
.process { flex-wrap: wrap; }
.og-floors { flex: 0 0 100%; width: 100%; box-sizing: border-box; max-width: 1540px; margin: clamp(48px, 8vh, 96px) auto 0; background: #0b0d0c; border-radius: 22px; padding: clamp(14px, 3vw, 40px); }
.og-floors svg { display: block; width: 100%; max-width: 820px; height: auto; margin: 0 auto; }
.og-floors figcaption { font-family: 'Roboto Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,243,238,0.5); text-align: center; margin-top: 10px; }

/* the dark section: a durable workflow reading from the model; the object card shows for "Safe actions" */
.patterns-visual svg.og { transition: opacity 0.5s ease; }
.patterns-visual svg.og-obj { opacity: 0; inset: 0 5%; width: 90%; }
.patterns-visual.show-obj svg.og-obj { opacity: 1; }
.patterns-visual.show-obj svg.og-flow { opacity: 0; }
.og-arrow { stroke: rgba(255,255,255,0.22); stroke-width: 1.2; fill: none; }
.og-arrow-head { fill: rgba(255,255,255,0.35); }
.og-link { stroke: #8FB8A2; stroke-width: 1.2; fill: none; stroke-dasharray: 3 5; animation: og-flow 1.4s linear infinite; }
.og-run { fill: rgba(143,184,162,0.2); stroke: #B9F9C9; stroke-width: 1.4; opacity: 0; pointer-events: none; }
.og-flow .og-fail { fill: #E0685B; opacity: 0; }
.og-flow .og-resume { fill: #B9F9C9; opacity: 0; }
.og-flow .og-ent { fill: rgba(255,255,255,0.85); }

@media (max-width: 767px) {
  .shape-card { padding: 22px; gap: 18px; }
  .shape-visual:has(.og-msg) { aspect-ratio: auto; padding: 10px 0; }
  .shape-visual svg.og-msg { width: 92%; }
  .og-stack .og-wires, .og-stack .og-note, .og-stack .og-when, .og-stack .og-how { display: none; }
  .og-floors svg text { font-size: 11px !important; letter-spacing: 0.02em; }
  .og-floors .og-sub { display: none; }
  .og-thesis { border-radius: 16px; padding: 8px; }
  .og-floors { border-radius: 16px; }
  .og-floors figcaption { font-size: 9px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) { .og *, .og-link { animation: none !important; } }
