/* Pages technologies premium — SafeDrink™, AquaPolish™ */

/* Typographie : SF system uniquement — pas de PrimoFont sur titres/corps */
.tp-page,
.tp-page h1,
.tp-page h2,
.tp-page h3,
.tp-page h4 {
  font-family: var(--po-font);
}

.tp-page {
  --tp-accent: var(--brand-primary, #0071e3);
  --tp-accent-soft: var(--brand-bg, rgba(0, 113, 227, 0.14));
  --tp-accent-border: var(--brand-border, rgba(0, 113, 227, 0.28));
}

/* ── Hero cinématique ── */
.tp-hero {
  position: relative;
  padding: 88px 22px 48px;
  text-align: center;
  overflow: hidden;
}
.tp-hero::before {
  content: '';
  position: absolute;
  inset: -30% -15% 20%;
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, var(--tp-accent-soft) 0%, transparent 68%),
    radial-gradient(ellipse 38% 32% at 85% 18%, rgba(138, 216, 208, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 32% 28% at 12% 22%, rgba(153, 185, 242, 0.08) 0%, transparent 55%);
  pointer-events: none;
}
.tp-hero > * { position: relative; z-index: 1; }

.tp-hero-logo {
  height: clamp(52px, 8vw, 72px);
  width: auto;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.06));
}
.tp-hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-accent);
  margin-bottom: 10px;
}
.tp-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 16em;
  margin: 0 auto 14px;
  color: var(--po-ink);
}
.tp-hero-lead {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--po-ink-2);
  line-height: 1.55;
  max-width: 38em;
  margin: 0 auto 28px;
}
.tp-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.tp-hl {
  padding: 10px 16px;
  border-radius: var(--po-pill);
  background: var(--po-card);
  border: 1px solid var(--po-card-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  min-width: 100px;
}
.tp-hl strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tp-accent);
  line-height: 1.1;
}
.tp-hl span {
  font-size: 11px;
  font-weight: 600;
  color: var(--po-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Phase explorer — timeline + cartouche hotspots ── */
.tp-explorer {
  max-width: var(--po-wide);
  margin: 0 auto 56px;
  padding: 0 20px;
}
.tp-explorer-inner {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(220px, 280px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-radius: var(--po-r-lg);
  overflow: hidden;
  background: var(--po-card);
  border: 1px solid var(--po-card-border);
  box-shadow: 0 24px 64px rgba(13, 71, 127, 0.08);
  min-height: 480px;
}
[data-theme="dark"] .tp-explorer-inner {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

/* Timeline verticale */
.tp-timeline {
  padding: 28px 18px 28px 22px;
  border-right: 1px solid var(--po-card-border);
  background: var(--po-bg-alt);
  display: flex;
  flex-direction: column;
}
.tp-timeline-rail {
  display: flex;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 4px 0 8px;
}
.tp-timeline-line {
  position: relative;
  width: 3px;
  flex-shrink: 0;
  margin: 14px 0 14px 12px;
  border-radius: 3px;
  background: var(--po-sep);
  align-self: stretch;
}
.tp-timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--tp-accent), #34c759);
  transition: height 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.tp-timeline-steps {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
  padding: 4px 0;
  min-height: 360px;
}
.tp-tl-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.25s var(--po-ease);
}
.tp-tl-step:hover { background: var(--po-surface-hover); }
.tp-tl-step.on { background: color-mix(in srgb, var(--phase-color, var(--tp-accent)) 10%, var(--po-card)); }
.tp-tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--po-ink-3);
  background: var(--po-card);
  border: 2px solid var(--po-card-border);
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.tp-tl-step.on .tp-tl-dot {
  border-color: var(--phase-color, var(--tp-accent));
  background: var(--phase-color, var(--tp-accent));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--phase-color, var(--tp-accent)) 40%, transparent);
  transform: scale(1.08);
}
.tp-tl-step.done .tp-tl-dot {
  border-color: var(--phase-color, var(--tp-accent));
  color: var(--phase-color, var(--tp-accent));
  background: color-mix(in srgb, var(--phase-color, var(--tp-accent)) 12%, var(--po-card));
}
.tp-tl-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--po-ink);
  line-height: 1.25;
}
.tp-tl-sub {
  display: block;
  font-size: 10px;
  color: var(--po-ink-3);
  margin-top: 2px;
  line-height: 1.3;
}
.tp-tl-step.on .tp-tl-label { color: var(--phase-color, var(--tp-accent)); }

.tp-timeline-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--po-ink-3); margin: 0 0 14px 2px;
}

/* Colonne média — cartouche seule */
.tp-media-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 18px;
  border-right: 1px solid var(--po-card-border);
  background: linear-gradient(180deg, var(--po-bg-alt) 0%, var(--po-card) 100%);
  gap: 0;
}
.tp-cartridge-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  /* Même ratio que le viewBox SVG cartouche (347.87 × 410.88) */
  aspect-ratio: 347.87 / 410.88;
}
.tp-cartridge-photo {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(13, 71, 127, 0.16));
}
.tp-cartridge-art {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(13, 71, 127, 0.14));
}
.tp-cartridge-art [data-layer] {
  transition: opacity 0.4s var(--po-ease);
}
.tp-cartridge-art [data-layer].is-lit { opacity: 1; }
.tp-cartridge-art [data-layer]:not(.is-lit) { opacity: 0.55; }
.tp-layer-glows {
  position: absolute;
  inset: 8% 20% 10% 24%;
  pointer-events: none;
}
.tp-layer-glow {
  position: absolute;
  left: 0;
  right: 0;
  height: 14.5%;
  top: var(--layer-top, 14%);
  border-radius: 11px;
  background: var(--phase-color, var(--tp-accent));
  opacity: 0;
  transition: opacity 0.45s var(--po-ease);
}
.tp-layer-glow.on {
  opacity: 0.24;
  animation: tpLayerPulse 2.4s ease-in-out infinite;
}
@keyframes tpLayerPulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.32; }
}
.tp-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Le bouton = uniquement le cercle (28px) centré sur les coords SVG ; le tag est abs. */
.tp-hotspot {
  position: absolute;
  left: var(--hotspot-x, 12%);
  top: var(--hotspot-y, 22%);
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  font-family: inherit;
  z-index: 2;
}
.tp-hotspot-core {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #1d1d1f;
  background: #fff;
  border: 2px solid var(--phase-color, var(--tp-accent));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--phase-color) 28%, transparent);
  transition: transform 0.3s var(--po-ease), background 0.25s, color 0.25s;
}
.tp-hotspot.on .tp-hotspot-core {
  background: var(--phase-color, var(--tp-accent));
  color: #fff;
  transform: scale(1.08);
}
.tp-hotspot-tag {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: var(--po-ink-2);
  background: var(--po-card);
  border: 1px solid var(--po-card-border);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 2;
}
/* 1–3 : label à gauche du cercle */
.tp-hotspot.side-left .tp-hotspot-tag {
  right: calc(100% + 8px);
  top: 50%;
  transform: translate(4px, -50%);
}
/* 4 : label au-dessus du cercle (milieu haut) */
.tp-hotspot.side-top .tp-hotspot-tag {
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
}
.tp-hotspot.on.side-left .tp-hotspot-tag {
  opacity: 1;
  transform: translate(0, -50%);
}
.tp-hotspot.on.side-top .tp-hotspot-tag {
  opacity: 1;
  transform: translate(-50%, 0);
}
.tp-hotspot-pulse {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--phase-color, var(--tp-accent));
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.tp-hotspot.on .tp-hotspot-pulse { animation: tpHotspotPulse 2s ease-out infinite; }
@keyframes tpHotspotPulse {
  0% { transform: scale(0.85); opacity: 0.45; }
  100% { transform: scale(1.7); opacity: 0; }
}
.tp-cartridge-callouts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.tp-callout-line {
  stroke: var(--phase-color, var(--tp-accent));
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.6;
  transition: d 0.4s var(--po-ease);
}

/* Vidéo intégrée sous la cartouche */
.tp-video-panel {
  border-radius: 14px;
  border: 1px solid var(--po-card-border);
  background: var(--po-card);
  overflow: hidden;
}
.tp-video-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--po-ink-3);
  border-bottom: 1px solid var(--po-card-border);
}
.tp-video-panel-head .apei { color: var(--tp-accent); margin-right: 4px; }
.tp-video-expand {
  font-size: 10px;
  font-weight: 600;
  color: var(--po-blue);
  background: rgba(0, 113, 227, 0.08);
  border: none;
  border-radius: var(--po-pill);
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
}
.tp-video-wrap.inline {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a1628;
}
.tp-video-wrap.inline video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* Modal vidéo (secondaire) */
.tp-video-modal[hidden] { display: none; }
.tp-video-modal {
  position: fixed;
  inset: 0;
  z-index: 16000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.tp-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}
.tp-video-modal-panel {
  position: relative;
  width: min(640px, 100%);
  padding: 20px;
  border-radius: 20px;
  background: var(--po-overlay-strong);
  border: 1px solid var(--po-sep);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}
.tp-video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--po-bg-alt);
  font-size: 18px;
  z-index: 2;
}
.tp-video-wrap.modal-enlarge {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(92vw, 960px);
  border-radius: 16px;
  overflow: hidden;
  background: #0a1628;
}
.tp-video-wrap.modal-enlarge video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0a1628;
}
.tp-video-wrap.compact video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}
.tp-video-glow {
  position: absolute;
  inset: auto 12% -30% 12%;
  height: 55%;
  background: radial-gradient(ellipse at center, var(--phase-color, #4aa3ff) 0%, transparent 70%);
  opacity: 0.32;
  filter: blur(32px);
  pointer-events: none;
  transition: background 0.5s;
  z-index: 0;
}
.tp-video-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--po-ink-3);
}
.tp-video-caption i { font-size: 13px; color: var(--tp-accent); }

/* Détail phase */
.tp-phase-detail {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  min-width: 0;
}
.tp-phase-detail .tp-video-panel {
  flex-shrink: 0;
}
.tp-phase-body {
  animation: tpPhaseIn 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  flex: 1;
}
@keyframes tpPhaseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.tp-phase-layout {
  display: grid;
  grid-template-columns: minmax(72px, 120px) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
}
.tp-phase-watermark {
  font-size: clamp(56px, 10vw, 88px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--phase-color, var(--tp-accent)) 16%, transparent);
  padding-top: 4px;
  transition: color 0.4s;
}
.tp-phase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--phase-color, var(--tp-accent)) 14%, var(--po-card));
  color: var(--phase-color, var(--tp-accent));
  font-size: 22px;
  margin-bottom: 12px;
}
.tp-phase-copy h2 {
  font-size: clamp(21px, 3.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--po-ink);
}
.tp-phase-copy p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--po-ink-2);
  max-width: 52em;
  margin-bottom: 16px;
}
.tp-phase-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--po-ink);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--po-bg-alt);
  border: 1px solid var(--po-card-border);
}
.tp-phase-stat i { color: var(--phase-color, var(--tp-accent)); font-size: 16px; }

/* ── Structured Matrix band ── */
.tp-matrix {
  max-width: var(--po-max);
  margin: 0 auto 56px;
  padding: 32px 28px;
  border-radius: var(--po-r-lg);
  background: linear-gradient(145deg, var(--brand-bg, rgba(112, 151, 204, 0.1)), var(--brand-bg-2, rgba(132, 195, 145, 0.06)));
  border: 1px solid var(--brand-border, rgba(112, 151, 204, 0.2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px 24px;
  align-items: center;
}
.tp-matrix-logo img { height: 56px; width: auto; }
.tp-matrix h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--po-ink);
}
.tp-matrix p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--po-ink-2);
  margin: 0;
}
.tp-matrix a {
  font-size: 13px;
  font-weight: 600;
  color: var(--tp-accent);
  text-decoration: none;
  white-space: nowrap;
}
.tp-matrix a:hover { text-decoration: underline; }

/* ── Grille phases (aperçu scroll) ── */
.tp-phase-cards {
  max-width: var(--po-wide);
  margin: 0 auto 56px;
  padding: 0 20px;
}
.tp-phase-cards h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.tp-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tp-pcard {
  padding: 20px 18px;
  border-radius: 20px;
  background: var(--po-card);
  border: 1px solid var(--po-card-border);
  border-top: 3px solid var(--phase-color, var(--tp-accent));
  transition: transform 0.3s var(--po-ease), box-shadow 0.3s;
  cursor: pointer;
}
.tp-pcard:hover, .tp-pcard.on {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}
.tp-pcard-num {
  font-size: 28px;
  font-weight: 900;
  color: color-mix(in srgb, var(--phase-color, var(--tp-accent)) 50%, transparent);
  line-height: 1;
  margin-bottom: 8px;
}
.tp-pcard h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--po-ink);
  line-height: 1.25;
}
.tp-pcard p {
  font-size: 12.5px;
  color: var(--po-ink-2);
  line-height: 1.45;
  margin: 0;
}

/* ── FAQ ── */
.tp-faq {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 20px;
}
.tp-faq h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}
.tp-faq-item {
  border-radius: 16px;
  background: var(--po-card);
  border: 1px solid var(--po-card-border);
  margin-bottom: 8px;
  overflow: hidden;
}
.tp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--po-ink);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.tp-faq-q i {
  font-size: 12px;
  color: var(--po-ink-3);
  transition: transform 0.3s var(--po-ease);
  flex-shrink: 0;
}
.tp-faq-item.open .tp-faq-q i { transform: rotate(180deg); }
.tp-faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--po-ink-2);
}
.tp-faq-item.open .tp-faq-a { display: block; animation: tpPhaseIn 0.35s var(--po-ease); }

/* ── CTA band ── */
.tp-cta {
  text-align: center;
  padding: 0 20px 72px;
}
.tp-cta .tp-used {
  font-size: 13px;
  color: var(--po-ink-3);
  margin-bottom: 20px;
}
.tp-cta .tp-used strong { color: var(--po-ink); }
.tp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tp-cta-actions .po-btn { min-width: 200px; }

/* ── Fallback basique ── */
.tp-basic .tp-hero { padding-bottom: 32px; }
.tp-basic .tp-hero h1,
.tp-basic .po-headline-sm {
  font-family: var(--po-font);
}
.tp-basic .tp-body {
  max-width: 720px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.tp-basic .tp-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}
.tp-basic .tp-points li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--po-ink);
}
.tp-basic .tp-points .apei { color: var(--po-green); font-size: 18px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .tp-explorer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .tp-timeline {
    border-right: none;
    border-bottom: 1px solid var(--po-card-border);
    padding: 14px 16px;
  }
  .tp-timeline-rail { flex-direction: column; }
  .tp-timeline-line { display: none; }
  .tp-timeline-steps {
    flex-direction: row;
    min-height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .tp-tl-step { flex: 0 0 auto; scroll-snap-align: start; min-width: 150px; }
  .tp-media-stage {
    border-right: none;
    border-bottom: 1px solid var(--po-card-border);
    padding: 16px;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
  .tp-phase-detail { padding: 20px 16px 24px; }
  .tp-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-matrix { grid-template-columns: 1fr; text-align: center; }
  .tp-matrix-logo { justify-self: center; }
}
@media (max-width: 640px) {
  .tp-phase-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tp-phase-watermark {
    font-size: 48px;
    line-height: 0.9;
  }
  .tp-cards-grid { grid-template-columns: 1fr; }
}

/* Dark mode */
[data-theme="dark"] .tp-hl { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
[data-theme="dark"] .tp-pcard:hover,
[data-theme="dark"] .tp-pcard.on { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3); }

/* ── Template mécanisme (MultiCyclone / ScaleBuster) ── */
.tp-mech-explorer .tp-mech-inner {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) minmax(260px, 1.1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--po-card-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--po-card);
}
.tp-zone-rail {
  padding: 20px 16px;
  border-right: 1px solid var(--po-card-border);
  background: linear-gradient(180deg, var(--po-bg-alt), var(--po-card));
}
.tp-zone-steps { display: flex; flex-direction: column; gap: 6px; }
.tp-zone-step {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; border: none; background: transparent;
  padding: 10px 10px; border-radius: 12px; cursor: pointer; font-family: inherit;
  transition: background 0.2s;
}
.tp-zone-step:hover { background: rgba(0,0,0,0.04); }
.tp-zone-step.on { background: color-mix(in srgb, var(--phase-color, var(--tp-accent)) 12%, transparent); }
.tp-zone-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  border: 2px solid var(--phase-color, var(--tp-accent));
  color: var(--phase-color, var(--tp-accent)); background: var(--po-card);
}
.tp-zone-step.on .tp-zone-num {
  background: var(--phase-color, var(--tp-accent)); color: #fff;
}
.tp-zone-label { display: block; font-size: 12px; font-weight: 700; color: var(--po-ink); }
.tp-zone-sub { display: block; font-size: 10px; color: var(--po-ink-3); margin-top: 2px; }
.tp-mech-stage {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: linear-gradient(180deg, var(--po-bg-alt), var(--po-card));
  border-right: 1px solid var(--po-card-border);
}
.tp-mech-wrap {
  position: relative; width: 100%; max-width: 260px; margin: 0 auto;
  aspect-ratio: 280 / 420;
}
.tp-mech-svg { width: 100%; height: 100%; display: block; }
.tp-mech-photo { width: 100%; height: 100%; object-fit: contain; }
.tp-mech-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--po-bg-alt); border-radius: 16px;
}
.tp-mech-fallback .apei { font-size: 72px; color: var(--tp-accent); opacity: 0.3; }
.tp-mech-zone { transition: opacity 0.35s, filter 0.35s; opacity: 0.55; }
.tp-mech-zone.is-lit { opacity: 1; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--phase-color, #0071e3) 45%, transparent)); }
.tp-hotspot.side-right { flex-direction: row; }
.tp-hotspot.side-right .tp-hotspot-tag {
  left: calc(100% + 8px); right: auto; top: 50%;
  transform: translate(-4px, -50%);
}
.tp-hotspot.on.side-right .tp-hotspot-tag { transform: translate(0, -50%); opacity: 1; }

/* MultiCyclone cutaway layers */
.tp-mech-wrap--cutaway { position: relative; }
.tp-mech-svg--mc .mc-layer {
  transition: opacity 0.45s ease, visibility 0.45s;
}
.tp-mech-wrap[data-cutaway="closed"] .mc-layer-closed { opacity: 1; visibility: visible; }
.tp-mech-wrap[data-cutaway="closed"] .mc-layer-cutaway,
.tp-mech-wrap[data-cutaway="closed"] .mc-layer-cyclones,
.tp-mech-wrap[data-cutaway="closed"] .mc-layer-filter { opacity: 0; visibility: hidden; pointer-events: none; }

.tp-mech-wrap[data-cutaway="cyclones"] .mc-layer-closed { opacity: 0; visibility: hidden; pointer-events: none; }
.tp-mech-wrap[data-cutaway="cyclones"] .mc-layer-cutaway,
.tp-mech-wrap[data-cutaway="cyclones"] .mc-layer-cyclones { opacity: 1; visibility: visible; }
.tp-mech-wrap[data-cutaway="cyclones"] .mc-layer-filter { opacity: 0; visibility: hidden; pointer-events: none; }

.tp-mech-wrap[data-cutaway="plus"] .mc-layer-closed { opacity: 0; visibility: hidden; pointer-events: none; }
.tp-mech-wrap[data-cutaway="plus"] .mc-layer-cutaway,
.tp-mech-wrap[data-cutaway="plus"] .mc-layer-cyclones,
.tp-mech-wrap[data-cutaway="plus"] .mc-layer-filter { opacity: 1; visibility: visible; }
.tp-mech-wrap[data-cutaway="plus"] .mc-layer-cyclones { opacity: 0.45; }

.tp-mech-wrap[data-cutaway="cyclones"] .mc-swirl,
.tp-mech-wrap[data-cutaway="plus"] .mc-swirl {
  animation: mcSwirl 2.8s ease-in-out infinite;
}
@keyframes mcSwirl {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}
.tp-mech-wrap[data-cutaway="cyclones"] .mc-particle,
.tp-mech-wrap[data-cutaway="plus"] .mc-particle {
  animation: mcFall 3.2s ease-in infinite;
}
@keyframes mcFall {
  0% { transform: translateY(0); opacity: 0.9; }
  100% { transform: translateY(8px); opacity: 0.35; }
}

.tp-cutaway-bar {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  padding: 10px 12px 14px; border-top: 1px solid var(--po-card-border);
}
.tp-cutaway-btn {
  font: inherit; font-size: 11px; font-weight: 600;
  padding: 7px 12px; border-radius: 980px;
  border: 1px solid var(--po-sep); background: var(--po-bg-alt);
  color: var(--po-ink-2); cursor: pointer; transition: all 0.2s;
}
.tp-cutaway-btn:hover { border-color: var(--po-blue); color: var(--po-blue); }
.tp-cutaway-btn.on {
  background: rgba(0,113,227,0.12); border-color: var(--po-blue); color: var(--po-blue);
}
.tp-phase-plus-note {
  font-size: 12.5px; color: var(--po-ink-3); margin: 0 0 12px;
  padding: 8px 10px; border-radius: 10px; background: rgba(52,199,89,0.08);
  border: 1px solid rgba(52,199,89,0.25);
}

.tp-system-map {
  margin: 36px auto 0; max-width: 920px; padding: 0 20px 8px; text-align: center;
}
.tp-system-map h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.tp-system-map-lead { font-size: 14px; color: var(--po-ink-2); max-width: 560px; margin: 0 auto 20px; line-height: 1.5; }
.tp-system-flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 18px;
}
.tp-system-node {
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: var(--po-bg-alt); border: 1px solid var(--po-sep); color: var(--po-ink-2);
}
.tp-system-node.is-current {
  background: color-mix(in srgb, var(--tp-accent, #0071e3) 14%, var(--po-card));
  border-color: var(--tp-accent, #0071e3); color: var(--tp-accent, #0071e3);
}
.tp-system-arrow { color: var(--po-ink-3); font-size: 14px; }

.tp-proofs { margin: 40px auto; max-width: 960px; padding: 0 20px; }
.tp-proofs h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.02em; }
.tp-proofs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.tp-proof {
  padding: 18px 16px; border-radius: 16px;
  border: 1px solid var(--po-card-border); background: var(--po-card);
}
.tp-proof-icon {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tp-accent, #0071e3) 12%, transparent);
}
.tp-proof-icon .apei { color: var(--tp-accent, #0071e3); font-size: 18px; }
.tp-proof strong { display: block; font-size: 14px; margin-bottom: 6px; }
.tp-proof p { font-size: 13px; color: var(--po-ink-2); line-height: 1.45; margin: 0; }

@media (max-width: 980px) {
  .tp-mech-explorer .tp-mech-inner {
    grid-template-columns: 1fr;
  }
  .tp-zone-rail { border-right: none; border-bottom: 1px solid var(--po-card-border); }
  .tp-zone-steps { flex-direction: row; overflow-x: auto; }
  .tp-zone-step { min-width: 150px; flex-shrink: 0; }
  .tp-mech-stage { border-right: none; border-bottom: 1px solid var(--po-card-border); }
  .tp-proofs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tp-proofs-grid { grid-template-columns: 1fr; }
}
