/* ============================================================
   LINKAWAY — Article (classic HTML/CSS/JS)
   ============================================================ */

:root {
  --lw-navy:         #1C2B35;
  --lw-navy-deep:    #0f172a;
  --lw-navy-hover:   #10181e;
  --lw-blue:         #2563eb;
  --lw-blue-hover:   #1d4ed8;
  --lw-indigo:       #4f46e5;
  --lw-green:        #16a34a;
  --lw-red:          #ef4444;
  --lw-amber:        #d97706;

  --lw-bg:           #ffffff;
  --lw-bg-secondary: #F8F8F8;
  --lw-bg-tertiary:  #EFEFEF;
  --lw-border:       #e2e8f0;
  --lw-border-soft:  rgba(15, 23, 42, 0.06);

  --lw-text-primary: #1e293b;
  --lw-text-heading: #0f172a;
  --lw-text-muted:   #64748b;
  --lw-text-faint:   #94a3b8;
  --lw-text-body:    #334155;

  --lw-indigo-tint:  rgba(79, 70, 229, 0.08);
  --lw-green-tint:   rgba(22, 163, 74, 0.10);
  --lw-red-tint:     rgba(239, 68, 68, 0.10);
  --lw-amber-tint:   rgba(245, 158, 11, 0.10);

  --lw-gradient-text: linear-gradient(90deg, #2563eb, #4f46e5);

  --lw-shadow-card:       0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --lw-shadow-card-hover: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lw-text-primary);
  background: var(--lw-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

/* Article-only header contrast on white backgrounds. */
.navbar {
  background: rgba(241, 245, 249, 0.72);
  border-color: transparent;
  box-shadow: none;
}

/* ── PROGRESS BAR ── */
.read-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  background: transparent;
  z-index: 9999; pointer-events: none;
}
.read-progress__bar {
  height: 100%; width: 0%;
  background: var(--lw-gradient-text);
  transition: width 0.08s linear;
}

/* ── UTILITIES ── */
.kicker {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  background: var(--lw-indigo-tint);
  color: var(--lw-indigo);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.gradient-text {
  background: var(--lw-gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── ARTICLE LAYOUT ── */
.article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8.5rem 2rem 6rem;
}
.article__hero { max-width: 820px; margin: 0 auto 4rem; }
.article__meta {
  display: flex; align-items: center; gap: 1rem;
  color: var(--lw-text-muted);
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.article__meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lw-text-faint); }
.article__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--lw-text-heading);
  margin-bottom: 1.5rem;
}
.article__lede {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--lw-text-body);
  max-width: 720px;
  letter-spacing: -0.01em;
}

.article__body {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px) 200px;
  gap: 4rem;
  justify-content: center;
  margin-top: 5rem;
}

/* ── TOC ── */
.toc {
  position: sticky;
  top: max(6rem, calc((100vh - 37rem) / 2));
  align-self: start;
  font-size: 0.78rem;
  border-left: 1px solid var(--lw-border);
  padding-left: 1rem;
  max-height: calc(100vh - 8rem); overflow-y: auto;
}
.toc__label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lw-text-faint);
  margin-bottom: 1rem; display: block;
}
.toc__item {
  display: flex; gap: 0.6rem; padding: 0.45rem 0;
  color: var(--lw-text-muted);
  text-decoration: none; font-weight: 500;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.toc__item__num {
  font-variant-numeric: tabular-nums;
  color: var(--lw-text-faint);
  font-weight: 600; width: 1.4rem; flex-shrink: 0;
}
.toc__item:hover { color: var(--lw-navy); }
.toc__item.is-active { color: var(--lw-navy-deep); font-weight: 600; }
.toc__item.is-active .toc__item__num { color: var(--lw-indigo); }

.article__column { min-width: 0; }

/* ── RAIL ── */
.rail {
  position: sticky;
  top: max(6rem, calc(50vh - 7.8rem));
  align-self: start;
  font-size: 0.78rem;
  min-height: 200px;
}
.rail__label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lw-text-faint); margin-bottom: 1rem;
}
.rail__num {
  font-size: 2.4rem; font-weight: 800;
  color: var(--lw-text-heading);
  letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rail__title {
  font-size: 0.85rem; font-weight: 600;
  color: var(--lw-text-body);
  margin-top: 0.4rem; line-height: 1.4;
}
.rail__quote {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--lw-border);
  font-size: 0.78rem; color: var(--lw-text-body);
  font-weight: 500; line-height: 1.55;
  letter-spacing: -0.005em;
}
.rail.is-hidden { visibility: hidden; }

/* ── PROSE ── */
.prose p {
  font-size: 1.0625rem; line-height: 1.78;
  color: var(--lw-text-body);
  margin: 0 0 1.4em;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.prose p strong { color: var(--lw-text-heading); font-weight: 600; }
.prose a {
  color: var(--lw-blue); text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.prose a:hover { border-bottom-color: var(--lw-blue); color: var(--lw-blue-hover); }
.prose ul { margin: 0 0 1.6em; padding: 0; list-style: none; }
.prose ul li {
  position: relative; padding-left: 1.6rem;
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--lw-text-body);
  margin-bottom: 0.65em;
}
.prose ul li::before {
  content: ""; position: absolute;
  left: 0; top: 0.78em;
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--lw-indigo);
}

/* ── SECTION ── */
.section { margin: 5rem 0 2rem; scroll-margin-top: 5rem; }
.section__num {
  font-weight: 600; font-size: 0.78rem;
  color: var(--lw-indigo);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.6rem; display: block;
}
.section__title {
  font-size: clamp(1.65rem, 2.6vw, 2.05rem);
  font-weight: 700; line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--lw-text-heading);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.section h3 {
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--lw-text-heading);
  margin: 2.25rem 0 0.9rem;
}

/* ── PULLQUOTE ── */
.pullquote {
  margin: 2.5rem 0; padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--lw-indigo);
  font-weight: 500; font-size: 1.35rem;
  line-height: 1.45;
  color: var(--lw-text-heading);
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

/* ── FIGURE ── */
.figure {
  margin: 2.5rem 0 3rem;
  width: calc(100% + 4rem); margin-left: -2rem;
}
.figure__caption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--lw-text-faint);
  font-weight: 500;
  text-align: center;
}

/* ── VIZ CARD ── */
.viz-card {
  background: var(--lw-bg);
  border: 1px solid var(--lw-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--lw-shadow-card);
  position: relative; overflow: hidden;
}
.viz-card--padless { padding: 0; overflow: hidden; }

/* ── KEYSTAT ── */
.keystat {
  display: flex; gap: 1.4rem; align-items: center;
  background: var(--lw-bg-secondary);
  border-left: 3px solid var(--lw-indigo);
  border-radius: 0 16px 16px 0;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.keystat__num {
  font-size: 2.6rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--lw-text-heading);
  font-variant-numeric: tabular-nums;
  line-height: 1; flex-shrink: 0;
}
.keystat__txt {
  font-size: 0.95rem; color: var(--lw-text-body);
  line-height: 1.55;
}
.keystat__txt small {
  display: block; color: var(--lw-text-faint); font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* ── NOTE BLOCK (sober) ── */
.note {
  margin: 2.5rem 0;
  background: var(--lw-bg-secondary);
  border: 1px solid var(--lw-border);
  border-left: 3px solid var(--lw-indigo);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  position: relative;
}
.note--green { border-left-color: var(--lw-green); }
.note__kicker {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lw-indigo);
  margin-bottom: 0.6rem;
}
.note--green .note__kicker { color: var(--lw-green); }
.note__quote {
  font-weight: 500; font-size: 1.3rem;
  color: var(--lw-text-heading);
  line-height: 1.4; letter-spacing: -0.02em;
  max-width: 90%;
}
.note__lead {
  font-size: 0.98rem; font-weight: 600;
  color: var(--lw-text-heading);
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem; line-height: 1.4;
}
.note__body {
  font-size: 0.92rem; color: var(--lw-text-body);
  line-height: 1.7;
}
.note__body strong { color: var(--lw-text-heading); }
.note__sub {
  margin-top: 1rem; font-size: 0.85rem;
  color: var(--lw-text-body); line-height: 1.6;
  max-width: 85%;
}

/* ── DEFINITION CARDS (sec 6) ── */
.def-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 1.5rem 0 2rem;
}
.def-card {
  background: var(--lw-bg-secondary);
  border: 1px solid var(--lw-border);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}
.def-card__k {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--lw-indigo);
}
.def-card--alt .def-card__k { color: var(--lw-amber); }
.def-card__t {
  font-size: 0.95rem; font-weight: 600;
  color: var(--lw-text-heading);
  margin-bottom: 0.4rem;
}
.def-card__d { font-size: 0.85rem; color: var(--lw-text-body); line-height: 1.55; }

/* ── REASONS GRID (sec 9) ── */
.reasons-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.8rem; margin: 1.5rem 0 2rem;
}
.reasons-card {
  padding: 1.1rem 1.2rem;
  background: var(--lw-bg);
  border: 1px solid var(--lw-border);
  border-radius: 14px;
}
.reasons-card__h { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.4rem; }
.reasons-card__n { font-weight: 700; color: var(--lw-indigo); font-size: 0.78rem; letter-spacing: 0.05em; }
.reasons-card__t {
  font-size: 0.92rem; font-weight: 700;
  color: var(--lw-text-heading);
  letter-spacing: -0.01em;
}
.reasons-card__d { font-size: 0.83rem; color: var(--lw-text-body); line-height: 1.55; }

/* ============================================================
   HERO VIZ — Animated flow
   ============================================================ */
.hero-viz {
  margin-top: 3rem;
  background: var(--lw-bg-secondary);
  border: 1px solid var(--lw-border);
  border-radius: 24px;
  padding: 2rem;
  position: relative; overflow: hidden;
}
.hero-viz__head {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
  gap: 1rem; margin-bottom: 1.4rem;
}
.hero-viz__head h4 {
  font-size: 0.7rem; font-weight: 700;
  color: var(--lw-text-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.hero-viz__head p {
  font-size: 0.88rem; font-weight: 500;
  color: var(--lw-text-body);
  max-width: 340px; line-height: 1.5;
}
.hero-viz__counters { display: flex; gap: 1.5rem; align-items: flex-start; }
.hero-viz__counter { text-align: right; }
.hero-viz__counter__k {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lw-text-muted);
  margin-bottom: 0.3rem;
}
.hero-viz__counter--grad .hero-viz__counter__k {
  background: var(--lw-gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-viz__counter__n {
  font-size: 2.2rem; font-weight: 800;
  color: var(--lw-text-heading);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.hero-viz__counter--grad .hero-viz__counter__n {
  background: var(--lw-gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-viz__counter__s {
  font-size: 0.72rem; color: var(--lw-text-muted);
  margin-top: 0.2rem;
}
.hero-viz__divider { width: 1px; align-self: stretch; background: var(--lw-border); }

.hero-viz__stage {
  position: relative;
  height: 260px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--lw-border);
  overflow: hidden;
}
.hero-viz__source, .hero-viz__dest {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 0.6rem;
  z-index: 3;
}
.hero-viz__source { left: 18px; }
.hero-viz__dest { right: 18px; flex-direction: row-reverse; }
.hero-viz__node {
  width: 44px; height: 44px; border-radius: 12px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.hero-viz__node--source { background: var(--lw-indigo); box-shadow: 0 8px 20px -8px rgba(79,70,229,0.5); }
.hero-viz__node--dest { background: var(--lw-green); box-shadow: 0 8px 20px -8px rgba(22,163,74,0.5); }
.hero-viz__node-label { font-size: 0.72rem; font-weight: 600; color: var(--lw-text-muted); }
.hero-viz__rail {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.hero-viz__rail::before {
  content: "";
  position: absolute; left: 8%; right: 8%; top: 50%;
  height: 1px; opacity: .5;
  background-image: linear-gradient(90deg, var(--lw-border) 50%, transparent 50%);
  background-size: 12px 1px;
}

.dot {
  position: absolute; width: 10px; height: 10px;
  border-radius: 50%;
  will-change: left, opacity;
}
.dot__label {
  position: absolute; top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem; font-weight: 600;
  background: #fff; padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap; pointer-events: none;
}

.hero-viz__legend {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  margin-top: 1.2rem; align-items: center;
}
.hero-viz__legend__k {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-text-muted);
}
.hero-viz__legend__item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: var(--lw-text-body);
}
.hero-viz__legend__dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   TRACKING CHAIN
   ============================================================ */
.chain {
  padding: 2rem 1.5rem;
}
.chain__head {
  font-size: 0.7rem; font-weight: 700;
  color: var(--lw-text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.chain__row {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem; align-items: start;
}
.chain__step { position: relative; text-align: center; }
.chain__connector {
  position: absolute; top: 24px; left: 70%; width: 60%; height: 2px;
  background: var(--lw-border);
  overflow: hidden;
}
.chain__connector::after {
  content: ""; position: absolute; inset: 0;
  background: var(--lw-indigo);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s ease;
}
.is-visible .chain__step:nth-child(1) .chain__connector::after { transition-delay: 0.2s; transform: scaleX(1); }
.is-visible .chain__step:nth-child(2) .chain__connector::after { transition-delay: 0.32s; transform: scaleX(1); }
.is-visible .chain__step:nth-child(3) .chain__connector::after { transition-delay: 0.44s; transform: scaleX(1); }
.is-visible .chain__step:nth-child(4) .chain__connector::after { transition-delay: 0.56s; transform: scaleX(1); }
.is-visible .chain__step:nth-child(5) .chain__connector::after { transition-delay: 0.68s; transform: scaleX(1); }
.is-visible .chain__step:nth-child(6) .chain__connector::after { transition-delay: 0.80s; transform: scaleX(1); }

.chain__node {
  width: 48px; height: 48px; border-radius: 14px;
  margin: 0 auto 0.6rem;
  background: var(--lw-indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 6px 16px -6px rgba(79,70,229,0.4);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.chain__node--weak {
  background: #fff; color: var(--lw-amber);
  border: 1.5px dashed var(--lw-amber);
  box-shadow: none;
}
.chain__warn {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--lw-amber); color: #fff;
  font-size: 0.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.is-visible .chain__step .chain__node { opacity: 1; transform: translateY(0); }
.is-visible .chain__step:nth-child(1) .chain__node { transition-delay: 0s; }
.is-visible .chain__step:nth-child(2) .chain__node { transition-delay: 0.12s; }
.is-visible .chain__step:nth-child(3) .chain__node { transition-delay: 0.24s; }
.is-visible .chain__step:nth-child(4) .chain__node { transition-delay: 0.36s; }
.is-visible .chain__step:nth-child(5) .chain__node { transition-delay: 0.48s; }
.is-visible .chain__step:nth-child(6) .chain__node { transition-delay: 0.60s; }
.is-visible .chain__step:nth-child(7) .chain__node { transition-delay: 0.72s; }

.chain__label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--lw-text-heading);
  margin-bottom: 0.15rem;
}
.chain__sub { font-size: 0.68rem; color: var(--lw-text-muted); line-height: 1.35; }
.chain__weak {
  font-size: 0.6rem; font-weight: 600;
  color: var(--lw-amber); margin-top: 0.35rem;
}
.chain__foot {
  margin-top: 1.5rem; padding-top: 1.2rem;
  border-top: 1px solid var(--lw-border);
  font-size: 0.82rem; color: var(--lw-text-muted);
  text-align: center;
}

/* ============================================================
   FRAGILITY GRID
   ============================================================ */
.frag-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.frag-card {
  background: #fff; border: 1px solid var(--lw-border);
  border-radius: 20px; overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: flex; flex-direction: column;
}
.is-visible .frag-card:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.is-visible .frag-card:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.is-visible .frag-card:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.is-visible .frag-card:nth-child(4) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

.frag-card__viz {
  background: var(--lw-bg-secondary);
  height: 140px; padding: 0.9rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--lw-border);
}
.frag-card__body { padding: 1.1rem 1.2rem 1.2rem; }
.frag-card__k {
  display: inline-block;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.55rem; border-radius: 9999px;
  margin-bottom: 0.7rem;
}
.frag-card--amber .frag-card__k { color: var(--lw-amber); background: rgba(217,119,6,0.10); }
.frag-card--red   .frag-card__k { color: var(--lw-red);   background: rgba(239,68,68,0.10); }
.frag-card--indigo .frag-card__k { color: var(--lw-indigo); background: rgba(79,70,229,0.10); }
.frag-card__t {
  font-size: 0.95rem; font-weight: 700;
  color: var(--lw-text-heading);
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem; line-height: 1.3;
}
.frag-card__d {
  font-size: 0.82rem; color: var(--lw-text-muted);
  line-height: 1.55;
}

/* mini-illustrations */
.mini-browser {
  position: absolute; inset: 0.9rem;
  background: #fff;
  border: 1px solid var(--lw-border);
  border-radius: 8px;
  overflow: hidden;
}
.mini-browser__bar {
  height: 14px; background: var(--lw-bg-secondary);
  border-bottom: 1px solid var(--lw-border);
  display: flex; align-items: center; padding-left: 6px; gap: 3px;
}
.mini-browser__bar span { width: 6px; height: 6px; border-radius: 50%; opacity: 0.5; }
.mini-browser__body { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.mini-browser__line { height: 4px; background: var(--lw-bg-tertiary); border-radius: 2px; }

.cookie-banner {
  position: absolute; bottom: 6px; left: 6px; right: 6px;
  background: var(--lw-navy-deep); color: #fff;
  border-radius: 6px; padding: 7px 8px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.2);
}
.cookie-banner__t { font-size: 0.55rem; flex: 1; line-height: 1.3; opacity: 0.85; }
.cookie-banner__btn { font-size: 0.55rem; font-weight: 600; padding: 3px 6px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.is-visible .cookie-banner__btn--refuse {
  background: var(--lw-amber);
  box-shadow: 0 0 0 2px rgba(217,119,6,0.25);
  font-weight: 700;
  transition: background 0.6s ease 0.5s;
}

.adblock-mini {
  position: absolute; inset: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.adblock-mini__scripts {
  display: flex; flex-direction: column; gap: 5px; opacity: 0.5;
}
.adblock-mini__script {
  font-size: 0.5rem; font-family: ui-monospace, monospace;
  color: var(--lw-text-muted);
  background: #fff;
  border: 1px solid var(--lw-border);
  border-radius: 4px;
  padding: 3px 5px;
  white-space: nowrap;
}
.is-visible .adblock-mini__script--blocked {
  text-decoration: line-through;
  transition: all 0.4s ease 0.5s;
}
.adblock-mini__shield {
  width: 56px; height: 56px;
  transform: scale(0.6) rotate(-20deg); opacity: 0;
  transition: all 0.6s cubic-bezier(.34,1.56,.64,1) 0.2s;
  filter: drop-shadow(0 4px 12px rgba(239,68,68,0.3));
}
.is-visible .adblock-mini__shield { transform: scale(1) rotate(0); opacity: 1; }

.safari-mini { position: absolute; inset: 0.9rem; }
.safari-mini__bar {
  height: 16px; background: var(--lw-bg-secondary);
  border-bottom: 1px solid var(--lw-border);
  display: flex; align-items: center; padding-left: 6px; gap: 4px;
}
.safari-mini__bar span { width: 6px; height: 6px; border-radius: 50%; opacity: 0.5; }
.safari-mini__url {
  flex: 1; height: 8px; background: #fff;
  border: 1px solid var(--lw-border); border-radius: 3px;
  margin: 0 6px; padding-left: 4px;
  display: flex; align-items: center;
}
.safari-mini__body { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.safari-mini__row {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.55rem; font-family: ui-monospace, monospace;
  color: var(--lw-text-body);
  transition: color 0.4s ease 0.5s;
}
.safari-mini__row .safari-mini__d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lw-green);
  transition: background 0.4s ease 0.5s;
}
.safari-mini__row span:last-child { transition: all 0.4s ease 0.5s; }
.is-visible .safari-mini__row { color: var(--lw-text-faint); }
.is-visible .safari-mini__row .safari-mini__d { background: var(--lw-red); }
.is-visible .safari-mini__row span:last-child { text-decoration: line-through; }

.pixel-mini { position: absolute; inset: 0.9rem; }
.pixel-mini__inner {
  position: absolute; inset: 0;
  background: #fff; border: 1px solid var(--lw-border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
}
.pixel-mini__head {
  padding: 6px 8px;
  border-bottom: 1px solid var(--lw-border);
  font-size: 0.55rem; font-weight: 600;
  color: var(--lw-text-heading);
}
.pixel-mini__body { padding: 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pixel-mini__total {
  display: flex; justify-content: space-between;
  font-size: 0.55rem; color: var(--lw-text-muted);
}
.pixel-mini__total strong { color: var(--lw-text-heading); font-weight: 700; }
.pixel-mini__sep { height: 1px; background: var(--lw-border); margin: 3px 0; }
.pixel-mini__pixel {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.5rem; font-family: ui-monospace, monospace;
  color: var(--lw-text-muted);
  background: var(--lw-bg-secondary);
  padding: 3px 5px; border-radius: 3px;
  border: 1px dashed var(--lw-border);
  transition: border-color 0.4s ease 0.4s;
}
.pixel-mini__pixel__sq {
  width: 6px; height: 6px; border-radius: 1px;
  background: var(--lw-text-faint);
  transition: background 0.4s ease 0.4s;
}
.pixel-mini__pixel__code { flex: 1; }
.is-visible .pixel-mini__pixel { border-color: var(--lw-red); }
.is-visible .pixel-mini__pixel__sq { background: var(--lw-red); }
.is-visible .pixel-mini__pixel__code { text-decoration: line-through; }
.pixel-mini__status {
  font-size: 0.5rem; color: var(--lw-text-muted);
  font-weight: 600;
  transition: color 0.4s ease 0.7s;
}
.is-visible .pixel-mini__status { color: var(--lw-red); }
.pixel-mini__status .v1 { display: inline; }
.pixel-mini__status .v2 { display: none; }
.is-visible .pixel-mini__status .v1 { display: none; }
.is-visible .pixel-mini__status .v2 { display: inline; }

/* ============================================================
   EPC GRID — 173 squares
   ============================================================ */
.epc-card { padding: 1.8rem 1.8rem 1.6rem; }
.epc-card__k {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-text-muted);
  margin-bottom: 0.4rem;
}
.epc-card__t {
  font-size: 1.05rem; font-weight: 700;
  color: var(--lw-text-heading);
  letter-spacing: -0.015em;
  margin-bottom: 1.3rem;
}
.epc-grid {
  background: var(--lw-bg-secondary);
  border: 1px solid var(--lw-border);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 1.2rem;
}
.epc-grid__cells {
  display: grid; grid-template-columns: repeat(25, 1fr);
  gap: 5px;
}
.epc-cell {
  aspect-ratio: 1 / 1; border-radius: 3px;
}
.epc-cell--visible { background: var(--lw-indigo); }
.epc-cell--hidden {
  background: transparent;
  border: 1px dashed var(--lw-amber);
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.is-visible .epc-cell--hidden { opacity: 1; transform: scale(1); }

.epc-legend {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-top: 0.9rem;
  font-size: 0.75rem; color: var(--lw-text-body);
}
.epc-legend__sw {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block; vertical-align: middle; margin-right: 6px;
}
.epc-legend__sw--solid { background: var(--lw-indigo); }
.epc-legend__sw--dashed { border: 1px dashed var(--lw-amber); }

.epc-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.epc-summary__col {
  padding: 1rem 1.1rem;
  border-radius: 12px; background: #fff;
  border: 1px solid var(--lw-border);
}
.epc-summary__col--real {
  border-color: rgba(22,163,74,0.2);
  background: rgba(22,163,74,0.04);
}
.epc-summary__k {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-text-muted);
  margin-bottom: 0.4rem;
}
.epc-summary__col--real .epc-summary__k { color: var(--lw-green); }
.epc-summary__val {
  display: flex; align-items: baseline; gap: 0.5rem;
}
.epc-summary__num {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--lw-text-heading);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.epc-summary__col--real .epc-summary__num { color: var(--lw-green); }
.epc-summary__lbl { font-size: 0.75rem; color: var(--lw-text-muted); }
.epc-summary__col--real .epc-summary__lbl { color: var(--lw-text-body); font-weight: 600; }
.epc-summary__sub {
  font-size: 0.78rem; color: var(--lw-text-muted);
  margin-top: 0.4rem; line-height: 1.5;
}
.epc-summary__col--real .epc-summary__sub { color: var(--lw-text-body); }
.epc-summary__sub strong { color: var(--lw-green); }

/* ============================================================
   ICEBERG
   ============================================================ */
.iceberg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.iceberg__txt {
  padding: 2rem;
  border-right: 1px solid var(--lw-border);
  display: flex; flex-direction: column; gap: 1.4rem; justify-content: center;
}
.iceberg__txt__k {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-text-muted);
  margin-bottom: 0.3rem;
}
.iceberg__txt__num {
  font-size: 2.6rem; font-weight: 800;
  color: var(--lw-text-heading);
  letter-spacing: -0.04em; line-height: 1;
}
.iceberg__txt__num--grad {
  background: var(--lw-gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.iceberg__txt__sub { font-size: 0.85rem; color: var(--lw-text-muted); }
.iceberg__txt__sub strong { color: var(--lw-text-heading); }
.iceberg__txt__div { height: 1px; background: var(--lw-border); }
.iceberg__txt__note {
  font-size: 0.82rem; color: var(--lw-text-body);
  font-weight: 500;
  border-left: 2px solid var(--lw-indigo);
  padding-left: 0.8rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.iceberg__txt__note strong { color: var(--lw-text-heading); font-weight: 700; }

.iceberg__svg {
  position: relative; min-height: 340px;
  background: linear-gradient(180deg, #f1f5fb 0%, #e3eaf3 45%, #2a4a6b 45%, #102136 100%);
  overflow: hidden;
}
.iceberg__svg__waterline {
  position: absolute; top: 45%; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.4);
  z-index: 2;
}
.iceberg__label {
  position: absolute; left: 1rem;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); z-index: 3;
}
.iceberg__label--top {
  top: calc(45% - 18px);
  color: var(--lw-text-muted);
}
.iceberg__label--bottom { top: calc(45% + 10px); }

.iceberg__art { position: absolute; inset: 0; }

/* ============================================================
   ATTRIBUTION JOURNEY
   ============================================================ */
.attr {
  padding: 2rem 1.5rem 1.8rem;
}
.attr__head {
  display: flex; justify-content: space-between;
  align-items: baseline; flex-wrap: wrap;
  gap: 0.4rem; margin-bottom: 1.6rem;
}
.attr__head__k {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-text-muted);
}
.attr__head__t {
  font-size: 0.7rem; font-weight: 600;
  color: var(--lw-amber);
  display: flex; align-items: center; gap: 0.35rem;
}
.attr__head__t::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lw-amber);
}

.attr__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.3rem; position: relative; }
.attr__step { position: relative; text-align: center; }
.attr__conn {
  position: absolute; top: 24px; left: 62%;
  width: 76%; height: 2px;
  background: var(--lw-border);
  overflow: hidden;
}
.attr__conn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--lw-indigo);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.is-visible .attr__step:nth-child(1) .attr__conn::after { transition-delay: 0.1s; transform: scaleX(1); }
.is-visible .attr__step:nth-child(2) .attr__conn::after { transition-delay: 0.2s; transform: scaleX(1); }
.is-visible .attr__step:nth-child(3) .attr__conn::after { transition-delay: 0.3s; transform: scaleX(1); }
.is-visible .attr__step:nth-child(4) .attr__conn::after { transition-delay: 0.4s; transform: scaleX(1); }
.is-visible .attr__step:nth-child(5) .attr__conn::after { transition-delay: 0.5s; transform: scaleX(1); }

.attr__node {
  width: 48px; height: 48px; border-radius: 14px;
  margin: 0 auto 0.5rem;
  background: #fff;
  border: 1px solid var(--lw-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--lw-text-faint);
  position: relative; z-index: 1; overflow: hidden;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.is-visible .attr__step .attr__node { opacity: 1; transform: translateY(0); }
.is-visible .attr__step:nth-child(1) .attr__node { transition-delay: 0s; }
.is-visible .attr__step:nth-child(2) .attr__node { transition-delay: 0.1s; }
.is-visible .attr__step:nth-child(3) .attr__node { transition-delay: 0.2s; }
.is-visible .attr__step:nth-child(4) .attr__node { transition-delay: 0.3s; }
.is-visible .attr__step:nth-child(5) .attr__node { transition-delay: 0.4s; }
.is-visible .attr__step:nth-child(6) .attr__node { transition-delay: 0.5s; }

.attr__node--initiator { color: var(--lw-indigo); }
.attr__node--lastclick {
  border: 2px solid var(--lw-amber);
  box-shadow: 0 6px 16px -4px rgba(217,119,6,0.33);
}
.attr__node--lastclick img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.attr__node--terminal { background: var(--lw-green); color: #fff; border: none; }

.attr__label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--lw-text-heading);
  margin-bottom: 0.15rem;
}
.attr__sub { font-size: 0.66rem; color: var(--lw-text-muted); line-height: 1.3; }
.attr__role {
  margin-top: 0.4rem; display: inline-block;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.18rem 0.4rem; border-radius: 9999px;
}
.attr__role--ini { color: var(--lw-indigo); background: rgba(79,70,229,0.10); }
.attr__role--pas { color: var(--lw-text-muted); background: var(--lw-bg-tertiary); }
.attr__role--cnv { color: var(--lw-amber); background: rgba(217,119,6,0.13); }

.attr__commission {
  margin-top: 1.6rem;
  padding: 0.85rem 1rem;
  background: rgba(217,119,6,0.05);
  border: 1px dashed var(--lw-amber);
  border-radius: 12px;
  display: flex; align-items: center; gap: 0.8rem;
  opacity: 0; transition: opacity 0.5s ease 0.8s;
}
.is-visible .attr__commission { opacity: 1; }
.attr__commission__k {
  font-size: 0.7rem; font-weight: 700;
  color: var(--lw-amber);
  letter-spacing: 0.05em; text-transform: uppercase;
  flex-shrink: 0;
}
.attr__commission__line {
  flex: 1; height: 1px;
  border-top: 1.5px dashed rgba(217,119,6,0.67);
}
.attr__commission__t {
  font-size: 0.78rem; color: var(--lw-text-body);
}
.attr__commission__t strong { color: var(--lw-text-heading); }

/* ============================================================
   DEDUP
   ============================================================ */
.dedup { padding: 2rem; }
.dedup__k {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-text-muted);
  margin-bottom: 1.4rem;
}
.dedup__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.dedup__channels { display: flex; flex-direction: column; gap: 0.6rem; }
.dedup__ch {
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  display: flex; align-items: center; gap: 0.7rem;
  transition: opacity 0.5s ease 1s;
}
.is-visible .dedup__ch--dropped { opacity: 0.55; }
.dedup__ch__dot { width: 8px; height: 8px; border-radius: 50%; }
.dedup__ch__name {
  font-size: 0.85rem; font-weight: 600;
  color: var(--lw-text-heading);
  transition: all 0.4s ease 1s;
}
.is-visible .dedup__ch--dropped .dedup__ch__name { text-decoration: line-through; }
.dedup__ch__sub {
  font-size: 0.7rem; color: var(--lw-text-muted);
  transition: color 0.4s ease 1s;
}
.is-visible .dedup__ch--dropped .dedup__ch__sub { color: var(--lw-red); font-weight: 600; }
.dedup__ch__arrow { opacity: 0; transition: opacity 0.4s ease; }
.is-visible .dedup__ch:nth-child(1) .dedup__ch__arrow { transition-delay: 0.2s; opacity: 1; }
.is-visible .dedup__ch:nth-child(2) .dedup__ch__arrow { transition-delay: 0.3s; opacity: 1; }
.is-visible .dedup__ch:nth-child(3) .dedup__ch__arrow { transition-delay: 0.4s; opacity: 1; }
.is-visible .dedup__ch:nth-child(4) .dedup__ch__arrow { transition-delay: 0.5s; opacity: 1; }

.dedup__sale {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--lw-bg-secondary) 100%);
  border: 2px solid var(--lw-green);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px rgba(22,163,74,0.06), 0 20px 40px -10px rgba(22,163,74,0.19);
}
.dedup__sale__num {
  font-size: 2rem; font-weight: 800;
  color: var(--lw-green); letter-spacing: -0.04em; line-height: 1;
}
.dedup__sale__lbl {
  font-size: 0.7rem; font-weight: 600;
  color: var(--lw-text-muted);
  margin-top: 0.2rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.dedup__sale__price {
  font-size: 0.95rem; font-weight: 700;
  color: var(--lw-text-heading);
  margin-top: 0.1rem;
}

.dedup__after__k {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lw-text-muted);
  margin-bottom: 0.5rem;
}
.dedup__after__box {
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  opacity: 0; transition: opacity 0.6s ease 1.2s;
}
.is-visible .dedup__after__box { opacity: 1; }
.dedup__after__box__t {
  font-size: 0.78rem; color: var(--lw-text-body); line-height: 1.55;
}
.dedup__after__box__t strong { color: var(--lw-red); }
.dedup__after__sub {
  font-size: 0.72rem; color: var(--lw-text-muted);
  margin-top: 0.8rem; line-height: 1.55;
}

/* ============================================================
   CPA vs CPC
   ============================================================ */
.cpa-cpc { display: flex; flex-direction: column; gap: 1rem; }
.cpa-cpc__card {
  border-radius: 20px; padding: 1.6rem;
  opacity: 0; transform: translateY(15px);
  transition: opacity 0.6s, transform 0.6s;
}
.is-visible .cpa-cpc__card { opacity: 1; transform: translateY(0); }
.is-visible .cpa-cpc__card--cpc { transition-delay: 0.15s; }
.cpa-cpc__card--cpa {
  background: #fff; border: 1px solid var(--lw-border);
}
.cpa-cpc__card--cpc {
  background: linear-gradient(180deg, rgba(22,163,74,0.05) 0%, #fff 60%);
  border: 1px solid rgba(22,163,74,0.2);
  position: relative;
}
.cpa-cpc__card--cpc::before {
  content: ""; position: absolute;
  top: -1px; left: 1.6rem; right: 1.6rem;
  height: 3px; background: var(--lw-green);
  border-radius: 0 0 8px 8px;
}
.cpa-cpc__k {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-text-muted);
  margin-bottom: 0.4rem;
}
.cpa-cpc__card--cpc .cpa-cpc__k { color: var(--lw-green); }
.cpa-cpc__t {
  font-size: 1.05rem; font-weight: 700;
  color: var(--lw-text-heading);
  letter-spacing: -0.015em;
  margin-bottom: 1.2rem;
}
.cpa-cpc__chain {
  display: flex; align-items: center;
  min-height: 60px; gap: 0.2rem;
}
.cpa-cpc__chain--short { gap: 0.5rem; }
.cpa-cpc__chain__step {
  flex: 1 1 0; min-width: 0;
  padding: 0.42rem 0.3rem;
  background: #fff;
  border: 1px solid;
  border-radius: 10px;
  text-align: center;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cpa-cpc__chain--short .cpa-cpc__chain__step {
  padding: 0.6rem 0.7rem; font-size: 0.85rem;
}
.cpa-cpc__chain__step--indigo { color: var(--lw-indigo); border-color: var(--lw-indigo); }
.cpa-cpc__chain__step--amber  { color: var(--lw-amber);  border-style: dashed; border-color: var(--lw-amber); }
.cpa-cpc__chain__step--end {
  flex: 0 0 auto; color: #fff; background: var(--lw-green); border: none;
}
.is-visible .cpa-cpc__chain__step { opacity: 1; transform: translateY(0); }
.is-visible .cpa-cpc__chain__step:nth-child(1) { transition-delay: 0s; }
.is-visible .cpa-cpc__chain__step:nth-child(2) { transition-delay: 0.08s; }
.is-visible .cpa-cpc__chain__step:nth-child(3) { transition-delay: 0.16s; }
.is-visible .cpa-cpc__chain__step:nth-child(4) { transition-delay: 0.24s; }
.is-visible .cpa-cpc__chain__step:nth-child(5) { transition-delay: 0.32s; }
.is-visible .cpa-cpc__chain__step:nth-child(6) { transition-delay: 0.40s; }
.is-visible .cpa-cpc__chain__step:nth-child(7) { transition-delay: 0.48s; }
.cpa-cpc__chain__sep { color: var(--lw-text-faint); font-size: 0.8rem; flex-shrink: 0; }

.cpa-cpc__pros {
  margin-top: 1.2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.cpa-cpc__pro {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--lw-text-body);
}

/* ============================================================
   VALUE GAP
   ============================================================ */
.gap-card { padding: 2rem; }
.gap-card__head {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
  gap: 0.5rem; margin-bottom: 1.5rem;
}
.gap-card__head__k {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-text-muted);
  margin-bottom: 0.3rem;
}
.gap-card__head__t {
  font-size: 1.05rem; font-weight: 700;
  color: var(--lw-text-heading);
  letter-spacing: -0.015em;
}
.gap-card__head__r {
  font-size: 0.7rem; color: var(--lw-text-muted);
  align-self: flex-end;
}
.gap-card__rows { display: flex; flex-direction: column; gap: 0.5rem; }
.gap-row { display: flex; align-items: center; gap: 1rem; }
.gap-row__track {
  flex: 1; position: relative; height: 36px;
  background: var(--lw-bg-secondary);
  border-radius: 8px; overflow: hidden;
}
.gap-row__bar {
  position: absolute; top: 0; bottom: 0; left: 0;
  border-radius: 8px;
  width: 0;
  transition: width 0.7s cubic-bezier(.16,1,.3,1);
}
.is-visible .gap-row:nth-child(1) .gap-row__bar { transition-delay: 0.2s; width: 30%; }
.is-visible .gap-row:nth-child(2) .gap-row__bar { transition-delay: 0.35s; width: 50%; }
.is-visible .gap-row:nth-child(3) .gap-row__bar { transition-delay: 0.50s; width: 75%; }
.is-visible .gap-row:nth-child(4) .gap-row__bar { transition-delay: 0.65s; width: 100%; }
.gap-row__bar--green { background: var(--lw-green); }
.gap-row__bar--amber { background: var(--lw-amber); }
.gap-row__bar--blue  { background: var(--lw-blue); }
.gap-row__bar--indigo{ background: var(--lw-indigo); }
.gap-row__label {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center;
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease, left 0.7s cubic-bezier(.16,1,.3,1);
}
.is-visible .gap-row__label { opacity: 1; }
.is-visible .gap-row:nth-child(1) .gap-row__label { transition-delay: 0.5s, 0.2s; }
.is-visible .gap-row:nth-child(2) .gap-row__label { transition-delay: 0.65s, 0.35s; }
.is-visible .gap-row:nth-child(3) .gap-row__label { transition-delay: 0.80s, 0.50s; }
.is-visible .gap-row:nth-child(4) .gap-row__label { transition-delay: 0.95s, 0.65s; }

.gap-row__label--in  { left: 0.9rem; color: #fff; }
.gap-row:nth-child(2) .gap-row__label--in {
  color: var(--lw-text-heading);
}
.gap-row__label--out { color: var(--lw-text-heading); }
.is-visible .gap-row:nth-child(1) .gap-row__label--out { left: 0.9rem; }
.gap-row__sub {
  flex: 0 0 270px;
  font-size: 0.78rem; color: var(--lw-text-muted);
  line-height: 1.4; white-space: nowrap;
}
.gap-card__foot {
  margin-top: 1.5rem; padding-top: 1.2rem;
  border-top: 1px solid var(--lw-border);
  font-size: 0.85rem; color: var(--lw-text-body); line-height: 1.65;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist {
  background: var(--lw-bg-secondary);
  border: 1px solid var(--lw-border);
  border-radius: 20px;
  padding: 1.8rem 1.6rem;
}
.checklist__k {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-indigo);
  margin-bottom: 1.2rem;
}
.checklist__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.4rem;
}
.checklist__item {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.4rem 0;
}
.checklist__box {
  width: 20px; height: 20px; border-radius: 6px;
  background: #fff;
  border: 1.5px solid var(--lw-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  transition: all 0.3s ease;
}
.checklist__box svg { opacity: 0; }
.is-visible .checklist__box { background: var(--lw-green); border-color: var(--lw-green); }
.is-visible .checklist__box svg { opacity: 1; }
.is-visible .checklist__item:nth-child(1) .checklist__box { transition-delay: 0s; }
.is-visible .checklist__item:nth-child(2) .checklist__box { transition-delay: 0.08s; }
.is-visible .checklist__item:nth-child(3) .checklist__box { transition-delay: 0.16s; }
.is-visible .checklist__item:nth-child(4) .checklist__box { transition-delay: 0.24s; }
.is-visible .checklist__item:nth-child(5) .checklist__box { transition-delay: 0.32s; }
.is-visible .checklist__item:nth-child(6) .checklist__box { transition-delay: 0.40s; }
.is-visible .checklist__item:nth-child(7) .checklist__box { transition-delay: 0.48s; }
.is-visible .checklist__item:nth-child(8) .checklist__box { transition-delay: 0.56s; }
.checklist__t {
  font-size: 0.92rem; color: var(--lw-text-body);
  line-height: 1.5; letter-spacing: -0.005em;
}

/* ============================================================
   INFOGRAPHIC CARD + LIGHTBOX
   ============================================================ */
.infocard {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 0.9rem 1.1rem 0.9rem 0.9rem;
  background: #fff;
  border: 1px solid var(--lw-border);
  border-radius: 16px;
  cursor: zoom-in;
  margin: 2rem 0 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none; color: inherit;
}
.infocard:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(15,23,42,0.12);
  border-color: rgba(28,43,53,0.14);
}
.infocard__thumb {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 10px; overflow: hidden;
  background: #0b1828; flex-shrink: 0;
}
.infocard__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.infocard__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,24,40,0) 60%, rgba(11,24,40,0.6) 100%);
}
.infocard__body { min-width: 0; }
.infocard__k {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--lw-indigo);
  margin-bottom: 0.35rem;
}
.infocard__t {
  font-size: 0.98rem; font-weight: 700;
  color: var(--lw-text-heading);
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem; line-height: 1.3;
}
.infocard__sub { font-size: 0.82rem; color: var(--lw-text-muted); line-height: 1.5; }
.infocard__sub a { color: var(--lw-indigo); font-weight: 600; text-decoration: none; }
.infocard__sub a:hover { text-decoration: underline; }
.infocard__expand {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--lw-bg-secondary);
  color: var(--lw-navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(11,18,30,0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex; flex-direction: column;
  padding: 2.5rem 1.5rem 1.5rem;
  cursor: zoom-out;
  animation: lbFade 0.2s ease;
}
.lightbox.is-open { display: flex; }
.lightbox[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__cap {
  display: flex; align-items: center; gap: 0.9rem;
  flex-wrap: wrap;
  margin: 0 auto 1rem;
  max-width: 1000px; width: 100%;
  padding-right: 3.5rem; /* leave room for close button */
  color: rgba(255,255,255,0.88);
}
.lightbox__cap__k {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.lightbox__cap__t {
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.01em;
  flex: 1; min-width: 0;
}
.lightbox__cap__l {
  font-size: 0.82rem; color: #fff;
  text-decoration: underline; text-underline-offset: 3px;
  opacity: 0.85;
  white-space: nowrap;
}
.lightbox__cap__l:hover { opacity: 1; }
.lightbox__img {
  flex: 1; min-height: 0;
  overflow: auto;
  cursor: default;
  text-align: center;
}
.lightbox__img img {
  display: inline-block;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  /* width set in JS to 1.5× natural size; container scrolls */
}

/* ============================================================
   CTA
   ============================================================ */
.cta-block {
  margin: 5rem 0 0;
  background: #102136;
  color: #fff;
  border-radius: 28px;
  padding: 3rem;
  position: relative; overflow: hidden;
}
.cta-block::after {
  content: none;
}
.cta-block__inner { position: relative; max-width: 720px; }
.cta-block__k {
  display: inline-flex; padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.cta-block__t {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.022em;
  line-height: 1.2; margin-bottom: 1rem;
}
.cta-block .cta-block__lede {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem; line-height: 1.7;
  margin-bottom: 1.8rem; max-width: 580px;
}
.cta-block__buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: all 0.28s ease;
}
.cta-block .btn--white { background: #fff; color: var(--lw-navy); }
.cta-block .btn--white:hover { transform: translateY(-2px); }
.cta-block .btn--ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.cta-block .btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.55);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .article__body { grid-template-columns: minmax(0, 720px); }
  .toc, .rail { display: none; }
  .figure { width: 100%; margin-left: 0; }
}
@media (max-width: 720px) {
  .article { padding: 7rem 1.25rem 4rem; }
  .article__title { font-size: 2.1rem; }
  .article__lede { font-size: 1.1rem; }
  .hero-viz {
    margin-top: 2.25rem;
    margin-left: -0.35rem;
    margin-right: -0.35rem;
    padding: 1.15rem;
    border-radius: 22px;
  }
  .hero-viz__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
  }
  .hero-viz__head h4 {
    font-size: 0.68rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
  }
  .hero-viz__head p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.62;
    letter-spacing: -0.01em;
  }
  .hero-viz__counters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100%;
    align-items: stretch;
  }
  .hero-viz__counter {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 0.9rem 0.75rem;
    text-align: left;
    background: #fff;
    border: 1px solid var(--lw-border);
    border-radius: 16px;
    box-shadow: 0 12px 24px -22px rgba(15, 23, 42, 0.45);
  }
  .hero-viz__counter__k {
    min-height: 2.35em;
    font-size: 0.58rem;
    line-height: 1.28;
    letter-spacing: 0.08em;
  }
  .hero-viz__counter__n {
    font-size: clamp(2.45rem, 16vw, 3.25rem);
  }
  .hero-viz__counter__s {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .hero-viz__counter--grad .hero-viz__counter__s {
    font-size: 0;
  }
  .hero-viz__counter--grad .hero-viz__counter__s::after {
    content: "générées";
    font-size: 0.75rem;
  }
  .hero-viz__divider { display: none; }
  .hero-viz__stage {
    height: 225px;
    border-radius: 18px;
  }
  .hero-viz__source { left: 0.9rem; }
  .hero-viz__dest { right: 0.9rem; }
  .hero-viz__node {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 17px;
  }
  .hero-viz__node-label {
    display: none;
  }
  .hero-viz__rail::before {
    left: 18%;
    right: 18%;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
  .dot__label {
    display: none;
  }
  .hero-viz__legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.95rem;
    background: #fff;
    border: 1px solid var(--lw-border);
    border-radius: 16px;
  }
  .hero-viz__legend__k {
    font-size: 0.68rem;
    line-height: 1.3;
  }
  .hero-viz__legend__item {
    min-width: 0;
    gap: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.25;
  }
  .hero-viz__legend__dot {
    flex: 0 0 8px;
  }
  .section { margin: 3.5rem 0 1.5rem; }
  .section__title { font-size: 1.55rem; }
  .pullquote { font-size: 1.2rem; padding-left: 1rem; }
  .keystat { flex-direction: column; gap: 0.5rem; padding: 1.2rem; align-items: flex-start; }
  .cta-block { padding: 2rem 1.5rem; }
  .frag-grid, .def-grid, .reasons-grid, .checklist__grid, .cpa-cpc__pros { grid-template-columns: 1fr; }
  .cpa-cpc__card {
    padding: 1.35rem;
  }
  .cpa-cpc__chain,
  .cpa-cpc__chain--short {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-height: 0;
  }
  .cpa-cpc__chain__step,
  .cpa-cpc__chain--short .cpa-cpc__chain__step {
    flex: none;
    width: 100%;
    padding: 0.65rem 0.8rem;
    font-size: 0.82rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .cpa-cpc__chain__step--end {
    width: 44px;
    align-self: center;
  }
  .cpa-cpc__chain__sep {
    align-self: center;
    line-height: 1;
    transform: rotate(90deg);
  }
  .iceberg { grid-template-columns: 1fr; }
  .iceberg__txt { border-right: none; border-bottom: 1px solid var(--lw-border); }
  .dedup__grid { grid-template-columns: 1fr; }
  .dedup__sale { justify-self: center; }
  .gap-row__sub { display: none; }
  .epc-grid__cells { grid-template-columns: repeat(15, 1fr); }
  .epc-summary {
    grid-template-columns: 1fr;
  }
  .epc-summary__val {
    flex-wrap: wrap;
  }
  .chain { padding: 1.5rem 1.1rem; }
  .chain__head {
    font-size: 0.68rem;
    line-height: 1.35;
    margin-bottom: 1.25rem;
  }
  .chain__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .chain__step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 0.85rem;
    min-height: 76px;
    padding-bottom: 1rem;
    text-align: left;
  }
  .chain__step:last-child {
    min-height: 0;
    padding-bottom: 0;
  }
  .chain__node {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 12px;
  }
  .chain__connector {
    top: 40px;
    left: 19px;
    width: 2px;
    height: calc(100% - 22px);
  }
  .chain__connector::after {
    transform: scaleY(0);
    transform-origin: top;
  }
  .is-visible .chain__step:nth-child(1) .chain__connector::after,
  .is-visible .chain__step:nth-child(2) .chain__connector::after,
  .is-visible .chain__step:nth-child(3) .chain__connector::after,
  .is-visible .chain__step:nth-child(4) .chain__connector::after,
  .is-visible .chain__step:nth-child(5) .chain__connector::after,
  .is-visible .chain__step:nth-child(6) .chain__connector::after {
    transform: scaleY(1);
  }
  .chain__label {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.88rem;
    margin: 0.05rem 0 0.05rem;
  }
  .chain__sub {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.76rem;
  }
  .chain__weak {
    grid-column: 2;
    grid-row: 3;
    font-size: 0.68rem;
    margin-top: 0.25rem;
  }
  .lightbox {
    padding: 1.25rem 1rem 1rem;
  }
  .lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  .lightbox__cap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding-right: 3.25rem;
  }
  .lightbox__cap__k,
  .lightbox__cap__l {
    white-space: normal;
  }
  .lightbox__cap__t {
    font-size: 1rem;
    line-height: 1.25;
    flex: none;
  }
  .lightbox__cap__l {
    width: fit-content;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .attr {
    padding: 1.5rem 1.1rem;
  }
  .attr__head {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
  }
  .attr__head__k {
    line-height: 1.35;
  }
  .attr__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .attr__step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 0.85rem;
    min-height: 82px;
    padding-bottom: 1rem;
    text-align: left;
  }
  .attr__step:last-child {
    min-height: 0;
    padding-bottom: 0;
  }
  .attr__node {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 12px;
  }
  .attr__conn {
    top: 40px;
    left: 19px;
    width: 2px;
    height: calc(100% - 22px);
  }
  .attr__conn::after {
    transform: scaleY(0);
    transform-origin: top;
  }
  .is-visible .attr__step:nth-child(1) .attr__conn::after,
  .is-visible .attr__step:nth-child(2) .attr__conn::after,
  .is-visible .attr__step:nth-child(3) .attr__conn::after,
  .is-visible .attr__step:nth-child(4) .attr__conn::after,
  .is-visible .attr__step:nth-child(5) .attr__conn::after {
    transform: scaleY(1);
  }
  .attr__label {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.92rem;
    margin: 0.02rem 0 0.05rem;
  }
  .attr__sub {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.76rem;
  }
  .attr__role {
    grid-column: 2;
    grid-row: 3;
    width: fit-content;
    margin-top: 0.35rem;
    font-size: 0.64rem;
  }
  .attr__commission {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.3rem;
    padding: 1rem;
  }
  .attr__commission__line {
    width: 100%;
  }
  .attr__commission__t {
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

@media (max-width: 430px) {
  .hero-viz {
    margin-left: -0.2rem;
    margin-right: -0.2rem;
    padding: 1rem;
  }
  .hero-viz__counters {
    gap: 0.55rem;
  }
  .hero-viz__counter {
    padding: 0.8rem 0.65rem;
    border-radius: 14px;
  }
  .hero-viz__counter__n {
    font-size: clamp(2.2rem, 15vw, 2.8rem);
  }
  .hero-viz__stage {
    height: 205px;
  }
  .hero-viz__node {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 15px;
  }
  .hero-viz__legend {
    gap: 0.65rem;
    padding: 0.85rem;
  }
  .hero-viz__legend__item {
    font-size: 0.74rem;
  }
}
