/* ═══════════════════════════════════════════════════════════════
   PHLOEM — industry pages + nav "Industries" dropdown
   Extends phloem.css tokens; load after it.
   ═══════════════════════════════════════════════════════════════ */

/* ── anchor targets clear the sticky nav; smooth in-page jumps ── */
section[id], .cta[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── nav dropdown ───────────────────────────────────────────── */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop .caret { width: 9px; height: 9px; color: var(--ink-dim); transition: transform .18s ease, color .18s ease; }
.nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); color: var(--ink); }
.drop {
  position: absolute; top: 100%; left: -16px; padding-top: 13px;
  opacity: 0; visibility: hidden; transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}
.nav-drop:hover .drop, .nav-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop-in {
  min-width: 250px; background: var(--bg-elev); border: var(--dash);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08); padding: 7px;
}
[data-theme="dark"] .drop-in { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); }
.drop-in a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 12px; font-size: 13.5px; color: var(--ink-mute);
  transition: background .14s ease, color .14s ease;
}
.drop-in a:hover { background: var(--bg-sunk); color: var(--ink); }
.drop-in a .dnum { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-dim); }
.drop-in a:hover .dnum { color: var(--accent); }
.drop-in a::after { content: none; }

/* ── homepage industry-card page link ───────────────────────── */
.dcell .dlink {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-dim); transition: color .16s ease;
}
.dcell .dlink .arr { transition: transform .18s ease; }
.dcell .dlink:hover, .dcell:hover .dlink { color: var(--accent); }
.dcell .dlink:hover .arr { transform: translateX(3px); }

/* ── industry hero (text-only, calm) ────────────────────────── */
.ind-hero { padding-block: clamp(52px, 7vw, 96px) 0; border-bottom: var(--dash); }
.ind-hero .eyebrow { margin-bottom: 30px; }
.ind-hero h1 { max-width: 15ch; margin-bottom: 24px; }
.ind-hero .lead { max-width: 56ch; margin-bottom: 34px; }
.ind-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ind-hero .hero-meta { margin-top: clamp(44px, 5vw, 68px); }

/* ── lifecycle: develop / validate / operate ────────────────── */
.life { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px; border: var(--dash); }
.life-col { padding: 30px 28px 34px; border-right: var(--dash); transition: background .2s ease; }
.life-col:last-child { border-right: 0; }
.life-col:hover { background: var(--bg-elev); }
[data-theme="dark"] .life-col:hover { background: #181C1E; }
.life-col .step { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 7px; }
.life-col h3 { font-size: 19px; margin-bottom: 18px; }
.life-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.life-col li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }
.life-col li::before { content: "→"; position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* ── run monitor placement ──────────────────────────────────── */
.ind-mon { margin-top: 50px; }
.ind-mon .lane { grid-template-columns: 158px 1fr 56px; }
.ind-mon .lane-chan { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .ind-mon .lane { grid-template-columns: 96px 1fr 50px; } }

/* ── monitor status chips (bench / cloud sync) ── */
.mon-chips { display: flex; gap: 14px; margin-left: auto; padding-left: 16px; }
.mon-chips + .mon-stat { margin-left: 22px; }
.chip {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.chip.warn::before { background: var(--warn); }
@media (max-width: 720px) { .mon-chips { display: none; } }

/* ── aux figure under the monitor (scene / bench / uplink / offshore) ── */
.aux { margin-top: 26px; border: var(--dash); display: grid; grid-template-columns: 1fr 1.45fr; }
.aux-txt { padding: 22px 28px; border-right: var(--dash); display: flex; flex-direction: column; justify-content: center; }
.aux-txt .step { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.aux-txt p { font-size: 14px; color: var(--ink-mute); line-height: 1.55; max-width: 40ch; }
.aux-fig {
  background: var(--bg-elev);
  background-image: radial-gradient(var(--rule-soft) 0.7px, transparent 0.7px);
  background-size: 15px 15px;
  padding: 16px 24px; display: flex; align-items: center; justify-content: center;
}
.aux-fig svg { width: 100%; max-width: 440px; height: auto; display: block; }
/* crisp 1px strokes regardless of SVG scaling — figures and lane traces */
.aux-fig svg [stroke], .lane-wave svg [stroke] { vector-effect: non-scaling-stroke; }
@media (max-width: 1020px) {
  .aux { grid-template-columns: 1fr; }
  .aux-txt { border-right: 0; border-bottom: var(--dash); }
}

/* ── live scrolling lane traces (reduced-motion safe) ───────── */
@media (prefers-reduced-motion: no-preference) {
  .lane-wave .scroll {
    transform-box: fill-box;
    animation: laneScroll var(--dur, 14s) linear infinite;
  }
  @keyframes laneScroll { to { transform: translateX(-280px); } }
}

/* ── outcomes ───────────────────────────────────────────────── */
.proof { display: grid; grid-template-columns: 1fr 1fr; margin-top: 50px; border: var(--dash); }
.proof-cell { padding: 34px 32px 38px; border-right: var(--dash); }
.proof-cell:last-child { border-right: 0; }
.proof-num { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; letter-spacing: -0.03em; color: var(--accent); line-height: 1.05; margin-bottom: 7px; }
.proof-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px; }
.proof-cell p { font-size: 14px; color: var(--ink-mute); line-height: 1.55; max-width: 46ch; }

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .life { grid-template-columns: 1fr; }
  .life-col { border-right: 0; border-bottom: var(--dash); }
  .life-col:last-child { border-bottom: 0; }
  .proof { grid-template-columns: 1fr; }
  .proof-cell { border-right: 0; border-bottom: var(--dash); }
  .proof-cell:last-child { border-bottom: 0; }
}
