/* ═══════════════════════════════════════════════════════════
   INDUSTRY TRANSFORMATION PAGE STYLES
   Used by transformation.html (hub) and all transformation/*.html
   Mobile responsive. Matches valuations/sectors page patterns.
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ── */
.tr-hero {
  padding: 88px 24px 64px;
  background: linear-gradient(135deg, #050507 0%, #1a1a2e 50%, #050507 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.tr-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,107,44,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.tr-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.tr-hero .hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 14px 0;
}
.tr-hero .hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.5;
}
.tr-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ── Thesis pill ── */
.tr-thesis-wrap {
  max-width: 1200px;
  margin: -24px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.tr-thesis-pill {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 820px;
}

/* ── Generic sections ── */
.tr-section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--border);
}
.tr-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.tr-section-header {
  margin-bottom: 32px;
}
.tr-section-eyebrow {
  font-family: var(--font-mono, 'SF Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.tr-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.tr-section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 780px;
  line-height: 1.5;
}

/* ── Stack layers ── */
#tr-stack {
  display: grid;
  gap: 14px;
}
.tr-stack-layer {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  align-items: start;
  gap: 20px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tr-stack-layer:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.tr-stack-layer-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.tr-stack-layer-icon {
  font-size: 1.5rem;
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.tr-stack-layer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.tr-stack-layer-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.35;
}
.tr-stack-side {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.tr-stack-side-challenger {
  padding-left: 20px;
  border-left: 1px solid rgba(255,107,44,0.25);
}
.tr-stack-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.tr-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tr-stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tr-chip-incumbent {
  background: rgba(160,160,180,0.08);
  border: 1px solid rgba(160,160,180,0.2);
  color: var(--text-secondary);
}
.tr-chip-incumbent:hover {
  background: rgba(160,160,180,0.15);
  color: var(--text-primary);
}
.tr-chip-incumbent .tr-chip-ticker {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  opacity: 0.6;
  margin-left: 2px;
}
.tr-chip-frontier {
  background: rgba(255,107,44,0.1);
  border: 1px solid rgba(255,107,44,0.3);
  color: #ffc09a;
}
.tr-chip-frontier:hover {
  background: rgba(255,107,44,0.18);
  color: #fff;
  transform: translateY(-1px);
}
.tr-chip-dim {
  opacity: 0.55;
  cursor: default;
}
.tr-chip-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ── Capital flow ── */
.tr-capital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.tr-capital-card {
  padding: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tr-capital-frontier {
  background: linear-gradient(135deg, rgba(255,107,44,0.08), rgba(255,107,44,0.02));
  border-color: rgba(255,107,44,0.28);
}
.tr-capital-legacy {
  background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(96,165,250,0.02));
  border-color: rgba(96,165,250,0.25);
}
.tr-capital-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.tr-capital-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.tr-capital-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.tr-capital-note a { color: var(--accent); text-decoration: none; }
.tr-capital-note a:hover { text-decoration: underline; }
.tr-capital-context {
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 24px;
}
.tr-capital-context p { margin: 0 0 6px; }
.tr-capital-src a { color: var(--accent); text-decoration: none; font-size: 0.78rem; }
.tr-capital-src a:hover { text-decoration: underline; }
.tr-capital-rd-table { margin-top: 24px; }
.tr-capital-rd-table h4 {
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Simple bar chart ── */
.tr-bar-chart {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.tr-bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.tr-bar-row:last-child { margin-bottom: 0; }
.tr-bar-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.tr-bar-outer {
  height: 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}
.tr-bar-inner {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}
.tr-bar-frontier { background: linear-gradient(90deg, var(--color-accent), #ffa77a); }
.tr-bar-legacy { background: linear-gradient(90deg, var(--color-fusion), #93c5fd); }
.tr-bar-amount {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-primary);
}

/* ── Displacements table ── */
.tr-disp-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tr-disp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 780px;
}
.tr-disp-table th {
  text-align: left;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.tr-disp-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
  line-height: 1.4;
}
.tr-disp-table tr:last-child td { border-bottom: none; }
.tr-disp-table tr:hover td { background: rgba(255,255,255,0.02); }
.tr-disp-date {
  font-family: var(--font-mono, monospace);
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 0.78rem;
}
.tr-disp-winner { font-weight: 600; color: var(--text-primary); }
.tr-disp-contract {
  font-family: var(--font-mono, monospace);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.tr-disp-program { color: var(--text-primary); font-size: 0.83rem; }
.tr-disp-losing { color: var(--text-muted); font-style: italic; font-size: 0.82rem; }
.tr-disp-source a {
  color: var(--accent-secondary, var(--color-fusion));
  text-decoration: none;
  font-size: 0.78rem;
}
.tr-disp-source a:hover { text-decoration: underline; }
.tr-ext { font-size: 0.7rem; opacity: 0.7; }
.tr-src-link {
  color: var(--accent-secondary, var(--color-fusion));
  text-decoration: none;
  font-size: 0.78rem;
}
.tr-src-link:hover { text-decoration: underline; }

/* ── Quotes (earnings signals) ── */
.tr-quote {
  margin: 0 0 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}
.tr-quote-text {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.tr-quote-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tr-quote-speaker { font-weight: 600; color: var(--text-secondary); }
.tr-quote-sep { opacity: 0.4; }
.tr-quote-src {
  color: var(--accent-secondary, var(--color-fusion));
  text-decoration: none;
  margin-left: auto;
}
.tr-quote-src:hover { text-decoration: underline; }

/* ── Regulatory cards ── */
#tr-regulatory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.tr-reg-card {
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tr-reg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
}
.tr-reg-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.tr-reg-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ── Verdict ── */
#tr-verdict {
  background: linear-gradient(135deg, rgba(255,107,44,0.04) 0%, rgba(0,0,0,0) 60%);
}
.tr-verdict-body {
  max-width: 760px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.tr-verdict-body p { margin-bottom: 14px; }
.tr-verdict-body strong { color: var(--text-primary); }
.tr-verdict-body h3, .tr-verdict-body h4 {
  margin: 20px 0 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.tr-verdict-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Talent placeholder ── */
.tr-talent-placeholder {
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}
.tr-talent-placeholder p { margin-bottom: 10px; }
.tr-talent-placeholder p:last-child { margin-bottom: 0; }
.tr-talent-placeholder code {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  padding: 1px 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  color: var(--accent);
}

/* ── Empty state ── */
.tr-empty-note {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Hub grid ── */
.tr-hub-hero {
  padding: 88px 24px 48px;
  background: linear-gradient(135deg, #050507 0%, #14162a 50%, #050507 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tr-hub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0, rgba(255,107,44,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.tr-hub-hero .hero-content {
  max-width: 860px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.tr-hub-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 16px 0;
}
#tr-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.tr-hub-card {
  display: block;
  padding: 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.tr-hub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ind-color) 0%, transparent 40%);
  opacity: 0.04;
  pointer-events: none;
}
.tr-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--ind-color);
  box-shadow: 0 12px 40px -10px var(--ind-color);
}
.tr-hub-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.tr-hub-icon {
  font-size: 1.6rem;
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.tr-hub-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.tr-hub-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,107,44,0.12);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tr-hub-thesis {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.tr-hub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 14px 0 16px;
}
.tr-hub-stat { text-align: center; }
.tr-hub-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 2px;
}
.tr-hub-stat-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.tr-hub-cta {
  font-size: 0.85rem;
  color: var(--ind-color);
  font-weight: 600;
}

/* ── Methodology ── */
.tr-methodology {
  padding: 32px 24px;
  background: rgba(0,0,0,0.4);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  border-top: 1px solid var(--border);
}
.tr-methodology .container { max-width: 900px; margin: 0 auto; }
.tr-methodology p { margin-bottom: 6px; }
.tr-methodology strong { color: var(--text-secondary); }

/* ── Transformation call-out on other pages ── */
.tr-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin: 20px 0;
  background: linear-gradient(135deg, rgba(255,107,44,0.08), rgba(255,107,44,0.02));
  border: 1px solid rgba(255,107,44,0.28);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tr-callout:hover { transform: translateY(-2px); border-color: var(--accent); }
.tr-callout-icon { font-size: 1.6rem; }
.tr-callout-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.tr-callout-desc { font-size: 0.8rem; color: var(--text-secondary); }
.tr-callout-arrow { margin-left: auto; color: var(--accent); font-size: 1.3rem; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .tr-stack-layer {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tr-stack-side, .tr-stack-side-challenger {
    padding-left: 0;
    padding-top: 14px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .tr-stack-side-challenger { border-top-color: rgba(255,107,44,0.25); }
  .tr-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .tr-bar-amount { text-align: left; }
}

@media (max-width: 640px) {
  .tr-hero { padding: 56px 18px 40px; }
  .tr-section { padding: 40px 18px; }
  .tr-hub-hero { padding: 56px 18px 32px; }
  .tr-hero-stats { gap: 16px; }
  .tr-hub-stats { grid-template-columns: repeat(2, 1fr); }
  .tr-disp-table { font-size: 0.78rem; }
  .tr-thesis-pill { padding: 12px 16px; font-size: 0.88rem; }
}
