/* =========================================================
   Design Systems — strategy page
   Editorial, dark. Namespaced .ds-* to avoid collisions.
   Reuses case.css for nav / footer / theme toggle.
   ========================================================= */

html { scroll-behavior: smooth; }
/* page-scoped: the full-bleed hero grid must never create a horizontal scrollbar.
   Clip on <html> (the real scroller) — body clip alone doesn't stop the page from
   scrolling sideways when 100vw exceeds the content width by the scrollbar's width. */
html, body { overflow-x: clip; max-width: 100%; }
/* keep nav + footer identical to the main site pages (style.css uses these values) */
footer { padding: 32px; }
.footer-content { max-width: 1300px; }

/* ---------- Light-theme legibility fixes (site defaults to light) ---------- */
[data-theme="light"] .ds-title em { color: rgba(0, 0, 0, 0.72); }
[data-theme="light"] .ds-eyebrow { color: rgba(0, 0, 0, 0.5); }
[data-theme="light"] .ds-kicker { color: rgba(0, 0, 0, 0.5); }
[data-theme="light"] .ds-chip { color: rgba(0, 0, 0, 0.72); }
[data-theme="light"] .ds-life-num { color: rgba(0, 0, 0, 0.45); }
[data-theme="light"] .ds-sys-role { color: rgba(0, 0, 0, 0.55); }
[data-theme="light"] .ds-metric-label { color: rgba(0, 0, 0, 0.58); }
[data-theme="light"] .ds-ai-tools span { color: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .ds-shot-wide img { background: #f4f4f4; }

.ds-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
}

/* Override case.css global `p { display: flex }` */
.ds-main p { display: block; gap: 0; }

.ds-main h1, .ds-main h2, .ds-main h3 { letter-spacing: -0.01em; }

/* signature accents per system */
:root {
  --ds-zync: #3aa6cf;     /* Zapp / Zync — light-blue tint for dark mode legibility */
  --ds-yobi: #8b5cf6;     /* YOOBIC / YOBI — purple */
  --ds-elevate: #3e7d6b;  /* 3TX / Elevate — muted sea green */
}
/* Light theme is the site default: use Zync's real brand blue #002C3C (legible on white) */
[data-theme="light"] { --ds-zync: #002C3C; }

/* ---------- Hero ---------- */
.ds-hero {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0 3rem;
  margin-bottom: 3.5rem;
}

/* graph-paper grid backdrop (component.gallery-inspired) — full-bleed, no horizontal overflow */
.ds-hero-grid {
  position: absolute;
  top: -4rem;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(80% 80% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}

.ds-hero-inner { position: relative; z-index: 1; }

[data-theme="light"] .ds-hero-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

/* ---------- System cards (hero grid directory) ---------- */
.ds-syscards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.75rem;
}

.is-zync    { --accent: var(--ds-zync); }
.is-elevate { --accent: var(--ds-elevate); }
.is-yobi    { --accent: var(--ds-yobi); }

.ds-syscard {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 150px;
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ds-syscard::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}

.ds-syscard:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, rgba(255, 255, 255, 0.02));
}

.ds-syscard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ds-syscard-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.ds-syscard-co {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  white-space: nowrap;
}

.ds-syscard-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.45;
}

.ds-syscard-stack {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}
[data-theme="light"] .ds-syscard-stack { color: color-mix(in srgb, var(--accent) 75%, #000); }

.ds-syscard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: auto;
}

.ds-syscard-arrow { color: var(--accent); transition: transform 0.2s ease; }
.ds-syscard:hover .ds-syscard-arrow { transform: translate(2px, -2px); }

[data-theme="light"] .ds-syscard { color: #111; border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.02); }
[data-theme="light"] .ds-syscard-desc { color: rgba(0,0,0,0.62); }
[data-theme="light"] .ds-syscard-meta { color: rgba(0,0,0,0.45); }

@media (max-width: 720px) {
  .ds-syscards { grid-template-columns: 1fr; }
}

.ds-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1.5rem 0;
}

.ds-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.015em;
}

.ds-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.ds-subtitle {
  font-size: 1.12rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.75rem 0;
  max-width: 90ch;
}

.ds-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ds-chip {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Section scaffolding ---------- */
.ds-section { margin: 0 0 4.5rem 0; }

.ds-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.9rem 0;
}

.ds-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.ds-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: none;
  margin: 0 0 2rem 0;
}

/* ---------- Lifecycle strip ---------- */
.ds-lifecycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.ds-life {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
}

.ds-life-num {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 0.6rem 0;
}

.ds-life h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.ds-life p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

/* ---------- System blocks ---------- */
.ds-system {
  scroll-margin-top: 92px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  background:
    radial-gradient(120% 80% at 0% 0%, var(--accent-glow, rgba(108,76,255,0.10)) 0%, rgba(255,255,255,0) 55%),
    rgba(255, 255, 255, 0.015);
  position: relative;
  overflow: hidden;
}

.ds-system::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent, #6c4cff);
}

.ds-sys-zync    { --accent: var(--ds-zync);    --accent-glow: rgba(58,166,207,0.13); }
.ds-sys-yobi    { --accent: var(--ds-yobi);    --accent-glow: rgba(139,92,246,0.13); }
.ds-sys-elevate { --accent: var(--ds-elevate); --accent-glow: rgba(62,125,107,0.16); }

.ds-sys-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.4rem;
}

.ds-sys-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
}

.ds-sys-tag {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.ds-sys-role {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.85rem 0;
}

.ds-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.ds-stack b {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

[data-theme="light"] .ds-stack { color: rgba(0, 0, 0, 0.78); }

/* Short "what the company does" intro inside each system */
.ds-company {
  display: flex;
  gap: 0.85rem;
  margin: 0 0 1.6rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.08));
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}
.ds-company b { color: var(--accent); font-weight: 600; }
[data-theme="light"] .ds-company { color: rgba(0, 0, 0, 0.74); }

/* Spotlight — a headline differentiator inside a system (e.g. Zync's AI-native build workflow) */
.ds-spotlight {
  position: relative;
  margin: 0 0 1.85rem 0;
  padding: 1.65rem 1.75rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background:
    radial-gradient(130% 130% at 0% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.02);
}
.ds-spotlight-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}
.ds-spotlight-logo { width: 22px; height: 22px; display: block; }
.ds-spotlight-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.ds-spotlight-lead {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.7rem 0;
  max-width: 40ch;
}
.ds-spotlight-body {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
  margin: 0;
  max-width: none;
}
.ds-spotlight-body strong { color: rgba(255, 255, 255, 0.92); font-weight: 600; }
[data-theme="light"] .ds-spotlight {
  background:
    radial-gradient(130% 130% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%),
    rgba(0, 0, 0, 0.015);
}
[data-theme="light"] .ds-spotlight-lead { color: #111; }
[data-theme="light"] .ds-spotlight-body { color: rgba(0, 0, 0, 0.74); }
[data-theme="light"] .ds-spotlight-body strong { color: rgba(0, 0, 0, 0.92); }

/* Toolchain — the design-engineering pipeline, shown as logo chips */
.ds-toolchain {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, rgba(255, 255, 255, 0.08));
}
.ds-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 74px;
}
.ds-tool-chip {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px -4px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease;
}
.ds-tool:hover .ds-tool-chip { transform: translateY(-3px); }
.ds-tool-chip img { width: 25px; height: 25px; display: block; }
.ds-tool-name {
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
.ds-tool-arrow {
  color: color-mix(in srgb, var(--accent) 65%, transparent);
  font-size: 1.05rem;
  margin-top: 14px;
}
[data-theme="light"] .ds-tool-name { color: rgba(0, 0, 0, 0.58); }

/* System map / org chart (YOBI architecture) */
.ds-org { margin: 0 0 1.85rem 0; display: flex; flex-direction: column; }
.ds-org-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.ds-org-pillar {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 12px;
  padding: 0.95rem 0.9rem;
  text-align: center;
}
.ds-org-pillar-name { display: block; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; }
.ds-org-pillar-sub { display: block; font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.35rem; line-height: 1.45; }
.ds-org-link { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.15rem 0; }
.ds-org-link::before, .ds-org-link::after {
  content: ""; width: 2px; height: 13px;
  background: color-mix(in srgb, var(--accent) 38%, transparent);
}
.ds-org-link span {
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); font-weight: 600; text-align: center;
}
.ds-org-foundation {
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 14px;
  padding: 1.05rem 1rem;
  text-align: center;
}
.ds-org-foundation-title { display: block; font-weight: 700; font-size: 1.02rem; color: var(--accent); }
.ds-org-foundation-sub { display: block; font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.3rem; }
.ds-org-platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.ds-org-platform {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.ds-org-cap { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin: 0.95rem 0 0; text-align: center; }
[data-theme="light"] .ds-org-pillar-sub,
[data-theme="light"] .ds-org-foundation-sub,
[data-theme="light"] .ds-org-link span,
[data-theme="light"] .ds-org-cap { color: rgba(0, 0, 0, 0.55); }
[data-theme="light"] .ds-org-platform { border-color: rgba(0, 0, 0, 0.12); background: rgba(0, 0, 0, 0.02); }
@media (max-width: 620px) { .ds-org-pillars { grid-template-columns: 1fr; } }

/* AI card header — pull-quote beside the ambient video */
.ds-ai-top {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.85rem;
  align-items: center;
  margin-bottom: 2.25rem;
}
.ds-ai-top .ds-ai-principle { margin: 0; }

.ds-ai-video {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 0;
  background: #0b0b0b;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55);
}
.ds-ai-video video { width: 100%; height: auto; display: block; }
[data-theme="light"] .ds-ai-video { border-color: rgba(0, 0, 0, 0.1); background: #f4f4f4; box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.26); }

.ds-ai-note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.66);
  max-width: none;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.ds-ai-note strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
[data-theme="light"] .ds-ai-note { color: rgba(0, 0, 0, 0.66); }
[data-theme="light"] .ds-ai-note strong { color: rgba(0, 0, 0, 0.9); }

@media (max-width: 760px) {
  .ds-ai-top { grid-template-columns: 1fr; gap: 1.3rem; }
}

/* Under the hood — design-system mechanics (tokens, naming, props, governance) */
.ds-tiers {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.55rem;
  margin: 0 0 1.5rem 0;
}
.ds-tier {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ds-tier-label { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ds-zync); }
.ds-tier code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.8rem; color: #fff; word-break: break-word; }
.ds-tier-note { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); line-height: 1.4; }
.ds-tier-arrow { align-self: center; color: rgba(255, 255, 255, 0.35); font-size: 1.1rem; }
[data-theme="light"] .ds-tier { background: rgba(0, 0, 0, 0.02); border-color: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .ds-tier code { color: #111; }
[data-theme="light"] .ds-tier-note { color: rgba(0, 0, 0, 0.5); }
[data-theme="light"] .ds-tier-arrow { color: rgba(0, 0, 0, 0.35); }

.ds-craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ds-craft {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
  background: rgba(255, 255, 255, 0.015);
}
.ds-craft h4 { font-size: 1rem; margin: 0 0 0.5rem; font-weight: 600; }
.ds-craft p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.66); margin: 0 0 0.85rem; line-height: 1.55; }
.ds-craft-code {
  display: block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  word-break: break-word;
}
[data-theme="light"] .ds-craft { background: rgba(0, 0, 0, 0.015); border-color: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .ds-craft p { color: rgba(0, 0, 0, 0.66); }
[data-theme="light"] .ds-craft-code { color: rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.1); }

/* lightweight code syntax colours (legible on both themes) */
.ds-c-prop { color: #3b82f6; }
.ds-c-val { color: #16a34a; }
.ds-c-tag { color: #d97706; }
.ds-c-red { color: #dc2626; }
.ds-c-punct { opacity: 0.5; }

@media (max-width: 820px) {
  .ds-craft-grid { grid-template-columns: 1fr 1fr; }
  .ds-tiers { grid-template-columns: 1fr; }
  .ds-tier-arrow { transform: rotate(90deg); }
}
@media (max-width: 520px) { .ds-craft-grid { grid-template-columns: 1fr; } }

/* White-label theming demo (YOBI) — same component, different brand token */
.ds-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1rem 0; }
.ds-brand-hm { --brand: #CC071E; }
.ds-brand-boots { --brand: #1B448E; }
.ds-brand {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 1.1rem;
}
[data-theme="light"] .ds-brand { border-color: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.02); }
.ds-brand-screen {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.ds-brand-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--brand);
  border-radius: 8px; padding: 0.6rem 0.85rem;
}
.ds-brand-logo { height: 26px; width: auto; display: block; }
.ds-brand-bar svg { width: 16px; height: 16px; color: #fff; }
.ds-brand-progrow { display: flex; align-items: center; gap: 0.65rem; }
.ds-brand-progrow .ds-brand-progress { flex: 1; }
.ds-brand-pct { font-size: 0.72rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.ds-brand-chip {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 600;
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border-radius: 99px; padding: 0.18rem 0.55rem;
}
.ds-brand-progress { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 16%, #fff); overflow: hidden; }
.ds-brand-progress > i { display: block; height: 100%; width: 60%; background: var(--brand); border-radius: 99px; }
.ds-brand-btn {
  align-self: flex-start;
  background: var(--brand); color: #fff;
  border: none; border-radius: 8px;
  padding: 0.5rem 0.85rem; font-weight: 600; font-size: 0.8rem;
  font-family: inherit;
}
.ds-brand-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.85rem; flex-wrap: wrap; }
.ds-brand-name { font-weight: 600; font-size: 0.92rem; }
.ds-brand-token { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.7rem; color: var(--brand); }
[data-theme="light"] .ds-brand-boots .ds-brand-token { color: #05054B; }
@media (max-width: 560px) { .ds-brands { grid-template-columns: 1fr; } }

.ds-sys-summary {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.75rem 0;
  max-width: none;
}

/* build / scale / maintain rows inside a system */
.ds-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.ds-pillar h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.7rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ds-pillar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-pillar li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.ds-pillar li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* metrics row */
.ds-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ds-metric { min-width: 120px; }

.ds-metric-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.ds-metric-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 0.4rem;
  max-width: 22ch;
}

/* ---------- Atomic Design methodology strip (thesis) ---------- */
.ds-atomic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.ds-atom {
  --c: #8b5cf6;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.35rem 1.2rem 1.3rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 11%, transparent) 0%, rgba(255, 255, 255, 0.012) 46%);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* progressive cool-to-warm ramp across the five stages */
.ds-atom.c1 { --c: #3b82f6; }
.ds-atom.c2 { --c: #6366f1; }
.ds-atom.c3 { --c: #8b5cf6; }
.ds-atom.c4 { --c: #a855f7; }
.ds-atom.c5 { --c: #d6469a; }

.ds-atom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--c), transparent 85%);
}

.ds-atom:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--c) 65%, transparent);
}

.ds-atom-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.05rem;
}

.ds-atom-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
}
.ds-atom-glyph svg { width: 23px; height: 23px; display: block; }

.ds-atom-num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 65%, #fff);
}

.ds-atom-stage {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 0.55rem 0;
}

.ds-atom-layer {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  margin: 0 0 0.75rem 0;
}

.ds-atom-desc {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  line-height: 1.5;
}

[data-theme="light"] .ds-atom {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, #fff) 0%, rgba(0, 0, 0, 0.012) 46%);
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .ds-atom-stage { color: #111; }
[data-theme="light"] .ds-atom-desc { color: rgba(0, 0, 0, 0.6); }
[data-theme="light"] .ds-atom-num { color: color-mix(in srgb, var(--c) 75%, #000); }

/* ---------- Per-system Atomic Design callout ---------- */
.ds-method {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 1.75rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.ds-method-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.ds-method p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0.1rem 0 0 0;
}

.ds-method strong { color: var(--accent); font-weight: 600; }

[data-theme="light"] .ds-method p { color: rgba(0,0,0,0.72); }

/* ---------- Zync color token scale ---------- */
.ds-tokens {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  margin: 0 0 1.75rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.ds-token {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.4rem 0.35rem;
}

.ds-token span {
  font-size: 0.58rem;
  line-height: 1.3;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

.ds-token-step { font-weight: 700; opacity: 0.85; }
.ds-token-hex { opacity: 0.7; }

.ds-tokens-caption {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin: -1.1rem 0 1.75rem 0.2rem;
}

[data-theme="light"] .ds-tokens-caption { color: rgba(0,0,0,0.5); }

@media (max-width: 860px) {
  .ds-atomic { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .ds-atomic { grid-template-columns: 1fr 1fr; }
  .ds-token span { font-size: 0.5rem; }
}

/* ---------- System image gallery ---------- */
.ds-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin: 0 0 1.75rem 0;
}

.ds-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.ds-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.ds-shot:hover img { transform: scale(1.02); }

/* multi-image grid (YOBI foundations) */
.ds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 1.75rem 0;
}
.ds-grid .ds-shot img { aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .ds-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .ds-grid { grid-template-columns: 1fr; } }

.ds-shot-wide { margin: 0 0 1.75rem 0; }
.ds-shot-wide img { height: auto; object-fit: contain; max-height: 600px; background: #0b0b0b; }
[data-theme="light"] .ds-shot-wide img { background: #f4f4f4; }

.ds-shot figcaption {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.6rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .ds-shot { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.02); }
[data-theme="light"] .ds-shot figcaption { color: rgba(0,0,0,0.55); border-top-color: rgba(0,0,0,0.07); }

/* Lightbox (reuses pattern, scoped) */
.ds-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ds-lightbox.open { display: flex; }
.ds-lightbox img { max-width: 95%; max-height: 92%; border-radius: 8px; }
.ds-lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  color: #fff; cursor: pointer; line-height: 0;
}

@media (max-width: 700px) {
  .ds-gallery { grid-template-columns: 1fr; }
}

/* ---------- AI section ---------- */
.ds-ai {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(108,76,255,0.10) 0%, rgba(255,255,255,0) 55%),
    rgba(255, 255, 255, 0.015);
}

.ds-ai-principle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  border-left: 2px solid var(--ds-zync);
  padding-left: 1.25rem;
  margin: 0 0 2rem 0;
  max-width: 50ch;
}

.ds-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ds-ai-card h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.ds-ai-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.ds-ai-card .ds-ai-do {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-yobi);
  margin-top: 0.6rem;
}

.ds-ai-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ds-ai-tools span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.ds-ai-tools img {
  height: 26px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(100%) brightness(1.6);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.ds-ai-tools img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

/* ---------- Closing ---------- */
.ds-close {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 3.5rem;
  margin-top: 1rem;
}

.ds-close h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  max-width: 24ch;
  margin-inline: auto;
}

.ds-close p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
  margin: 0 auto 2rem;
}

.ds-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ds-cta:hover { transform: translateY(-2px); opacity: 0.9; }

.ds-cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-left: 0.5rem;
}

/* ---------- Light theme overrides ---------- */
[data-theme="light"] .ds-main { color: #111; }
[data-theme="light"] .ds-title,
[data-theme="light"] .ds-h2,
[data-theme="light"] .ds-sys-name,
[data-theme="light"] .ds-close h2 { color: #111; }
[data-theme="light"] .ds-subtitle,
[data-theme="light"] .ds-lead,
[data-theme="light"] .ds-sys-summary,
[data-theme="light"] .ds-close p { color: rgba(0,0,0,0.72); }
[data-theme="light"] .ds-chip,
[data-theme="light"] .ds-life,
[data-theme="light"] .ds-system,
[data-theme="light"] .ds-ai { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.12); }
[data-theme="light"] .ds-pillar li,
[data-theme="light"] .ds-ai-card p,
[data-theme="light"] .ds-life p,
[data-theme="light"] .ds-metric-label { color: rgba(0,0,0,0.65); }
[data-theme="light"] .ds-ai-principle { color: rgba(0,0,0,0.85); }
[data-theme="light"] .ds-cta { background: #000; color: #fff; }
[data-theme="light"] .ds-cta-secondary { background: transparent; color: #111; border-color: rgba(0,0,0,0.25); }
[data-theme="light"] .ds-ai-tools img { filter: grayscale(100%) brightness(0.6); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .ds-lifecycle { grid-template-columns: repeat(2, 1fr); }
  .ds-pillars { grid-template-columns: 1fr; }
  .ds-ai-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ds-main { padding: 5rem 1.1rem 3rem; }
  .ds-lifecycle { grid-template-columns: 1fr; }
  .ds-system, .ds-ai { padding: 1.6rem; }
  .ds-sys-name { font-size: 1.5rem; }
}
