/* ============================================================
   COMPONENTS — Buttons, Cards, Nav, Hero, Footer
   ============================================================ */

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 28px;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: #1E293B;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--text-primary);
  background: rgba(15, 23, 42, 0.03);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

.btn--accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
}

.btn--lg {
  padding: 16px 36px;
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
}

.btn__icon {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* ── Navbar ──────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-nav);
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.nav.is-scrolled {
  background: var(--surface-overlay);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  flex-shrink: 0;
  text-transform: uppercase;
}

.nav__brand span {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
}

.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--text-primary);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  margin-left: var(--sp-3);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__cta:hover {
  background: #1E293B;
  box-shadow: var(--shadow-sm);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav__toggle-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.nav__toggle-line::before,
.nav__toggle-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__toggle-line::before { top: -6px; }
.nav__toggle-line::after { top: 6px; }

.nav__toggle.is-active .nav__toggle-line {
  background: transparent;
}

.nav__toggle.is-active .nav__toggle-line::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle.is-active .nav__toggle-line::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--surface);
  z-index: var(--z-overlay);
  padding: var(--sp-8) var(--gutter);
  flex-direction: column;
  gap: var(--sp-2);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.nav__mobile.is-open {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-link {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-subtle);
  display: block;
}

/* ── Hero ────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Gradient mesh */
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% {
    background:
      radial-gradient(ellipse 80% 60% at 20% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 70%),
      radial-gradient(ellipse 60% 50% at 80% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
      radial-gradient(ellipse 50% 40% at 50% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
  }
  50% {
    background:
      radial-gradient(ellipse 70% 50% at 40% 30%, rgba(37, 99, 235, 0.10) 0%, transparent 70%),
      radial-gradient(ellipse 50% 60% at 70% 60%, rgba(99, 102, 241, 0.07) 0%, transparent 60%),
      radial-gradient(ellipse 60% 30% at 30% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse 60% 70% at 60% 50%, rgba(37, 99, 235, 0.07) 0%, transparent 70%),
      radial-gradient(ellipse 80% 40% at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 40% 50% at 70% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
  }
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

/* Diagram background (replaces floating UI elements) */
.hero__diagram {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  animation: diagramFloat 16s ease-in-out infinite;
}

.hero__diagram svg {
  width: 100%;
  height: 100%;
}

.hero__diagram .diagram-node {
  stroke: var(--border-strong);
  fill: none;
  stroke-width: 1;
}

.hero__diagram .diagram-line {
  stroke: var(--border-strong);
  fill: none;
  stroke-width: 0.5;
  stroke-dasharray: 4 4;
}

@keyframes diagramFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Clean hero variant — no gradient, no grid, pure whitespace confidence */
.hero--clean {
  background: var(--page-bg);
  padding-top: var(--header-height);
}

.hero--clean .hero__bg {
  display: none;
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  max-width: 700px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--sp-6);
  padding: 6px 14px;
  background: var(--accent-subtle);
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.1);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.hero__name {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: var(--sp-8);
  color: #1A1F2B;
  max-width: 680px;
}

.hero__accent {
  color: #64707E;
  font-weight: 700;
}

.hero__meta {
  font-size: var(--text-xs);
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.hero__trust {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  margin-top: var(--sp-8);
}

.hero__desc {
  font-size: var(--text-base);
  color: #64707E;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--sp-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-10);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  animation: scrollHint 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ── Service Cards ───────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.service-card {
  padding: var(--sp-8) var(--sp-6);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all var(--duration-slow) var(--ease-out);
  cursor: default;
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  color: var(--accent);
  transition: all var(--duration-slow) var(--ease-out);
}

.service-card:hover .service-card__icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  letter-spacing: var(--tracking-tight);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Platforms Intro ─────────────────────────────── */

.platforms-intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
}

/* ── System Showcase ─────────────────────────────── */

.sys {
  padding: var(--sp-section) 0;
  position: relative;
  /* Brand layer — overridden per platform */
  --sys-accent: var(--text-primary);
  --sys-accent-subtle: rgba(0, 0, 0, 0.04);
  --sys-bg: transparent;
  --sys-text: var(--text-primary);
  --sys-text-secondary: var(--text-secondary);
  --sys-text-muted: var(--text-muted);
  --sys-border: var(--border-subtle);

  background: var(--sys-bg);
  color: var(--sys-text);

  /* Smooth gradient edges — no hard color cuts between sections */
  background-image:
    linear-gradient(to bottom, var(--page-bg), transparent 64px),
    linear-gradient(to top, var(--page-bg), transparent 64px);
}

/* ── ReggeliGO — warm red ─────────────────────────── */
.sys--rgo {
  --sys-accent: #D93025;
  --sys-accent-subtle: rgba(217, 48, 37, 0.06);
  --sys-bg: #FDF6F5;
  --sys-text: #1A0F0E;
  --sys-text-secondary: #6B4440;
  --sys-text-muted: #A08078;
  --sys-border: rgba(217, 48, 37, 0.08);
}

/* ── MOVO — cool blue ─────────────────────────────── */
.sys--movo {
  --sys-accent: #2563EB;
  --sys-accent-subtle: rgba(37, 99, 235, 0.05);
  --sys-bg: #F5F8FF;
  --sys-text: #0F172A;
  --sys-text-secondary: #3B5278;
  --sys-text-muted: #7B92B0;
  --sys-border: rgba(37, 99, 235, 0.06);
}

/* ── DORVO — warm bronze ──────────────────────────── */
.sys--dorvo {
  --sys-accent: #A67C52;
  --sys-accent-subtle: rgba(166, 124, 82, 0.06);
  --sys-bg: #FAF8F5;
  --sys-text: #1C1712;
  --sys-text-secondary: #6B5D4F;
  --sys-text-muted: #9E8E7D;
  --sys-border: rgba(166, 124, 82, 0.08);
}

.sys__header {
  margin-bottom: var(--sp-12);
}

.sys__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-5);
}

.sys__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-3);
  color: var(--sys-accent);
}

.sys__name {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-4);
}

.sys__question {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  max-width: 560px;
}

/* ── Segmented Control ───────────────────────────── */

.sys__viewctl {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-10);
}

.sys__viewbtn {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  color: inherit;
  opacity: 0.5;
}

.sys__viewbtn:hover {
  opacity: 0.75;
}

.sys__viewbtn--active {
  opacity: 1;
  font-weight: 600;
}

/* Segmented control uses brand tokens */
.sys__viewctl { background: var(--sys-accent-subtle); }
.sys__viewbtn--active { background: var(--sys-border); }

/* ── Ecosystem Visualization ─────────────────────── */

.eco {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto var(--sp-10);
}

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

.eco__edge {
  stroke: rgba(var(--eco-rgb, 128,128,128), 0.1);
  stroke-width: 1;
  transition: stroke var(--duration-slow) var(--ease-out);
}

.eco__edge--active {
  stroke: rgba(var(--eco-rgb, 128,128,128), 0.35);
}

.eco__node {
  fill: rgba(var(--eco-rgb, 128,128,128), 0.08);
  stroke: rgba(var(--eco-rgb, 128,128,128), 0.2);
  stroke-width: 1;
  transition: all var(--duration-normal) var(--ease-out);
}

.eco__node--active {
  fill: rgba(var(--eco-rgb, 128,128,128), 0.5);
  stroke: rgba(var(--eco-rgb, 128,128,128), 0.8);
}

.eco__ring {
  fill: none;
  stroke: transparent;
  stroke-width: 1;
}

.eco__ring--pulse {
  animation: ecoPulse 0.8s var(--ease-out) forwards;
}

@keyframes ecoPulse {
  0%   { stroke: rgba(var(--eco-rgb, 128,128,128), 0.5); r: inherit; }
  100% { stroke: rgba(var(--eco-rgb, 128,128,128), 0);   r: calc(inherit + 12); }
}

/* Fallback: the ring just appears briefly since animating r is tricky */
.eco__ring--pulse {
  stroke: rgba(var(--eco-rgb, 128,128,128), 0.3);
  opacity: 0;
  animation: ecoPulseSimple 0.8s var(--ease-out) forwards;
}

@keyframes ecoPulseSimple {
  0%   { opacity: 0.6; }
  100% { opacity: 0; }
}

.eco__label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  text-anchor: middle;
  fill: rgba(var(--eco-rgb, 128,128,128), 0.25);
  transition: fill var(--duration-normal) var(--ease-out);
}

.eco__label--active {
  fill: rgba(var(--eco-rgb, 128,128,128), 0.7);
}

/* Micro-labels (HTML overlay) */
.eco__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.eco__micro {
  position: absolute;
  transform: translate(-50%, -100%) translateY(-20px);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.eco__micro--visible {
  opacity: 1;
}

.eco__micro--fade {
  opacity: 0 !important;
  transition: opacity 1.5s var(--ease-out);
}

/* Per-platform ecosystem colors via CSS custom property */
.sys--rgo .eco  { --eco-rgb: 217,48,37; }
.sys--rgo .eco__micro { background: rgba(217,48,37,0.12); color: #D93025; }

.sys--movo .eco { --eco-rgb: 37,99,235; }
.sys--movo .eco__micro { background: rgba(37,99,235,0.1); color: #2563EB; }

.sys--dorvo .eco { --eco-rgb: 166,124,82; }
.sys--dorvo .eco__micro { background: rgba(166,124,82,0.12); color: #A67C52; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .eco__ring--pulse { animation: none; }
  .eco__node--active { transition: none; }
  .eco__edge--active { transition: none; }
}

/* ── Conversation Flow (legacy, kept for reference) ── */

.conv {
  max-width: 600px;
  margin-bottom: var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Line — one message */
.conv__line {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.conv__line--human {
  align-items: flex-start;
}

.conv__line--system {
  align-items: flex-end;
}

.conv__actor {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.4;
  padding: 0 var(--sp-4);
}

/* Message bubble */
.conv__msg {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg);
  max-width: 88%;
  text-align: left;
  border: none;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.conv__msg--static {
  cursor: default;
}

button.conv__msg {
  cursor: pointer;
  transition: opacity var(--duration-fast);
}

button.conv__msg:hover {
  opacity: 0.85;
}

button.conv__msg:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.conv__text {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.conv__line--human .conv__text {
  font-weight: 500;
}

/* "Hogyan?" affordance on expandable system messages */
.conv__expand {
  font-size: var(--text-xs);
  font-weight: 500;
  opacity: 0.4;
  transition: opacity var(--duration-fast);
}

button.conv__msg:hover .conv__expand {
  opacity: 0.65;
}

/* Detail panel */
.conv__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--duration-slow) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
  padding: 0 var(--sp-5);
  max-width: 88%;
  align-self: flex-end;
}

.conv__line--open .conv__detail {
  max-height: 300px;
  opacity: 1;
  padding: var(--sp-3) var(--sp-5) var(--sp-4);
}

.conv__detail p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  opacity: 0.55;
}

/* Bridge to architecture */
.conv__bridge {
  text-align: center;
  padding: var(--sp-10) 0 var(--sp-4);
}

.conv__bridge-text {
  font-size: var(--text-base);
  font-weight: 500;
  opacity: 0.5;
  margin-bottom: var(--sp-4);
}

.conv__bridge-btn {
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: opacity var(--duration-fast);
  color: var(--sys-accent);
  opacity: 0.6;
}

.conv__bridge-btn:hover {
  opacity: 1;
}

.conv__bridge-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ── Conversation brand colors (driven by --sys-* tokens) ── */

.conv__line--human .conv__msg {
  background: var(--sys-accent-subtle);
}

.conv__line--system .conv__msg {
  background: var(--sys-accent-subtle);
  border-left: 2px solid var(--sys-accent);
}

.conv__line--system .conv__actor {
  color: var(--sys-accent);
}

.conv__expand {
  color: var(--sys-accent);
}

.conv__detail {
  border-radius: var(--radius-md);
  background: var(--sys-accent-subtle);
}

.conv__detail p {
  color: var(--sys-text-secondary);
}

/* ── Insight Lead ────────────────────────────────── */

.sys__insight-lead {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .conv__detail {
    transition: none;
  }
  .conv__line--open .conv__detail {
    max-height: none;
  }
}

.sys__authorship {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.sys__authorship span {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ── Architecture View ────────────────────────────── */

.arch {
  margin-bottom: var(--sp-12);
}

.arch__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-6);
  opacity: 0.5;
}

.arch__layer {
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: 2px;
  border-radius: var(--radius-md);
}

.arch__layer-name {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
  opacity: 0.6;
}

.arch__layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* Node base — shared between static and interactive */
.arch__node {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  background: none;
  color: inherit;
  cursor: default;
}

/* Interactive nodes — buttons with affordance */
button.arch__node {
  cursor: pointer;
  border-color: currentColor;
  border-style: dashed;
  opacity: 0.85;
}

button.arch__node:hover {
  opacity: 1;
  border-style: solid;
  transform: translateY(-1px);
}

button.arch__node:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.arch__chevron {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.5;
  transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast);
  line-height: 1;
}

button.arch__node:hover .arch__chevron {
  opacity: 0.8;
  transform: translateX(2px);
}

/* Active state + signal ring */
.arch__node--active {
  opacity: 1 !important;
  border-style: solid !important;
  font-weight: 600;
}

.arch__node--active::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: 0;
  animation: signalRing 1.2s var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes signalRing {
  0% { opacity: 0.5; inset: -1px; }
  100% { opacity: 0; inset: -10px; }
}

/* Connected — cascading via JS stagger */
.arch__node--connected {
  opacity: 1 !important;
  border-style: solid !important;
  transition: opacity var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

/* Dimmed */
.arch__node--dimmed {
  opacity: 0.25 !important;
  transition: opacity var(--duration-slow) var(--ease-out);
}

/* ── Detail Panel ────────────────────────────────── */

.arch__detail {
  margin: var(--sp-3) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--duration-slow) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out),
              margin var(--duration-normal) var(--ease-out);
}

.arch__detail--open {
  max-height: 600px;
  opacity: 1;
}

.arch__detail-inner {
  padding: var(--sp-6);
}

.arch__detail-head {
  margin-bottom: var(--sp-4);
}

.arch__detail-how-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  display: block;
  margin-bottom: var(--sp-1);
}

.arch__detail-title {
  font-size: var(--text-md);
  font-weight: 700;
}

.arch__detail-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-5);
}

.arch__detail-section {
  margin-bottom: var(--sp-4);
}

.arch__detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
  opacity: 0.5;
}

.arch__detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.arch__detail-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.arch__detail-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.arch__detail-flow-step {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.arch__detail-arrow {
  font-size: var(--text-xs);
  opacity: 0.4;
}

/* Clickable connection tags */
.arch__detail-tag--link {
  cursor: pointer;
  border: none;
  font: inherit;
  transition: opacity var(--duration-fast);
}

.arch__detail-tag--link:hover {
  opacity: 0.7;
}

.arch__detail-tag--link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Exploration hint */
.arch__explored {
  font-size: var(--text-xs);
  font-weight: 500;
  text-align: center;
  padding: var(--sp-4) 0;
  opacity: 0.4;
  margin-top: var(--sp-6);
}

/* Per-theme detail panel colors */
.sys--rgo .arch__detail { background: rgba(228, 134, 106, 0.1); }
.sys--rgo .arch__detail-title { color: #F5E6E6; }
.sys--rgo .arch__detail-desc { color: rgba(245, 230, 230, 0.65); }
.sys--rgo .arch__detail-tag,
.sys--rgo .arch__detail-flow-step { background: rgba(228, 134, 106, 0.12); color: rgba(245, 230, 230, 0.6); }
.sys--rgo .arch__node--active { border-color: #E4866A; }
.sys--rgo .arch__node--connected { border-color: rgba(228, 134, 106, 0.5); }

.sys--movo .arch__detail { background: rgba(37, 99, 235, 0.06); }
.sys--movo .arch__detail-title { color: var(--text-primary); }
.sys--movo .arch__detail-desc { color: var(--text-secondary); }
.sys--movo .arch__detail-tag,
.sys--movo .arch__detail-flow-step { background: rgba(37, 99, 235, 0.08); color: var(--text-secondary); }
.sys--movo .arch__node--active { border-color: var(--accent); }
.sys--movo .arch__node--connected { border-color: rgba(37, 99, 235, 0.4); }

.sys--dorvo .arch__detail { background: rgba(167, 139, 250, 0.08); }
.sys--dorvo .arch__detail-title { color: #E8E5F0; }
.sys--dorvo .arch__detail-desc { color: rgba(232, 229, 240, 0.65); }
.sys--dorvo .arch__detail-tag,
.sys--dorvo .arch__detail-flow-step { background: rgba(167, 139, 250, 0.1); color: rgba(232, 229, 240, 0.6); }
.sys--dorvo .arch__node--active { border-color: #A78BFA; }
.sys--dorvo .arch__node--connected { border-color: rgba(167, 139, 250, 0.5); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .arch__detail {
    transition: none;
  }
  .arch__detail--open {
    max-height: none;
  }
  .arch__node--active::before {
    animation: none;
    display: none;
  }
  .arch__node--connected,
  .arch__node--dimmed {
    transition: none;
  }
}

.sys__insight {
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-6);
  background: var(--sys-accent-subtle);
  border-left: 3px solid var(--sys-accent);
}

.sys__insight p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--sys-text-secondary);
}

.sys__insight-lead {
  color: var(--sys-text);
}

.sys__role {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Legacy per-theme overrides replaced by --sys-* token system above */

/* ── Process Timeline ────────────────────────────── */

.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--border);
}

.process-step {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-8) 0;
  position: relative;
}

.process-step__marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  z-index: 1;
  transition: all var(--duration-slow) var(--ease-out);
}

.process-step.is-visible .process-step__marker {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px var(--accent-subtle);
}

.process-step__content {
  padding-top: var(--sp-3);
}

.process-step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Audience Pills ──────────────────────────────── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.audience-card {
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--duration-slow) var(--ease-out);
}

.audience-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.audience-card__icon {
  font-size: 28px;
  margin-bottom: var(--sp-4);
}

.audience-card__title {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.audience-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ── Why Me Grid ─────────────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-1);
}

.why-item {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border-radius: var(--radius-lg);
  transition: background var(--duration-normal);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.why-item__value {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-2);
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-item__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── About ───────────────────────────────────────── */

.about__highlight {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.about__highlight-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 640px;
}

.about__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.about__body--lead {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: 500;
  line-height: var(--leading-normal);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.about-pillar {
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

.about-pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--sp-5);
}

.about-pillar__title {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: var(--tracking-tight);
}

.about-pillar__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Contact ─────────────────────────────────────── */

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  padding: var(--sp-16);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-card__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.04em;
  line-height: var(--leading-tight);
}

.contact-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  line-height: var(--leading-relaxed);
}

.contact-card__email {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent);
  padding: var(--sp-4) var(--sp-6);
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-8);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-card__email:hover {
  background: var(--accent-light);
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.contact-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-link:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* ── Footer ──────────────────────────────────────── */

.footer {
  background: var(--surface-dark);
  color: var(--text-inverse);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-16);
}

.footer__brand {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-3);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: #94A3B8;
  max-width: 280px;
  line-height: var(--leading-normal);
}

.footer__links {
  display: flex;
  gap: var(--sp-10);
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: #64748B;
  margin-bottom: var(--sp-4);
}

.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: #94A3B8;
  padding: var(--sp-1) 0;
  transition: color var(--duration-fast);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: var(--text-xs);
  color: #475569;
}

.footer__stack {
  font-size: var(--text-xs);
  color: #334155;
  font-family: var(--font-mono);
}

/* Simplified footer variant */
.footer__inner--simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding-bottom: 0;
  margin-bottom: 0;
}

.footer__inner--simple .footer__brand {
  margin-bottom: 0;
}

.footer__email {
  font-size: var(--text-sm);
  color: #94A3B8;
  transition: color var(--duration-fast);
}

.footer__email:hover {
  color: #fff;
}

/* (Legacy case styles removed — replaced by .sys system showcase) */

/* ── Legacy Mockup UI (removed) ──────────────────── */
/* Replaced by .sys system showcase sections */

/* PLACEHOLDER — keeping selector to avoid 404 parse errors if referenced */
.case__visual--movo {
  background: linear-gradient(135deg, #F0F4FF 0%, #E8EEFF 100%);
}

.case__visual--movo .case__tag {
  color: rgba(30, 41, 59, 0.6);
  background: rgba(30, 41, 59, 0.06);
}

.case__visual--movo .mockup-bar {
  background: rgba(30, 41, 59, 0.06);
}

.case__visual--movo .mockup-dot {
  background: rgba(30, 41, 59, 0.12);
}

.case__visual--movo .case__mockup-ui {
  background: rgba(30, 41, 59, 0.08);
  border: 1px solid rgba(30, 41, 59, 0.08);
}

.case__visual--movo .mockup-line {
  background: rgba(30, 41, 59, 0.08);
}

.case__visual--movo .mockup-line--h {
  background: rgba(30, 41, 59, 0.12);
}

.case__visual--movo .mockup-stat {
  background: rgba(30, 41, 59, 0.05);
}

.case__visual--movo .mockup-chat-bubble {
  height: 24px;
  border-radius: 10px 10px 10px 2px;
  background: rgba(37, 99, 235, 0.1);
}

.case__visual--movo .mockup-chat-bubble--reply {
  border-radius: 10px 10px 2px 10px;
  background: rgba(30, 41, 59, 0.06);
  margin-left: auto;
  width: 70%;
}

.case__visual--movo .mockup-guest-card {
  height: 36px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.case__visual--movo .mockup-divider {
  height: 1px;
  background: rgba(30, 41, 59, 0.06);
  border-style: none;
  margin: 2px 0;
}

/* ReggeliGO — warm ordering theme */
.case__visual--rgo {
  background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
}

.case__visual--rgo .mockup-phone {
  width: 170px;
}

.case__visual--rgo .mockup-timeslot-row {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.case__visual--rgo .mockup-timeslot {
  flex: 1;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.case__visual--rgo .mockup-timeslot--active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
}

.case__visual--rgo .mockup-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.case__visual--rgo .mockup-product-item {
  height: 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.case__visual--rgo .mockup-product-item--tall {
  height: 52px;
}

.case__visual--rgo .mockup-cart-btn {
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  margin-top: 6px;
}

.case__visual--rgo .mockup-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 2px 0;
  border-style: dotted;
  border-width: 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.1);
}

/* DORVO — dark executive theme */
.case__visual--dorvo {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1219 100%);
}

.case__visual--dorvo .mockup-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.case__visual--dorvo .mockup-workflow-node {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.case__visual--dorvo .mockup-workflow-node--active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
}

.case__visual--dorvo .mockup-workflow-connector {
  width: 20px;
  height: 2px;
  background: rgba(99, 102, 241, 0.15);
}

.case__visual--dorvo .mockup-exec-stats {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.case__visual--dorvo .mockup-exec-stat {
  flex: 1;
  height: 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.case__visual--dorvo .mockup-exec-stat--highlight {
  border-color: rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.04);
}

.case__visual--dorvo .mockup-separator {
  height: 1px;
  border-style: dotted;
  border-width: 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

/* Shared mockup base */
.case__mockup-ui {
  width: 80%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.mockup-bar {
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-body {
  display: flex;
  padding: 12px;
  gap: 10px;
  min-height: 160px;
}

.mockup-sidebar {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.mockup-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-main--full {
  width: 100%;
}

.mockup-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.mockup-line--h {
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-line--h4 { height: 4px; }

.mockup-line--w40 { width: 40%; }
.mockup-line--w50 { width: 50%; }
.mockup-line--w60 { width: 60%; }
.mockup-line--w70 { width: 70%; }
.mockup-line--w78 { width: 78%; }
.mockup-line--w80 { width: 80%; }
.mockup-line--w85 { width: 85%; }
.mockup-line--w90 { width: 90%; }
.mockup-line--w92 { width: 92%; }
.mockup-line--w95 { width: 95%; }
.mockup-line--w100 { width: 100%; }

.mockup-card-row {
  display: flex;
  gap: 8px;
}

.mockup-card-row--2 {
  gap: 6px;
}

.mockup-stat {
  flex: 1;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-stat--wide {
  height: 50px;
}

.mockup-chart {
  flex: 1;
  min-height: 50px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.mockup-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
}

.mockup-flow-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mockup-flow-line {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

/* Phone mockup */
.case__mockup-ui--phone {
  background: none;
  display: flex;
  justify-content: center;
}

.mockup-phone {
  width: 160px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  padding: 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-phone-notch {
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px auto 12px;
}

.mockup-phone-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
}

.mockup-product {
  flex: 1;
  height: 50px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-btn-mock {
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 4px;
}

/* ── Quote Request Modal ─────────────────────────── */

.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.qr-overlay.is-open {
  opacity: 1;
}

.qr-modal {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--duration-slow) var(--ease-out);
}

.qr-overlay.is-open .qr-modal {
  transform: translateY(0) scale(1);
}

.qr-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 2;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.qr-close:hover {
  color: var(--text-primary);
  background: var(--page-bg);
}

.qr-progress {
  height: 3px;
  background: var(--border-subtle);
}

.qr-progress__bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width var(--duration-slow) var(--ease-out);
}

.qr-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-12) var(--sp-10);
  min-height: 340px;
}

.qr-step {
  animation: qrFadeIn var(--duration-normal) var(--ease-out);
  position: relative;
}

.qr-step-counter {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-10);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes qrFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .qr-step {
    animation: none;
  }
}

.qr-step__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-2);
  line-height: var(--leading-snug);
}

.qr-step__subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  line-height: var(--leading-normal);
}

.qr-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.qr-option {
  display: flex;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--duration-fast);
  font-size: var(--text-base);
  color: var(--text-primary);
  text-align: left;
  width: 100%;
}

.qr-option:hover {
  border-color: var(--border-strong);
  background: var(--page-bg);
}

.qr-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.qr-option__check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  margin-right: var(--sp-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.qr-option.is-selected .qr-option__check {
  background: var(--accent);
  border-color: var(--accent);
}

.qr-option.is-selected .qr-option__check::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
}

/* Radio variant (single select) */
.qr-option--radio .qr-option__check {
  border-radius: 50%;
}

.qr-option--radio.is-selected .qr-option__check::after {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

/* Form fields */
.qr-field {
  margin-bottom: var(--sp-5);
}

.qr-field__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.qr-field__input,
.qr-field__textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: var(--text-base);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast);
}

.qr-field__input:focus,
.qr-field__textarea:focus {
  border-color: var(--accent);
}

.qr-field__textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 240px;
}

.qr-field__error {
  font-size: var(--text-sm);
  color: #DC2626;
  margin-top: var(--sp-1);
  display: none;
}

.qr-field__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.qr-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.qr-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.qr-consent input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.qr-consent__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* Summary */
.qr-summary {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.qr-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.qr-summary__label {
  color: var(--text-muted);
  font-weight: 500;
}

.qr-summary__value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.qr-summary__edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: var(--sp-2);
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.qr-summary__edit:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--page-bg);
}

/* Demo notice */
.qr-demo-notice {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  color: #92400E;
  margin-bottom: var(--sp-4);
}

/* Success state */
.qr-success {
  text-align: center;
  padding: var(--sp-8) 0;
}

.qr-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
}

/* Footer */
.qr-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-10);
  border-top: 1px solid var(--border-subtle);
}

.qr-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast);
}

.qr-back:hover {
  color: var(--text-primary);
}

.qr-next {
  margin-left: auto;
}

/* ── Problems Section ────────────────────────────── */

/* ── Problems: Interactive Problem → Response ──── */

.prb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

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

.prb__item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border-subtle);
  background: none;
  border-left: 2px solid transparent;
  border-right: none;
  border-top: none;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration-normal) var(--ease-out),
              padding-left var(--duration-normal) var(--ease-out);
  width: 100%;
  font: inherit;
  color: inherit;
}

.prb__item:first-child {
  padding-top: 0;
}

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

.prb__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.prb__item.is-active {
  border-left-color: var(--accent);
  padding-left: var(--sp-4);
}

.prb__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  flex-shrink: 0;
  min-width: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  transition: color var(--duration-normal) var(--ease-out);
}

.prb__item.is-active .prb__idx {
  color: var(--accent);
}

.prb__quote {
  font-size: var(--text-base);
  font-weight: 500;
  color: #64707E;
  line-height: 1.55;
  transition: color var(--duration-normal) var(--ease-out);
  margin: 0;
}

.prb__item.is-active .prb__quote {
  color: #1A1F2B;
}

/* Response panel */
.prb__response {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.prb__resp-inner {
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.prb__resp-idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: var(--sp-5);
  font-variant-numeric: tabular-nums;
}

.prb__resp-text {
  font-size: var(--text-base);
  font-weight: 500;
  color: #1A1F2B;
  line-height: 1.65;
  margin: 0 0 var(--sp-6);
}

/* Process trace */
.prb__trace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}

.prb__trace-step {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: .01em;
}

.prb__trace-arrow {
  font-size: 10px;
  color: #CBD5E1;
}

/* Analysis lines */
.prb__analysis {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--sp-5);
  min-height: 24px;
}

.prb__analysis:empty {
  display: none;
}

.prb__analysis-line {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  line-height: 1.4;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .15s ease-out, transform .15s ease-out, color .2s ease-out;
}

.prb__analysis-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.prb__analysis-line.is-done {
  color: #CBD5E1;
}

.prb__analysis-line.is-done::after {
  content: '\2713';
  font-size: 9px;
  color: #CBD5E1;
  flex-shrink: 0;
}

/* Response text hidden during analysis */
.prb__resp-text.is-hidden {
  opacity: 0;
  transform: translateY(4px);
}

.prb__resp-text {
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}

/* Trace hidden during analysis */
.prb__trace.is-hidden {
  opacity: 0;
}

.prb__trace {
  transition: opacity .2s var(--ease-out);
}

/* Transition state */
.prb__resp-inner.is-transitioning {
  opacity: 0;
  transform: translateY(6px);
}

.prb__resp-inner {
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}

/* Reduced motion: skip analysis animation */
@media (prefers-reduced-motion: reduce) {
  .prb__analysis-line {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .prb__resp-text,
  .prb__trace {
    transition: none;
  }

  .prb__resp-inner {
    transition: none;
  }
}

/* noscript fallback */
.prb__fallback {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  grid-column: 1 / -1;
}

.prb__fb-item {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.prb__fb-q {
  font-size: var(--text-base);
  font-weight: 500;
  font-style: italic;
  color: #1A1F2B;
  margin-bottom: var(--sp-3);
}

.prb__fb-a {
  font-size: var(--text-base);
  color: #64707E;
  line-height: 1.65;
  padding-left: var(--sp-5);
  border-left: 2px solid var(--accent);
}

/* ── Principles Section ──────────────────────────── */

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

.principle {
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.principle--emphasis {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
}

.principle__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #CBD5E1;
  letter-spacing: .06em;
  margin-bottom: var(--sp-4);
  font-variant-numeric: tabular-nums;
}

.principle__lead {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #1A1F2B;
  line-height: 1.35;
  margin: 0 0 var(--sp-2);
}

.principle--emphasis .principle__lead {
  font-size: var(--text-xl);
}

.principle__body {
  font-size: var(--text-base);
  color: #64707E;
  line-height: 1.65;
  margin: 0;
}

/* Manifesto closing */
.manifesto {
  margin-top: var(--sp-16);
  padding-top: var(--sp-12);
  border-top: 1px solid var(--border-subtle);
}

.manifesto__text {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  color: #64707E;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ── Case System Maps ────────────────────────────── */

.case__system-map {
  width: 90%;
  max-width: 360px;
  height: auto;
}

/* ── Case Reasoning — Interactive Micro Case Study ── */

.case__reasoning {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case__reasoning[open] {
  border-color: var(--border-strong);
}

.case__reasoning-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: background var(--duration-fast);
  user-select: none;
}

.case__reasoning-trigger::-webkit-details-marker {
  display: none;
}

.case__reasoning-trigger::marker {
  display: none;
  content: '';
}

.case__reasoning-trigger:hover {
  background: var(--page-bg);
}

.case__reasoning-trigger::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
  margin-left: var(--sp-3);
}

.case__reasoning[open] > .case__reasoning-trigger::after {
  transform: rotate(-135deg);
}

.case__reasoning-body {
  padding: 0 var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.case__why,
.case__decision {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.case__why strong,
.case__decision strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--text-sm);
}

.case__reasoning-divider {
  height: 1px;
  background: var(--border-subtle);
}

/* ── Cases CTA ───────────────────────────────────── */

.cases-cta__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ============================================================
   REGGELIGO — Cinematic Exploded System View
   ============================================================ */

.rgo-reveal {
  --rgo-red: #d93025;
  --rgo-red-rgb: 217, 48, 37;
  --rgo-ink: #171311;
  --rgo-muted: #776865;
  --rgo-surface: #fffaf9;
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 150px) 0;
  background: radial-gradient(circle at 50% 45%, rgba(var(--rgo-red-rgb), .065), transparent 44%), var(--rgo-surface);
}

.rgo-reveal__inner { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.rgo-reveal__header { width: min(760px, 100%); margin-bottom: clamp(52px, 7vw, 90px); }

.rgo-reveal__eyebrow { margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rgo-red); }

.rgo-reveal__title { margin: 0; max-width: 850px; font-size: clamp(38px, 5.1vw, 72px); line-height: .98; letter-spacing: -.055em; color: var(--rgo-ink); }
.rgo-reveal__title span { display: block; margin-top: .16em; color: rgba(23,19,17,.38); }

.rgo-reveal__lead { max-width: 620px; margin: 28px 0 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--rgo-muted); }

/* Stage */
.rgo-stage { position: relative; height: min(720px, 76vw); min-height: 620px; perspective: 1800px; transform-style: preserve-3d; }
.rgo-stage__ambient { position: absolute; inset: 12% 14%; border-radius: 50%; background: rgba(var(--rgo-red-rgb), .07); filter: blur(90px); opacity: .65; pointer-events: none; }

/* Front card */
.rgo-order-card { position: absolute; z-index: 20; top: 50%; left: 50%; width: min(390px, 82vw); min-height: 255px; padding: 24px; border: 1px solid rgba(23,19,17,.08); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: 0 30px 80px rgba(55,27,20,.12), 0 8px 24px rgba(55,27,20,.06); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); transform: translate(-50%, -50%) translateZ(120px); transition: transform 1.15s cubic-bezier(.16,1,.3,1), opacity .8s ease, box-shadow .8s ease; }

.rgo-order-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.rgo-order-card__status { color: var(--rgo-red); }
.rgo-order-card__time { color: rgba(23,19,17,.42); }

.rgo-order-card__content { display: flex; flex-direction: column; margin-top: 44px; }
.rgo-order-card__kicker { margin-bottom: 7px; font-size: 13px; color: var(--rgo-muted); }
.rgo-order-card__name { font-size: 28px; letter-spacing: -.04em; color: var(--rgo-ink); }
.rgo-order-card__meta { margin-top: 8px; font-size: 13px; color: rgba(23,19,17,.48); }

.rgo-order-card__button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 34px; padding: 14px 17px; border: 0; border-radius: 14px; background: var(--rgo-red); color: white; font: inherit; font-weight: 650; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.rgo-order-card__button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--rgo-red-rgb), .22); }
.rgo-order-card__button:focus-visible { outline: 2px solid var(--rgo-red); outline-offset: 3px; }

/* Exploded layers */
.rgo-layer { position: absolute; top: 50%; left: 50%; width: min(700px, 72vw); padding: 20px 22px; border: 1px solid rgba(var(--rgo-red-rgb), .10); border-radius: 22px; background: rgba(255,255,255,.74); box-shadow: 0 22px 70px rgba(80,34,26,.07); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transform: translate(-50%, -50%) translate3d(0, 0, -120px) scale(.94); transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity .55s ease, border-color .4s ease, box-shadow .4s ease; }

.rgo-layer__head { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.rgo-layer__index { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: rgba(var(--rgo-red-rgb), .08); color: var(--rgo-red); font-size: 10px; font-weight: 800; }
.rgo-layer__title { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: rgba(23,19,17,.48); }

.rgo-layer__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.rgo-metric { padding: 13px 14px; border-radius: 13px; background: rgba(255,255,255,.76); }
.rgo-metric span, .rgo-metric strong { display: block; }
.rgo-metric span { margin-bottom: 5px; font-size: 10px; color: rgba(23,19,17,.40); }
.rgo-metric strong { font-size: 13px; font-weight: 700; color: var(--rgo-ink); transition: color .3s ease, transform .3s ease; }

/* Expanded state */
.rgo-stage.is-running .rgo-order-card { transform: translate(-50%, -50%) translate3d(0, 210px, 250px) scale(.82); box-shadow: 0 38px 100px rgba(55,27,20,.15); }
.rgo-stage.is-running .rgo-layer { opacity: 1; }
.rgo-stage.is-running .rgo-layer--operations { transform: translate(-50%, -50%) translate3d(-240px, -230px, 70px) rotateZ(-2deg); }
.rgo-stage.is-running .rgo-layer--kitchen { transform: translate(-50%, -50%) translate3d(240px, -205px, 40px) rotateZ(1.5deg); }
.rgo-stage.is-running .rgo-layer--inventory { transform: translate(-50%, -50%) translate3d(-285px, 10px, 0); }
.rgo-stage.is-running .rgo-layer--logistics { transform: translate(-50%, -50%) translate3d(285px, 25px, -15px); }
.rgo-stage.is-running .rgo-layer--business { transform: translate(-50%, -50%) translate3d(0, 140px, -50px); }

/* Activated layer flash */
.rgo-layer.is-active { border-color: rgba(var(--rgo-red-rgb), .36); box-shadow: 0 25px 75px rgba(80,34,26,.10), 0 0 0 1px rgba(var(--rgo-red-rgb), .08); }
.rgo-layer.is-active .rgo-metric strong { color: var(--rgo-red); transform: translateY(-1px); }

/* Result */
.rgo-stage__result { position: absolute; z-index: 40; left: 50%; bottom: 0; width: min(560px, 90%); text-align: center; opacity: 0; transform: translate(-50%, 16px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.rgo-stage__result-kicker { display: block; margin-bottom: 8px; color: var(--rgo-red); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.rgo-stage__result strong { display: block; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.045em; color: var(--rgo-ink); }
.rgo-stage__result > span:last-child { display: block; margin-top: 8px; font-size: 14px; color: var(--rgo-muted); }
.rgo-stage.is-complete .rgo-stage__result { opacity: 1; transform: translate(-50%, 0); }

/* Mobile */
@media (max-width: 800px) {
  .rgo-reveal { padding: 80px 0; }
  .rgo-reveal__inner { width: min(100% - 28px, 720px); }
  .rgo-stage { height: auto; min-height: 940px; perspective: none; }
  .rgo-order-card, .rgo-layer { width: calc(100% - 16px); }
  .rgo-order-card { top: 20px; transform: translateX(-50%); }
  .rgo-stage.is-running .rgo-order-card { transform: translateX(-50%) scale(.94); }
  .rgo-layer { top: auto; opacity: 0; }
  .rgo-stage.is-running .rgo-layer--operations { transform: translateX(-50%); top: 305px; }
  .rgo-stage.is-running .rgo-layer--kitchen { transform: translateX(-50%); top: 425px; }
  .rgo-stage.is-running .rgo-layer--inventory { transform: translateX(-50%); top: 545px; }
  .rgo-stage.is-running .rgo-layer--logistics { transform: translateX(-50%); top: 665px; }
  .rgo-stage.is-running .rgo-layer--business { transform: translateX(-50%); top: 785px; }
  .rgo-layer__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rgo-stage__result { bottom: -75px; }
}

@media (prefers-reduced-motion: reduce) {
  .rgo-order-card, .rgo-layer, .rgo-stage__result, .rgo-metric strong { transition: none !important; }
}

/* ============================================================
   PROJECT PRESENTATION — Editorial Alternating Layout
   ============================================================ */

/* ── Project Section ─────────────────────────────── */

.proj {
  --proj-accent: var(--text-primary);
  --proj-accent-rgb: 15, 23, 42;
  --proj-bg: var(--page-bg);
  position: relative;
  padding: clamp(80px, 10vw, 150px) 0;
  overflow: hidden;
}

.proj--rgo {
  --proj-accent: #D93025;
  --proj-accent-rgb: 217, 48, 37;
  --proj-bg: #FFFAF9;
  background: radial-gradient(circle at 50% 45%, rgba(var(--proj-accent-rgb), .065), transparent 44%), var(--proj-bg);
}

.proj--movo {
  --proj-accent: #2563EB;
  --proj-accent-rgb: 37, 99, 235;
  --proj-bg: #F5F8FF;
  background: radial-gradient(circle at 50% 45%, rgba(var(--proj-accent-rgb), .05), transparent 44%), var(--proj-bg);
}

.proj--dorvo {
  --proj-accent: #A67C52;
  --proj-accent-rgb: 166, 124, 82;
  --proj-bg: #FAF8F5;
  background: radial-gradient(circle at 50% 45%, rgba(var(--proj-accent-rgb), .05), transparent 44%), var(--proj-bg);
}

.proj__inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.proj__head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.proj__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--proj-accent);
  margin-bottom: 16px;
}

.proj__title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 700;
  color: #1A1F2B;
  max-width: 620px;
}

.proj__title span {
  display: block;
  margin-top: .12em;
  color: #64707E;
  font-weight: 700;
}

/* ── Grid: Visual | Story ────────────────────────── */

.proj__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.proj--reversed .proj__grid {
  direction: rtl;
}

.proj--reversed .proj__grid > * {
  direction: ltr;
}

/* ── Story Panel ─────────────────────────────────── */

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

.story-panel__block {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid rgba(var(--proj-accent-rgb), .08);
}

.story-panel__block:last-of-type {
  border-bottom: none;
}

.story-panel__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--proj-accent);
  margin-bottom: var(--sp-3);
}

.story-panel__block p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.story-panel__block p + p {
  margin-top: var(--sp-3);
}

/* Proof badges */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.proof__item {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(var(--proj-accent-rgb), .07);
  color: var(--proj-accent);
}

/* Scope groups */
.scope {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-5) var(--sp-6);
}

.scope__group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--proj-accent);
  margin-bottom: var(--sp-2);
}

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

.scope__list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 3px 0;
  position: relative;
  padding-left: 16px;
}

.scope__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--proj-accent);
  font-size: 11px;
  font-weight: 700;
}

/* Proves block */
.story-panel__proves {
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--proj-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(var(--proj-accent-rgb), .04);
}

.story-panel__proves p {
  font-size: var(--text-base);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

/* ── Bridge Section ──────────────────────────────── */

.section--bridge {
  padding-bottom: 0;
}

/* ── Synthesis Section ───────────────────────────── */

.section--synthesis {
  padding: var(--sp-section) 0;
  padding-bottom: calc(var(--sp-section) * 0.5);
}

.synthesis__text {
  font-size: var(--text-lg);
  color: #94A3B8;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-3);
}

.synthesis__text--strong {
  font-size: var(--text-xl);
  font-weight: 600;
  color: #1A1F2B;
}

.synthesis__text--accent {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--sp-6);
}

/* ── MOVO Journey Visual ─────────────────────────── */

.movo-journey {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-12);
  min-height: 200px;
}

.movo-journey__track {
  position: relative;
  height: 120px;
}

.movo-journey__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(var(--proj-accent-rgb), .18);
  transform: translateY(-50%);
}

.movo-journey__guest {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--proj-accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(var(--proj-accent-rgb), .35);
  transition: left 0.3s linear;
  z-index: 2;
}

.movo-journey__station {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.movo-journey__station::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(var(--proj-accent-rgb), .12);
  margin: 0 auto 8px;
  transition: background .3s ease, box-shadow .3s ease;
}

.movo-journey__station.is-active::before {
  background: var(--proj-accent);
  box-shadow: 0 0 8px rgba(var(--proj-accent-rgb), .3);
}

.movo-journey__station span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: rgba(var(--proj-accent-rgb), .3);
  text-align: center;
  white-space: nowrap;
  transition: color .3s ease;
}

.movo-journey__station.is-active span {
  color: var(--proj-accent);
}

.movo-journey__whisper {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--proj-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  pointer-events: none;
}

.movo-journey__whisper.is-visible {
  opacity: .7;
  transform: translateY(0);
}

/* ── DORVO Decision Visual ───────────────────────── */

.dorvo-decision {
  padding: var(--sp-8);
  max-width: 480px;
}

.dorvo-decision__question {
  margin-bottom: var(--sp-8);
}

.dorvo-decision__q-text {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid rgba(var(--proj-accent-rgb), .25);
}

.dorvo-decision__send {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--proj-accent);
  background: none;
  border: 1.5px solid rgba(var(--proj-accent-rgb), .25);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
}

.dorvo-decision__send:hover {
  border-color: var(--proj-accent);
  background: rgba(var(--proj-accent-rgb), .05);
}

.dorvo-decision__send:focus-visible {
  outline: 2px solid var(--proj-accent);
  outline-offset: 3px;
}

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

.dorvo-decision__line {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(var(--proj-accent-rgb), .06);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}

.dorvo-decision__line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dorvo-decision__recommendation {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--proj-accent);
  padding: var(--sp-4) 0;
  margin-top: var(--sp-3);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .4s var(--ease-out), transform .3s var(--ease-out);
}

.dorvo-decision__recommendation.is-visible {
  opacity: 1;
  transform: scale(1);
}

.dorvo-decision__approve {
  padding: var(--sp-3) 0;
  opacity: 0;
  transition: opacity .4s var(--ease-out);
}

.dorvo-decision__approve.is-visible {
  opacity: 1;
}

.dorvo-decision__approve-btn {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--proj-accent);
  background: none;
  border: none;
  border-bottom: 1.5px solid rgba(var(--proj-accent-rgb), .3);
  padding: 4px 0;
  cursor: pointer;
  transition: border-color .2s ease;
}

.dorvo-decision__approve-btn:hover {
  border-color: var(--proj-accent);
}

.dorvo-decision__consequence {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}

.dorvo-decision__consequence.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: Project Grid ────────────────────── */

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

  .proj--reversed .proj__grid {
    direction: ltr;
  }

  .proj__title {
    font-size: clamp(24px, 5.5vw, 36px);
    max-width: 100%;
  }

  .scope {
    grid-template-columns: repeat(2, 1fr);
  }

  .dorvo-decision {
    padding: var(--sp-4);
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .scope {
    grid-template-columns: 1fr;
  }

  .proj__inner {
    width: min(100% - 28px, 720px);
  }

  .movo-journey__station span {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .movo-journey__guest { transition: none; }
  .movo-journey__whisper { transition: none; }
  .dorvo-decision__line,
  .dorvo-decision__recommendation,
  .dorvo-decision__approve,
  .dorvo-decision__consequence { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   REGGELIGO — Operational System Architecture
   Engine-based visualization with visible transaction flow
   ============================================================ */

.opsys {
  position: relative;
  max-width: 520px;
}

/* ── Transaction Packet ──────────────────────────── */

.opsys__packet {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: top .4s var(--ease-out), left .4s var(--ease-out), opacity .25s ease;
}

.opsys__packet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D93025;
  box-shadow: 0 0 10px rgba(217,48,37,.45), 0 0 3px rgba(217,48,37,.7);
  flex-shrink: 0;
}

.opsys__packet-id {
  font-size: 9px;
  font-weight: 700;
  color: #D93025;
  opacity: .6;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.opsys__packet.is-visible {
  opacity: 1;
}

/* ── Data Fragment ───────────────────────────────── */

.opsys__data {
  position: absolute;
  z-index: 9;
  font-size: 9px;
  font-weight: 600;
  color: #D93025;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: top .5s var(--ease-out), left .5s var(--ease-out), opacity .3s ease;
}

.opsys__data.is-visible {
  opacity: .65;
}

/* ── Trigger Card ────────────────────────────────── */

.opsys__trigger {
  padding: 24px;
  border: 1px solid rgba(217,48,37,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 60px rgba(55,27,20,.08), 0 6px 20px rgba(55,27,20,.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.opsys.is-running .opsys__trigger {
  opacity: .5;
  transform: scale(.97);
  pointer-events: none;
}

.opsys__trigger-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 28px;
}

.opsys__trigger-brand { color: #D93025; }
.opsys__trigger-time { color: rgba(23,19,17,.4); }

.opsys__trigger-body { display: flex; flex-direction: column; }
.opsys__trigger-kicker { font-size: 13px; color: #776865; margin-bottom: 6px; }
.opsys__trigger-name { font-size: 24px; letter-spacing: -.04em; color: #171311; }
.opsys__trigger-meta { margin-top: 8px; font-size: 13px; color: rgba(23,19,17,.45); }

.opsys__confirm {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(217,48,37,.06);
  border: 1px solid rgba(217,48,37,.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}

.opsys__confirm.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.opsys__confirm-label {
  font-size: 13px;
  font-weight: 700;
  color: #D93025;
}

.opsys__confirm-id {
  font-size: 11px;
  font-weight: 600;
  color: rgba(217,48,37,.45);
  font-variant-numeric: tabular-nums;
}

.opsys__trigger-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: #D93025;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.opsys__trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217,48,37,.2);
}

.opsys__trigger-btn:focus-visible {
  outline: 2px solid #D93025;
  outline-offset: 3px;
}

.opsys__trigger-btn:disabled {
  cursor: default;
  transform: none;
  box-shadow: none;
  opacity: .7;
}

/* ── Inter-Engine Connectors ─────────────────────── */

.opsys__conn {
  width: 2px;
  height: 28px;
  margin: 0 auto;
  background: rgba(217,48,37,.1);
  border-radius: 1px;
  position: relative;
  transition: background .4s ease;
}

.opsys__conn.is-active {
  background: rgba(217,48,37,.35);
}

.opsys__conn.is-done {
  background: #D93025;
}

/* ── Engine Container ────────────────────────────── */

.opsys__engine {
  border: 1.5px solid rgba(217,48,37,.08);
  border-radius: 16px;
  padding: 16px 20px 20px;
  background: rgba(255,255,255,.5);
  transition: border-color .4s ease, box-shadow .4s ease, background .4s ease;
}

.opsys__engine.is-dormant {
  border-color: rgba(217,48,37,.06);
}

.opsys__engine.is-active {
  border-color: rgba(217,48,37,.2);
  box-shadow: 0 4px 24px rgba(217,48,37,.06);
  background: rgba(255,255,255,.85);
}

.opsys__engine.is-done {
  border-color: rgba(217,48,37,.1);
  background: rgba(255,255,255,.6);
}

/* ── Engine Head ─────────────────────────────────── */

.opsys__engine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.opsys__engine-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(217,48,37,.25);
  transition: color .3s ease;
}

.opsys__engine.is-active .opsys__engine-label {
  color: #D93025;
}

.opsys__engine.is-done .opsys__engine-label {
  color: rgba(217,48,37,.35);
}

.opsys__engine-status {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(217,48,37,.3);
  opacity: 0;
  transition: opacity .3s ease;
}

.opsys__engine.is-active .opsys__engine-status {
  opacity: 1;
}

.opsys__engine.is-done .opsys__engine-status {
  opacity: 1;
  color: rgba(217,48,37,.4);
}

/* ── Engine Body Layouts ─────────────────────────── */

.opsys__engine-body--row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.opsys__engine-body--col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.opsys__engine-fork {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* ── Module Node ─────────────────────────────────── */

.opsys__mod {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  position: relative;
  min-width: 0;
  transition: background .3s ease;
}

.opsys__mod.is-active {
  background: rgba(217,48,37,.04);
}

.opsys__mod.is-done {
  background: transparent;
}

/* Module Icon */
.opsys__mod-icon {
  width: 22px;
  height: 22px;
  color: rgba(23,19,17,.18);
  margin-bottom: 6px;
  transition: color .3s ease;
  flex-shrink: 0;
}

.opsys__mod.is-active .opsys__mod-icon {
  color: #D93025;
}

.opsys__mod.is-done .opsys__mod-icon {
  color: rgba(217,48,37,.5);
}

/* Module Label */
.opsys__mod-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(23,19,17,.3);
  letter-spacing: .02em;
  margin-bottom: 4px;
  transition: color .3s ease;
}

.opsys__mod.is-active .opsys__mod-label {
  color: #171311;
}

.opsys__mod.is-done .opsys__mod-label {
  color: rgba(23,19,17,.55);
}

/* Module Processing */
.opsys__mod-proc {
  font-size: 9px;
  font-weight: 500;
  color: rgba(217,48,37,.5);
  line-height: 1.4;
  min-height: 14px;
  max-width: 120px;
  overflow: hidden;
}

/* Module Result */
.opsys__mod-result {
  font-size: 11px;
  font-weight: 700;
  color: #171311;
  margin-top: 2px;
  min-height: 14px;
}

/* Module Checkbox */
.opsys__mod-check {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(217,48,37,.15);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}

.opsys__mod.is-active .opsys__mod-check {
  border-color: #D93025;
}

/* Processing sweep inside checkbox */
.opsys__mod.is-active .opsys__mod-check::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(217,48,37,.15) 50%, transparent 100%);
  animation: opsysSweep .7s ease-in-out infinite;
}

@keyframes opsysSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.opsys__mod.is-done .opsys__mod-check {
  border-color: #D93025;
  background: #D93025;
}

.opsys__mod.is-done .opsys__mod-check::before {
  display: none;
}

.opsys__mod.is-done .opsys__mod-check::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  animation: opsysCheck .2s var(--ease-out) both;
}

@keyframes opsysCheck {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* ── Intra-Module Connectors ─────────────────────── */

.opsys__mod-conn {
  width: 20px;
  height: 2px;
  background: rgba(217,48,37,.08);
  align-self: center;
  flex-shrink: 0;
  border-radius: 1px;
  margin: 0 2px;
  transition: background .3s ease;
}

.opsys__mod-conn--vert {
  width: 2px;
  height: 12px;
  margin: 0 auto;
}

.opsys__mod-conn.is-active {
  background: rgba(217,48,37,.3);
}

.opsys__mod-conn.is-done {
  background: rgba(217,48,37,.5);
}

/* ── Capacity Gauge ──────────────────────────────── */

.opsys__mod-gauge {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100px;
  margin: 4px auto;
  opacity: 0;
  transition: opacity .3s ease;
}

.opsys__mod.is-active .opsys__mod-gauge,
.opsys__mod.is-done .opsys__mod-gauge {
  opacity: 1;
}

.opsys__gauge-fill {
  flex: 1;
  height: 4px;
  background: rgba(217,48,37,.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.opsys__gauge-fill::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--gauge-pct, 0%);
  background: #D93025;
  border-radius: 2px;
  transition: width .6s var(--ease-out);
}

.opsys__gauge-val {
  font-size: 10px;
  font-weight: 700;
  color: #D93025;
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  text-align: right;
}

/* ── Inventory Micro-Grid ────────────────────────── */

.opsys__mod-inv {
  width: 100%;
  max-width: 130px;
  margin: 4px auto;
  font-size: 9px;
}

.opsys__inv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  color: rgba(23,19,17,.4);
  opacity: 0;
  transition: opacity .2s ease;
}

.opsys__inv-row.is-visible {
  opacity: 1;
}

.opsys__inv-row .opsys__inv-name {
  font-weight: 500;
}

.opsys__inv-row .opsys__inv-status {
  font-weight: 600;
  color: rgba(217,48,37,.35);
  transition: color .2s ease;
}

.opsys__inv-row.is-done .opsys__inv-status {
  color: #D93025;
}

/* ── Forecast Mini Chart ─────────────────────────── */

.opsys__mod-chart {
  width: 80px;
  height: 24px;
  margin: 4px auto;
  opacity: 0;
  transition: opacity .3s ease;
}

.opsys__mod.is-active .opsys__mod-chart,
.opsys__mod.is-done .opsys__mod-chart {
  opacity: 1;
}

.opsys__chart-svg {
  width: 100%;
  height: 100%;
}

.opsys__chart-line {
  color: rgba(217,48,37,.25);
  transition: all .4s ease;
}

.opsys__mod.is-done .opsys__chart-line {
  color: rgba(217,48,37,.5);
}

.opsys__chart-dot {
  color: #D93025;
  transition: r .3s var(--ease-out);
}

/* ── Conclusion ──────────────────────────────────── */

.opsys__conclusion {
  margin-top: 24px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.opsys.is-complete .opsys__conclusion {
  opacity: 1;
  transform: translateY(0);
}

.opsys__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #D93025;
}

.opsys__summary-sep {
  color: rgba(217,48,37,.3);
}

.opsys__conclusion-lead {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #171311;
  margin-bottom: 6px;
}

.opsys__conclusion-body {
  font-size: var(--text-base);
  color: #776865;
  margin-bottom: 12px;
}

.opsys__conclusion-accent {
  font-size: var(--text-base);
  font-weight: 600;
  color: #D93025;
}

/* ── Replay ──────────────────────────────────────── */

.opsys__replay {
  display: none;
  margin: 12px auto 0;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: rgba(217,48,37,.45);
  background: none;
  border: 1px solid rgba(217,48,37,.15);
  border-radius: 8px;
  padding: 6px 18px;
  cursor: pointer;
  transition: all .2s ease;
}

.opsys__replay:hover {
  color: #D93025;
  border-color: rgba(217,48,37,.35);
}

.opsys.is-complete .opsys__replay {
  display: block;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 900px) {
  .opsys { max-width: 100%; }
}

@media (max-width: 600px) {
  .opsys__engine { padding: 12px 14px 16px; }
  .opsys__mod-icon { width: 18px; height: 18px; }
  .opsys__mod-label { font-size: 9px; }
  .opsys__mod-proc { font-size: 8px; }
  .opsys__mod-result { font-size: 10px; }
  .opsys__trigger { padding: 20px; }
  .opsys__trigger-name { font-size: 20px; }
  .opsys__summary { font-size: 10px; }
  .opsys__packet-id { display: none; }
  .opsys__engine-fork { flex-direction: column; }
  .opsys__engine-fork .opsys__mod-conn { width: 2px; height: 10px; margin: 0 auto; }
}

/* ── Reduced Motion ──────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .opsys__packet,
  .opsys__data,
  .opsys__conn,
  .opsys__engine,
  .opsys__mod,
  .opsys__mod-icon,
  .opsys__mod-label,
  .opsys__mod-check,
  .opsys__mod-conn,
  .opsys__mod-gauge,
  .opsys__gauge-fill::after,
  .opsys__confirm,
  .opsys__trigger,
  .opsys__conclusion {
    transition: none !important;
  }
  .opsys__mod.is-active .opsys__mod-check::before {
    animation: none !important;
  }
  .opsys__mod.is-done .opsys__mod-check::after {
    animation: none !important;
  }
  .opsys__packet { display: none !important; }
  .opsys__data { display: none !important; }
}

/* ============================================================
   MOVO — Guest Intelligence Context Visualization
   ============================================================ */

.movo { display: flex; flex-direction: column; gap: var(--sp-5); position: relative; }

/* CTA Button */
.movo__start-btn { display: block; margin: var(--sp-6) auto; font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: #2563EB; border: none; border-radius: var(--radius-md); padding: 12px 28px; cursor: pointer; transition: background .2s ease, transform .15s ease, box-shadow .2s ease; box-shadow: 0 4px 14px rgba(37,99,235,.25); letter-spacing: .01em; }
.movo__start-btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.movo__start-btn.is-hidden { display: none; }

/* Guest Context Core — central card */
.movo__guest { text-align: center; padding: var(--sp-5) var(--sp-6); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(37,99,235,.03) 0%, rgba(37,99,235,.08) 100%); border: 1.5px solid rgba(37,99,235,.12); opacity: 0; transform: scale(.95); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), border-color .3s ease, box-shadow .3s ease; }
.movo__guest.is-visible { opacity: 1; transform: scale(1); }
.movo__guest.is-active { border-color: rgba(37,99,235,.3); box-shadow: 0 0 24px rgba(37,99,235,.1), 0 4px 12px rgba(37,99,235,.06); }
.movo__guest-name { font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: -.02em; }
.movo__guest-meta { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.movo__guest-time { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: #2563EB; margin-top: 6px; letter-spacing: .04em; }

/* Context Loading Phase */
.movo__context-load { display: flex; flex-direction: column; gap: 4px; padding: 0 var(--sp-2); opacity: 0; transition: opacity .3s ease; }
.movo__context-load.is-visible { opacity: 1; }
.movo__ctx-line { font-size: 11px; font-weight: 500; color: rgba(37,99,235,.6); padding: 3px 8px; border-left: 2px solid rgba(37,99,235,.15); opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.movo__ctx-line.is-visible { opacity: 1; transform: translateX(0); }
.movo__ctx-line.is-done { color: rgba(37,99,235,.35); border-left-color: rgba(37,99,235,.08); }

/* Service Domains — 2x3 grid */
.movo__domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.movo__domains.is-visible { opacity: 1; transform: translateY(0); }

.movo__domain { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,.06); background: rgba(0,0,0,.01); transition: all .3s var(--ease-out); position: relative; }
.movo__domain-icon { width: 22px; height: 22px; color: var(--text-muted); transition: color .3s ease; }
.movo__domain-label { font-size: 10px; font-weight: 600; color: var(--text-muted); transition: color .3s ease; }
.movo__domain-status { font-size: 9px; font-weight: 700; letter-spacing: .06em; min-height: 14px; }

/* Domain states */
.movo__domain.is-checking { border-color: rgba(37,99,235,.25); background: rgba(37,99,235,.03); animation: movoDomainPulse .8s ease-in-out infinite; }
.movo__domain.is-checking .movo__domain-icon { color: #2563EB; }
.movo__domain.is-checking .movo__domain-label { color: #2563EB; }

.movo__domain.is-active { border-color: rgba(37,99,235,.2); background: rgba(37,99,235,.04); }
.movo__domain.is-active .movo__domain-icon { color: #2563EB; }
.movo__domain.is-active .movo__domain-label { color: #2563EB; font-weight: 700; }

.movo__domain.is-suppressed { border-color: rgba(0,0,0,.04); background: rgba(0,0,0,.01); }
.movo__domain.is-suppressed .movo__domain-icon { color: var(--text-muted); opacity: .35; }
.movo__domain.is-suppressed .movo__domain-label { color: var(--text-muted); opacity: .5; text-decoration: line-through; }
.movo__domain.is-suppressed .movo__domain-status { color: rgba(37,99,235,.4); }

.movo__domain.is-done { border-color: rgba(37,99,235,.15); background: rgba(37,99,235,.02); }
.movo__domain.is-done .movo__domain-icon { color: #2563EB; opacity: .6; }
.movo__domain.is-done .movo__domain-label { color: rgba(37,99,235,.6); }
.movo__domain.is-done .movo__domain-status { color: #2563EB; }

.movo__domain.is-primary { border-color: rgba(37,99,235,.3); background: rgba(37,99,235,.06); box-shadow: 0 2px 10px rgba(37,99,235,.1); }
.movo__domain.is-primary .movo__domain-icon { color: #2563EB; }
.movo__domain.is-primary .movo__domain-label { color: #2563EB; font-weight: 700; }

.movo__domain.is-secondary { border-color: rgba(37,99,235,.15); background: rgba(37,99,235,.03); }
.movo__domain.is-secondary .movo__domain-icon { color: rgba(37,99,235,.7); }
.movo__domain.is-secondary .movo__domain-label { color: rgba(37,99,235,.7); }

@keyframes movoDomainPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.1); }
  50% { box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
}

/* Recommendations */
.movo__recs { display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.movo__recs.is-visible { opacity: 1; transform: translateY(0); }

.movo__rec { padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid rgba(37,99,235,.06); display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.movo__rec.is-visible { opacity: 1; transform: translateY(0); }
.movo__rec--primary { border-color: rgba(37,99,235,.18); box-shadow: 0 2px 10px rgba(37,99,235,.06); }
.movo__rec-badge { font-size: 8px; font-weight: 800; letter-spacing: .1em; color: #2563EB; background: rgba(37,99,235,.07); padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.movo__rec--secondary .movo__rec-badge { color: var(--text-muted); background: rgba(0,0,0,.03); }
.movo__rec-text { font-size: 12px; color: var(--text-primary); }
.movo__rec-deadline { font-size: 10px; font-weight: 600; color: #2563EB; margin-left: auto; font-variant-numeric: tabular-nums; }
.movo__rec-suppressed { font-size: 10px; color: var(--text-muted); opacity: .55; padding: 2px 0; }

/* Integration Signal */
.movo__integration { padding: 10px 14px; border-radius: var(--radius-md); border: 1px dashed rgba(37,99,235,.15); background: rgba(37,99,235,.02); opacity: 0; transform: translateY(4px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.movo__integration.is-visible { opacity: 1; transform: translateY(0); }
.movo__intg-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: rgba(37,99,235,.5); text-transform: uppercase; }
.movo__intg-status { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-top: 4px; }

/* Recalculation indicator */
.movo__recalc { text-align: center; font-size: 11px; font-weight: 600; color: #2563EB; padding: 8px; opacity: 0; transition: opacity .3s ease; }
.movo__recalc.is-visible { opacity: 1; animation: movoRecalcPulse 1s ease-in-out; }

@keyframes movoRecalcPulse {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}

/* Flywheel */
.movo__flywheel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; justify-content: center; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.movo__flywheel.is-visible { opacity: 1; transform: translateY(0); }
.movo__fw-step { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-sm); background: rgba(0,0,0,.02); color: var(--text-muted); border: 1px dotted rgba(0,0,0,.06); opacity: 0; transform: scale(.9); transition: all .3s var(--ease-out); }
.movo__fw-step.is-visible { opacity: 1; transform: scale(1); }
.movo__fw-step.is-active { background: rgba(37,99,235,.08); color: #2563EB; border-color: rgba(37,99,235,.15); }
.movo__fw-sep { font-size: 10px; color: var(--text-muted); opacity: .35; }

/* Conclusion */
.movo__conclusion { text-align: center; padding: var(--sp-4) 0; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.movo__conclusion.is-visible { opacity: 1; transform: translateY(0); }
.movo__conclusion-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin-bottom: var(--sp-3); }
.movo__conclusion-summary span { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.movo__conclusion-sep { font-size: 10px; color: var(--text-muted); opacity: .4; }
.movo__conclusion-lead { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); line-height: var(--leading-normal); }
.movo__conclusion-body { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); margin-top: 2px; }

/* Replay button */
.movo__replay-btn { display: none; margin: var(--sp-3) auto 0; font: inherit; font-size: 12px; font-weight: 500; color: rgba(37,99,235,.5); background: none; border: 1px solid rgba(37,99,235,.15); border-radius: var(--radius-sm); padding: 6px 16px; cursor: pointer; transition: all .2s ease; }
.movo__replay-btn.is-visible { display: block; }
.movo__replay-btn:hover { color: #2563EB; border-color: #2563EB; }

/* Proof block in story */
.movo-proof-block { display: flex; flex-direction: column; gap: 6px; }
.movo-proof-row { display: flex; gap: 12px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(37,99,235,.06); }
.movo-proof-row:last-child { border-bottom: none; }
.movo-proof-label { font-weight: 700; color: #2563EB; min-width: 80px; flex-shrink: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* Scope maturity badges (shared) */
.scope__maturity { font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.scope__maturity--live { background: rgba(37,99,235,.1); color: #2563EB; }
.scope__maturity--designed { background: rgba(37,99,235,.05); color: rgba(37,99,235,.5); }
.scope__maturity--vision { background: rgba(0,0,0,.03); color: var(--text-muted); }

@media (max-width: 600px) {
  .movo__domains { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .movo__domain { padding: 10px 6px; }
  .movo__domain-icon { width: 18px; height: 18px; }
  .movo__domain-label { font-size: 9px; }
  .movo__flywheel { gap: 3px; }
  .movo__fw-step { font-size: 9px; padding: 3px 7px; }
  .movo__conclusion-summary span { font-size: 10px; }
  .movo-proof-row { flex-direction: column; gap: 2px; }
  .movo__guest { padding: var(--sp-4); }
  .movo__guest-name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .movo__guest,
  .movo__domains,
  .movo__recs,
  .movo__rec,
  .movo__conclusion,
  .movo__flywheel,
  .movo__fw-step,
  .movo__integration,
  .movo__context-load,
  .movo__ctx-line,
  .movo__domain { transition: none !important; }
  .movo__guest.is-visible { opacity: 1; transform: none; }
  .movo__domains.is-visible { opacity: 1; transform: none; }
  .movo__recs.is-visible { opacity: 1; transform: none; }
  .movo__rec.is-visible { opacity: 1; transform: none; }
  .movo__conclusion.is-visible { opacity: 1; transform: none; }
  .movo__flywheel.is-visible { opacity: 1; transform: none; }
  .movo__fw-step.is-visible { opacity: 1; transform: none; }
  .movo__integration.is-visible { opacity: 1; transform: none; }
  .movo__context-load.is-visible { opacity: 1; }
  .movo__ctx-line.is-visible { opacity: 1; transform: none; }
  .movo__domain { animation: none !important; }
}

/* ============================================================
   DORVO — AI Business Intelligence Visualization
   Question → Sources → Analysis → Scenarios → Approval → Execution
   ============================================================ */

.dorvo { max-width: 520px; }

/* Question */
.dorvo__question { margin-bottom: var(--sp-6); }
.dorvo__q-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: #A67C52; margin-bottom: var(--sp-3); }
.dorvo__q-text { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; color: var(--text-primary); margin: 0 0 var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 2px solid rgba(166,124,82,.2); }
.dorvo__send { display: inline-flex; align-items: center; gap: var(--sp-2); font: inherit; font-size: var(--text-sm); font-weight: 600; color: #A67C52; background: none; border: 1.5px solid rgba(166,124,82,.25); border-radius: var(--radius-md); padding: 10px 20px; cursor: pointer; transition: all var(--duration-normal) var(--ease-out); }
.dorvo__send:hover { border-color: #A67C52; background: rgba(166,124,82,.04); }
.dorvo__send:disabled { opacity: .6; cursor: default; }

/* Workspace */
.dorvo__workspace { display: none; }
.dorvo.is-running .dorvo__workspace { display: block; }

/* Phases — all hidden until shown */
.dorvo__phase { padding: var(--sp-3) 0; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); pointer-events: none; }
.dorvo__phase.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dorvo__phase-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: rgba(166,124,82,.5); margin-bottom: var(--sp-2); }

/* Processing lines */
.dorvo__proc-line { font-size: 11px; color: var(--text-secondary); padding: 3px 0; opacity: 0; transform: translateY(3px); transition: opacity .25s ease, transform .25s ease; }
.dorvo__proc-line.is-visible { opacity: 1; transform: translateY(0); }
.dorvo__proc-line.is-done { color: rgba(166,124,82,.5); }

/* Sources */
.dorvo__source-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.dorvo__source { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid rgba(166,124,82,.1); color: var(--text-secondary); opacity: 0; transition: opacity .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease; position: relative; overflow: hidden; }
.dorvo__source.is-connecting { opacity: .6; border-color: rgba(166,124,82,.2); }
.dorvo__source.is-connecting::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, rgba(166,124,82,.4), transparent); animation: dorvoConn 1s ease-in-out infinite; }
@keyframes dorvoConn { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.dorvo__source.is-visible { opacity: 1; border-color: rgba(166,124,82,.25); }
.dorvo__source.is-eco { color: #D93025; border-color: rgba(217,48,37,.15); }
.dorvo__source.is-eco-blue { color: #2563EB; border-color: rgba(37,99,235,.15); }

/* Cross-project queries */
.dorvo__xquery { padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 6px; opacity: 0; transition: opacity .3s ease; }
.dorvo__xquery.is-visible { opacity: 1; }
.dorvo__xquery[data-dorvo-xquery="reggeligo"] { background: rgba(217,48,37,.04); border: 1px solid rgba(217,48,37,.1); }
.dorvo__xquery[data-dorvo-xquery="movo"] { background: rgba(37,99,235,.04); border: 1px solid rgba(37,99,235,.1); }
.dorvo__xquery-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: rgba(166,124,82,.5); margin-bottom: 2px; }
.dorvo__xquery[data-dorvo-xquery="reggeligo"] .dorvo__xquery-label { color: rgba(217,48,37,.5); }
.dorvo__xquery[data-dorvo-xquery="movo"] .dorvo__xquery-label { color: rgba(37,99,235,.5); }
.dorvo__xquery-result { font-size: 11px; font-weight: 600; color: var(--text-primary); opacity: 0; transition: opacity .3s ease; }
.dorvo__xquery-result.is-visible { opacity: 1; }

/* Findings */
.dorvo__findings { display: flex; flex-direction: column; gap: 6px; margin-top: var(--sp-2); }
.dorvo__finding { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid rgba(166,124,82,.06); opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.dorvo__finding.is-visible { opacity: 1; transform: translateY(0); }
.dorvo__finding-label { font-size: 12px; color: var(--text-secondary); }
.dorvo__finding-value { font-size: 14px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.dorvo__finding-value--alert { color: #D93025; }

/* Scenarios */
.dorvo__scenario-grid { display: flex; flex-direction: column; gap: 6px; }
.dorvo__scenario { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: #fff; border: 1px solid rgba(166,124,82,.06); opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), border-color .3s ease, box-shadow .3s ease; }
.dorvo__scenario.is-visible { opacity: 1; transform: translateY(0); }
.dorvo__scenario--recommended.is-visible { border-color: rgba(166,124,82,.25); box-shadow: 0 2px 12px rgba(166,124,82,.08); }
.dorvo__scenario-id { font-size: 11px; font-weight: 800; color: rgba(166,124,82,.4); width: 20px; flex-shrink: 0; }
.dorvo__scenario--recommended .dorvo__scenario-id { color: #A67C52; }
.dorvo__scenario-name { font-size: 12px; color: var(--text-secondary); flex: 1; }
.dorvo__scenario--recommended .dorvo__scenario-name { color: var(--text-primary); font-weight: 600; }
.dorvo__scenario-impact { font-size: 13px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.dorvo__scenario-impact--neg { color: #D93025; }
.dorvo__scenario-impact--pos { color: #16a34a; }
.dorvo__scenario-badge { font-size: 8px; font-weight: 800; letter-spacing: .1em; color: #A67C52; background: rgba(166,124,82,.08); padding: 2px 6px; border-radius: 4px; transition: all .2s ease; }
.dorvo__scenario-arrow { font-size: 13px; color: rgba(166,124,82,.3); transition: transform .2s ease, color .2s ease; flex-shrink: 0; display: none; }
.dorvo__scenario--recommended .dorvo__scenario-arrow { display: inline; }

/* Scenario C interactive states */
.dorvo__scenario--recommended { cursor: pointer; position: relative; }
.dorvo__scenario--recommended:hover { border-color: #A67C52; box-shadow: 0 4px 16px rgba(166,124,82,.12); }
.dorvo__scenario--recommended:hover .dorvo__scenario-arrow { color: #A67C52; transform: translateX(3px); }
.dorvo__scenario--recommended:focus-visible { outline: 2px solid #A67C52; outline-offset: 2px; }

/* Selected state — after click */
.dorvo__scenario--recommended.is-selected { border-color: #A67C52; background: rgba(166,124,82,.06); pointer-events: none; }
.dorvo__scenario--recommended.is-selected .dorvo__scenario-arrow { display: none; }

/* De-emphasize A and B after selection */
.dorvo__scenario-grid.is-decided .dorvo__scenario:not(.dorvo__scenario--recommended) { opacity: .35; }

/* Execution departments */
.dorvo__dept-grid { display: flex; flex-direction: column; gap: 6px; }
.dorvo__dept { padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(166,124,82,.02); border: 1px solid rgba(166,124,82,.06); opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s ease, background .3s ease; }
.dorvo__dept.is-visible { opacity: 1; transform: translateY(0); }

/* Dept head row */
.dorvo__dept-head { display: flex; justify-content: space-between; align-items: center; }
.dorvo__dept-head strong { font-size: 13px; color: rgba(166,124,82,.5); transition: color .3s ease; }

/* State badge */
.dorvo__dept-state { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: rgba(166,124,82,.3); transition: color .3s ease; }

/* Waiting state */
.dorvo__dept.is-waiting { border-color: rgba(166,124,82,.08); }
.dorvo__dept.is-waiting .dorvo__dept-head strong { color: rgba(166,124,82,.4); }

/* Processing state */
.dorvo__dept.is-processing { border-color: rgba(166,124,82,.2); background: rgba(166,124,82,.04); }
.dorvo__dept.is-processing .dorvo__dept-head strong { color: #A67C52; }
.dorvo__dept.is-processing .dorvo__dept-state { color: #A67C52; }

/* Completed state */
.dorvo__dept.is-done { border-color: rgba(166,124,82,.12); background: rgba(166,124,82,.03); }
.dorvo__dept.is-done .dorvo__dept-head strong { color: rgba(166,124,82,.6); }
.dorvo__dept.is-done .dorvo__dept-state { color: rgba(166,124,82,.5); }

/* Active monitoring state (distinct from done) */
.dorvo__dept.is-monitoring { border-color: rgba(166,124,82,.18); background: rgba(166,124,82,.05); }
.dorvo__dept.is-monitoring .dorvo__dept-head strong { color: #A67C52; }
.dorvo__dept.is-monitoring .dorvo__dept-state { color: #A67C52; }

/* Signal pulse */
.dorvo__dept.is-signaled { animation: dorvoSignal .5s var(--ease-out); }
@keyframes dorvoSignal { 0% { box-shadow: 0 0 0 0 rgba(166,124,82,.3); } 50% { box-shadow: 0 0 0 5px rgba(166,124,82,.12); } 100% { box-shadow: 0 0 0 0 rgba(166,124,82,0); } }

/* Processing text */
.dorvo__dept-proc { font-size: 10px; color: rgba(166,124,82,.5); margin-top: 4px; min-height: 0; line-height: 1.5; transition: opacity .2s ease; }
.dorvo__dept.is-waiting .dorvo__dept-proc { display: none; }

/* Task list */
.dorvo__dept-tasks { margin-top: 4px; }
.dorvo__task-item { font-size: 10px; font-weight: 500; color: rgba(166,124,82,.5); padding: 2px 0; padding-left: 12px; position: relative; opacity: 0; transform: translateY(3px); transition: opacity .25s ease, transform .25s ease; }
.dorvo__task-item.is-visible { opacity: 1; transform: translateY(0); }
.dorvo__task-item::before { content: '+'; position: absolute; left: 0; font-weight: 700; color: #A67C52; }

/* KPI metrics */
.dorvo__dept-metrics { margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.dorvo__metric { font-size: 9px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: rgba(166,124,82,.06); color: rgba(166,124,82,.4); opacity: 0; transition: opacity .25s ease, background .3s ease, color .3s ease; }
.dorvo__metric.is-visible { opacity: 1; }
.dorvo__metric.is-live { background: rgba(166,124,82,.1); color: #A67C52; }

/* Decision status (transition text between approval and execution) */
.dorvo__decision-status { font-size: 11px; font-weight: 600; color: #A67C52; margin-top: var(--sp-3); min-height: 16px; opacity: 0; transition: opacity .3s ease; }
.dorvo__decision-status.is-visible { opacity: 1; }

/* Final */
.dorvo__final { text-align: center; padding: var(--sp-5) 0; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.dorvo__final.is-visible { opacity: 1; transform: translateY(0); }
.dorvo__final-summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-4); font-size: 11px; font-weight: 600; color: #A67C52; }
.dorvo__final-sep { color: rgba(166,124,82,.3); }
.dorvo__final-lead { font-size: var(--text-lg); font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.dorvo__final-body { font-size: var(--text-base); color: var(--text-secondary); }

/* Replay */
.dorvo__replay { display: none; margin: var(--sp-4) auto 0; font: inherit; font-size: 12px; font-weight: 500; color: rgba(166,124,82,.45); background: none; border: 1px solid rgba(166,124,82,.15); border-radius: var(--radius-sm); padding: 6px 18px; cursor: pointer; transition: all .2s ease; }
.dorvo__replay:hover { color: #A67C52; border-color: rgba(166,124,82,.35); }
.dorvo.is-complete .dorvo__replay { display: block; }

/* Responsive */
@media (max-width: 600px) {
  .dorvo { max-width: 100%; }
  .dorvo__scenario { flex-wrap: wrap; }
  .dorvo__dept-head { flex-wrap: wrap; gap: 4px; }
  .dorvo__final-summary { font-size: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dorvo__phase,
  .dorvo__proc-line,
  .dorvo__source,
  .dorvo__finding,
  .dorvo__scenario,
  .dorvo__dept,
  .dorvo__final,
  .dorvo__xquery,
  .dorvo__xquery-result,
  .dorvo__decision-status,
  .dorvo__task-item,
  .dorvo__metric,
  .dorvo__dept-proc { transition: none !important; }
  .dorvo__phase.is-visible { opacity: 1; transform: none; }
  .dorvo__proc-line.is-visible { opacity: 1; transform: none; }
  .dorvo__source.is-visible { opacity: 1; }
  .dorvo__finding.is-visible { opacity: 1; transform: none; }
  .dorvo__scenario.is-visible { opacity: 1; transform: none; }
  .dorvo__dept.is-visible { opacity: 1; transform: none; }
  .dorvo__final.is-visible { opacity: 1; transform: none; }
  .dorvo__xquery.is-visible { opacity: 1; }
  .dorvo__xquery-result.is-visible { opacity: 1; }
  .dorvo__decision-status.is-visible { opacity: 1; }
  .dorvo__task-item.is-visible { opacity: 1; transform: none; }
  .dorvo__metric.is-visible { opacity: 1; }
  .dorvo__source.is-connecting::after { animation: none !important; display: none; }
  .dorvo__dept.is-signaled { animation: none !important; }
}

/* ============================================================
   Project Proof Component
   ============================================================ */

.proj-proof { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); margin-top: var(--sp-5); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); }

.proj-proof__status { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-full); }
.proj-proof__status--live { background: rgba(217,48,37,.08); color: #D93025; }
.proj-proof__status--dev { background: rgba(37,99,235,.06); color: #2563EB; }

.proj-proof__desc { font-size: 13px; color: var(--text-secondary); }

.proj-proof__link { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-left: auto; text-decoration: none; transition: color .2s ease; }
.proj-proof__link:hover { color: #D93025; }

.proj-proof__soon { font-size: 12px; color: var(--text-muted); font-style: italic; margin-left: auto; }

@media (max-width: 600px) {
  .proj-proof { flex-direction: column; align-items: flex-start; }
  .proj-proof__link, .proj-proof__soon { margin-left: 0; }
}

/* ── Author Section ──────────────────────────────── */

.section.author {
  padding: var(--sp-section) 0;
  border-top: 1px solid var(--border-subtle);
}

.author__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  max-width: 640px;
}

/* Portrait slot — gracefully hidden when no image is present */
.author__portrait {
  display: none;
}

.author__portrait:has(img) {
  display: block;
}

/* When portrait is added, switch to side-by-side layout */
.author__layout:has(.author__portrait img) {
  grid-template-columns: 280px 1fr;
  max-width: 900px;
  align-items: start;
  gap: var(--sp-16);
}

.author__portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: grayscale(0.15);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.author__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1A1F2B;
  margin-bottom: var(--sp-2);
}

.author__subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: #64707E;
  line-height: 1.3;
  margin-bottom: var(--sp-10);
}

.author__body {
  font-size: var(--text-base);
  color: #64707E;
  line-height: 1.7;
  margin-bottom: var(--sp-4);
  max-width: 540px;
}

.author__body:last-of-type {
  margin-bottom: var(--sp-10);
}

.author__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #1A1F2B;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-1);
}

.author__role {
  font-size: var(--text-sm);
  color: #94A3B8;
  letter-spacing: 0.02em;
}

/* ── Author responsive ───────────────────────────── */

@media (max-width: 900px) {
  .author__layout:has(.author__portrait img) {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .author__portrait img {
    max-width: 240px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
  }
}

@media (max-width: 600px) {
  .author__title {
    font-size: 1.5rem;
  }

  .author__subtitle {
    font-size: 1.25rem;
  }

  .author__portrait img {
    max-width: 180px;
  }
}

/* ── Capabilities ──────────────────────────────── */

.caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.cap {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.cap:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.cap__num {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--sp-3);
}

.cap__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: var(--leading-snug);
}

.cap__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}


/* ── Selected Work ─────────────────────────────── */

.selected-work {
  padding-top: 0;
  padding-bottom: var(--sp-section);
}

.sw {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-10);
}

.sw__card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.sw__card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.sw__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}

.sw__num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sw__num--rgo  { color: #DC2626; }
.sw__num--movo { color: var(--accent); }
.sw__num--dorvo { color: #8B5CF6; }

.sw__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-2);
}

.sw__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  flex-grow: 1;
  margin-bottom: var(--sp-6);
}

.sw__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sw__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sw__status--live .sw__dot  { background: #16A34A; }
.sw__status--dev .sw__dot   { background: var(--accent); }
.sw__status--concept .sw__dot { background: #8B5CF6; }

.sw__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
  transition: color var(--duration-fast);
}

.sw__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.sw__card:hover .sw__link {
  color: var(--text-primary);
}

.sw__card:hover .sw__arrow {
  transform: translateX(3px);
}
