/* Project pages (dbsynth, ods, mddv, cam, logsink, oraml, imstagedb).
   Loaded after styles.css and reuses its :root tokens. */

:root {
  --color-joint: #7fd6c2;
  --color-joint-dim: rgba(127, 214, 194, 0.12);
  --color-gate: #c7a7ff;
  --color-gate-dim: rgba(137, 92, 210, 0.15);
}

html {
  scroll-padding-top: 142px; /* fixed topbar (76px) + sticky section nav */
}

/* Blueprint background instead of the homepage photo */
body.project-page {
  background:
    linear-gradient(rgba(141, 186, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(141, 186, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 100%,
    radial-gradient(circle at 70% 0%, rgba(44, 94, 168, 0.22), transparent 46%),
    var(--color-bg);
  background-attachment: fixed;
}

.project-hero {
  position: relative;
  padding: 7.2rem 0 3rem;
}

.project-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: end;
}

.project-hero__eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.9vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.project-hero__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--color-text-muted);
}

.platform-formula {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(9, 11, 17, 0.58);
}

.platform-formula__label {
  margin: 0;
  max-width: 28ch;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}

.platform-formula__items {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.55rem;
}

.platform-formula__items > span {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 0.14rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(141, 186, 255, 0.28);
  border-radius: 10px;
  background: rgba(141, 186, 255, 0.06);
}

.platform-formula__items > span.platform-formula__gate {
  border-color: rgba(199, 167, 255, 0.5);
  background: var(--color-gate-dim);
}

.platform-formula__items strong {
  font-size: 0.88rem;
  color: var(--color-text);
}

.platform-formula__items small {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--color-text-soft);
}

.platform-formula__items i {
  align-self: center;
  font-size: 1rem;
  font-style: normal;
  color: var(--color-text-soft);
}

.project-hero__architecture-intro {
  margin-top: 3.4rem;
}

.project-hero__architecture-intro .section-kicker {
  margin-bottom: 0.55rem;
}

.project-hero__architecture-intro h2 {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
}

.project-hero h1 + .project-hero__lead {
  margin-top: 1.2rem;
  max-width: 72ch;
}

.project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button--ghost {
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--color-surface-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* ---------- Sticky in-page section navigation ---------- */

.section-nav {
  position: sticky;
  top: 76px;
  z-index: 40;
  border-top: 1px solid rgba(162, 179, 204, 0.08);
  border-bottom: 1px solid rgba(162, 179, 204, 0.14);
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(16px);
}

.section-nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.55rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav__list::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  display: block;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text-soft);
  transition: color var(--transition-base), background var(--transition-base);
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--color-text);
}

.section-nav a.is-active {
  color: var(--color-text);
  background: rgba(141, 186, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(141, 186, 255, 0.28);
}

/* ---------- Segmented control and switch ---------- */

.seg,
.switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(9, 11, 17, 0.7);
}

.seg__btn,
.switch__btn {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base);
}

.seg__btn:hover,
.switch__btn:hover {
  color: var(--color-text);
}

.seg__btn[aria-selected="true"],
.switch__btn[aria-pressed="true"] {
  color: #0a0f18;
  background: var(--color-accent);
  font-weight: 600;
}

.switch__btn[data-state="without"][aria-pressed="true"] {
  color: #fff;
  background: var(--color-accent-red);
}

.seg__btn:focus-visible,
.switch__btn:focus-visible,
.ctl:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Architecture explorer ---------- */

.explorer {
  margin-top: 2.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.explorer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--color-border);
}

.explorer__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.explorer__stage {
  padding: 1.4rem 1.4rem 0.6rem;
  overflow-x: auto;
}

.explorer__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 9.5rem;
  padding: 1.3rem 1.6rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: rgba(9, 11, 17, 0.5);
}

.explorer [hidden] {
  display: none;
}

.explorer__panel > [data-panel] {
  flex: 1;
}

.detail__role {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.detail__role--joint { color: var(--color-joint); }
.detail__role--gate { color: var(--color-gate); }

.detail__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.detail p,
.trace p,
.roles p {
  margin: 0;
  max-width: 80ch;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.detail__link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
}

.detail__link:hover { text-decoration: underline; }

.trace {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: trace;
}

.trace li {
  counter-increment: trace;
  position: relative;
  padding-left: 4rem;
}

.trace li::before {
  content: attr(data-n);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.roles__item {
  padding-left: 1rem;
  border-left: 3px solid rgba(182, 192, 207, 0.4);
}

.roles__item--joint { border-color: var(--color-joint); }
.roles__item--product { border-color: var(--color-accent); }

.explorer__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.explorer__controls[hidden] { display: none; }

.ctl {
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-base);
}

.ctl:hover { background: var(--color-surface-soft); }
.ctl:disabled { opacity: 0.35; cursor: default; }
.ctl--play { color: var(--color-accent); }

.ctl__counter {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* ---------- Diagram primitives ---------- */

.arch__svg,
.compare__svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-family-base);
}

.arch__svg { min-width: 920px; }

.arch-zone { fill: var(--color-text-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; }
.arch-zone--joint { fill: var(--color-joint); }
.arch-zone--product { fill: var(--color-accent); }
.arch-zone-line { stroke: rgba(162, 179, 204, 0.16); stroke-width: 1; }
.arch-zone-line--joint { stroke: rgba(127, 214, 194, 0.45); }
.arch-zone-line--product { stroke: rgba(141, 186, 255, 0.45); }
.arch-box { fill: rgba(255, 255, 255, 0.03); stroke: rgba(162, 179, 204, 0.3); stroke-width: 1.2; transition: stroke-width var(--transition-base), fill var(--transition-base), stroke var(--transition-base); }
.arch-box--core { fill: rgba(255, 255, 255, 0.02); stroke-dasharray: 5 4; }
.arch-box--data { fill: rgba(141, 186, 255, 0.08); stroke: rgba(141, 186, 255, 0.55); }
.arch-box--gate { fill: var(--color-gate-dim); stroke: var(--color-gate); }
.arch-box--log { fill: rgba(141, 186, 255, 0.05); stroke: rgba(141, 186, 255, 0.4); }
.arch-box--inner { fill: rgba(9, 11, 17, 0.55); stroke: rgba(141, 186, 255, 0.3); stroke-width: 1; }
.arch-title { fill: var(--color-text); font-size: 19px; font-weight: 700; }
.arch-title--sm { font-size: 14px; font-weight: 600; }
.arch-sub { fill: var(--color-text-muted); font-size: 12px; }
.arch-tag { fill: var(--color-accent); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.arch-tag--red { fill: var(--color-gate); }
.arch-label { fill: var(--color-text-soft); font-size: 11px; }
.arch-row { fill: rgba(141, 186, 255, 0.16); }
.arch-flow { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-dasharray: 7 6; animation: arch-flow 1.4s linear infinite; }
.arch-line { fill: none; stroke: rgba(182, 192, 207, 0.5); stroke-width: 1.3; stroke-dasharray: 3 5; }
.arch-line--id { stroke: var(--color-gate); }
.arch-head { fill: var(--color-accent); }
.arch-head--log { fill: rgba(182, 192, 207, 0.7); }
.arch-head--id { fill: var(--color-gate); }

@keyframes arch-flow {
  to { stroke-dashoffset: -13; }
}

/* interactive nodes */
.node,
.flow {
  transition: opacity 0.35s ease;
}

.node { cursor: pointer; }
.node:focus { outline: none; }

.node:hover > .arch-box:not(.arch-box--inner),
.node:focus-visible > .arch-box:not(.arch-box--inner),
.node.is-selected > .arch-box:not(.arch-box--inner) {
  stroke-width: 2.6;
}

.node.is-selected > .arch-box:not(.arch-box--inner) {
  stroke: var(--color-text);
}

.is-tracing .node,
.is-tracing .flow {
  opacity: 0.16;
}

.is-tracing .is-lit {
  opacity: 1;
}

.is-tracing .flow:not(.is-lit) .arch-flow {
  animation: none;
}

.mode-roles [data-role="existing"] { opacity: 0.4; }
.mode-roles .flow { opacity: 0.3; }

.mode-roles [data-role="joint"] > .arch-box {
  fill: var(--color-joint-dim);
  stroke: var(--color-joint);
  stroke-width: 2;
}

.mode-roles [data-role="joint"] .arch-tag { fill: var(--color-joint); }
.mode-roles [data-role="joint"] .arch-row { fill: rgba(127, 214, 194, 0.2); }

.mode-roles [data-role="product"] > .arch-box:not(.arch-box--inner) {
  fill: rgba(141, 186, 255, 0.14);
  stroke: var(--color-accent);
  stroke-width: 2;
}

/* ---------- Before / after ---------- */

.compare {
  padding: 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
}

.compare__body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1.4rem;
}

.compare[data-state="without"] .cmp-with,
.compare[data-state="with"] .cmp-without {
  display: none;
}

.cmp-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.6;
}

.cmp-line--bad {
  stroke: #c8405f;
  stroke-dasharray: 5 5;
}

.compare__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare__list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.7rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.96rem;
  color: var(--color-text-muted);
}

.compare__list li:last-child { border-bottom: 0; }

.compare__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.7rem;
  height: 2px;
  background: #c8405f;
}

.compare__list--good li::before {
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.section-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: rgba(141, 186, 255, 0.06);
}

.section-inline-cta__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-inline-cta h3 {
  margin: 0;
  font-size: 1.12rem;
}

.section-inline-cta p:last-child {
  margin: 0.4rem 0 0;
  max-width: 70ch;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.section-inline-cta .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ---------- Platform layers ---------- */

.stack {
  display: grid;
  gap: 0.6rem;
}

.stack__label {
  margin: 0.8rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.stack__label:first-child { margin-top: 0; }
.stack__label--product { color: var(--color-accent); }
.stack__label--joint { color: var(--color-joint); }

.stack__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.stack__tile,
.stack__slab {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(141, 186, 255, 0.4);
  border-radius: 14px;
  background: rgba(141, 186, 255, 0.07);
  transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.stack__tile--gate {
  border-color: rgba(199, 167, 255, 0.6);
  background: var(--color-gate-dim);
}

.stack__slab--joint {
  border-color: rgba(127, 214, 194, 0.5);
  background: var(--color-joint-dim);
}

.stack__slab--base {
  flex-direction: row;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border: 1px dashed rgba(162, 179, 204, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

a.stack__tile:hover,
a.stack__tile:focus-visible,
a.stack__slab:hover,
a.stack__slab:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-text);
}

.stack__name { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.stack__role { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--color-accent); }
.stack__tile--gate .stack__role { color: var(--color-gate); }
.stack__text { max-width: 90ch; font-size: 0.95rem; color: var(--color-text-muted); }
.stack__more { margin-top: 0.5rem; font-size: 0.86rem; font-weight: 600; color: var(--color-accent); }
.stack__slab--joint .stack__more { color: var(--color-joint); }

/* ---------- Questions (accordion) ---------- */

.questions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 3rem;
  align-items: start;
}

.qa__item {
  border-bottom: 1px solid var(--color-border);
}

.qa__item:first-child { border-top: 1px solid var(--color-border); }

.qa__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.qa__item summary::-webkit-details-marker { display: none; }

.qa__item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.qa__item[open] summary::after { transform: rotate(45deg); }
.qa__item summary:hover { color: var(--color-accent); }

.qa__item p {
  margin: 0 0 0.6rem;
  max-width: 68ch;
  color: var(--color-text-muted);
}

.qa__item .qa__by {
  margin-bottom: 1.2rem;
  font-size: 0.84rem;
  color: var(--color-text-soft);
}

.qa__by a { font-weight: 600; color: var(--color-accent); }

/* ---------- Generic blocks (component pages) ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.steps li {
  counter-increment: step;
  padding: 1.3rem;
  border-top: 2px solid var(--color-accent-deep);
  background: var(--color-surface-soft);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.steps h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.steps p { margin: 0; font-size: 0.92rem; color: var(--color-text-muted); }

.draft-note {
  margin: 1.4rem 0 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--color-accent-red);
  background: var(--color-accent-red-dim);
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.facts__col {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.02);
}

.facts__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0;
  padding: 1.15rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  cursor: pointer;
  list-style: none;
}

.facts__title::-webkit-details-marker { display: none; }

.facts__title::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: transform var(--transition-base);
}

.facts__col[open] .facts__title::after { transform: rotate(45deg); }

.facts__summary-note {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-soft);
}

.facts__list {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  margin: 0 1.25rem 1rem;
}

.facts__list dt,
.facts__list dd {
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.94rem;
}

.facts__list dt { font-weight: 600; }
.facts__list dd { color: var(--color-text-muted); }

/* ---------- ODS page ---------- */

.project-hero__eyebrow--joint,
.section-kicker--joint { color: var(--color-joint); }

.roles__item--client { border-color: var(--color-text-muted); }

.ods-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.ods-pillar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 9.5rem;
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(141, 186, 255, 0.25);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 90% 0%, rgba(141, 186, 255, 0.2), transparent 52%),
    rgba(17, 28, 46, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 8, 22, 0.18);
}

.ods-pillar--record {
  border-color: rgba(127, 214, 194, 0.32);
  background:
    radial-gradient(circle at 90% 0%, rgba(127, 214, 194, 0.2), transparent 52%),
    rgba(17, 35, 46, 0.7);
}

.ods-pillar--client {
  border-color: rgba(190, 166, 255, 0.3);
  background:
    radial-gradient(circle at 90% 0%, rgba(190, 166, 255, 0.19), transparent 52%),
    rgba(27, 27, 48, 0.7);
}

.ods-pillar__number {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(141, 186, 255, 0.42);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.ods-pillar--record .ods-pillar__number { border-color: rgba(127, 214, 194, 0.5); color: var(--color-joint); }
.ods-pillar--client .ods-pillar__number { border-color: rgba(190, 166, 255, 0.5); color: #c6b7ff; }
.ods-pillar h2 { margin: 0 0 0.55rem; font-size: 1.08rem; line-height: 1.25; }
.ods-pillar p { margin: 0; font-size: 0.9rem; line-height: 1.62; color: var(--color-text-muted); }

.section-block--golden {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(141, 186, 255, 0.14);
  border-bottom: 1px solid rgba(127, 214, 194, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 25, 43, 0.5), rgba(11, 18, 31, 0.93)),
    radial-gradient(circle at 8% 14%, rgba(141, 186, 255, 0.11), transparent 35%),
    radial-gradient(circle at 92% 80%, rgba(127, 214, 194, 0.1), transparent 33%);
}

.golden-content { position: relative; z-index: 1; }

.golden-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(95px);
  pointer-events: none;
}

.golden-glow--one { top: 4rem; left: -11rem; background: rgba(94, 154, 255, 0.55); }
.golden-glow--two { right: -12rem; bottom: 8rem; background: rgba(81, 207, 176, 0.44); }
.section-heading--wide { max-width: 68rem; }

.golden-flow {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) 3rem minmax(16rem, 1.25fr) 3rem minmax(16rem, 1.15fr);
  gap: 0.8rem;
  align-items: stretch;
  margin-top: 2.2rem;
}

.golden-flow__sources,
.golden-resolver,
.golden-record-card {
  padding: 1.45rem;
  border: 1px solid rgba(141, 186, 255, 0.24);
  border-radius: var(--radius-card);
  background: rgba(17, 28, 46, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 8, 22, 0.2);
}

.golden-resolver {
  border-color: rgba(190, 166, 255, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(190, 166, 255, 0.14), transparent 46%),
    rgba(24, 25, 48, 0.73);
}

.golden-record-card {
  border-color: rgba(127, 214, 194, 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 214, 194, 0.17), transparent 48%),
    rgba(15, 38, 43, 0.76);
}

.golden-flow__label {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.golden-resolver .golden-flow__label { color: #c6b7ff; }
.golden-record-card .golden-flow__label { color: var(--color-joint); }
.golden-source-list { display: grid; gap: 0.55rem; }

.golden-source-list span {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
  font-weight: 600;
}

.golden-flow__arrow { display: grid; place-items: center; }
.golden-flow__arrow span { position: relative; display: block; width: 2.2rem; height: 1px; background: linear-gradient(90deg, var(--color-accent), var(--color-joint)); }
.golden-flow__arrow span::after { content: ""; position: absolute; top: -4px; right: -1px; border: 5px solid transparent; border-left: 7px solid var(--color-joint); border-right: 0; }

.golden-resolver ol { display: grid; gap: 0.72rem; margin: 0; padding: 0; list-style: none; counter-reset: resolution; }
.golden-resolver li { position: relative; padding: 0 0 0.72rem 2.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); counter-increment: resolution; }
.golden-resolver li:last-child { padding-bottom: 0; border-bottom: 0; }
.golden-resolver li::before { content: counter(resolution, decimal-leading-zero); position: absolute; top: 0.05rem; left: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: #c6b7ff; }
.golden-resolver li strong { display: block; margin-bottom: 0.18rem; font-size: 0.9rem; }
.golden-resolver li span { display: block; font-size: 0.79rem; line-height: 1.45; color: var(--color-text-soft); }

.golden-record-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; font-size: 1.02rem; font-weight: 700; }
.golden-record-card__top i { padding: 0.28rem 0.55rem; border: 1px solid rgba(127, 214, 194, 0.32); border-radius: 999px; font-size: 0.64rem; font-style: normal; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-joint); }
.golden-record-card dl { display: grid; gap: 0.18rem; margin: 0; }
.golden-record-card dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.8rem; padding: 0.64rem 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.golden-record-card dt, .golden-record-card dd { margin: 0; font-size: 0.82rem; }
.golden-record-card dt { color: var(--color-text-muted); }
.golden-record-card dd { font-weight: 600; color: var(--color-joint); text-align: right; }
.golden-record-card > p { margin: 1rem 0 0; font-size: 0.79rem; line-height: 1.5; color: var(--color-text-soft); }

.golden-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.golden-principles article {
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
}

.golden-principles article > span { display: block; margin-bottom: 0.55rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; color: var(--color-accent); }
.golden-principles h3 { margin: 0 0 0.38rem; font-size: 0.95rem; }
.golden-principles p { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--color-text-muted); }

.master-reference {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(14rem, 0.75fr);
  gap: 1.5rem;
  margin-top: 2.6rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid rgba(127, 214, 194, 0.33);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 88% 8%, rgba(127, 214, 194, 0.2), transparent 36%),
    radial-gradient(circle at 5% 100%, rgba(141, 186, 255, 0.14), transparent 40%),
    rgba(18, 42, 48, 0.58);
  backdrop-filter: blur(24px);
  box-shadow: 0 26px 80px rgba(0, 8, 22, 0.22);
}

.master-reference h3 { margin: 0.35rem 0 0.7rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.master-reference p { margin: 0; color: var(--color-text-muted); line-height: 1.68; }
.master-reference__eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-joint) !important; }
.master-reference__boundary { align-self: center; padding-left: 1.5rem; border-left: 1px solid rgba(127, 214, 194, 0.32); }
.master-reference__boundary strong { display: block; margin-bottom: 0.45rem; color: var(--color-joint); }
.master-reference__boundary p { font-size: 0.88rem; }

.client-method {
  margin-top: 3.4rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(190, 166, 255, 0.27);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 96% 0%, rgba(190, 166, 255, 0.19), transparent 38%),
    linear-gradient(135deg, rgba(29, 31, 59, 0.77), rgba(14, 30, 49, 0.73));
  backdrop-filter: blur(22px);
}

.client-method__intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr); column-gap: 2rem; align-items: end; }
.client-method__intro .section-kicker { grid-column: 1; margin-bottom: 0.5rem; }
.client-method__intro h3 { grid-column: 1; margin: 0; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.16; }
.client-method__intro > p:last-child { grid-column: 2; grid-row: 1 / 3; margin: 0; color: var(--color-text-muted); line-height: 1.7; }

.ownership-transfer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin-top: 1.8rem; }
.ownership-transfer article { position: relative; min-height: 9.4rem; padding: 1.15rem 1.1rem 1.35rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
.ownership-transfer article::after { content: ""; position: absolute; left: 0; bottom: 0; width: var(--share); height: 3px; background: linear-gradient(90deg, #a98cff, var(--color-joint)); }
.ownership-transfer article > span { display: block; margin-bottom: 1.1rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #c6b7ff; }
.ownership-transfer strong { display: block; margin-bottom: 0.42rem; font-size: 0.96rem; }
.ownership-transfer small { display: block; font-size: 0.82rem; line-height: 1.53; color: var(--color-text-soft); }
.client-method__acceptance { margin: 1.15rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.86rem; color: var(--color-text-muted); }
.client-method__acceptance strong { color: var(--color-text); }

.logo-kafka circle { fill: var(--color-text); }
.logo-kafka path { stroke: var(--color-text); }
.logo-db ellipse { fill: rgba(141, 186, 255, 0.35); stroke: var(--color-accent); stroke-width: 2.5; }
.logo-db path { stroke: var(--color-accent); }

.defs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.def {
  padding: 1.7rem 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.def--wide { grid-column: 1 / -1; border-color: rgba(127, 214, 194, 0.35); background: var(--color-joint-dim); }

.def__abbr {
  margin: 0 0 0.3rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-joint);
}

.def--wide .def__abbr { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.def h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.def p { margin: 0; color: var(--color-text-muted); font-size: 0.97rem; line-height: 1.7; }
.def__refs { margin-top: 1rem !important; font-size: 0.85rem !important; }
.def__refs a { color: var(--color-accent); font-weight: 600; }
.def__refs a:hover { text-decoration: underline; }

.srcgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.srcgrid__col {
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.srcgrid__col--target { border-color: rgba(127, 214, 194, 0.45); background: var(--color-joint-dim); }

.srcgrid__label {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.srcgrid__col--target .srcgrid__label { color: var(--color-joint); }

.srclist { margin: 0; padding: 0; list-style: none; }

.srclist li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--color-border);
}

.srclist__name { font-weight: 600; }
.srclist__note { font-size: 0.82rem; color: var(--color-text-soft); text-align: right; }
.srclist__default .srclist__name { color: var(--color-joint); }

.srcgrid__foot { margin: 1rem 0 0; font-size: 0.88rem; color: var(--color-text-soft); }

.srcgrid__arrow { display: grid; place-items: center; }

.srcgrid__arrow span {
  position: relative;
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--color-accent);
}

.srcgrid__arrow span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border: 6px solid transparent;
  border-left: 9px solid var(--color-accent);
  border-right: 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.kpi {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.kpi__value { margin: 0; font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--color-joint); }
.kpi__value--text { font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.08; }
.kpi__label { margin: 0.5rem 0 0.3rem; font-weight: 600; }
.kpi__note { margin: 0; font-size: 0.88rem; color: var(--color-text-soft); }

.callout {
  margin-top: 1.5rem;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--color-accent-red);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--color-accent-red-dim);
}

.callout p { margin: 0; color: var(--color-text-muted); }

.section-block--accent {
  background: linear-gradient(180deg, var(--color-joint-dim), transparent 70%);
}

.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.team__side,
.team__core {
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.team__core {
  border-color: var(--color-joint);
  background: var(--color-joint-dim);
  box-shadow: 0 0 0 6px rgba(127, 214, 194, 0.08);
}

.team__label {
  margin: 0 0 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.team__label--joint { color: var(--color-joint); text-align: center; }
.team__list { margin: 0; padding: 0; list-style: none; }
.team__list li { padding: 0.45rem 0; border-top: 1px solid var(--color-border); font-size: 0.95rem; color: var(--color-text-muted); }
.team__list--center li { text-align: center; color: var(--color-text); }

.owned {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.owned__item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.owned__item p { margin: 0; font-size: 0.93rem; color: var(--color-text-muted); }

.tl {
  padding: 1.5rem 1.6rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
}

.tl__phases {
  display: grid;
  grid-template-columns: repeat(17, minmax(0, 1fr));
  grid-auto-rows: 2.6rem;
  gap: 0.35rem 0;
}

.tl__phase {
  grid-column: var(--from) / calc(var(--to) + 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.8rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: rgba(141, 186, 255, 0.08);
  font: inherit;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

.tl__phase--main { border-color: var(--color-joint); background: var(--color-joint-dim); }
.tl__phase:hover { color: var(--color-text); }
.tl__phase[aria-pressed="true"] { background: var(--color-accent); color: #0a0f18; border-color: var(--color-accent); }
.tl__phase--main[aria-pressed="true"] { background: var(--color-joint); border-color: var(--color-joint); }
.tl__phase:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.tl__num { font-weight: 700; letter-spacing: 0.08em; }
.tl__name { font-weight: 500; }

.tl__axis {
  position: relative;
  height: 1.4rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.tl__axis span {
  position: absolute;
  top: 0.25rem;
  left: calc((var(--w) - 1) / 17 * 100%);
  font-size: 0.72rem;
  color: var(--color-text-soft);
}

.tl__detail { min-height: 5.5rem; margin-top: 0.8rem; }
.tl__detail h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.tl__detail p { margin: 0; max-width: 80ch; color: var(--color-text-muted); }

.milestones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.milestones div { padding: 0.9rem 1.1rem; border-top: 2px solid var(--color-accent-deep); font-size: 0.92rem; color: var(--color-text-muted); }
.milestones__day { display: block; margin-bottom: 0.2rem; font-weight: 700; color: var(--color-accent); }

/* ---------- ODS: store layers diagram ---------- */

.srclist__logo { width: 1.1rem; height: 1.1rem; margin-right: 0.45rem; vertical-align: -0.15rem; }

.layers {
  margin: 0;
  padding: 1.4rem 1.4rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
  overflow-x: auto;
}

.layers__svg { display: block; width: 100%; min-width: 820px; height: auto; font-family: var(--font-family-base); }
.ly-topic rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(162, 179, 204, 0.35); }
.ly-topic text { fill: var(--color-text); font-size: 12px; font-weight: 600; }
.ly-store { fill: rgba(141, 186, 255, 0.04); stroke: rgba(141, 186, 255, 0.45); stroke-width: 1.4; }
.ly-layer { fill: rgba(9, 11, 17, 0.5); stroke: rgba(162, 179, 204, 0.3); }
.ly-layer--domain { fill: var(--color-joint-dim); stroke: rgba(127, 214, 194, 0.55); }
.ly-title { fill: var(--color-text); font-size: 15px; font-weight: 700; }
.ly-table rect { fill: rgba(141, 186, 255, 0.12); stroke: rgba(141, 186, 255, 0.3); }
.ly-table text { fill: var(--color-text); font-size: 12px; }
.ly-table--domain rect { fill: rgba(127, 214, 194, 0.16); stroke: rgba(127, 214, 194, 0.45); }
.arch-tag--joint { fill: var(--color-joint); }

/* ---------- ODS: freshness chart ---------- */

.lagchart {
  margin: 1.5rem 0 0;
  padding: 1.4rem 1.6rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
}

.lagchart__head { margin-bottom: 0.8rem; }
.lagchart__title { margin: 0; font-weight: 700; }
.lagchart__sub { margin: 0.2rem 0 0; font-size: 0.86rem; color: var(--color-text-soft); }
.lagchart__svg { display: block; width: 100%; height: auto; font-family: var(--font-family-base); }
.lag-window { fill: rgba(163, 21, 53, 0.12); }
.lag-grid { stroke: rgba(162, 179, 204, 0.16); }
.lag-axis { fill: var(--color-text-soft); font-size: 11px; }
.lag-target { stroke: var(--color-joint); stroke-width: 1.2; stroke-dasharray: 4 4; }
.lag-target-label { fill: var(--color-joint); font-size: 11px; font-weight: 600; }
.lag-area { fill: rgba(141, 186, 255, 0.14); }
.lag-line { fill: none; stroke: var(--color-accent); stroke-width: 2.4; }
.lag-dot { fill: var(--color-accent); }
.lag-note { fill: var(--color-text-muted); font-size: 12px; }

/* ---------- ODS: handover, environments, recovery ---------- */

.handover { margin-top: 2rem; }
.handover__label {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-joint);
}

.envmap,
.recovery {
  margin: 2rem 0 0;
  padding: 1.4rem 1.6rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
  overflow-x: auto;
}

.recovery { margin-top: 1.5rem; }
.envmap__svg,
.recovery__svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font-family-base); }

.env-frame { fill: var(--color-joint-dim); stroke: rgba(127, 214, 194, 0.4); stroke-dasharray: 6 5; }
.env rect { fill: rgba(9, 11, 17, 0.6); stroke: rgba(162, 179, 204, 0.35); stroke-width: 1.2; }
.env--prod rect { stroke: var(--color-joint); stroke-width: 1.8; }
.env__name { fill: var(--color-text); font-size: 15px; font-weight: 700; }
.env__sub { fill: var(--color-text-muted); font-size: 12px; }
.env__who { fill: var(--color-accent); font-size: 11px; font-weight: 600; }

.rc-core rect { fill: rgba(255, 255, 255, 0.02); stroke: rgba(162, 179, 204, 0.3); stroke-dasharray: 5 4; }
.rc-cut { stroke: rgba(162, 179, 204, 0.35); stroke-width: 1.4; stroke-dasharray: 3 5; }
.rc-cut-x { stroke: #c8405f; stroke-width: 2.4; }
.rc-kafka rect,
.rc-store rect { fill: rgba(141, 186, 255, 0.08); stroke: rgba(141, 186, 255, 0.55); stroke-width: 1.2; }
.rc-store rect { fill: var(--color-joint-dim); stroke: rgba(127, 214, 194, 0.55); }
.rc-log { fill: rgba(141, 186, 255, 0.22); }
.rc-readers rect { fill: rgba(255, 255, 255, 0.03); stroke: rgba(162, 179, 204, 0.3); }

/* ---------- ODS: platform navigation ---------- */

.platform-pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(141, 186, 255, 0.4);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: rgba(141, 186, 255, 0.08);
  transition: border-color var(--transition-base), color var(--transition-base);
}

.platform-pill strong { color: var(--color-accent); }
.platform-pill:hover,
.platform-pill:focus-visible { border-color: var(--color-accent); color: var(--color-text); }

.section-block--platform {
  background: linear-gradient(180deg, rgba(141, 186, 255, 0.05), transparent 70%);
}

.platform-map {
  display: block;
  padding: 1.4rem 1.6rem 1.2rem;
  border: 1px solid rgba(141, 186, 255, 0.4);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.platform-map:hover,
.platform-map:focus-visible { border-color: var(--color-accent); transform: translateY(-3px); }
.platform-map__svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font-family-base); }
.pm-ods { fill: var(--color-joint-dim); stroke: var(--color-joint); stroke-width: 2; }
.platform-map__cta { display: block; margin-top: 0.9rem; font-weight: 600; color: var(--color-accent); }

.platform-tiles { margin-top: 1.25rem; }
.platform-actions { margin-top: 2rem; }

/* ---------- MDDV page ---------- */

.mddv-page::after {
  content: "";
  position: fixed;
  z-index: 30;
  top: 16vh;
  right: -17rem;
  width: 25rem;
  height: 68vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(141, 186, 255, 0.5) 0%, rgba(127, 214, 194, 0.17) 32%, transparent 72%);
  filter: blur(42px);
  opacity: 0.24;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: mddv-reflection 14s ease-in-out infinite;
}

@keyframes mddv-reflection {
  0%, 100% { transform: translate3d(0, -3vh, 0) scale(0.96); }
  50% { transform: translate3d(-1.2rem, 5vh, 0) scale(1.04); }
}

.mddv-promise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.58fr) minmax(0, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.mddv-promise__output,
.mddv-promise__zero {
  min-height: 10.5rem;
  border-radius: var(--radius-card);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 8, 22, 0.18);
}

.mddv-promise__output {
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(141, 186, 255, 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(141, 186, 255, 0.2), transparent 48%),
    rgba(17, 28, 46, 0.7);
}

.mddv-promise__output--app {
  border-color: rgba(127, 214, 194, 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 214, 194, 0.19), transparent 48%),
    rgba(16, 37, 43, 0.7);
}

.mddv-promise__output > span {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.mddv-promise__output--app > span { color: var(--color-joint); }
.mddv-promise__output h2 { margin: 0 0 0.55rem; font-size: 1.18rem; }
.mddv-promise__output p { margin: 0; font-size: 0.88rem; line-height: 1.58; color: var(--color-text-muted); }

.mddv-promise__zero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  border: 1px solid rgba(199, 167, 255, 0.35);
  background:
    radial-gradient(circle at 50% 20%, rgba(199, 167, 255, 0.21), transparent 55%),
    rgba(30, 27, 51, 0.72);
  text-align: center;
}

.mddv-promise__zero strong { font-size: 3.6rem; line-height: 0.9; letter-spacing: -0.06em; color: #d3c2ff; }
.mddv-promise__zero span { margin-top: 0.55rem; font-size: 0.88rem; font-weight: 700; }
.mddv-promise__zero small { margin-top: 0.35rem; font-size: 0.7rem; color: var(--color-text-soft); }

.mddv-best-fit {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.22fr);
  gap: 1.5rem;
  margin-top: 0.85rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(127, 214, 194, 0.28);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 92% 12%, rgba(127, 214, 194, 0.13), transparent 34%),
    linear-gradient(110deg, rgba(14, 35, 43, 0.72), rgba(18, 27, 47, 0.68));
  backdrop-filter: blur(18px);
}

.mddv-best-fit__intro { align-self: center; }
.mddv-best-fit__intro p { margin: 0 0 0.45rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-joint); }
.mddv-best-fit__intro h2 { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.42rem); line-height: 1.28; }
.mddv-best-fit__cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.mddv-best-fit__cases > div { padding: 0.9rem 1rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 10px; background: rgba(255, 255, 255, 0.035); }
.mddv-best-fit__cases span { display: block; margin-bottom: 0.3rem; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--color-text-soft); }
.mddv-best-fit__cases strong { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--color-joint); }
.mddv-best-fit__cases small { display: block; font-size: 0.76rem; line-height: 1.48; color: var(--color-text-muted); }

.section-block--operations {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(141, 186, 255, 0.12);
  border-bottom: 1px solid rgba(127, 214, 194, 0.12);
  background:
    radial-gradient(circle at 88% 18%, rgba(127, 214, 194, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(18, 29, 48, 0.58), rgba(9, 15, 27, 0.82));
}

.operations-content { position: relative; z-index: 1; }
.operations-glow { position: absolute; top: 4rem; right: -10rem; width: 28rem; height: 28rem; border-radius: 50%; background: rgba(141, 186, 255, 0.16); filter: blur(100px); pointer-events: none; }

.operation-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.operation-lane {
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border: 1px solid rgba(141, 186, 255, 0.3);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 100% 0%, rgba(141, 186, 255, 0.15), transparent 42%),
    rgba(15, 27, 45, 0.72);
  backdrop-filter: blur(20px);
}

.operation-lane--async {
  border-color: rgba(127, 214, 194, 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 214, 194, 0.15), transparent 42%),
    rgba(15, 36, 43, 0.72);
}

.operation-lane__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1.25rem; }
.operation-lane__head > span { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid rgba(141, 186, 255, 0.45); border-radius: 50%; font-size: 0.68rem; font-weight: 700; color: var(--color-accent); }
.operation-lane--async .operation-lane__head > span { border-color: rgba(127, 214, 194, 0.48); color: var(--color-joint); }
.operation-lane__head p { margin: 0 0 0.3rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-soft); }
.operation-lane__head h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.operation-lane ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: operation; }
.operation-lane li { position: relative; padding: 0.8rem 0 0.8rem 1.55rem; border-top: 1px solid rgba(255, 255, 255, 0.09); counter-increment: operation; }
.operation-lane li::before { content: counter(operation); position: absolute; top: 0.88rem; left: 0; font-size: 0.68rem; font-weight: 700; color: var(--color-accent); }
.operation-lane--async li::before { color: var(--color-joint); }
.operation-lane li strong { display: block; margin-bottom: 0.2rem; font-size: 0.9rem; }
.operation-lane li span { display: block; font-size: 0.82rem; line-height: 1.5; color: var(--color-text-soft); }

.operations-guardrail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; margin-top: 1rem; padding: 1rem 1.25rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
.operations-guardrail strong { color: var(--color-joint); white-space: nowrap; }
.operations-guardrail p { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--color-text-muted); }

.studio-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.studio-flow li { position: relative; display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; border: 1px solid var(--color-border); border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.studio-flow li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 50%; right: -0.52rem; width: 0.52rem; height: 1px; background: var(--color-accent); }
.studio-flow span { font-size: 0.66rem; font-weight: 700; color: var(--color-accent); }
.studio-flow strong { font-size: 0.84rem; }

.mddv-page .roles__item--client { border-color: rgba(199, 167, 255, 0.52); background: rgba(137, 92, 210, 0.11); }
.mddv-page .section-block--accent-red { background: radial-gradient(circle at 88% 10%, rgba(199, 167, 255, 0.11), transparent 34%), linear-gradient(180deg, rgba(137, 92, 210, 0.06), transparent 75%); }
.mddv-page .acc-layer--cam rect { fill: rgba(137, 92, 210, 0.14); stroke: var(--color-gate); stroke-dasharray: none; }
.mddv-page .p-card--gate { border-color: rgba(199, 167, 255, 0.55); background: rgba(137, 92, 210, 0.11); }
.mddv-page .p-card--gate .p-card__role,
.mddv-page .p-card--gate .p-card__more a { color: #d3c2ff; }

.section-block--deploy {
  background:
    radial-gradient(circle at 88% 12%, rgba(141, 186, 255, 0.1), transparent 32%),
    radial-gradient(circle at 8% 85%, rgba(127, 214, 194, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(14, 24, 40, 0.35), rgba(9, 15, 27, 0.15));
}

.deploy-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.deploy-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 13rem;
  padding: 1.4rem;
  border: 1px solid rgba(141, 186, 255, 0.25);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 100% 0%, rgba(141, 186, 255, 0.13), transparent 48%),
    rgba(17, 28, 46, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0, 8, 22, 0.16);
}

.deploy-option--docker {
  border-color: rgba(127, 214, 194, 0.29);
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 214, 194, 0.13), transparent 48%),
    rgba(16, 36, 43, 0.68);
}

.deploy-option--windows {
  border-color: rgba(199, 167, 255, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 167, 255, 0.14), transparent 48%),
    rgba(28, 27, 49, 0.68);
}

.deploy-option__icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid rgba(141, 186, 255, 0.35);
  border-radius: 14px;
  background: rgba(141, 186, 255, 0.08);
  color: var(--color-accent);
}

.deploy-option--docker .deploy-option__icon { border-color: rgba(127, 214, 194, 0.4); background: rgba(127, 214, 194, 0.08); color: var(--color-joint); }
.deploy-option--windows .deploy-option__icon { border-color: rgba(199, 167, 255, 0.4); background: rgba(199, 167, 255, 0.08); color: #d3c2ff; }
.deploy-option__icon svg { width: 2.25rem; height: 2.25rem; overflow: visible; }
.deploy-option__icon svg * { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.deploy-option__tag { margin: 0 0 0.65rem; font-size: 0.64rem; font-weight: 700; line-height: 1.45; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.deploy-option--docker .deploy-option__tag { color: var(--color-joint); }
.deploy-option--windows .deploy-option__tag { color: #d3c2ff; }
.deploy-option h3 { margin: 0 0 0.55rem; font-size: 1.17rem; }
.deploy-option p:last-child { margin: 0; font-size: 0.86rem; line-height: 1.58; color: var(--color-text-muted); }

.auth-panel {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1.8rem 2.4rem;
  margin-top: 1rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid rgba(199, 167, 255, 0.3);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 95% 0%, rgba(199, 167, 255, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(28, 28, 53, 0.75), rgba(14, 31, 49, 0.71));
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px rgba(0, 8, 22, 0.2);
}

.auth-panel__intro { align-self: center; }
.auth-panel__intro .section-kicker { margin-bottom: 0.65rem; color: #d3c2ff; }
.auth-panel__intro h3 { margin: 0 0 0.8rem; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; }
.auth-panel__intro > p:last-child { margin: 0; font-size: 0.9rem; line-height: 1.65; color: var(--color-text-muted); }

.auth-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.auth-methods article { padding: 1rem 1.05rem; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 11px; background: rgba(255, 255, 255, 0.035); }
.auth-methods span { display: block; margin-bottom: 0.6rem; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-soft); }
.auth-methods h4 { margin: 0 0 0.38rem; font-size: 0.96rem; color: #d3c2ff; }
.auth-methods p { margin: 0; font-size: 0.79rem; line-height: 1.5; color: var(--color-text-muted); }
.auth-panel__rule { grid-column: 1 / -1; margin: 0; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.84rem; color: var(--color-text-muted); }
.auth-panel__rule strong { color: var(--color-joint); }

.zero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.zero-strip div {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.zero-strip strong { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--color-accent); }
.zero-strip span { font-size: 0.86rem; color: var(--color-text-muted); }

.arch-box--opt { fill: rgba(255, 255, 255, 0.02); stroke: rgba(182, 192, 207, 0.4); stroke-dasharray: 4 4; }
.arch-box--yaml { fill: rgba(255, 214, 120, 0.08); stroke: rgba(255, 214, 120, 0.6); }
.src rect { fill: rgba(9, 11, 17, 0.55); stroke: rgba(162, 179, 204, 0.3); }
.src text { fill: var(--color-text); font-size: 12px; font-weight: 600; }
.src--api rect, .src--file rect { stroke-dasharray: 4 3; }
.roles__item--opt { border-color: rgba(182, 192, 207, 0.6); }
.mode-roles [data-role="optional"] > .arch-box { stroke: var(--color-text-muted); stroke-width: 2; stroke-dasharray: 5 4; }

.section-block--accent-blue { background: linear-gradient(180deg, rgba(141, 186, 255, 0.06), transparent 70%); }
.section-block--accent-red { background: linear-gradient(180deg, rgba(163, 21, 53, 0.06), transparent 70%); }

.shot {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: #0b1018;
}

.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 0.7rem 1rem; font-size: 0.82rem; color: var(--color-text-soft); border-top: 1px solid var(--color-border); }

.outputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.output {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  border: 1px solid rgba(141, 186, 255, 0.35);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
}

.output__tag { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.output h3 { margin: 0; font-size: 1.35rem; }
.output > p { margin: 0 0 0.6rem; color: var(--color-text-muted); font-size: 0.96rem; }
.output .shot { margin-top: auto; }

.outputs__meet { position: relative; margin-top: 1.5rem; text-align: center; }
.outputs__meet p { display: inline-block; margin: 0; padding: 0.8rem 1.4rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface-strong); color: var(--color-text-muted); font-size: 0.94rem; }
.outputs__meet-line { position: absolute; left: 25%; right: 25%; top: 50%; height: 1px; background: rgba(141, 186, 255, 0.35); z-index: -1; }

.derive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.descriptor,
.derived {
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.descriptor { border-color: rgba(255, 214, 120, 0.45); background: rgba(255, 214, 120, 0.05); }
.derived { border-color: rgba(141, 186, 255, 0.45); background: rgba(141, 186, 255, 0.06); }
.descriptor__title { margin: 0 0 0.9rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-soft); }
.descriptor .descriptor__title { color: #ffd678; }
.derived .descriptor__title { color: var(--color-accent); }

.descriptor__list { margin: 0; }
.descriptor__list div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--color-border); font-size: 0.92rem; }
.descriptor__list dt { margin: 0; font-family: "Consolas", "Menlo", monospace; font-size: 0.85rem; color: #ffd678; }
.descriptor__list dd { margin: 0; color: var(--color-text-muted); }

.derived__list { margin: 0; padding: 0; list-style: none; }
.derived__list li { display: flex; flex-direction: column; padding: 0.55rem 0 0.55rem 1.4rem; border-top: 1px solid var(--color-border); position: relative; }
.derived__list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--color-accent); }
.derived__list strong { font-size: 0.95rem; }
.derived__list span { font-size: 0.85rem; color: var(--color-text-soft); }

.derive__arrow { display: grid; place-items: center; align-content: center; gap: 0.4rem; }
.derive__arrow span { position: relative; display: block; width: 4rem; height: 2px; background: var(--color-accent); }
.derive__arrow span::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--color-accent); border-right: 0; }
.derive__arrow em { font-size: 0.78rem; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-soft); }

.zero-cost { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.zero-cost div { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.9rem 1.1rem; border-top: 2px solid var(--color-accent-deep); font-size: 0.9rem; color: var(--color-text-muted); }
.zero-cost__n { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--color-accent); }
.zero-note { margin: 1.2rem 0 0; font-size: 0.9rem; color: var(--color-text-soft); max-width: 90ch; }

.gallery {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
  overflow: hidden;
}

.gallery__tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--color-border); }
.gallery__tab {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base);
}
.gallery__tab:hover { color: var(--color-text); }
.gallery__tab[aria-pressed="true"] { color: #0a0f18; background: var(--color-accent); font-weight: 600; }
.gallery__tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.gallery__panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.4rem; }
.gallery__panel[hidden] { display: none; }
.gallery__panel--wide { grid-template-columns: 1fr; }
.gallery__text h3 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.gallery__text p { margin: 0 0 0.7rem; font-size: 0.95rem; color: var(--color-text-muted); }
.gallery--compact { margin-top: 1.5rem; }

.api-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.feature-list { display: grid; gap: 0.3rem; }
.feature { padding: 0.9rem 0; border-top: 1px solid var(--color-border); }
.feature h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 0.93rem; color: var(--color-text-muted); }

.studio-extras { margin-top: 1.5rem; }

.src-table { border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; background: var(--color-surface); }
.src-table__row { display: grid; grid-template-columns: 1.5fr 1.6fr 1fr 1fr 1fr 1fr; gap: 0.8rem; padding: 0.85rem 1.2rem; border-top: 1px solid var(--color-border); font-size: 0.9rem; color: var(--color-text-muted); }
.src-table__row--head { border-top: 0; background: rgba(255, 255, 255, 0.03); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-soft); }
.src-table__name { font-weight: 600; color: var(--color-text); }
.src-table .yes { color: var(--color-joint); }
.src-table .part { color: #ffd678; }
.src-table .no { color: var(--color-text-soft); }

.access { padding: 1.4rem 1.6rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: var(--color-surface-strong); overflow-x: auto; }
.access__svg { display: block; width: 100%; min-width: 820px; height: auto; font-family: var(--font-family-base); }
.acc-layer rect { fill: rgba(9, 11, 17, 0.55); stroke: rgba(162, 179, 204, 0.35); stroke-width: 1.2; }
.acc-layer--core rect { fill: rgba(141, 186, 255, 0.08); stroke: rgba(141, 186, 255, 0.55); }
.acc-layer--cam rect { fill: rgba(163, 21, 53, 0.14); stroke: #c8405f; stroke-dasharray: 5 4; }
.acc-n { fill: var(--color-text-soft); font-size: 12px; font-weight: 700; }
.acc-title { fill: var(--color-text); font-size: 16px; font-weight: 700; }
.acc-sub { fill: var(--color-text-muted); font-size: 12px; }
.acc-tag { fill: var(--color-accent); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.acc-tag--red { fill: var(--color-gate); }
.acc-tag--dim { fill: var(--color-text-soft); font-weight: 500; letter-spacing: 0; }
.access-notes { margin-top: 1.5rem; }
.p-card__more a { color: inherit; }

.stack__tile--joint { border-color: rgba(127, 214, 194, 0.5); background: var(--color-joint-dim); }
.stack__tile--joint .stack__role, .stack__tile--joint .stack__more { color: var(--color-joint); }

/* ---------- Cards and lightbox ---------- */

.block-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

.block-grid--2 { --cols: 2; }
.block-grid--4 { --cols: 4; }

.p-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.p-card--muted { background: rgba(255, 255, 255, 0.02); }
.p-card--gate { border-color: rgba(200, 64, 95, 0.55); background: rgba(163, 21, 53, 0.1); }

.p-card__role {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.p-card--gate .p-card__role { color: var(--color-gate); }
.p-card h3 { margin: 0 0 0.6rem; font-size: 1.2rem; line-height: 1.25; }
.p-card p { margin: 0; font-size: 0.96rem; color: var(--color-text-muted); }

.p-card .p-card__more {
  margin-top: auto;
  padding-top: 1.1rem;
}

.p-card__more a,
a.p-card__more {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.p-card__more a:hover,
.p-card__more a:focus-visible { background: rgba(141, 186, 255, 0.12); border-color: var(--color-accent); }
.p-card--gate .p-card__more a { color: var(--color-gate); }
.p-card--gate .p-card__more a:hover { background: rgba(163, 21, 53, 0.18); border-color: var(--color-gate); }

.shot img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(100%, 1600px);
  max-height: calc(100vh - 8.5rem);
  margin-bottom: 2.5rem;
  width: auto;
  height: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  max-width: 90vw;
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: rgba(9, 11, 17, 0.8);
  font: inherit;
  font-size: 1.3rem;
  color: var(--color-text);
  cursor: pointer;
}

/* ---------- CAM page ---------- */

.project-hero__eyebrow--gate,
.section-kicker--gate { color: var(--color-gate); }
.arch-zone--gate { fill: var(--color-gate); }
.arch-zone-line--gate { stroke: rgba(200, 64, 95, 0.55); }
.roles__item--gate { border-color: var(--color-gate); }
.pm-cam { fill: rgba(163, 21, 53, 0.22); stroke: var(--color-gate); stroke-width: 2; }

.scopegrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.scopefig { margin: 0; padding: 1.2rem 1.2rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: var(--color-surface-strong); }
.scopefig__svg { display: block; width: 100%; height: auto; font-family: var(--font-family-base); }
.tr-edge path { fill: none; stroke: rgba(162, 179, 204, 0.35); stroke-width: 1.4; }
.tr-node rect { fill: rgba(9, 11, 17, 0.6); stroke: rgba(162, 179, 204, 0.35); }
.tr-node text { fill: var(--color-text-muted); font-size: 12px; font-weight: 600; }
.tr-node--scope rect { fill: rgba(163, 21, 53, 0.22); stroke: var(--color-gate); }
.tr-node--scope text { fill: var(--color-text); }
.tr-scope { fill: none; stroke: var(--color-gate); stroke-width: 1.4; stroke-dasharray: 6 4; }
.tr-label { fill: var(--color-gate); font-size: 12px; font-weight: 600; }

.rules { padding: 1.4rem 1.6rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.rules__title { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-gate); }
.rules__list { margin: 0; padding: 0; list-style: none; }
.rules__list li { padding: 0.65rem 0; border-top: 1px solid var(--color-border); font-size: 0.93rem; color: var(--color-text-muted); }
.rules__list strong { color: var(--color-text); }

.maskdemo { border: 1px solid rgba(200, 64, 95, 0.45); border-radius: var(--radius-large); background: var(--color-surface-strong); overflow: hidden; }
.maskdemo__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--color-border); }
.maskdemo__label { margin: 0; font-size: 0.86rem; color: var(--color-text-soft); }
.maskdemo .gallery__tabs { padding: 0; border: 0; }
.maskdemo .gallery__tab[aria-pressed="true"] { background: var(--color-accent-red); color: #fff; }
.maskdemo [data-tl-panel][hidden] { display: none; }

.maskrec { width: 100%; border-collapse: collapse; }
.maskrec th, .maskrec td { padding: 0.8rem 1.2rem; border-top: 1px solid var(--color-border); text-align: left; font-size: 0.95rem; vertical-align: top; }
.maskrec tr:first-child th, .maskrec tr:first-child td { border-top: 0; }
.maskrec th { width: 9rem; font-weight: 600; color: var(--color-text-muted); }
.maskrec td:nth-child(2) { width: 14rem; font-family: "Consolas", "Menlo", monospace; color: var(--color-text); }
.maskrec td.masked { color: var(--color-gate); }
.maskrec td.absent { color: var(--color-text-soft); font-style: italic; font-family: inherit; }
.maskrec td.mode { font-size: 0.86rem; color: var(--color-text-soft); }
.maskdemo__note { margin: 0; padding: 0.9rem 1.2rem; border-top: 1px solid var(--color-border); font-size: 0.86rem; color: var(--color-text-soft); }

.modes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.5rem; }
.mode-card { padding: 1rem 1.1rem; border-top: 2px solid var(--color-accent-red); background: var(--color-surface-soft); border-radius: 0 0 12px 12px; }
.mode-card h3 { margin: 0 0 0.35rem; font-family: "Consolas", "Menlo", monospace; font-size: 0.95rem; color: var(--color-gate); }
.mode-card p { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }

.plug { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; }
.plug__col { padding: 1.5rem 1.7rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.plug__col--core { border-color: rgba(200, 64, 95, 0.55); background: rgba(163, 21, 53, 0.1); }
.plug__label { margin: 0 0 0.8rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.plug__label--gate { color: var(--color-gate); }
.plug__steps { margin: 0; padding-left: 1.2rem; color: var(--color-text-muted); font-size: 0.93rem; }
.plug__steps li { margin-bottom: 0.7rem; }
.plug__steps strong { color: var(--color-text); }
.plug__list { margin: 0; padding: 0; list-style: none; }
.plug__list li { padding: 0.45rem 0; border-top: 1px solid var(--color-border); font-size: 0.93rem; color: var(--color-text); }
.plug__paths { margin: 0; }
.plug__paths dt { margin-top: 0.7rem; font-weight: 600; }
.plug__paths dt:first-child { margin-top: 0; }
.plug__paths dd { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--color-text-muted); }
.profiles { margin-top: 1.25rem; }

.aiflow { margin: 0 0 1.5rem; padding: 1.4rem 1.6rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: var(--color-surface-strong); overflow-x: auto; }
.aiflow__svg { display: block; width: 100%; min-width: 820px; height: auto; font-family: var(--font-family-base); }
.ai-box rect { fill: rgba(9, 11, 17, 0.55); stroke: rgba(162, 179, 204, 0.35); stroke-width: 1.2; }
.ai-box--agent rect { stroke: rgba(182, 192, 207, 0.6); stroke-dasharray: 5 4; }
.ai-box--server rect { fill: rgba(163, 21, 53, 0.14); stroke: #c8405f; }
.ai-box--human rect { fill: rgba(141, 186, 255, 0.08); stroke: rgba(141, 186, 255, 0.55); }
.ai-title { fill: var(--color-text); font-size: 15px; font-weight: 700; }
.ai-sub { fill: var(--color-text-muted); font-size: 12px; }
.ai-tag { fill: var(--color-accent); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; }
.ai-tag--red { fill: var(--color-gate); }

.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ref { display: flex; flex-direction: column; padding: 1.5rem 1.6rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.ref h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.ref p { margin: 0; font-size: 0.92rem; color: var(--color-text-muted); }
.ref a { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 1rem; font-size: 0.88rem; font-weight: 600; color: var(--color-accent); }
.ref a:hover { text-decoration: underline; }

/* ---------- LogSink page ---------- */

.src__sub { fill: var(--color-text-soft); font-size: 10.5px; font-weight: 400; }
.pm-log { fill: rgba(141, 186, 255, 0.16); stroke: var(--color-accent); stroke-width: 2; }
.switch__btn--neutral[aria-pressed="true"] { background: var(--color-accent); color: #0a0f18; }

.lanes { margin: 0 0 1.5rem; padding: 1.4rem 1.6rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: var(--color-surface-strong); overflow-x: auto; }
.lanes__svg { display: block; width: 100%; min-width: 820px; height: auto; font-family: var(--font-family-base); }
.lane { fill: rgba(255, 255, 255, 0.02); stroke: rgba(162, 179, 204, 0.2); stroke-dasharray: 6 5; }
.lane--audit { fill: rgba(163, 21, 53, 0.06); stroke: rgba(200, 64, 95, 0.4); }
.lane-step rect { fill: rgba(9, 11, 17, 0.6); stroke: rgba(162, 179, 204, 0.35); stroke-width: 1.2; }
.lane-step text { fill: var(--color-text); font-size: 13px; font-weight: 600; }
.lane-step .lane-sub { fill: var(--color-text-soft); font-size: 11px; font-weight: 400; }
.lane-step--ok rect { fill: rgba(127, 214, 194, 0.12); stroke: var(--color-joint); }
.lane-step--fail rect { fill: rgba(163, 21, 53, 0.12); stroke: #c8405f; stroke-dasharray: 4 3; }
.lane-step--stop rect { fill: rgba(163, 21, 53, 0.22); stroke: var(--color-gate); stroke-width: 2; }
.lane-step--wait rect { fill: rgba(141, 186, 255, 0.1); stroke: rgba(141, 186, 255, 0.55); }
.lane-step--opt rect { stroke-dasharray: 5 4; }
.lva-table .src-table__row { grid-template-columns: 1.1fr 1.6fr 1.6fr; }

.rules-grid .p-card__role { font-size: 1.4rem; letter-spacing: 0; color: var(--color-accent); }

.corr { margin: 0 0 1.5rem; padding: 1.4rem 1.6rem 0.8rem; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: var(--color-surface-strong); overflow-x: auto; }
.corr__svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font-family-base); }
.corr-axis { stroke: rgba(162, 179, 204, 0.3); }
.corr-row text { fill: var(--color-text-muted); font-size: 12px; font-weight: 600; }
.corr-row rect { fill: rgba(141, 186, 255, 0.35); }
.corr-row .corr-ev { fill: var(--color-text-soft); font-size: 11px; font-weight: 400; }
.corr-row--err rect { fill: rgba(200, 64, 95, 0.55); }
.corr-row--err .corr-ev { fill: var(--color-gate); }

.retgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.retchart { margin: 0; padding: 1.4rem 1.6rem 0.8rem; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: var(--color-surface-strong); }
.retchart__svg { display: block; width: 100%; height: auto; margin-top: 0.6rem; font-family: var(--font-family-base); }
.ret-bar rect { fill: rgba(141, 186, 255, 0.45); }
.ret-bar--err rect { fill: rgba(200, 64, 95, 0.6); }
.ret-label { fill: var(--color-text); font-size: 13px; font-weight: 600; font-family: "Consolas", "Menlo", monospace; }
.ret-val { fill: var(--color-text-muted); font-size: 11.5px; }
.ret-val--in { fill: var(--color-text); font-weight: 600; }

.deploymap { margin-bottom: 1.5rem; }
.env-frame--plain { fill: rgba(255, 255, 255, 0.02); stroke: rgba(162, 179, 204, 0.3); }
.env--plain rect { fill: rgba(255, 255, 255, 0.02); }
.env--opt rect { stroke-dasharray: 5 4; }

/* ---------- OraML page ---------- */

.oraml-runtime { margin-top: 2rem; }
.lane--oraml { fill: rgba(141, 186, 255, 0.05); stroke: rgba(141, 186, 255, 0.4); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tools-extra, .results-extra { margin-top: 1.25rem; }

/* ---------- Swipe hint for wide diagrams on small screens ---------- */

.explorer__stage,
.layers,
.recovery,
.envmap,
.access,
.aiflow,
.lanes,
.corr,
.platform-map {
  position: relative;
}

@media (max-width: 980px) {
  .explorer__stage::before,
  .layers::before,
  .recovery::before,
  .envmap::before,
  .access::before,
  .aiflow::before,
  .lanes::before,
  .corr::before,
  .platform-map::before {
    content: "Swipe sideways to see the whole diagram 94";
    position: sticky;
    left: 0;
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    color: var(--color-text-soft);
  }
}

/* ---------- Maturity line, hero fine print, footer group, before/after ---------- */

.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0 0 1rem; }
.pill-row .platform-pill { margin: 0; }

.maturity-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.03);
}

.hero-fineprint { margin: 0.8rem 0 0; font-size: 0.86rem; color: var(--color-text-soft); }
.site-footer__group { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-soft); align-self: center; }
.ba { margin-top: 1.75rem; }
.ba__title { margin: 0 0 0.7rem; font-weight: 700; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .project-hero__head { grid-template-columns: 1fr; gap: 1.2rem; }
  .platform-formula { grid-template-columns: 1fr; gap: 1rem; }
  .platform-formula__label { max-width: none; }
  .platform-formula__items { justify-content: flex-start; }
  .steps,
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare__body { grid-template-columns: 1fr; }
  .questions { grid-template-columns: 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr; gap: 2rem; }
  .zero-strip, .zero-cost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retgrid { grid-template-columns: 1fr; }
  .lva-table .src-table__row { grid-template-columns: 1fr 1.4fr 1.4fr; }
  .lva-table .src-table__row span:nth-child(n+4) { display: block; }
  .scopegrid, .plug { grid-template-columns: 1fr; }
  .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block-grid, .block-grid--4 { --cols: 2; }
  .outputs { grid-template-columns: 1fr; }
  .mddv-best-fit { grid-template-columns: 1fr; }
  .operation-lanes { grid-template-columns: 1fr; }
  .studio-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-flow li:nth-child(2)::after { display: none; }
  .deploy-options { grid-template-columns: 1fr; }
  .deploy-option { min-height: 0; }
  .auth-panel { grid-template-columns: 1fr; }
  .derive { grid-template-columns: 1fr; }
  .derive__arrow span { transform: rotate(90deg); }
  .gallery__panel { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .src-table__row { grid-template-columns: 1.4fr 1.4fr 1fr; }
  .src-table__row span:nth-child(n+4) { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ods-pillars { grid-template-columns: 1fr; }
  .ods-pillar { min-height: 0; }
  .golden-flow { grid-template-columns: 1fr; }
  .golden-flow__arrow { height: 2.4rem; }
  .golden-flow__arrow span { transform: rotate(90deg); }
  .golden-principles { grid-template-columns: 1fr; }
  .master-reference { grid-template-columns: 1fr; }
  .master-reference__boundary { padding: 1.2rem 0 0; border-top: 1px solid rgba(127, 214, 194, 0.32); border-left: 0; }
  .client-method__intro { grid-template-columns: 1fr; row-gap: 0.7rem; }
  .client-method__intro .section-kicker,
  .client-method__intro h3,
  .client-method__intro > p:last-child { grid-column: 1; grid-row: auto; }
  .ownership-transfer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owned { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srcgrid { grid-template-columns: 1fr; }
  .srcgrid__arrow { height: 3rem; }
  .srcgrid__arrow span { transform: rotate(90deg); }
  .team { grid-template-columns: 1fr; }
  .tl__name { display: none; }
  .explorer__panel { flex-direction: column; align-items: stretch; }
  .explorer__controls { justify-content: flex-end; }
  .section-inline-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 759px) {
  .project-hero { padding-top: 6.4rem; }
  .platform-formula { padding: 1rem; }
  .platform-formula__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .platform-formula__items i { display: none; }
  .project-hero__architecture-intro { margin-top: 2.8rem; }
  .steps,
  .steps--4 { grid-template-columns: 1fr; }
  .stack__products { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; gap: 1rem; }
  .facts__list { grid-template-columns: 1fr; }
  .zero-strip, .zero-cost { grid-template-columns: 1fr; }
  .steps--3, .kpis--4 { grid-template-columns: 1fr; }
  .modes, .refs { grid-template-columns: 1fr; }
  .maskrec td.mode { display: none; }
  .maskrec th { width: 7rem; }
  .mddv-promise { grid-template-columns: 1fr; }
  .mddv-promise__output,
  .mddv-promise__zero { min-height: 0; }
  .mddv-promise__zero { padding: 1.5rem 1.2rem; }
  .mddv-best-fit__cases { grid-template-columns: 1fr; }
  .operations-guardrail { grid-template-columns: 1fr; gap: 0.4rem; }
  .operations-guardrail strong { white-space: normal; }
  .studio-flow { grid-template-columns: 1fr; }
  .studio-flow li::after { display: none; }
  .mddv-page::after { right: -19rem; width: 24rem; opacity: 0.18; }
  .deploy-option { grid-template-columns: 1fr; }
  .auth-methods { grid-template-columns: 1fr; }
  .block-grid, .block-grid--2, .block-grid--4 { --cols: 1; }
  .lightbox { padding: 1rem; }
  .descriptor__list div { grid-template-columns: 1fr; gap: 0.1rem; }
  .src-table__row { grid-template-columns: 1fr; gap: 0.2rem; }
  .src-table__row--head span:nth-child(n+2) { display: none; }
  .defs, .kpis, .owned, .milestones { grid-template-columns: 1fr; }
  .ods-pillar { padding: 1.1rem; }
  .golden-flow__sources,
  .golden-resolver,
  .golden-record-card { padding: 1.2rem; }
  .ownership-transfer { grid-template-columns: 1fr; }
  .ownership-transfer article { min-height: 0; }
  .tl__phase { padding: 0 0.4rem; }
  .facts__list dd { padding-top: 0; border-top: 0; }
  .explorer__bar,
  .explorer__panel { padding-left: 1rem; padding-right: 1rem; }
  .explorer__bar { display: block; }
  .explorer__hint { margin-top: 0.8rem; }
  .explorer__hint { color: var(--color-accent); }
  .explorer__stage {
    padding: 1rem 0.8rem 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(141, 186, 255, 0.55) rgba(255, 255, 255, 0.04);
  }
  .seg {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 999px;
    scrollbar-width: none;
  }
  .seg::-webkit-scrollbar { display: none; }
  .seg__btn { flex: 0 0 auto; }
  .switch { border-radius: 18px; }
  .compare { padding: 1rem; }
  .stack__slab--base { flex-direction: column; gap: 0.2rem; }
  .section-inline-cta { padding: 1.25rem; }
  .section-inline-cta .button { width: 100%; max-width: none; white-space: normal; text-align: center; }
  .facts { gap: 0.75rem; }
  .facts__title { align-items: flex-start; }
  .facts__summary-note { max-width: 15ch; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .mddv-page::after { animation: none; }
  .arch-flow { animation: none; }
  .node,
  .flow { transition: none; }
  a.stack__tile:hover,
  a.stack__slab:hover { transform: none; }
}

/* ---------- CAM 2026 narrative and visual refresh ---------- */

.cam-page {
  --cam-control: #c7a7ff;
  --cam-control-soft: rgba(137, 92, 210, 0.14);
  --cam-data: #8dbaff;
  --cam-audit: #7fd6c2;
  --cam-deny: #e2647d;
  isolation: isolate;
}

.cam-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  top: 8vh;
  right: -15rem;
  width: 32rem;
  height: 78vh;
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(141, 186, 255, 0.18), rgba(199, 167, 255, 0.14) 48%, rgba(127, 214, 194, 0.06));
  filter: blur(110px);
  opacity: 0.48;
  pointer-events: none;
  animation: cam-screen-glow 18s ease-in-out infinite alternate;
}

.cam-page .page-shell,
.cam-page .site-footer { position: relative; z-index: 1; }

@keyframes cam-screen-glow {
  from { transform: translate3d(0, -2vh, 0) scale(0.96); opacity: 0.38; }
  to { transform: translate3d(-2rem, 8vh, 0) scale(1.06); opacity: 0.54; }
}

.cam-page .project-hero { padding-bottom: 2.4rem; }
.cam-page .project-hero__head { align-items: start; }
.cam-page .project-hero__lead { display: grid; gap: 0.9rem; }
.cam-page .project-hero__lead p { margin: 0; }

.cam-definition {
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--cam-control);
  background: linear-gradient(90deg, rgba(199, 167, 255, 0.08), transparent);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.cam-definition strong { color: var(--color-text); }

.cam-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  padding: 1px;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(199, 167, 255, 0.45), rgba(141, 186, 255, 0.22), rgba(127, 214, 194, 0.32));
}

.cam-outcomes article {
  position: relative;
  min-height: 9.4rem;
  padding: 1.3rem 1.4rem;
  background: rgba(10, 14, 23, 0.96);
}

.cam-outcomes span,
.cam-flow-step > span,
.audit-sequence article > span,
.admin-core article > span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(199, 167, 255, 0.42);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cam-control);
}

.cam-outcomes strong { display: block; font-size: 1.05rem; color: var(--color-text); }
.cam-outcomes p { margin: 0.35rem 0 0; font-size: 0.86rem; line-height: 1.55; color: var(--color-text-muted); }

.cam-page .zero-strip { margin-top: 1rem; }
.cam-page .zero-strip div { min-height: 4.5rem; background: rgba(11, 16, 26, 0.72); }

.cam-business-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 2rem;
}

.cam-business-flow > i,
.audit-sequence > i,
.ai-compact-flow > i {
  align-self: center;
  font-style: normal;
  color: var(--color-text-soft);
}

.cam-flow-step {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(10, 15, 24, 0.82);
}

.cam-flow-step--control { border-color: rgba(199, 167, 255, 0.48); background: rgba(137, 92, 210, 0.11); }
.cam-flow-step--data { border-color: rgba(141, 186, 255, 0.42); background: rgba(141, 186, 255, 0.07); }
.cam-flow-step--audit { border-color: rgba(127, 214, 194, 0.42); background: rgba(127, 214, 194, 0.07); }
.cam-flow-step small { display: block; margin-bottom: 0.35rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; color: var(--color-text-soft); }
.cam-flow-step strong { display: block; color: var(--color-text); }
.cam-flow-step p { margin: 0.35rem 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--color-text-muted); }

.technical-explorer { margin-top: 1rem; }
.technical-explorer > summary,
.tech-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(11, 16, 26, 0.8);
  cursor: pointer;
  list-style: none;
}

.technical-explorer > summary::-webkit-details-marker,
.tech-disclosure > summary::-webkit-details-marker { display: none; }
.technical-explorer > summary::after,
.tech-disclosure > summary::after { content: "+"; justify-self: end; grid-column: 3; color: var(--cam-control); font-size: 1.25rem; }
.technical-explorer[open] > summary::after,
.tech-disclosure[open] > summary::after { content: "−"; }
.technical-explorer > summary span,
.tech-disclosure > summary span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cam-control); }
.technical-explorer > summary strong,
.tech-disclosure > summary strong { font-size: 0.95rem; color: var(--color-text); }
.technical-explorer .explorer { margin-top: 0.7rem; }

.cam-page .arch-zone-line--gate { stroke: rgba(199, 167, 255, 0.56); }
.cam-page .arch-line--id { stroke: var(--cam-control); }
.cam-page .arch-head--id { fill: var(--cam-control); }
.cam-page .arch-tag--red { fill: var(--cam-control); }
.cam-page .pm-cam { fill: rgba(137, 92, 210, 0.18); stroke: var(--cam-control); }

.cam-band { position: relative; overflow: clip; }
.cam-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.8; }
.cam-band--policy::before { background: radial-gradient(circle at 8% 22%, rgba(199, 167, 255, 0.08), transparent 30%); }
.cam-band--context::before { background: linear-gradient(180deg, rgba(137, 92, 210, 0.05), transparent 80%); }
.cam-band--integration::before { background: radial-gradient(circle at 88% 20%, rgba(141, 186, 255, 0.09), transparent 33%); }
.cam-band--audit::before { background: radial-gradient(circle at 12% 30%, rgba(127, 214, 194, 0.1), transparent 32%); }
.cam-band--admin::before { background: linear-gradient(180deg, rgba(141, 186, 255, 0.045), transparent); }
.cam-band > .container { position: relative; }

.section-heading--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); gap: 2.5rem; align-items: end; }
.section-heading--split .section-summary { margin: 0; }

.cam-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 0.75rem; }
.cam-card-head span { flex: 0 0 auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--cam-control); }
.cam-card-head strong { text-align: right; font-size: 0.82rem; color: var(--color-text-soft); }
.cam-page .tr-node--scope rect { fill: rgba(137, 92, 210, 0.24); stroke: var(--cam-control); }
.cam-page .tr-scope { stroke: var(--cam-control); }
.cam-page .tr-label { fill: var(--cam-control); }

.cam-policy-result { padding: 1.2rem; border: 1px solid var(--color-border); border-radius: var(--radius-large); background: var(--color-surface-strong); }
.query-example { display: grid; gap: 0.48rem; margin-top: 1.15rem; }
.query-example > div { padding: 0.75rem 0.9rem; border: 1px solid var(--color-border); border-radius: 10px; background: rgba(7, 11, 18, 0.64); }
.query-example > span { text-align: center; color: var(--color-text-soft); }
.query-example small { display: block; margin-bottom: 0.3rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--color-text-soft); }
.query-example code { color: var(--cam-data); }
.query-example__result { border-color: rgba(226, 100, 125, 0.4) !important; }
.query-example__result strong { color: #f1a1b0; font-size: 0.88rem; }
.policy-rules { margin: 1rem 0 0; padding: 0; list-style: none; }
.policy-rules li { padding: 0.58rem 0; border-top: 1px solid var(--color-border); font-size: 0.84rem; line-height: 1.5; color: var(--color-text-muted); }
.policy-rules strong { color: var(--color-text); }

.cam-subsection { margin-top: 4rem; scroll-margin-top: 142px; }
.cam-subsection__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.8fr); gap: 2.5rem; align-items: end; margin-bottom: 1.35rem; }
.cam-subsection__head h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); }
.cam-subsection__head > p { margin: 0; color: var(--color-text-muted); }
.cam-page .maskdemo { border-color: rgba(199, 167, 255, 0.43); box-shadow: 0 20px 70px rgba(40, 24, 80, 0.12); }
.cam-page .maskdemo .gallery__tab[aria-pressed="true"] { background: linear-gradient(135deg, #8d6bd8, #b38cf4); color: #fff; }
.maskdemo__scope { display: flex; align-items: center; gap: 0.75rem; margin: 0; padding: 0.68rem 1.2rem; border-bottom: 1px solid var(--color-border); background: linear-gradient(90deg, rgba(137, 92, 210, 0.1), transparent 70%); }
.maskdemo__scope span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; color: var(--cam-control); }
.maskdemo__scope strong { font-size: 0.8rem; color: var(--color-text); }
.cam-page .maskrec td.masked { color: var(--cam-control); }
.cam-page .maskrec td.mode b { display: block; color: var(--cam-control); font-family: "Consolas", "Menlo", monospace; font-weight: 600; }
.cam-page .maskrec td.mode span { display: block; margin-top: 0.14rem; }
.mode-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.mode-legend span { padding: 0.55rem 0.75rem; border: 1px solid rgba(199, 167, 255, 0.24); border-radius: 999px; background: rgba(137, 92, 210, 0.07); font-size: 0.72rem; color: var(--color-text-soft); }
.mode-legend b { margin-right: 0.25rem; font-family: "Consolas", "Menlo", monospace; color: var(--cam-control); }
.cam-demo-cta { margin-top: 2rem; border-color: rgba(199, 167, 255, 0.34); background: linear-gradient(120deg, rgba(137, 92, 210, 0.12), rgba(141, 186, 255, 0.05)); }

.decision-order { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; border: 1px solid var(--color-border); border-radius: var(--radius-large); overflow: hidden; }
.decision-order li { min-height: 12.5rem; padding: 1.35rem; border-left: 1px solid var(--color-border); background: rgba(10, 15, 24, 0.72); }
.decision-order li:first-child { border-left: 0; }
.decision-order li span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; color: var(--cam-control); }
.decision-order__deny span { color: var(--cam-deny) !important; }
.decision-order strong { display: block; margin-top: 1.5rem; font-size: 1.15rem; color: var(--color-text); }
.decision-order p { margin: 0.5rem 0 0; font-size: 0.86rem; line-height: 1.55; color: var(--color-text-muted); }
.cam-assurance { margin: 1rem 0 0; padding: 0.9rem 1rem; border-left: 2px solid var(--cam-control); color: var(--color-text-muted); }
.cam-assurance strong { color: var(--color-text); }

.delivery-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.delivery-now > div { min-height: 10.5rem; padding: 1.3rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.75); }
.delivery-now span { display: block; margin-bottom: 1.2rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; color: var(--cam-data); }
.delivery-now strong { display: block; color: var(--color-text); }
.delivery-now p { margin: 0.45rem 0 0; font-size: 0.86rem; color: var(--color-text-muted); }

.cam-standards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.cam-standards > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; padding: 0.8rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(8, 12, 20, 0.62); }
.cam-standards small { width: 100%; font-weight: 700; letter-spacing: 0.13em; color: var(--color-text-soft); }
.cam-standards span { padding: 0.36rem 0.62rem; border-radius: 999px; background: rgba(141, 186, 255, 0.09); font-size: 0.76rem; color: var(--color-text); }

.profile-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.profile-compare article { padding: 1.35rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.74); }
.profile-compare article:last-child { border-color: rgba(127, 214, 194, 0.3); }
.profile-compare h3 { margin: 0.35rem 0 0; }
.profile-compare p:last-child { margin-bottom: 0; color: var(--color-text-muted); }

.tech-disclosure { margin-top: 1rem; }
.tech-disclosure[open] > summary { border-color: rgba(199, 167, 255, 0.34); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.disclosure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid rgba(199, 167, 255, 0.24); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); overflow: hidden; }
.disclosure-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.disclosure-grid > div { padding: 1.3rem; border-left: 1px solid var(--color-border); background: rgba(10, 15, 24, 0.74); }
.disclosure-grid > div:first-child { border-left: 0; }
.disclosure-grid h3 { margin: 0 0 0.45rem; font-size: 1rem; }
.disclosure-grid p { margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--color-text-muted); }

.section-kicker--audit { color: var(--cam-audit); }
.audit-sequence { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.8rem; align-items: stretch; margin-top: 1.8rem; }
.audit-sequence article { padding: 1.3rem; border: 1px solid rgba(127, 214, 194, 0.3); border-radius: var(--radius-card); background: rgba(127, 214, 194, 0.055); }
.audit-sequence article > span { border-color: rgba(127, 214, 194, 0.45); color: var(--cam-audit); }
.audit-sequence strong { display: block; font-size: 1.05rem; }
.audit-sequence p { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--color-text-muted); }
.cam-vs-logsink { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.cam-vs-logsink > div { padding: 1.2rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.74); }
.cam-vs-logsink small { display: block; margin-bottom: 0.45rem; font-weight: 700; letter-spacing: 0.12em; color: var(--cam-audit); }
.cam-vs-logsink strong { display: block; }
.cam-vs-logsink p { margin: 0.35rem 0 0; font-size: 0.84rem; color: var(--color-text-muted); }

.admin-core { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.admin-core article { padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.72); }
.admin-core h3 { margin: 0; }
.admin-core p { margin: 0.4rem 0 0; font-size: 0.84rem; color: var(--color-text-muted); }
.policy-lifecycle { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.7rem; margin-top: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text); }
.policy-lifecycle span { font-size: 0.78rem; font-weight: 600; }
.policy-lifecycle i { font-style: normal; color: var(--cam-control); }
.ai-compact-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.7rem; align-items: stretch; padding: 1.1rem; border: 1px solid rgba(199, 167, 255, 0.24); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); }
.ai-compact-flow > div { padding: 1rem; border: 1px solid var(--color-border); border-radius: 10px; background: rgba(9, 13, 21, 0.72); }
.ai-compact-flow small { display: block; margin-bottom: 0.4rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--cam-control); }
.ai-compact-flow strong { display: block; }
.ai-compact-flow p { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--color-text-muted); }

.technical-stack { margin-top: 1.5rem; }
.reference-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(199, 167, 255, 0.24); border-top: 0; }
.reference-links a { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.2rem; border-left: 1px solid var(--color-border); background: rgba(10, 15, 24, 0.74); }
.reference-links a:first-child { border-left: 0; }
.reference-links a:hover { background: rgba(137, 92, 210, 0.11); }
.reference-links strong { color: var(--color-text); }
.reference-links span { font-size: 0.78rem; color: var(--color-text-muted); }
.reference-note { margin: 0; padding: 0.8rem 1rem; border: 1px solid rgba(199, 167, 255, 0.24); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); font-size: 0.78rem; color: var(--color-text-soft); }

@media (max-width: 980px) {
  .cam-business-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cam-business-flow > i { display: none; }
  .section-heading--split,
  .cam-subsection__head { grid-template-columns: 1fr; gap: 0.8rem; }
  .decision-order,
  .admin-core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-order li:nth-child(3) { border-left: 0; border-top: 1px solid var(--color-border); }
  .decision-order li:nth-child(4) { border-top: 1px solid var(--color-border); }
  .disclosure-grid,
  .disclosure-grid--4,
  .reference-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disclosure-grid > div:nth-child(3),
  .reference-links a:nth-child(3) { border-left: 0; border-top: 1px solid var(--color-border); }
  .disclosure-grid > div:nth-child(4),
  .reference-links a:nth-child(4) { border-top: 1px solid var(--color-border); }
  .ai-compact-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-compact-flow > i { display: none; }
}

@media (max-width: 759px) {
  .cam-page::after { right: -22rem; width: 28rem; opacity: 0.28; }
  .cam-outcomes,
  .cam-business-flow,
  .delivery-now,
  .cam-standards,
  .profile-compare,
  .audit-sequence,
  .cam-vs-logsink,
  .admin-core,
  .decision-order,
  .disclosure-grid,
  .disclosure-grid--4,
  .reference-links,
  .ai-compact-flow { grid-template-columns: 1fr; }
  .cam-outcomes article { min-height: 0; }
  .cam-business-flow > i,
  .audit-sequence > i { display: block; justify-self: center; transform: rotate(90deg); }
  .technical-explorer > summary,
  .tech-disclosure > summary { grid-template-columns: 1fr auto; gap: 0.3rem 0.8rem; }
  .technical-explorer > summary span,
  .tech-disclosure > summary span { grid-column: 1; }
  .technical-explorer > summary strong,
  .tech-disclosure > summary strong { grid-column: 1; font-size: 0.84rem; }
  .technical-explorer > summary::after,
  .tech-disclosure > summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .cam-card-head { display: block; }
  .cam-card-head strong { display: block; margin-top: 0.3rem; text-align: left; }
  .cam-subsection { margin-top: 3rem; }
  .maskdemo__bar { display: block; }
  .maskdemo .gallery__tabs { display: flex; flex-wrap: nowrap; gap: 0.35rem; margin-top: 0.75rem; overflow-x: auto; scrollbar-width: none; }
  .maskdemo .gallery__tabs::-webkit-scrollbar { display: none; }
  .maskdemo .gallery__tab { flex: 0 0 auto; }
  .cam-page .maskrec tr { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); }
  .cam-page .maskrec th,
  .cam-page .maskrec td { width: auto; padding: 0.7rem 0.85rem; }
  .cam-page .maskrec th { grid-column: 1; grid-row: 1 / span 2; }
  .cam-page .maskrec td:nth-child(2) { grid-column: 2; }
  .cam-page .maskrec td.mode { display: block; grid-column: 2; padding-top: 0; border-top: 0; font-size: 0.74rem; }
  .mode-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-legend span { border-radius: 10px; }
  .decision-order li { min-height: 0; border-left: 0; border-top: 1px solid var(--color-border); }
  .decision-order li:first-child { border-top: 0; }
  .decision-order strong { margin-top: 0.8rem; }
  .policy-lifecycle { border-radius: var(--radius-card); justify-content: flex-start; }
  .policy-lifecycle i { transform: rotate(90deg); }
  .disclosure-grid > div,
  .reference-links a { border-left: 0; border-top: 1px solid var(--color-border); }
  .disclosure-grid > div:first-child,
  .reference-links a:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cam-page::after { animation: none; }
}

/* ---------- LogSink 2026 narrative and visual refresh ---------- */

.logsink-page {
  --log-stream: #72d6ce;
  --log-stream-soft: rgba(114, 214, 206, 0.11);
  --log-blue: #8dbaff;
  --log-warn: #f2b96b;
  --log-error: #e2647d;
  --log-ok: #7fd6c2;
  isolation: isolate;
}

.logsink-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  top: -8vh;
  right: -11rem;
  width: 25rem;
  height: 110vh;
  background:
    radial-gradient(ellipse at 45% 18%, rgba(114, 214, 206, 0.2), transparent 34%),
    radial-gradient(ellipse at 70% 50%, rgba(141, 186, 255, 0.12), transparent 38%),
    radial-gradient(ellipse at 32% 82%, rgba(114, 214, 206, 0.1), transparent 32%);
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  animation: logsink-stream-glow 20s ease-in-out infinite alternate;
}

.logsink-page .page-shell,
.logsink-page .site-footer { position: relative; z-index: 1; }

@keyframes logsink-stream-glow {
  from { transform: translate3d(1rem, -4vh, 0); opacity: 0.36; }
  to { transform: translate3d(-2rem, 8vh, 0); opacity: 0.56; }
}

.logsink-page .project-hero { padding-bottom: 2.4rem; }
.logsink-page .project-hero__head { align-items: start; }
.logsink-page .project-hero__lead { display: grid; gap: 0.9rem; }
.logsink-page .project-hero__lead p { margin: 0; }
.logsink-definition { padding: 0.9rem 1rem; border-left: 2px solid var(--log-stream); background: linear-gradient(90deg, rgba(114, 214, 206, 0.08), transparent); font-size: 0.86rem; line-height: 1.55; color: var(--color-text-soft); }
.logsink-definition strong { color: var(--color-text); }

.logsink-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  padding: 1px;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: linear-gradient(120deg, rgba(114, 214, 206, 0.5), rgba(141, 186, 255, 0.24), rgba(242, 185, 107, 0.28));
}

.logsink-outcomes article { min-height: 9.4rem; padding: 1.3rem 1.4rem; background: rgba(10, 14, 23, 0.96); }
.logsink-outcomes span,
.logsink-flow-step > span,
.guardrails article > span { display: inline-grid; width: 2rem; height: 2rem; place-items: center; margin-bottom: 0.75rem; border: 1px solid rgba(114, 214, 206, 0.45); border-radius: 50%; font-size: 0.68rem; font-weight: 700; color: var(--log-stream); }
.logsink-outcomes strong { display: block; font-size: 1.05rem; }
.logsink-outcomes p { margin: 0.35rem 0 0; font-size: 0.86rem; line-height: 1.55; color: var(--color-text-muted); }
.logsink-page .zero-strip { margin-top: 1rem; }
.logsink-page .zero-strip div { min-height: 4.5rem; background: rgba(11, 16, 26, 0.72); }

.logsink-business-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.75rem; align-items: stretch; margin-top: 2rem; }
.logsink-business-flow > i,
.failure-flow > i { align-self: center; font-style: normal; color: var(--color-text-soft); }
.logsink-flow-step { padding: 1.15rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.82); }
.logsink-flow-step--buffer { border-color: rgba(114, 214, 206, 0.42); background: rgba(114, 214, 206, 0.06); }
.logsink-flow-step--transport { border-color: rgba(141, 186, 255, 0.4); background: rgba(141, 186, 255, 0.06); }
.logsink-flow-step--search { border-color: rgba(127, 214, 194, 0.4); background: rgba(127, 214, 194, 0.06); }
.logsink-flow-step small { display: block; margin-bottom: 0.35rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; color: var(--color-text-soft); }
.logsink-flow-step strong { display: block; }
.logsink-flow-step p { margin: 0.35rem 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--color-text-muted); }
.logsink-technical-explorer { margin-top: 1rem; }
.logsink-page .technical-explorer > summary span,
.logsink-page .tech-disclosure > summary span,
.logsink-page .technical-explorer > summary::after,
.logsink-page .tech-disclosure > summary::after { color: var(--log-stream); }
.logsink-page .tech-disclosure[open] > summary { border-color: rgba(114, 214, 206, 0.34); }
.logsink-page .arch-tag--red { fill: var(--log-stream); }

.logsink-band { position: relative; overflow: clip; }
.logsink-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.logsink-band--insight::before { background: radial-gradient(circle at 88% 18%, rgba(114, 214, 206, 0.09), transparent 34%); }
.logsink-band--resilience::before { background: linear-gradient(180deg, rgba(114, 214, 206, 0.045), transparent 78%); }
.logsink-band--profiles::before { background: radial-gradient(circle at 10% 28%, rgba(141, 186, 255, 0.075), transparent 32%); }
.logsink-band--data::before { background: radial-gradient(circle at 90% 22%, rgba(242, 185, 107, 0.06), transparent 30%); }
.logsink-band--deployment::before { background: linear-gradient(180deg, rgba(141, 186, 255, 0.04), transparent); }
.logsink-band > .container { position: relative; }

.incident-demo { margin-top: 1.8rem; border: 1px solid rgba(114, 214, 206, 0.32); border-radius: var(--radius-large); overflow: hidden; background: rgba(10, 15, 24, 0.86); box-shadow: 0 24px 80px rgba(25, 73, 80, 0.11); }
.incident-demo__top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--color-border); }
.incident-demo__top small { display: block; margin-bottom: 0.25rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.13em; color: var(--log-stream); }
.incident-demo__top code { color: var(--color-text); }
.incident-demo .gallery__tabs { padding: 0; border: 0; }
.incident-demo .gallery__tab[aria-pressed="true"] { background: linear-gradient(135deg, #3f9f99, #72d6ce); color: #071414; }
.incident-demo [data-tl-panel][hidden] { display: none; }
.incident-panel { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr); gap: 1px; background: var(--color-border); }
.incident-timeline { margin: 0; padding: 1.3rem; list-style: none; background: rgba(10, 15, 24, 0.96); }
.incident-timeline li { position: relative; display: grid; grid-template-columns: 4.5rem 3.5rem minmax(0, 1fr); gap: 0.7rem; align-items: baseline; padding: 0.8rem 0 0.8rem 1.2rem; border-left: 1px solid rgba(141, 186, 255, 0.3); }
.incident-timeline li::before { content: ""; position: absolute; left: -0.28rem; top: 1.1rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--log-blue); box-shadow: 0 0 0 5px rgba(141, 186, 255, 0.08); }
.incident-timeline li:last-child { border-left-color: transparent; }
.incident-timeline time { font-family: "Consolas", "Menlo", monospace; font-size: 0.72rem; color: var(--color-text-soft); }
.incident-timeline span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; color: var(--log-stream); }
.incident-timeline strong { font-family: "Consolas", "Menlo", monospace; font-size: 0.86rem; color: var(--color-text); }
.incident-timeline p { grid-column: 3; margin: -0.25rem 0 0; font-size: 0.76rem; color: var(--color-text-muted); }
.incident-timeline__ok::before { background: var(--log-ok) !important; }
.incident-timeline__warn::before { background: var(--log-warn) !important; }
.incident-timeline__error::before { background: var(--log-error) !important; }
.incident-answer { padding: 1.5rem; background: rgba(127, 214, 194, 0.07); }
.incident-answer small { display: block; margin-bottom: 1.5rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.13em; color: var(--log-ok); }
.incident-answer strong { display: block; font-size: 1.12rem; line-height: 1.4; }
.incident-answer p { margin: 0.6rem 0 0; font-size: 0.84rem; color: var(--color-text-muted); }
.incident-answer--warn { background: rgba(242, 185, 107, 0.075); }
.incident-answer--warn small { color: var(--log-warn); }
.incident-answer--error { background: rgba(226, 100, 125, 0.075); }
.incident-answer--error small { color: var(--log-error); }
.insight-support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.insight-support article { padding: 1.1rem 1.2rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.72); }
.insight-support span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; color: var(--log-stream); }
.insight-support strong { display: block; margin-top: 0.6rem; }
.insight-support p { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--color-text-muted); }

.failure-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.7rem; align-items: stretch; margin-top: 1.7rem; }
.failure-flow > div { padding: 1.2rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.78); }
.failure-flow__warn { border-color: rgba(242, 185, 107, 0.36) !important; background: rgba(242, 185, 107, 0.055) !important; }
.failure-flow__ok { border-color: rgba(127, 214, 194, 0.42) !important; background: rgba(127, 214, 194, 0.07) !important; }
.failure-flow small { display: block; margin-bottom: 1rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--log-stream); }
.failure-flow__warn small { color: var(--log-warn); }
.failure-flow__ok small { color: var(--log-ok); }
.failure-flow strong { display: block; }
.failure-flow p { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--color-text-muted); }
.guardrails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.guardrails article { padding: 1.2rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.7); }
.guardrails h3 { margin: 0; font-size: 1rem; }
.guardrails p { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--color-text-muted); }
.log-audit-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.log-audit-split > div { padding: 1.3rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); }
.log-audit-split__log { border-color: rgba(114, 214, 206, 0.36) !important; background: rgba(114, 214, 206, 0.055); }
.log-audit-split__audit { border-color: rgba(199, 167, 255, 0.34) !important; background: rgba(137, 92, 210, 0.055); }
.log-audit-split small { display: block; margin-bottom: 0.5rem; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; color: var(--log-stream); }
.log-audit-split__audit small { color: var(--color-gate); }
.log-audit-split strong { display: block; }
.log-audit-split p { margin: 0.4rem 0 0; font-size: 0.84rem; color: var(--color-text-muted); }
.log-audit-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid rgba(114, 214, 206, 0.25); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); overflow: hidden; }
.log-audit-details > div { padding: 1.2rem; border-left: 1px solid var(--color-border); background: rgba(10, 15, 24, 0.74); }
.log-audit-details > div:first-child { border-left: 0; }
.log-audit-details small { display: block; margin-bottom: 0.5rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--log-stream); }
.log-audit-details strong { display: block; }
.log-audit-details p { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--color-text-muted); }

.logsink-page .switch__btn[data-state="without"][aria-pressed="true"],
.logsink-page .switch__btn[data-state="with"][aria-pressed="true"] { color: #061412; background: var(--log-stream); }
.logsink-profile-compare { padding: 1.2rem; }
.profile-view { margin-top: 1rem; }
.profile-path { display: flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 1.2rem; border: 1px solid rgba(114, 214, 206, 0.3); border-radius: var(--radius-card); background: rgba(114, 214, 206, 0.055); }
.profile-path span,
.profile-path strong { padding: 0.65rem 0.85rem; border: 1px solid var(--color-border); border-radius: 9px; background: rgba(9, 13, 21, 0.8); }
.profile-path strong { border-color: rgba(114, 214, 206, 0.4); }
.profile-path i { font-style: normal; color: var(--log-stream); }
.profile-path--stream { border-color: rgba(141, 186, 255, 0.3); background: rgba(141, 186, 255, 0.05); }
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.profile-facts article { padding: 1.1rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(9, 13, 21, 0.7); }
.profile-facts small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--log-stream); }
.profile-facts strong { display: block; margin-top: 0.65rem; }
.profile-facts p { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--color-text-muted); }
.profile-guidance { margin: 1rem 0 0; padding: 0.85rem 1rem; border-left: 2px solid var(--log-stream); color: var(--color-text-muted); }
.profile-guidance strong { color: var(--color-text); }

.data-contract { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr); gap: 1rem; }
.event-example { border: 1px solid rgba(114, 214, 206, 0.3); border-radius: var(--radius-large); overflow: hidden; background: rgba(8, 12, 20, 0.78); }
.event-example__head { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--color-border); }
.event-example__head span { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; color: var(--log-stream); }
.event-example pre { margin: 0; padding: 1.2rem; overflow-x: auto; font-size: 0.84rem; line-height: 1.65; color: var(--color-text-muted); }
.allowlist-boundary { display: grid; gap: 1rem; }
.allowlist-boundary article { padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.72); }
.allowlist-boundary__yes { border-color: rgba(127, 214, 194, 0.34) !important; }
.allowlist-boundary__no { border-color: rgba(242, 185, 107, 0.3) !important; }
.allowlist-boundary small { display: block; margin-bottom: 0.6rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--log-ok); }
.allowlist-boundary__no small { color: var(--log-warn); }
.allowlist-boundary strong { display: block; }
.allowlist-boundary p { margin: 0.4rem 0 0; font-size: 0.84rem; color: var(--color-text-muted); }
.retention-compact { display: grid; gap: 0.65rem; margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.72); }
.retention-compact > div { display: grid; grid-template-columns: 4rem minmax(0, 1fr) 5rem; gap: 0.8rem; align-items: center; }
.retention-compact span { font-family: "Consolas", "Menlo", monospace; color: var(--color-text-muted); }
.retention-compact i { width: max(1rem, calc(var(--days) / 90 * 100%)); height: 0.72rem; border-radius: 999px; background: linear-gradient(90deg, #4a7299, var(--log-stream)); }
.retention-compact__error i { background: linear-gradient(90deg, #8d4760, var(--log-error)); }
.retention-compact strong { font-size: 0.82rem; text-align: right; }
.retention-note { margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--color-text-soft); }
.contract-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(114, 214, 206, 0.24); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); overflow: hidden; }
.contract-grid > div { padding: 1.2rem; border-left: 1px solid var(--color-border); background: rgba(10, 15, 24, 0.74); }
.contract-grid > div:first-child { border-left: 0; }
.contract-grid h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.contract-grid p { margin: 0; font-size: 0.8rem; color: var(--color-text-muted); }

.logsink-integrations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.logsink-integrations article { padding: 1.2rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.72); }
.logsink-integrations small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--log-stream); }
.logsink-integrations strong { display: block; margin-top: 1rem; }
.logsink-integrations p { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--color-text-muted); }
.deployment-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.deployment-split > div { padding: 1.3rem; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: rgba(10, 15, 24, 0.74); }
.deployment-split ul { margin: 0; padding: 0; list-style: none; }
.deployment-split li { padding: 0.52rem 0; border-top: 1px solid var(--color-border); font-size: 0.84rem; color: var(--color-text-muted); }
.deployment-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.deployment-chips span { padding: 0.52rem 0.72rem; border: 1px solid rgba(114, 214, 206, 0.24); border-radius: 999px; background: rgba(114, 214, 206, 0.055); font-size: 0.76rem; color: var(--color-text); }
.exit-path { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; margin-top: 1.5rem; padding: 1.4rem; border: 1px solid rgba(114, 214, 206, 0.32); border-radius: var(--radius-large); background: linear-gradient(120deg, rgba(114, 214, 206, 0.08), rgba(141, 186, 255, 0.04)); }
.exit-path h3 { margin: 0; }
.exit-path p:not(.section-kicker) { margin: 0.4rem 0 0; color: var(--color-text-muted); }
.exit-path > span { max-width: 16rem; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; color: var(--log-stream); }
.ownership-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(114, 214, 206, 0.24); border-top: 0; }
.ownership-row span { padding: 0.9rem 1rem; border-left: 1px solid var(--color-border); font-size: 0.78rem; color: var(--color-text-muted); }
.ownership-row span:first-child { border-left: 0; }
.ownership-row strong { display: block; color: var(--color-text); }

@media (max-width: 980px) {
  .logsink-business-flow,
  .failure-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logsink-business-flow > i,
  .failure-flow > i { display: none; }
  .incident-panel { grid-template-columns: 1fr; }
  .guardrails,
  .logsink-integrations,
  .contract-grid,
  .ownership-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-grid > div:nth-child(3),
  .ownership-row span:nth-child(3) { border-left: 0; border-top: 1px solid var(--color-border); }
  .contract-grid > div:nth-child(4),
  .ownership-row span:nth-child(4) { border-top: 1px solid var(--color-border); }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-path { flex-wrap: wrap; }
}

@media (max-width: 759px) {
  .logsink-page::after { right: -18rem; width: 24rem; opacity: 0.28; }
  .logsink-outcomes,
  .logsink-business-flow,
  .insight-support,
  .failure-flow,
  .guardrails,
  .log-audit-split,
  .log-audit-details,
  .data-contract,
  .logsink-integrations,
  .deployment-split,
  .contract-grid,
  .ownership-row { grid-template-columns: 1fr; }
  .logsink-outcomes article { min-height: 0; }
  .logsink-business-flow > i,
  .failure-flow > i { display: block; justify-self: center; transform: rotate(90deg); }
  .incident-demo__top { display: block; }
  .incident-demo .gallery__tabs { display: flex; flex-wrap: nowrap; gap: 0.35rem; margin-top: 0.8rem; overflow-x: auto; scrollbar-width: none; }
  .incident-demo .gallery__tabs::-webkit-scrollbar { display: none; }
  .incident-demo .gallery__tab { flex: 0 0 auto; }
  .incident-timeline li { grid-template-columns: 3.7rem 3rem minmax(0, 1fr); gap: 0.5rem; padding-left: 0.9rem; }
  .incident-timeline p { grid-column: 2 / -1; margin-top: 0.1rem; }
  .profile-path { display: grid; grid-template-columns: 1fr; text-align: center; }
  .profile-path i { transform: rotate(90deg); }
  .retention-compact > div { grid-template-columns: 3.2rem minmax(0, 1fr) 4rem; gap: 0.5rem; }
  .exit-path { grid-template-columns: 1fr; gap: 1rem; }
  .contract-grid > div,
  .ownership-row span { border-left: 0; border-top: 1px solid var(--color-border); }
  .contract-grid > div:first-child,
  .ownership-row span:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logsink-page::after { animation: none; }
}

/* ---------- Delivered engineering references: IMStageDB and OraML ---------- */

.reference-page {
  --reference-accent: #8dbaff;
  --reference-accent-rgb: 141, 186, 255;
  --reference-secondary: #7fd6c2;
}

.imstagedb-page {
  --reference-accent: #72d6ce;
  --reference-accent-rgb: 114, 214, 206;
  --reference-secondary: #8dbaff;
}

.oraml-page {
  --reference-accent: #b59bf4;
  --reference-accent-rgb: 181, 155, 244;
  --reference-secondary: #8dbaff;
}

.reference-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  top: 4rem;
  right: -12rem;
  width: 30rem;
  height: 76vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--reference-accent-rgb), 0.14), transparent 66%);
  filter: blur(68px);
  pointer-events: none;
}

.reference-page .page-shell,
.reference-page .site-footer {
  position: relative;
  z-index: 1;
}

.reference-page .project-hero {
  padding-bottom: 2.35rem;
}

.reference-page .project-hero__head {
  align-items: start;
}

.reference-page .project-hero__eyebrow,
.reference-page .section-kicker,
.reference-page .p-card__role {
  color: var(--reference-accent);
}

.reference-page .site-nav a[aria-current="page"] {
  color: var(--reference-accent);
}

.reference-page .section-nav a.is-active {
  background: rgba(var(--reference-accent-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--reference-accent-rgb), 0.28);
}

.reference-page .project-hero__lead {
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.68;
}

.reference-status {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  border: 1px solid rgba(var(--reference-accent-rgb), 0.3);
  border-radius: var(--radius-large);
  overflow: hidden;
  background: rgba(9, 13, 21, 0.78);
  box-shadow: 0 24px 80px rgba(5, 12, 24, 0.22);
}

.reference-status > * {
  min-width: 0;
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-left: 1px solid var(--color-border);
}

.reference-status > :first-child {
  border-left: 0;
  background: linear-gradient(135deg, rgba(var(--reference-accent-rgb), 0.13), rgba(var(--reference-accent-rgb), 0.025));
}

.reference-status p > span,
.reference-proof > span {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--reference-accent);
  box-shadow: 0 0 0 5px rgba(var(--reference-accent-rgb), 0.09), 0 0 22px rgba(var(--reference-accent-rgb), 0.55);
}

.reference-status small {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--reference-accent);
}

.reference-status strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--color-text);
}

.reference-status span,
.reference-status p {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.reference-status p strong {
  display: inline;
  margin-right: 0.25rem;
}

.reference-proof {
  margin: 1.4rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--reference-accent);
  background: linear-gradient(90deg, rgba(var(--reference-accent-rgb), 0.09), transparent 78%);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.reference-proof strong {
  color: var(--color-text);
}

.reference-page .oraml-runtime {
  position: relative;
  margin-top: 1.4rem;
  border-color: rgba(var(--reference-accent-rgb), 0.28);
  background:
    linear-gradient(135deg, rgba(var(--reference-accent-rgb), 0.055), transparent 40%),
    rgba(10, 15, 24, 0.84);
}

.reference-page .oraml-runtime::after {
  content: "PRODUCTION-PROVEN FLOW";
  position: absolute;
  top: 1.35rem;
  right: 1.55rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--reference-accent);
}

.reference-page .lane--oraml {
  fill: rgba(var(--reference-accent-rgb), 0.045);
  stroke: rgba(var(--reference-accent-rgb), 0.44);
}

.reference-page .section-block {
  position: relative;
  overflow: clip;
}

.reference-page .section-block:nth-of-type(even)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 22%, rgba(var(--reference-accent-rgb), 0.065), transparent 32%);
  pointer-events: none;
}

.reference-page .section-block > .container {
  position: relative;
}

.reference-page .p-card {
  border-color: rgba(var(--reference-accent-rgb), 0.18);
  background: rgba(10, 15, 24, 0.76);
}

.reference-page .p-card:hover {
  border-color: rgba(var(--reference-accent-rgb), 0.4);
  transform: translateY(-2px);
}

.reference-toolchain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
  margin-top: 1.7rem;
}

.reference-toolchain > i {
  align-self: center;
  font-style: normal;
  color: var(--reference-accent);
}

.reference-toolchain article {
  position: relative;
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid rgba(var(--reference-accent-rgb), 0.22);
  border-radius: var(--radius-card);
  background: rgba(9, 13, 21, 0.8);
}

.reference-toolchain article > span {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(var(--reference-accent-rgb), 0.46);
  border-radius: 50%;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--reference-accent);
}

.reference-toolchain small {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--color-text-soft);
}

.reference-toolchain strong {
  display: block;
  line-height: 1.35;
}

.reference-toolchain p {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.reference-toolchain__ai {
  border-color: rgba(181, 155, 244, 0.48) !important;
  background: linear-gradient(145deg, rgba(181, 155, 244, 0.11), rgba(9, 13, 21, 0.82)) !important;
}

.reference-toolchain__human {
  border-color: rgba(127, 214, 194, 0.4) !important;
  background: rgba(127, 214, 194, 0.055) !important;
}

.oraml-page .zero-strip {
  margin-top: 1rem;
  border-color: rgba(var(--reference-accent-rgb), 0.23);
}

.oraml-page .zero-strip div {
  min-height: 5rem;
  background: rgba(10, 14, 23, 0.78);
}

.oraml-page .zero-strip strong,
.oraml-page .kpi__value {
  color: var(--reference-accent);
}

.imstagedb-page #design,
.oraml-page #covered {
  background: linear-gradient(180deg, rgba(var(--reference-accent-rgb), 0.045), transparent 80%);
}

@media (max-width: 980px) {
  .reference-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-status > :nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .reference-status > :nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

  .reference-toolchain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-toolchain > i {
    display: none;
  }
}

@media (max-width: 759px) {
  .reference-page::after {
    right: -20rem;
    width: 28rem;
    opacity: 0.6;
  }

  .reference-status,
  .reference-toolchain {
    grid-template-columns: 1fr;
  }

  .reference-status > * {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .reference-status > :first-child {
    border-top: 0;
  }

  .reference-page .oraml-runtime::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-page .p-card:hover {
    transform: none;
  }
}

/* ---------- Scattered application screenshots ("papers") ---------- */

.papers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: var(--papers-mask-x, linear-gradient(#000, #000)), var(--papers-mask-y, linear-gradient(#000, #000));
  mask-image: var(--papers-mask-x, linear-gradient(#000, #000)), var(--papers-mask-y, linear-gradient(#000, #000));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.paper {
  position: absolute;
  width: var(--w, 40%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
  opacity: var(--o, 0.78);
  transform: rotate(var(--r, 0deg));
}

.paper img {
  display: block;
  width: 100%;
  height: auto;
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(9, 11, 17, 0.04), rgba(9, 11, 17, 0.26));
}

.section-block--papers {
  position: relative;
  overflow: hidden;
}

/* Hero and section papers sit behind in-flow content; no stacking context on the container,
   so the fixed topbar inside the hero keeps its own z-index. */
.papers--hero,
.papers--band {
  z-index: -1;
}

.usecase-feature,
.stack__tile--papers {
  isolation: isolate;
}

/* Hero: three papers fanned out in the upper right, behind a frosted lead paragraph */
.papers--hero {
  --papers-mask-x: linear-gradient(to right, transparent 34%, #000 52%);
  --papers-mask-y: linear-gradient(to bottom, #000 40%, transparent 72%);
  inset: auto 0 auto 0;
  top: 0;
  height: 52rem;
}

.papers--hero .paper:nth-child(1) { --w: 44%; --r: -5deg; --o: 0.8; top: 5rem; right: -9%; }
.papers--hero .paper:nth-child(2) { --w: 33%; --r: 4deg; --o: 0.74; top: 13rem; right: 27%; }
.papers--hero .paper:nth-child(3) { --w: 28%; --r: -2deg; --o: 0.86; top: 20rem; right: 5%; }

.project-hero--papers .project-hero__lead {
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(9, 11, 17, 0.74);
  backdrop-filter: blur(10px);
}

/* Section band: two papers in the upper right, fading before the content below */
.papers--band {
  --papers-mask-x: linear-gradient(to right, transparent 42%, #000 58%);
  --papers-mask-y: linear-gradient(to bottom, #000 35%, transparent 70%);
  inset: auto 0 auto 0;
  top: 0;
  height: 40rem;
}

.papers--band .paper:nth-child(1) { --w: 40%; --r: 5deg; --o: 0.78; top: 2.5rem; right: -7%; }
.papers--band .paper:nth-child(2) { --w: 30%; --r: -4deg; --o: 0.86; top: 10rem; right: 24%; }

/* Featured card: one paper behind the upper right corner */
.papers--feature {
  --papers-mask-x: linear-gradient(to right, transparent 52%, #000 68%);
  --papers-mask-y: linear-gradient(to bottom, #000 28%, transparent 58%);
}

.papers--feature .paper:nth-child(1) { --w: 36%; --r: 4deg; --o: 0.7; top: -6%; right: -9%; }

/* Small tile: a paper peeking out of the lower right corner */
.stack__tile--papers {
  position: relative;
  overflow: hidden;
}

.stack__tile--papers > span:not(.papers) {
  position: relative;
  z-index: 1;
}

.papers--tile {
  --papers-mask-x: linear-gradient(to right, transparent 36%, #000 58%);
  --papers-mask-y: linear-gradient(to bottom, transparent 34%, #000 64%);
}

.papers--tile .paper:nth-child(1) { --w: 60%; --r: -7deg; --o: 0.6; right: -12%; bottom: -46%; }

/* ---------- Use cases ---------- */

.usecases {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(16rem, 1fr);
  gap: 1.25rem;
}

.usecase__label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-joint);
}

.usecase-feature {
  position: relative;
  overflow: hidden;
  padding: 1.9rem 2rem;
  border: 1px solid rgba(127, 214, 194, 0.35);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 88% 10%, rgba(127, 214, 194, 0.12), transparent 36%),
    linear-gradient(120deg, rgba(14, 35, 43, 0.86), rgba(18, 27, 47, 0.8));
}

.usecase-feature > :not(.papers) {
  position: relative;
  z-index: 1;
}

.usecase-feature h3 {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.usecase-feature__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--color-border);
}

.usecase-feature__cols span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.usecase-feature__cols p,
.usecase-feature__cols li {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--color-text-muted);
}

.usecase-feature__cols ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
}

.usecase-feature__cols li::marker { color: var(--color-joint); }

.usecase-feature__for {
  margin: 1.3rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.usecase-feature__for strong { color: var(--color-text); }

.usecase-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.usecase-card--featured {
  border-color: rgba(127, 214, 194, 0.35);
  background: linear-gradient(120deg, rgba(14, 35, 43, 0.7), rgba(18, 27, 47, 0.6));
}

.usecase-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.32;
}

.usecase-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--color-text-muted);
}

.usecase-card__more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-accent);
}

.usecase-card--featured .usecase-card__more { color: var(--color-joint); }

.usecase-components {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding: 0.9rem 0 0;
  list-style: none;
}

.usecase-components li {
  padding: 0.25rem 0.62rem;
  border: 1px solid rgba(141, 186, 255, 0.4);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.usecase-components li.is-gate { border-color: rgba(199, 167, 255, 0.6); color: var(--color-gate); }
.usecase-components li.is-joint { border-color: rgba(127, 214, 194, 0.5); color: var(--color-joint); }

.usecase-grid .usecase-card + .usecase-card { margin: 0; }

.mddv-best-fit__link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-joint);
}

.mddv-best-fit__link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .papers--hero { --papers-mask-x: linear-gradient(to right, transparent 20%, #000 45%); height: 40rem; }
  .papers--hero .paper:nth-child(1) { --w: 58%; right: -18%; }
  .papers--hero .paper:nth-child(2) { --w: 42%; right: 30%; top: 15rem; }
  .papers--hero .paper:nth-child(3) { display: none; }
  .papers--band .paper:nth-child(1) { --w: 52%; right: -14%; }
  .papers--band .paper:nth-child(2) { --w: 40%; right: 26%; }

  .usecases,
  .usecase-feature__cols {
    grid-template-columns: 1fr;
  }

  .usecase-feature h3 { max-width: none; }
}

@media (max-width: 759px) {
  .papers { display: none; }
  .project-hero--papers .project-hero__lead { padding: 0; border: 0; background: none; backdrop-filter: none; }

  .usecase-feature { padding: 1.4rem 1.2rem; }
}
