/* ─── TRENDS 26 — report styles (extends styles.css) ─── */
.report a:not(.btn):not(.pill-btn) { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0,0,0,0.3); }
.report a:not(.btn):not(.pill-btn):hover { text-decoration-color: var(--ink); }

/* hero */
.report-hero { padding: 88px 0 40px; }
.report-hero .meta { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--display); font-size: 14px; color: var(--muted); margin-top: 32px; }
.report-hero .meta span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--spectrum); margin-right: 10px; vertical-align: 1px; }

/* opening statement */
.opening { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.opening h2 { position: sticky; top: 120px; }
.opening p { font-size: 18px; line-height: 1.7; color: var(--ink); margin-bottom: 22px; max-width: 62ch; }
.opening p.strong { font-family: var(--display); font-weight: 500; font-size: 20px; }
.drop-cap { float: left; font-family: var(--headline); font-weight: 500; font-size: 4rem; line-height: 0.85; margin: 0.15rem 0.6rem 0 0; }

/* scorecard */
.scorecard { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--border-ink); padding: 40px 0; margin: 0 0 24px; }
.scorecard .paren { margin-bottom: 20px; }
.scorecard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 48px; }
.scorecard-item { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; }
.scorecard-item .fork { font-family: var(--display); font-size: 14px; color: var(--muted); padding-top: 3px; }
.scorecard-item p { font-size: 15.5px; line-height: 1.6; color: var(--ink); margin: 0; }
.scorecard-item p strong { font-weight: 500; }

/* timeline */
.timeline-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.timeline-head .paren { margin: 0; }
.timeline-hint { font-size: 13px; color: var(--muted); }
.timeline-wrapper { width: 100%; overflow-x: auto; overflow-y: hidden; padding: 16px 0 24px; scrollbar-width: none; cursor: grab; user-select: none; touch-action: pan-x; }
.timeline-wrapper::-webkit-scrollbar { display: none; }
.timeline-wrapper.is-dragging { cursor: grabbing; }
.timeline-content { display: flex; width: max-content; padding-right: 10vw; }
.timeline-item { width: 240px; flex-shrink: 0; border-left: 1px solid var(--border-ink); padding: 8px 20px 12px; display: flex; flex-direction: column; min-height: 130px; transition: border-color 0.25s ease; }
.timeline-item:hover { border-left-color: var(--ink); }
.timeline-date { font-family: var(--display); font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.timeline-event { font-family: var(--headline); font-weight: 500; font-size: 20px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 10px; }
.timeline-theme { font-size: 13px; color: var(--muted); margin-top: auto; }

/* forks */
.forks { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
.forks-intro { position: sticky; top: 120px; align-self: start; }
.forks-intro p { font-size: 18px; color: var(--muted); line-height: 1.65; margin-top: 20px; max-width: 32ch; }
.fork { border-top: 1px solid var(--border-ink); padding: 36px 0; }
.fork:first-child { border-top: 1px solid var(--ink); }
.fork h3 { font-family: var(--headline); font-weight: 500; font-size: 26px; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 16px; }
.fork h3 span { color: var(--muted); }
.fork p { font-size: 17px; line-height: 1.7; color: var(--ink); margin-bottom: 16px; max-width: 62ch; }
.fork p:last-child { margin-bottom: 0; }
.synthesis { border-top: 1px solid var(--ink); padding-top: 32px; margin-top: 8px; }
.synthesis p.strong { font-family: var(--display); font-weight: 500; font-size: 19px; }

/* trends reader */
.trends-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 16px; margin-bottom: 40px; }
.trends-head .count { font-family: var(--display); font-size: 14px; color: var(--muted); }
.trend-reader { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.trend-index { position: sticky; top: 104px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trend-index li { border-top: 1px solid var(--border-ink); }
.trend-index li:last-child { border-bottom: 1px solid var(--border-ink); }
.trend-index button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 0 14px 40px; position: relative; font-family: var(--headline); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; line-height: 1.25; color: var(--muted); cursor: pointer; transition: color 0.25s ease, padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.trend-index button .n { position: absolute; left: 0; top: 14px; font-family: var(--display); font-size: 13px; color: var(--muted); }
.trend-index button::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--spectrum); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.trend-index button:hover { color: var(--ink); }
.trend-index li.active button { color: var(--ink); padding-left: 48px; }
.trend-index li.active button::before { transform: scaleX(1); }
.trend-reader > div { min-width: 0; }
.trend-panels { position: relative; min-height: 400px; min-width: 0; }
.trend-panel { display: none; }
.trend-panel.active { display: block; animation: panelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.trend-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; }
.trend-panel-head h2 { font-family: var(--headline); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.trend-panel-head .sub { font-family: var(--display); font-size: 14px; color: var(--muted); white-space: nowrap; }
.trend-panel-head .sub::before { content: attr(data-n); margin-right: 14px; }
.trend-article p { font-size: 17px; line-height: 1.7; color: var(--ink); margin-bottom: 20px; max-width: 62ch; }
.trend-article p.lead { font-family: var(--headline); font-weight: 500; font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 28px; }
.trend-side { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-ink); display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.trend-side .side-head { font-family: var(--display); font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.trend-side ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }
.trend-side li { font-family: var(--display); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.trend-side li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--spectrum); flex-shrink: 0; }
.pill-btn { display: inline-flex; font-family: var(--display); font-size: 13px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 100px; margin: 0 6px 0 0; transition: background 0.2s ease, color 0.2s ease; }
.pill-btn:hover { background: var(--ink); color: var(--paper); }
.trend-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink); }
.trend-nav button { background: none; border: 1px solid var(--ink); border-radius: 100px; padding: 12px 20px; font-family: var(--display); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; max-width: 48%; text-align: left; transition: background 0.2s ease, color 0.2s ease; }
.trend-nav button:hover { background: var(--ink); color: var(--paper); }
.trend-nav button span { color: inherit; opacity: 0.6; font-size: 13px; }
.trend-nav button:disabled { opacity: 0.3; cursor: default; background: none; color: var(--ink); }
.trend-strip { display: none; }

/* charts — one system: horizontal bars, black + gradient */
.chart-container, .stat-box { background: var(--smoke); border-radius: var(--radius-lg); padding: 28px 28px 24px; margin: 32px 0; position: relative; }
.chart-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--border-ink); padding-bottom: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.chart-title { font-family: var(--display); font-weight: 500; font-size: 15px; margin: 0; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13px; color: var(--muted); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-us { background: var(--ink); } .dot-cn { background: linear-gradient(90deg, var(--coral), var(--amber)); }
.chart-row { display: grid; grid-template-columns: 130px 1fr 56px; gap: 16px; align-items: center; margin-bottom: 12px; font-family: var(--display); font-size: 13.5px; }
.chart-label { color: var(--ink); }
.chart-bar-area { position: relative; height: 26px; background: rgba(0,0,0,0.06); border-radius: 4px; overflow: hidden; }
.chart-bar { height: 100%; width: 0; transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 4px; }
.bar-us { background: var(--ink); } .bar-cn { background: linear-gradient(90deg, var(--coral), var(--amber)); }
.chart-val { text-align: right; font-family: var(--headline); font-weight: 500; font-size: 15px; position: relative; }
.chart-note { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 16px; max-width: 60ch; }
.chart-source { margin-top: 14px; font-family: var(--display); font-size: 12px; color: var(--muted); text-align: right; }
.chart-source a { text-decoration-color: rgba(0,0,0,0.25) !important; }
.stat-box { text-align: center; padding-top: 40px; }
.stat-num { font-family: var(--headline); font-weight: 500; font-size: clamp(64px, 9vw, 120px); line-height: 0.95; letter-spacing: -0.04em; background: linear-gradient(90deg, var(--coral), var(--amber) 50%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.stat-label { font-family: var(--display); font-size: 16px; max-width: 34ch; margin: 0 auto; line-height: 1.4; }
.stat-box .chart-source { text-align: center; }
/* robotics toggle within the standard chart */
.robo-toggle { font-family: var(--display); font-size: 13px; display: flex; gap: 8px; align-items: center; padding: 6px 12px; border: 1px solid var(--border-ink); border-radius: 100px; cursor: pointer; color: var(--muted); }
.t-25 { color: var(--ink); } .t-26 { opacity: 0.5; } .t-25, .t-26 { transition: all 0.3s ease; }
.robotics-chart.show-future .t-25 { color: var(--muted); opacity: 0.6; } .robotics-chart.show-future .t-26 { opacity: 1; color: var(--ink); }
.chart-val .val-26 { position: absolute; right: 0; top: 0; opacity: 0; transition: opacity 0.3s ease; } .chart-val .val-25 { transition: opacity 0.3s ease; }
.robotics-chart.show-future .val-25 { opacity: 0; } .robotics-chart.show-future .val-26 { opacity: 1; }

/* saas chart */
.chart-interactive-area { display: flex; gap: 12px; margin: 8px 0 34px; }
.chart-yaxis { display: flex; flex-direction: column; justify-content: space-between; font-family: var(--display); font-size: 12px; color: var(--muted); padding-bottom: 26px; }
.chart-plot { flex: 1; position: relative; aspect-ratio: 16 / 8; cursor: crosshair; }
.chart-plot svg { width: 100%; height: 100%; overflow: visible; display: block; }
.chart-path { transition: d 1.4s cubic-bezier(0.16, 1, 0.3, 1); } .chart-dot { transition: cy 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.chart-xaxis { position: absolute; left: 0; right: 0; bottom: -26px; display: flex; justify-content: space-between; font-family: var(--display); font-size: 12px; color: var(--muted); }
.chart-scanline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.chart-tooltip { position: absolute; top: 0; left: 0; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 12px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; z-index: 3; }

/* org diagram */
.org-diagram-container { margin: 32px 0; padding: 32px 24px 20px; background: var(--smoke); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; cursor: crosshair; }
.org-vis { width: 100%; max-width: 320px; }
.org-layer { transition: d 2s cubic-bezier(0.16, 1, 0.3, 1), fill 0.5s ease; }
.org-label { font-family: var(--display); font-size: 5px; fill: var(--ink); opacity: 0; transition: opacity 0.4s ease; text-anchor: start; }
.mode-pyramid .label-pyramid, .mode-diamond .label-diamond { opacity: 1; }
.layer-top { fill: #000; } .layer-mid { fill: #444; } .layer-bot { fill: #999; }
.mode-diamond .layer-top { fill: var(--coral); } .mode-diamond .layer-mid { fill: var(--amber); } .mode-diamond .layer-bot { fill: var(--mint); }
.org-year-label { font-family: var(--display); font-size: 13px; color: var(--muted); margin-top: 8px; }

/* donut */
.donut-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.intimacy-donut-wrapper { height: 280px; display: flex; align-items: center; justify-content: center; }
.donut-segment { fill: none; stroke-width: 22; cursor: pointer; transition: stroke-width 0.3s ease, opacity 0.3s ease; pointer-events: stroke; stroke-dasharray: 0 1000; opacity: 0; }
.donut-segment.animate-in { opacity: 1; animation: drawSegment 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes drawSegment { to { stroke-dasharray: var(--dash-target); stroke-dashoffset: var(--dash-offset); } }
.donut-segment-hit { fill: none; stroke: transparent; stroke-width: 56; pointer-events: stroke; cursor: pointer; }
.donut-group:hover .donut-segment { stroke-width: 30 !important; }
.donut-center-val { font-family: var(--headline); font-weight: 500; font-size: 40px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; letter-spacing: -0.02em; }
.donut-center-label { font-family: var(--display); font-size: 11px; fill: var(--muted); text-anchor: middle; transform: translateY(28px); }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.l-item { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; transition: opacity 0.3s ease; }
.l-item .swatch { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.l-item .pct { margin-left: auto; font-family: var(--display); color: var(--muted); }

/* canvases */
.wm-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 320px; margin: 32px 0; }
.wm-side { background: var(--smoke); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.wm-label-overlay { position: absolute; top: 14px; left: 16px; font-family: var(--display); font-size: 12px; color: var(--muted); z-index: 2; }
.wm-side canvas, .gen-ui-container canvas { display: block; width: 100%; height: 100%; }
.gen-ui-container { background: var(--smoke); border-radius: var(--radius-lg); height: 300px; position: relative; overflow: hidden; margin: 32px 0; }
.gen-ui-label { position: absolute; top: 14px; left: 16px; font-family: var(--display); font-size: 12px; color: var(--muted); z-index: 2; }

/* quotes */
.quote-interstitial { padding: 120px 0; text-align: center; cursor: grab; user-select: none; }
.quote-interstitial:active { cursor: grabbing; }
.scramble-quote { font-family: var(--headline); font-weight: 500; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; margin: 0 auto 28px; min-height: 3.6em; display: flex; align-items: center; justify-content: center; }
.quote-attribution { font-family: var(--display); font-size: 15px; opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.quote-attribution.visible { opacity: 1; transform: none; }
.quote-attribution .role { color: var(--muted); font-size: 14px; }
.quote-attribution a { display: inline-block; margin-top: 10px; font-size: 13px; }
.quote-dots { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.quote-dots .qdot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,0.15); cursor: pointer; transition: all 0.3s ease; }
.quote-dots .qdot.active { background: var(--spectrum); transform: scale(1.3); }

/* conclusion */
.conclusion { padding: 120px 0; }
.conclusion .paren { color: rgba(255,255,255,0.7); }
.conclusion h2 { font-size: clamp(44px, 6vw, 96px); max-width: 12ch; margin-bottom: 48px; }
.conclusion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.conclusion-grid p { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.conclusion .credits { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.18); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--display); font-size: 14px; color: rgba(255,255,255,0.6); }

@media (max-width: 980px) {
  .opening, .forks { grid-template-columns: 1fr; gap: 32px; }
  .opening h2, .forks-intro { position: static; }
  .scorecard-grid { grid-template-columns: 1fr; }
  .trend-reader { grid-template-columns: 1fr; gap: 24px; }
  .trend-index { display: none; }
  .trend-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: sticky; top: 84px; z-index: 20; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); padding: 10px 0 12px; margin: -12px 0 8px; }
  .trend-strip::-webkit-scrollbar { display: none; }
  .trend-strip button { flex: 0 0 auto; scroll-snap-align: start; background: none; border: 1px solid var(--border-ink); border-radius: 100px; padding: 8px 14px; font-family: var(--display); font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .trend-strip button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .trend-panel-head { flex-direction: column; gap: 8px; }
  .trend-nav button { max-width: none; flex: 1; justify-content: center; }
  .chart-row { grid-template-columns: 1fr 48px; } .chart-label { grid-column: 1 / -1; margin-bottom: -6px; }
  .conclusion-grid, .donut-layout { grid-template-columns: 1fr; }
  .wm-comparison { height: 240px; }
  .chart-container, .stat-box { padding: 22px 18px; }
  .chart-row { flex-direction: column; align-items: stretch; gap: 6px; } .chart-label { width: auto; text-align: left; }
  .scorecard-item { grid-template-columns: 1fr; gap: 6px; }
}
