/* ============================================================
   EXPANSION.CSS - TrueTap
   Identity-platform expansion components (2026)
   Loaded after pages.css. Reuses tokens + reveal system.
   ============================================================ */

/* ============================================================
   DISPLAY / SECTION TYPOGRAPHY HELPERS
   ============================================================ */

.display-xl { font-size: var(--display-xl); line-height: 1.0; letter-spacing: -0.04em; font-weight: var(--weight-bold); }
.display-lg { font-size: var(--display-lg); line-height: 1.02; letter-spacing: -0.035em; font-weight: var(--weight-bold); }
.display-md { font-size: var(--display-md); line-height: 1.06; letter-spacing: -0.03em;  font-weight: var(--weight-bold); }

.text-on-dark       { color: var(--text-on-dark); }
.text-muted-2       { color: var(--text-muted); }
.text-secondary-2   { color: var(--text-secondary); }

.measure-sm  { max-width: 46ch; }
.measure-md  { max-width: 58ch; }
.measure-lg  { max-width: 70ch; }

/* ============================================================
   DARK BAND (occasional full-width dark section)
   ============================================================ */

.dark-band {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.dark-band h1,
.dark-band h2,
.dark-band h3 {
  color: var(--text-on-dark);
}

.dark-band p {
  color: rgba(246, 246, 244, 0.66);
}

.dark-band .eyebrow {
  color: rgba(246, 246, 244, 0.5);
}

.dark-band .eyebrow--accent {
  color: var(--accent);
}

.dark-band .btn--secondary {
  border-color: rgba(246, 246, 244, 0.24);
  color: var(--text-on-dark);
}

.dark-band .btn--secondary:hover {
  border-color: rgba(246, 246, 244, 0.6);
  color: var(--text-on-dark);
}

.dark-band .btn--primary {
  background-color: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.dark-band .btn--primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ============================================================
   HERO v2 (homepage)
   ============================================================ */

.hero-v2 {
  padding: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem)) 0 clamp(4rem, 7vw, 6rem);
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-v2__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}

.hero-v2__eyebrow {
  margin-bottom: var(--space-5);
}

.hero-v2__title {
  font-size: var(--display-xl);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-8);
  max-width: 16ch;
}

.hero-v2__body {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: var(--space-10);
}

.hero-v2__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ---- Interactive architecture diagram (CSS-only) ---- */

.hero-diagram {
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--line);
  padding: clamp(var(--space-8), 3vw, var(--space-12));
}

.hero-diagram__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-8);
}

.hero-diagram__label {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-diagram__status {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-diagram__flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-diagram__node {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

.hero-diagram__node:last-child {
  border-bottom: none;
}

.hero-diagram__node-num {
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--line-medium);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-diagram__node-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  line-height: 1.25;
}

.hero-diagram__node-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.hero-diagram__state {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.hero-diagram__state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--text-muted);
}

.hero-diagram__node--verified .hero-diagram__state {
  border-color: var(--accent-mid);
  color: var(--accent);
  background-color: var(--accent-light);
}
.hero-diagram__node--verified .hero-diagram__state::before { background-color: var(--accent); }

.hero-diagram__node--verified .hero-diagram__node-num {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.hero-diagram__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.hero-diagram__verdict {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
}

.hero-diagram__verdict strong {
  color: var(--accent);
  font-weight: var(--weight-bold);
}

.hero-diagram__time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Subtle connector line animation (decorative; honors reduced motion) */
.hero-diagram__node-num::after {
  content: "";
  display: block;
  width: 1px;
  height: var(--space-5);
  background-color: var(--line-medium);
  margin: 6px auto -38px;
}

.hero-diagram__node:last-child .hero-diagram__node-num::after {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-diagram__node-num {
    position: relative;
  }
}

@media (max-width: 960px) {
  .hero-v2__grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .hero-v2__title {
    max-width: 18ch;
  }
}

/* ============================================================
   CAPABILITY RAIL (authority strip v2)
   ============================================================ */

.cap-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-main);
}

/* When cap-rail sits inside a .section wrapper, the strip must be flush:
   no section padding, full bleed, single grid. */
.cap-rail-section.section {
  padding-top: 0;
  padding-bottom: 0;
}
.cap-rail-section .cap-rail {
  width: 100%;
}

.cap-rail__item {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--line);
}

.cap-rail__item:last-child {
  border-right: none;
}

.cap-rail__num {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-3);
}

.cap-rail__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  line-height: 1.3;
  display: block;
}

.cap-rail__desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: var(--leading-normal);
}

@media (max-width: 1100px) {
  .cap-rail { grid-template-columns: repeat(3, 1fr); }
  .cap-rail__item:nth-child(3n) { border-right: none; }
  .cap-rail__item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .cap-rail { grid-template-columns: repeat(2, 1fr); }
  .cap-rail__item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .cap-rail__item:nth-child(2n) { border-right: none; }
  .cap-rail__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cap-rail__item:nth-child(3n) { border-right: 1px solid var(--line); }
  .cap-rail__item:last-child { border-bottom: none; }
}

/* ============================================================
   IDENTITY STORY - four-stage credential/biometric/holder/policy
   ============================================================ */

.id-story {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background-color: var(--bg-white);
}

.id-story__stage {
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--line);
  position: relative;
}

.id-story__stage:last-child { border-right: none; }

.id-story__num {
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-5);
  display: block;
}

.id-story__stage-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.id-story__stage-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin: 0;
}

.id-story__stage::after {
  content: "→";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--text-muted);
  background-color: var(--bg-main);
  padding: 0 4px;
  z-index: 2;
}

.id-story__stage:last-child::after { display: none; }

@media (max-width: 900px) {
  .id-story { grid-template-columns: repeat(2, 1fr); }
  .id-story__stage:nth-child(2n) { border-right: none; }
  .id-story__stage:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .id-story__stage::after { display: none; }
}

@media (max-width: 540px) {
  .id-story { grid-template-columns: 1fr; }
  .id-story__stage { border-right: none; border-bottom: 1px solid var(--line); }
  .id-story__stage:last-child { border-bottom: none; }
}

/* ============================================================
   ECOSYSTEM PANELS - six large editorial solution tiles
   ============================================================ */

.eco-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.eco-panel {
  display: flex;
  flex-direction: column;
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-white);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-fast);
  min-height: 320px;
}

.eco-panel:hover {
  background-color: var(--bg-main);
}

.eco-panel__num {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  display: block;
}

.eco-panel__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eco-panel__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin: 0 0 var(--space-8);
  flex: 1;
}

.eco-panel__cta {
  font-size: 0.75rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eco-panel:hover .eco-panel__cta {
  color: var(--accent-dark);
}

@media (max-width: 1024px) {
  .eco-panels { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .eco-panels { grid-template-columns: 1fr; }
}

/* ============================================================
   LUXURY BAND - full-width premium section
   ============================================================ */

.luxury-band {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.luxury-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}

.luxury-band h2 {
  color: var(--text-on-dark);
  font-size: var(--display-md);
  max-width: 16ch;
}

.luxury-band p {
  color: rgba(246, 246, 244, 0.66);
}

.luxury-band__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.luxury-band__chip {
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 246, 244, 0.78);
  border: 1px solid rgba(246, 246, 244, 0.22);
  padding: 6px 12px;
}

.luxury-band__media {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 0;
}

.luxury-band__media img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 960px) {
  .luxury-band__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HARDWARE RAIL - category tiles with placeholder-safe images
   ============================================================ */

.hardware-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
}

.hw-tile {
  background-color: var(--bg-white);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.hw-tile__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-5);
  background-color: var(--bg-alt);
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.hw-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hw-tile__num {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.hw-tile__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.hw-tile__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
}

@media (max-width: 900px) {
  .hardware-rail { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .hardware-rail { grid-template-columns: 1fr; }
}

/* ============================================================
   PLACEHOLDER MEDIA - polished neutral placeholder
   Renders when a referenced image is missing.
   JS in expansion.js swaps broken <img> for this style.
   ============================================================ */

.placeholder-media {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(17,17,17,0.025) 0,
      rgba(17,17,17,0.025) 12px,
      transparent 12px,
      transparent 24px
    ),
    var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-6);
  border: 1px dashed var(--line-medium);
}

.placeholder-media__icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.placeholder-media__label {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  word-break: break-all;
}

/* ============================================================
   EDITORIAL CAPABILITY CARD - intentional image-free panel
   Used wherever production photography is not yet available.
   Renders as a structured capability tile with an inline SVG
   glyph (no external asset, no fake photo). The expected media
   filename is preserved in data-expected for later swap-in.
   ============================================================ */

.ecap {
  position: relative;
  background-color: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-6) var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  overflow: hidden;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.ecap:hover {
  border-color: var(--line-medium);
  background-color: var(--surface-1);
}

.ecap::before {
  /* corner tick mark - abstract line graphic, not a photo */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.ecap__glyph {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-medium);
  border-radius: 2px;
  margin-bottom: var(--space-4);
  background-color: var(--bg-white);
}

.ecap__glyph svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecap__num {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.ecap__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.005em;
}

.ecap__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
  max-width: 38ch;
}

/* Horizontal variant: a wider split panel used in hero/feature rows
   where a real photo would otherwise sit. */
.ecap--split {
  flex-direction: row;
  align-items: center;
  gap: var(--space-6);
  min-height: 0;
  padding: var(--space-8) var(--space-7);
}

.ecap--split .ecap__glyph {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  margin-bottom: 0;
}

.ecap--split .ecap__glyph svg {
  width: 32px;
  height: 32px;
}

.ecap--split .ecap__content {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 540px) {
  .ecap--split {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

/* Architecture flow panel - used in place of hero visuals.
   Inline SVG diagram of the credential -> biometric -> platform flow. */
.ecap--arch {
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-7) var(--space-6);
  background-color: var(--bg-white);
  min-height: 0;
}

.ecap__arch-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.ecap__arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 90px;
}

.ecap__arch-node-glyph {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  background-color: var(--bg-main);
}

.ecap__arch-node-glyph svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ecap__arch-node-label {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.ecap__arch-connector {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: var(--weight-semi);
  padding: 0 var(--space-1);
}

@media (max-width: 540px) {
  .ecap__arch-flow {
    flex-direction: column;
  }
  .ecap__arch-connector {
    transform: rotate(90deg);
    padding: var(--space-1) 0;
  }
}

/* ============================================================
   HSA.DEV BAND
   ============================================================ */

.hsa-band {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.hsa-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}

.hsa-band__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background-color: var(--bg-white);
}

.hsa-band__list-item {
  padding: var(--space-5) var(--space-6);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.hsa-band__list-item:nth-child(2n) { border-right: none; }
.hsa-band__list-item:nth-last-child(-n+2) { border-bottom: none; }

@media (max-width: 960px) {
  .hsa-band__grid { grid-template-columns: 1fr; }
  .hsa-band__list { grid-template-columns: 1fr; }
  .hsa-band__list-item { border-right: none; }
  .hsa-band__list-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hsa-band__list-item:last-child { border-bottom: none; }
}

/* ============================================================
   TRUST / METRICS STRIP
   ============================================================ */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip__cell {
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--line);
}

.trust-strip__cell:last-child { border-right: none; }

.trust-strip__value {
  font-size: var(--display-md);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.trust-strip__label {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-3);
}

.trust-strip__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--leading-normal);
}

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip__cell:nth-child(2n) { border-right: none; }
  .trust-strip__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 540px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip__cell { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-strip__cell:last-child { border-bottom: none; }
}

/* ============================================================
   SECTION INTRO (large editorial section header)
   ============================================================ */

.section-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: end;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-16);
}

.section-intro__head .eyebrow {
  margin-bottom: var(--space-5);
}

.section-intro__title {
  font-size: var(--display-md);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.section-intro__body p {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0;
}

@media (max-width: 900px) {
  .section-intro { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ============================================================
   PAGE HERO v2 (inner pages)
   ============================================================ */

.page-hero-v2 {
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-20);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-main);
}

.page-hero-v2__title {
  font-size: var(--display-lg);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-10);
  max-width: 20ch;
}

.page-hero-v2__body {
  font-size: var(--text-md);
  max-width: 60ch;
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}

/* ============================================================
   FEATURE ROWS - dense editorial capability list
   ============================================================ */

.feat-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feat-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-10);
  padding: var(--space-10) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.feat-row:first-child { border-top: 1px solid var(--line); }

.feat-row__label {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 6px;
}

.feat-row__body h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semi);
  margin-bottom: var(--space-3);
}

.feat-row__body p {
  margin: 0;
  max-width: 64ch;
}

@media (max-width: 760px) {
  .feat-row { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ============================================================
   INLINE LINK LIST (inline family links on solutions page)
   ============================================================ */

.inline-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.inline-links li {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: var(--weight-medium);
}

.inline-links li::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--line-medium);
  margin-left: var(--space-4);
}

.inline-links li:last-child::after { display: none; }

.inline-links a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.inline-links a:hover,
.inline-links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
}

.mt-6 { margin-top: var(--space-6); }

/* ============================================================
   NOTICE / DISCLAIMER BLOCK
   ============================================================ */

.notice {
  padding: var(--space-6) var(--space-8);
  border-left: 2px solid var(--accent);
  background-color: var(--bg-white);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice__label {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-3);
}

.notice p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--leading-loose);
}

/* ============================================================
   STICKY STORY (sticky visual + scrolling text)
   ============================================================ */

.sticky-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: start;
}

.sticky-story__visual {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-10));
}

.sticky-story__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.sticky-story__block h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.sticky-story__block p {
  max-width: 56ch;
  margin: 0;
}

@media (max-width: 960px) {
  .sticky-story { grid-template-columns: 1fr; }
  .sticky-story__visual { position: static; margin-bottom: var(--space-12); }
}

/* ============================================================
   STAGE STRIP (numbered horizontal lifecycle)
   ============================================================ */

.stage-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background-color: var(--bg-white);
}

.stage-strip__step {
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid var(--line);
  position: relative;
}

.stage-strip__step:last-child { border-right: none; }

.stage-strip__num {
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-3);
}

.stage-strip__label {
  font-size: 0.75rem;
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  line-height: 1.25;
  display: block;
}

@media (max-width: 1024px) {
  .stage-strip { grid-template-columns: repeat(4, 1fr); }
  .stage-strip__step:nth-child(4n) { border-right: none; }
  .stage-strip__step:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 540px) {
  .stage-strip { grid-template-columns: repeat(2, 1fr); }
  .stage-strip__step:nth-child(2n) { border-right: none; }
  .stage-strip__step:nth-child(4n) { border-right: 1px solid var(--line); }
}

/* ============================================================
   SPLIT TEASER (homepage section teasers)
   ============================================================ */

.split-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  align-items: center;
}

.split-teaser--flip { direction: rtl; }
.split-teaser--flip > * { direction: ltr; }

.split-teaser__title {
  font-size: var(--display-md);
  line-height: 1.04;
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.split-teaser__body {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

@media (max-width: 960px) {
  .split-teaser,
  .split-teaser--flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-10);
  }
}

/* ============================================================
   DEPLOYMENT ROWS (refined delivery list)
   ============================================================ */

.deploy-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.deploy-row {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-color: var(--bg-white);
}

.deploy-row__num {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-4);
}

.deploy-row__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.deploy-row__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
}

@media (max-width: 900px) {
  .deploy-rows { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .deploy-rows { grid-template-columns: 1fr; }
}

/* ============================================================
   2026 EDITORIAL VISUAL SYSTEM
   Replaces the boxy "diagram made of cards" patterns with a
   unified editorial language:
     - signal-flow rails       (horizontal/vertical process rows)
     - layered architecture    (stacked tier bands, not card grids)
     - capability rows         (editorial feature rows)
     - status tokens           (elegant result markers)
     - dark-section surfaces   (charcoal rails instead of white tiles)
   These are reusable patterns. Legacy classes (.arch-diagram,
   .workflow-steps, .id-story, .process-flow, .flow-diagram) are
   restyled below to opt INTO the new system without requiring
   every HTML file to be rewritten.
   ============================================================ */

/* ---- Status tokens (elegant result markers) ---- */
.token {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.22em 0.7em;
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background-color: transparent;
  white-space: nowrap;
}

.token::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--text-muted);
  flex-shrink: 0;
}

.token--ok {
  border-color: var(--accent-mid);
  color: var(--accent);
}
.token--ok::before { background-color: var(--accent); }

.token--neutral { color: var(--text-secondary); }

.token--muted {
  border-color: var(--line-soft);
  color: var(--text-muted);
}

.token--on-dark {
  border-color: var(--line-on-dark);
  color: var(--text-on-dark-soft);
}
.token--on-dark::before { background-color: var(--text-on-dark-muted); }

.token--ok-on-dark {
  border-color: var(--accent-mid);
  color: var(--accent);
}
.token--ok-on-dark::before { background-color: var(--accent); }

/* ---- Exact-spec token variants (canonical names) ----
   These map to the user-defined contract:
     .token--accent  -> orange accent state (verified/active)
     .token--muted   -> neutral/de-emphasised state
     .token--dark    -> on-dark neutral state
   Aliases of the variants above, kept as primary canonical names. */

.token--accent {
  border-color: var(--accent-mid);
  color: var(--accent);
}
.token--accent::before { background-color: var(--accent); }

.token--dark {
  border-color: var(--line-on-dark);
  color: var(--text-on-dark-soft);
}
.token--dark::before { background-color: var(--text-on-dark-muted); }

.dark-band .token--accent,
.dark-band .token--accent.token--dark {
  border-color: var(--accent-mid);
  color: var(--accent);
}
.dark-band .token--accent::before,
.dark-band .token--accent.token--dark::before { background-color: var(--accent); }

/* ============================================================
   SIGNAL FLOW RAILS
   Horizontal process rows: step number | title + desc | status.
   No enclosing card per item - one continuous connected rail.
   ============================================================ */

.flow-rail {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-rail__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line-soft);
}

.flow-rail__item:last-child { border-bottom: none; }

.flow-rail__num {
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 4px;
  position: relative;
}

/* Canonical index selector (alias of __num) - the numbered marker
   in the left column. */
.flow-rail__index {
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 4px;
  position: relative;
  min-width: 32px;
}

.flow-rail__num::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: var(--space-6);
  background-color: var(--line-medium);
  transform: translateX(-50%);
}

/* Same connector line emitted from the canonical __index marker. */
.flow-rail__index::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: var(--space-6);
  background-color: var(--line-medium);
  transform: translateX(-50%);
}

.flow-rail__item:last-child .flow-rail__num::after,
.flow-rail__item:last-child .flow-rail__index::after { display: none; }

/* Canonical content wrapper: holds title + body in the middle column.
   Allows markup like <div class="flow-rail__content"><h3 class="flow-rail__title">..</h3><p class="flow-rail__body">..</p></div> */
.flow-rail__content {
  min-width: 0;
}

.flow-rail__title {
  font-size: var(--text-md);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-snug);
}

.flow-rail__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
  max-width: 60ch;
}

.flow-rail__status {
  align-self: center;
}

@media (max-width: 720px) {
  .flow-rail__item {
    grid-template-columns: 32px 1fr;
    gap: var(--space-4);
  }
  .flow-rail__status {
    grid-column: 2;
    margin-top: var(--space-2);
  }
}

/* ============================================================
   LAYERED ARCHITECTURE
   Stacked tier bands that feel like one composition, not a
   grid of separate cards. Each tier = label | nodes.
   ============================================================ */

.arch-stack {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.arch-stack__tier {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-8);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.arch-stack__tier:last-child { border-bottom: none; }

.arch-stack__label {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 6px;
  line-height: 1.4;
}

.arch-stack__label strong {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-snug);
  text-transform: none;
  color: var(--text-primary);
  margin-top: var(--space-1);
}

.arch-stack__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Canonical content column selector - same treatment as __nodes so
   markup can use either name. Sits on a subtle rail (no heavy frame). */
.arch-stack__content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  min-width: 0;
}

.arch-stack__node {
  padding: var(--space-2) var(--space-4);
  background-color: var(--surface-2);
  border: 1px solid var(--line-soft);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
  border-radius: var(--radius-sm);
}

.arch-stack__node--accent {
  background-color: var(--accent-light);
  border-color: var(--accent-mid);
  color: var(--accent);
  font-weight: var(--weight-semi);
}

.arch-stack__node--platform {
  background-color: var(--surface-3);
  border-color: var(--line-soft);
  color: var(--text-secondary);
}

.arch-stack__connector {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0 var(--space-1);
}

@media (max-width: 720px) {
  .arch-stack__tier {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .arch-stack__label { padding-top: 0; }
}

/* ============================================================
   CAPABILITY ROWS
   Editorial feature rows with category marker.
   ============================================================ */

.cap-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cap-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: var(--space-8);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

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

.cap-row__cat {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}

.cap-row__title {
  font-size: var(--text-md);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
  line-height: 1.3;
  margin: 0 0 var(--space-2);
}

.cap-row__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
  max-width: 65ch;
}

@media (max-width: 720px) {
  .cap-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .cap-row__cat { padding-top: 0; }
}

/* ============================================================
   PROGRESSION PANEL (linear lifecycle / issuance flow)
   Softly tinted surface, restrained separators.
   ============================================================ */

.progression {
  background-color: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-8);
}

.progression__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-2);
}

.progression__label {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.progression__step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-soft);
}

.progression__step:last-child { border-bottom: none; }

.progression__num {
  font-size: 0.6875rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.progression__step--accent .progression__num { color: var(--accent); }

.progression__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  line-height: 1.3;
}

.progression__sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .progression { padding: var(--space-6); }
  .progression__step {
    grid-template-columns: 28px 1fr;
  }
  .progression__step .token {
    grid-column: 2;
    justify-self: start;
    margin-top: var(--space-1);
  }
}

/* ============================================================
   DARK-SECTION SURFACES
   Charcoal rails, integrated step panels and dividers that
   replace pale white cards on dark backgrounds.
   ============================================================ */

.dark-band .token {
  border-color: var(--line-on-dark);
  color: var(--text-on-dark-soft);
}
.dark-band .token::before { background-color: var(--text-on-dark-muted); }
.dark-band .token--ok,
.dark-band .token--ok-on-dark {
  border-color: var(--accent-mid);
  color: var(--accent);
}
.dark-band .token--ok::before,
.dark-band .token--ok-on-dark::before { background-color: var(--accent); }

.dark-band .flow-rail {
  border-color: var(--line-on-dark);
}
.dark-band .flow-rail__item { border-bottom-color: var(--line-on-dark-soft); }
.dark-band .flow-rail__num { color: var(--text-on-dark-muted); }
.dark-band .flow-rail__num::after { background-color: var(--line-on-dark); }
.dark-band .flow-rail__title { color: var(--text-on-dark); }
.dark-band .flow-rail__body { color: var(--text-on-dark-soft); }

.dark-band .arch-stack {
  border-color: var(--line-on-dark);
}
.dark-band .arch-stack__tier { border-bottom-color: var(--line-on-dark-soft); }
.dark-band .arch-stack__label { color: var(--text-on-dark-muted); }
.dark-band .arch-stack__label strong { color: var(--text-on-dark); }
.dark-band .arch-stack__node {
  background-color: var(--surface-dark-2);
  border-color: var(--line-on-dark-soft);
  color: var(--text-on-dark-soft);
}
.dark-band .arch-stack__node--accent {
  background-color: var(--accent-light);
  border-color: var(--accent-mid);
  color: var(--accent);
}
.dark-band .arch-stack__node--platform {
  background-color: var(--surface-dark-1);
  color: var(--text-on-dark-soft);
}
.dark-band .arch-stack__connector { color: var(--text-on-dark-muted); }

.dark-band .progression {
  background-color: var(--surface-dark-rail);
  border-color: var(--line-on-dark-soft);
}
.dark-band .progression__head { border-bottom-color: var(--line-on-dark); }
.dark-band .progression__label { color: var(--text-on-dark-muted); }
.dark-band .progression__step { border-bottom-color: var(--line-on-dark-soft); }
.dark-band .progression__num { color: var(--text-on-dark-muted); }
.dark-band .progression__step--accent .progression__num { color: var(--accent); }
.dark-band .progression__title { color: var(--text-on-dark); }
.dark-band .progression__sub { color: var(--text-on-dark-muted); }

.dark-band .cap-rows { border-top-color: var(--line-on-dark); }
.dark-band .cap-row { border-bottom-color: var(--line-on-dark-soft); }
.dark-band .cap-row__cat { color: var(--accent); }
.dark-band .cap-row__title { color: var(--text-on-dark); }
.dark-band .cap-row__body { color: var(--text-on-dark-soft); }

/* ============================================================
   LEGACY CLASS REFINEMENT
   Existing pages use .arch-diagram, .workflow-steps, .id-story,
   .process-flow, .flow-diagram. Rather than rewriting every
   HTML file, restyle these so they adopt the new editorial
   language: lighter borders, no harsh white tiles on dark
   sections, refined hover and typography.
   ============================================================ */

/* --- .id-story: now reads as a connected rail, not 4 isolated cards --- */
.id-story {
  border: 1px solid var(--line);
  background-color: transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.id-story__stage {
  background-color: var(--surface-2);
  border-right: 1px solid var(--line-soft);
  padding: var(--space-8) var(--space-6);
}

.id-story__stage:last-child { border-right: none; }

.id-story__stage::after {
  background-color: transparent;
  color: var(--text-muted);
}

/* CRITICAL dark-section fix: id-story used inside .dark-band must
   NOT render white tiles. Switch to charcoal surfaces with light text. */
.dark-band .id-story {
  border-color: var(--line-on-dark);
  background-color: var(--surface-dark-rail);
}

.dark-band .id-story__stage {
  background-color: var(--surface-dark-1);
  border-right-color: var(--line-on-dark-soft);
}

.dark-band .id-story__stage:last-child { border-right: none; }

.dark-band .id-story__num { color: var(--accent); }

.dark-band .id-story__stage-title {
  color: var(--text-on-dark);
  letter-spacing: var(--tracking-snug);
}

.dark-band .id-story__stage-body {
  color: var(--text-on-dark-soft);
}

.dark-band .id-story__stage::after {
  color: var(--text-on-dark-muted);
  background-color: var(--surface-dark-1);
}

/* --- .arch-diagram: lighter, more editorial --- */
.arch-diagram {
  padding: var(--space-10) var(--space-8);
  background-color: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin: var(--space-8) 0;
}

.arch-diagram__title { color: var(--text-muted); }

.arch-tier { border-bottom-color: var(--line-soft); }
.arch-tier__label { color: var(--text-muted); }

.arch-node {
  background-color: var(--surface-1);
  border-color: var(--line-medium);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease, color 150ms ease;
}

.arch-node:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.arch-node--accent {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.arch-node--dark,
.arch-node--platform {
  background-color: var(--surface-3);
  border-color: var(--line-medium);
  color: var(--text-secondary);
}

/* --- .workflow-steps: refined separators, accent step --- */
.workflow-steps {
  border-color: var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.workflow-step {
  background-color: var(--surface-2);
  border-right-color: var(--line-soft);
}

.workflow-step:last-child { border-right: none; }

.workflow-step__num { color: var(--text-muted); }
.workflow-step__title { color: var(--text-primary); }

.workflow-step--active {
  background-color: var(--accent-light);
  border-left-color: var(--accent);
}

.workflow-step--active .workflow-step__title { color: var(--text-primary); }

/* vertical variant reads as a clean rail */
.workflow-steps--vertical .workflow-step {
  background-color: transparent;
  border-bottom-color: var(--line-soft);
}

/* --- .process-flow: lighter, less heavy --- */
.process-flow {
  border-color: var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.process-step {
  background-color: var(--surface-2);
  border-right-color: var(--line-soft);
}

.process-step:last-child { border-right: none; }

/* --- .flow-diagram: refined nodes/arrows --- */
.flow-diagram {
  border-color: var(--line);
  padding: var(--space-8) 0;
}

.flow-node__box {
  background-color: var(--surface-1);
  border-color: var(--line-medium);
  border-radius: var(--radius-sm);
}

.flow-node__box--accent {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   LIFECYCLE RAIL
   Horizontal flow of phase markers (used on dark bands where
   a sequence of states needs to read as one connected story).
   ============================================================ */

.lifecycle-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-2);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lifecycle-rail__phase {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.95em;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background-color: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.lifecycle-rail__phase::before {
  content: attr(data-num);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lifecycle-rail__phase--accent {
  color: var(--accent);
  border-color: var(--accent-mid);
  background-color: var(--accent-light);
}
.lifecycle-rail__phase--accent::before { color: var(--accent); }

.lifecycle-rail__sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1;
}

/* ---- Canonical lifecycle-rail item structure ----
   Each item carries an index marker, an optional title and an
   optional body. This is the structured companion to the compact
   __phase pill above - use whichever fits the content. */

.lifecycle-rail__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0.45em 0.95em;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background-color: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.lifecycle-rail__index {
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lifecycle-rail__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  line-height: 1.2;
}

.lifecycle-rail__body {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.3;
}

.lifecycle-rail__item--accent {
  color: var(--accent);
  border-color: var(--accent-mid);
  background-color: var(--accent-light);
}
.lifecycle-rail__item--accent .lifecycle-rail__index { color: var(--accent); }

/* Dark-band variants for the canonical item structure. */
.dark-band .lifecycle-rail__item {
  background-color: var(--surface-dark-2);
  border-color: var(--line-on-dark-soft);
  color: var(--text-on-dark-soft);
}
.dark-band .lifecycle-rail__index { color: var(--text-on-dark-muted); }
.dark-band .lifecycle-rail__title { color: var(--text-on-dark); }
.dark-band .lifecycle-rail__body { color: var(--text-on-dark-muted); }

.dark-band .lifecycle-rail__item--accent {
  background-color: var(--accent-light);
  border-color: var(--accent-mid);
  color: var(--accent);
}
.dark-band .lifecycle-rail__item--accent .lifecycle-rail__index { color: var(--accent); }
.dark-band .lifecycle-rail__item--accent .lifecycle-rail__title { color: var(--accent); }

.dark-band .lifecycle-rail {
  border-color: var(--line-on-dark);
}

.dark-band .lifecycle-rail__phase {
  background-color: var(--surface-dark-2);
  border-color: var(--line-on-dark-soft);
  color: var(--text-on-dark-soft);
}

.dark-band .lifecycle-rail__phase::before { color: var(--text-on-dark-muted); }

.dark-band .lifecycle-rail__phase--accent {
  background-color: var(--accent-light);
  border-color: var(--accent-mid);
  color: var(--accent);
}
.dark-band .lifecycle-rail__phase--accent::before { color: var(--accent); }

.dark-band .lifecycle-rail__sep { color: var(--text-on-dark-muted); }

/* ============================================================
   MOBILE / OVERFLOW GUARDS
   ============================================================ */

.flow-rail,
.arch-stack,
.cap-rows,
.progression,
.id-story,
.arch-diagram,
.workflow-steps,
.process-flow,
.flow-diagram {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 540px) {
  .progression { padding: var(--space-5); }
  .arch-diagram { padding: var(--space-6) var(--space-5); }
}
/* ============================================================
   GRID REFINEMENTS (2026 visual-system upgrade)
   Soften the heavy .modules-grid / .product-matrix / .feat-rows
   box system so it reads as one editorial composition rather
   than a wall of bordered cells. Outer borders removed, inner
   dividers softened, subtle hover affordance added.
   ============================================================ */

.modules-grid,
.product-matrix {
  border: none;
}

.module-cell,
.product-matrix__cell {
  border-right-color: var(--line-soft);
  border-bottom-color: var(--line-soft);
  position: relative;
  transition: background-color 180ms ease;
}

.module-cell:hover,
.product-matrix__cell:hover {
  background-color: var(--surface-2);
}

.module-cell__tag,
.product-matrix__label {
  color: var(--accent);
}

.module-cell__title,
.product-matrix__title {
  letter-spacing: var(--tracking-snug);
}

/* Refined feat-row: cleaner top divider, accent label */
.feat-rows {
  border-top: 1px solid var(--line);
}

.feat-row {
  border-bottom-color: var(--line-soft);
}

.feat-row__label {
  color: var(--accent);
}

/* Hover lift on feat-row left meta */
.feat-row__label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background-color: var(--accent);
  vertical-align: middle;
  margin-right: 0.6em;
  opacity: 0.6;
}

/* ============================================================
   MATERIAL VISUAL DEPARTURE - COMPOSITION FAMILIES
   These are not restyles of flow-rail / arch-stack / lifecycle-rail.
   They replace diagram UI with editorial enterprise storytelling.
   ============================================================ */

/* ============================================================
   A. EDITORIAL JOURNEY
   Alternating left/right stages on a continuous orange line.
   Oversized faint numerals. No cards. No status pills.
   ============================================================ */

.editorial-journey {
  position: relative;
  padding: var(--space-8) 0 var(--space-4);
  max-width: 100%;
}

.editorial-journey__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent) 8%,
    var(--accent) 92%,
    transparent 100%
  );
  transform: translateX(-50%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.editorial-journey__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  min-height: 11rem;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  margin: 0;
}

.editorial-journey__stage:nth-child(odd of .editorial-journey__stage) .editorial-journey__content {
  grid-column: 1;
  text-align: right;
  justify-self: end;
  padding-right: var(--space-10);
}

.editorial-journey__stage:nth-child(odd of .editorial-journey__stage) .editorial-journey__annotation {
  grid-column: 2;
  justify-self: start;
  padding-left: var(--space-10);
}

.editorial-journey__stage:nth-child(even of .editorial-journey__stage) .editorial-journey__content {
  grid-column: 2;
  text-align: left;
  justify-self: start;
  padding-left: var(--space-10);
}

.editorial-journey__stage:nth-child(even of .editorial-journey__stage) .editorial-journey__annotation {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  padding-right: var(--space-10);
}

/* Fallback without :nth-child(of) for broader support - use modifiers */
.editorial-journey__stage--left .editorial-journey__content {
  grid-column: 1;
  text-align: right;
  justify-self: end;
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}
.editorial-journey__stage--left .editorial-journey__annotation {
  grid-column: 2;
  justify-self: start;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.editorial-journey__stage--right .editorial-journey__content {
  grid-column: 2;
  text-align: left;
  justify-self: start;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.editorial-journey__stage--right .editorial-journey__annotation {
  grid-column: 1;
  justify-self: end;
  text-align: right;
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}

.editorial-journey__number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.editorial-journey__content {
  position: relative;
  z-index: 2;
  max-width: 28rem;
}

.editorial-journey__title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}

.editorial-journey__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin: 0;
}

.editorial-journey__annotation {
  position: relative;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 12rem;
}

.editorial-journey__annotation::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--accent);
  margin-bottom: var(--space-3);
  opacity: 0.7;
}

.editorial-journey__stage--right .editorial-journey__annotation::before {
  margin-left: auto;
}

.editorial-journey__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--bg-main);
  border: 2px solid var(--accent);
  transform: translate(-50%, -50%);
  z-index: 3;
}

@media (max-width: 800px) {
  .editorial-journey__line { left: 1.25rem; transform: none; }
  .editorial-journey__stage,
  .editorial-journey__stage--left,
  .editorial-journey__stage--right {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding-left: 3rem;
    min-height: 0;
  }
  .editorial-journey__stage--left .editorial-journey__content,
  .editorial-journey__stage--right .editorial-journey__content,
  .editorial-journey__stage--left .editorial-journey__annotation,
  .editorial-journey__stage--right .editorial-journey__annotation {
    grid-column: 1;
    text-align: left;
    justify-self: start;
    padding: 0;
    max-width: none;
  }
  .editorial-journey__stage--right .editorial-journey__annotation::before {
    margin-left: 0;
  }
  .editorial-journey__number {
    left: 1.25rem;
    font-size: 3.5rem;
    opacity: 0.07;
  }
  .editorial-journey__dot { left: 1.25rem; }
}

/* ============================================================
   B. SYSTEM LANDSCAPE
   One topology canvas. Spatial regions. SVG connectors.
   No tier bands. No node boxes.
   ============================================================ */

.system-landscape {
  position: relative;
  width: 100%;
  margin: var(--space-8) 0;
}

.system-landscape__canvas {
  position: relative;
  width: 100%;
  min-height: clamp(28rem, 52vw, 36rem);
  background-color: var(--surface-2);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  border: none;
  overflow: hidden;
}

.system-landscape__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.system-landscape__svg path,
.system-landscape__svg line {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1;
  stroke-opacity: 0.45;
}

.system-landscape__svg .system-landscape__path-accent {
  stroke: var(--accent);
  stroke-opacity: 0.55;
  stroke-width: 1.25;
}

.system-landscape__anchor {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  padding: var(--space-5) var(--space-6);
  min-width: 10rem;
}

.system-landscape__anchor::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid var(--accent);
  opacity: 0.35;
  border-radius: 50%;
  pointer-events: none;
}

.system-landscape__anchor::after {
  content: "";
  position: absolute;
  inset: -28px;
  border: 1px solid var(--accent);
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
}

.system-landscape__anchor-mark {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background-color: var(--accent);
}

.system-landscape__anchor-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-1);
}

.system-landscape__anchor-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.04em;
}

.system-landscape__region {
  position: absolute;
  z-index: 2;
  max-width: 14rem;
}

.system-landscape__label {
  display: block;
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.system-landscape__region-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}

.system-landscape__region-body {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
}

.system-landscape__region::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-primary);
  margin-bottom: var(--space-3);
  opacity: 0.45;
}

.system-landscape__region--accent::before {
  background-color: var(--accent);
  opacity: 1;
}

/* Spatial positions - desktop */
.system-landscape__region--nw { top: 10%; left: 6%; }
.system-landscape__region--ne { top: 10%; right: 6%; text-align: right; }
.system-landscape__region--ne::before { margin-left: auto; }
.system-landscape__region--sw { bottom: 10%; left: 6%; }
.system-landscape__region--se { bottom: 10%; right: 6%; text-align: right; }
.system-landscape__region--se::before { margin-left: auto; }
.system-landscape__region--n  { top: 6%; left: 50%; transform: translateX(-50%); text-align: center; }
.system-landscape__region--n::before { margin-left: auto; margin-right: auto; }
.system-landscape__region--s  { bottom: 6%; left: 50%; transform: translateX(-50%); text-align: center; }
.system-landscape__region--s::before { margin-left: auto; margin-right: auto; }
.system-landscape__region--w  { top: 50%; left: 4%; transform: translateY(-50%); }
.system-landscape__region--e  { top: 50%; right: 4%; transform: translateY(-50%); text-align: right; }
.system-landscape__region--e::before { margin-left: auto; }

@media (max-width: 900px) {
  .system-landscape__canvas {
    min-height: 0;
    background-image: none;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .system-landscape__svg { display: none; }
  .system-landscape__anchor,
  .system-landscape__region {
    position: static;
    transform: none;
    text-align: left;
    max-width: none;
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .system-landscape__anchor::before,
  .system-landscape__anchor::after { display: none; }
  .system-landscape__region--ne::before,
  .system-landscape__region--se::before,
  .system-landscape__region--e::before,
  .system-landscape__region--n::before,
  .system-landscape__region--s::before {
    margin-left: 0;
  }
}

/* ============================================================
   C. PHASE BAND
   Continuous horizontal editorial band.
   Large typography. Rules, not cards.
   ============================================================ */

.phase-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--space-8) 0;
}

.phase-band__item {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--line);
  min-width: 0;
}

.phase-band__item:last-child { border-right: none; }

.phase-band__marker {
  display: block;
  width: 100%;
  height: 2px;
  background-color: transparent;
  margin-bottom: var(--space-5);
}

.phase-band__item--active .phase-band__marker {
  background-color: var(--accent);
}

.phase-band__label {
  display: block;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

.phase-band__index {
  display: block;
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.phase-band__item--active .phase-band__index { color: var(--accent); }

.phase-band__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
  max-width: 28ch;
}

@media (max-width: 720px) {
  .phase-band {
    grid-template-columns: 1fr;
  }
  .phase-band__item {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding: var(--space-6) 0;
  }
  .phase-band__item:last-child { border-bottom: none; }
  .phase-band__body { max-width: none; }
}

/* ============================================================
   D. TECH NARRATIVE (dark sections)
   Large lead statement + open technical columns.
   No cards. No rows. No white tiles.
   ============================================================ */

.tech-narrative {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  color: var(--text-on-dark);
}

.tech-narrative__lead {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.tech-narrative__lead-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 var(--space-6);
}

.tech-narrative__lead-body {
  font-size: var(--text-base);
  color: #c9c9c5;
  line-height: var(--leading-loose);
  margin: 0;
  max-width: 32ch;
}

.tech-narrative__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  border-top: 1px solid rgba(246, 246, 244, 0.16);
  padding-top: var(--space-8);
}

.tech-narrative__column {
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
}

.tech-narrative__column-label {
  display: block;
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(198, 90, 30, 0.35);
}

.tech-narrative__column-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: #ffffff;
  letter-spacing: var(--tracking-snug);
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}

.tech-narrative__column-body {
  font-size: var(--text-sm);
  color: #c9c9c5;
  line-height: var(--leading-loose);
  margin: 0;
}

.tech-narrative__result {
  grid-column: 1 / -1;
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4) var(--space-8);
}

.tech-narrative__result-label {
  font-size: 0.6875rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tech-narrative__result-text {
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: #ffffff;
  letter-spacing: var(--tracking-snug);
  margin: 0;
}

@media (max-width: 900px) {
  .tech-narrative {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .tech-narrative__lead { position: static; }
  .tech-narrative__columns {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ============================================================
   E. LIFECYCLE ORBIT (luxury)
   Circular / elliptical path. Product at centre.
   ============================================================ */

.lifecycle-orbit {
  position: relative;
  width: 100%;
  max-width: 52rem;
  margin: var(--space-10) auto;
  aspect-ratio: 1 / 1;
}

.lifecycle-orbit__path {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  pointer-events: none;
  z-index: 1;
}

.lifecycle-orbit__path ellipse,
.lifecycle-orbit__path circle {
  fill: none;
  stroke: var(--line-medium);
  stroke-width: 1;
}

.lifecycle-orbit__path .lifecycle-orbit__accent-arc {
  stroke: var(--accent);
  stroke-opacity: 0.55;
  stroke-width: 1.5;
  stroke-dasharray: 180 520;
}

.lifecycle-orbit__centre {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  max-width: 11rem;
}

.lifecycle-orbit__centre-mark {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 12px var(--accent-light);
}

.lifecycle-orbit__centre-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.lifecycle-orbit__centre-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
  line-height: var(--leading-normal);
}

.lifecycle-orbit__item {
  position: absolute;
  z-index: 2;
  max-width: 9rem;
  text-align: center;
}

.lifecycle-orbit__item-label {
  display: block;
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.lifecycle-orbit__item-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
  margin: 0;
  line-height: 1.3;
}

.lifecycle-orbit__item::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background-color: var(--bg-main);
  border: 1.5px solid var(--accent);
}

/* Five positions around the ellipse */
.lifecycle-orbit__item--1 { top: 4%; left: 50%; transform: translateX(-50%); }
.lifecycle-orbit__item--2 { top: 28%; right: 2%; }
.lifecycle-orbit__item--3 { bottom: 12%; right: 12%; }
.lifecycle-orbit__item--4 { bottom: 12%; left: 12%; }
.lifecycle-orbit__item--5 { top: 28%; left: 2%; }

@media (max-width: 720px) {
  .lifecycle-orbit {
    aspect-ratio: auto;
    max-width: none;
  }
  .lifecycle-orbit__path { display: none; }
  .lifecycle-orbit__centre,
  .lifecycle-orbit__item {
    position: static;
    transform: none;
    max-width: none;
    text-align: left;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .lifecycle-orbit__centre-mark,
  .lifecycle-orbit__item::before {
    margin-left: 0;
  }
}

/* ============================================================
   DOCUMENT SPECIMEN + VERTICAL STAGES (secure-doc)
   ============================================================ */

.doc-verify {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin: var(--space-8) 0;
}

.doc-verify__specimen {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  min-height: 22rem;
}

.doc-verify__specimen-label {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  display: block;
}

.doc-verify__specimen-card {
  position: relative;
  border: 1px solid var(--line-medium);
  padding: var(--space-8) var(--space-6);
  background-color: transparent;
}

.doc-verify__specimen-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.doc-verify__specimen-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.doc-verify__nfc {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-6);
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-verify__nfc::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
}

.doc-verify__stages {
  position: relative;
  padding-left: var(--space-8);
  border-left: 1px solid var(--line);
}

.doc-verify__stage {
  position: relative;
  padding: 0 0 var(--space-10);
}

.doc-verify__stage:last-child { padding-bottom: 0; }

.doc-verify__stage::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-8) - 4px);
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-main);
  border: 1.5px solid var(--accent);
}

.doc-verify__stage-index {
  display: block;
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.doc-verify__stage-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  letter-spacing: var(--tracking-snug);
  margin: 0 0 var(--space-2);
}

.doc-verify__stage-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin: 0;
  max-width: 42ch;
}

@media (max-width: 800px) {
  .doc-verify { grid-template-columns: 1fr; }
  .doc-verify__specimen { min-height: 0; }
}

/* ============================================================
   TURNKEY LIFECYCLE ARC (full-width dark or light)
   ============================================================ */

.identity-arc {
  position: relative;
  padding: var(--space-10) 0;
}

.identity-arc__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
  position: relative;
  z-index: 2;
}

.identity-arc__stage {
  text-align: center;
  padding: 0 var(--space-4);
}

.identity-arc__stage-mark {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background-color: var(--accent);
}

.identity-arc__stage-label {
  display: block;
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.identity-arc__stage-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  line-height: 1.2;
}

.identity-arc__stage-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin: 0 auto;
  max-width: 28ch;
}

.identity-arc__svg {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 2.25rem;
  height: 40px;
  width: 80%;
  z-index: 1;
  pointer-events: none;
}

.identity-arc__svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-opacity: 0.45;
}

.identity-arc__layer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: start;
}

.identity-arc__layer-label {
  font-size: 0.625rem;
  font-weight: var(--weight-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.35rem;
}

.identity-arc__layer-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin: 0;
  max-width: 60ch;
}

.dark-band .identity-arc__stage-label { color: rgba(246,246,244,0.45); }
.dark-band .identity-arc__stage-title { color: #ffffff; }
.dark-band .identity-arc__stage-body { color: #c9c9c5; }
.dark-band .identity-arc__layer { border-top-color: rgba(246,246,244,0.16); }
.dark-band .identity-arc__layer-body { color: #c9c9c5; }

@media (max-width: 720px) {
  .identity-arc__svg { display: none; }
  .identity-arc__row { grid-template-columns: 1fr; gap: var(--space-10); }
  .identity-arc__stage { text-align: left; padding: 0; }
  .identity-arc__stage-mark { margin-left: 0; }
  .identity-arc__stage-body { margin: 0; max-width: none; }
  .identity-arc__layer { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .editorial-journey__line,
  .lifecycle-orbit__path .lifecycle-orbit__accent-arc {
    animation: none;
  }
}
