/* Home: a light editorial treatment of the shared All palette. */
.home-page main *, .home-page .site-header *, .home-page .home-footer * { box-sizing: border-box; }
.home-page { background: var(--paper); --page-gutter: 48px; --home-observed-opacity: 0.2; }
.home-page main > section { position: relative; }
.home-intro { min-height: min(900px, calc(100svh - var(--header-h))); display: grid; align-items: center; padding: clamp(60px, 7vw, 104px) 0; overflow: clip; }
.home-intro-inner, .home-trend-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
.home-intro-story { padding-right: 10px; }
.home-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 28px; color: var(--muted); font-size: var(--text-small); font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.home-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); }
.home-intro h1 { max-width: none; font-size: clamp(1.875rem, 3.4vw, 3.1rem); font-weight: 450; line-height: 1.25; letter-spacing: -0.045em; text-wrap: pretty; }
.home-intro h1 strong { font-size: inherit; font-weight: 700; }
.home-intro h1 .home-focus-label { position: relative; display: inline-block; padding-right: 23px; white-space: nowrap; }
.home-population-count, .home-ml-percentage { position: relative; display: block; isolation: isolate; width: fit-content; max-width: 100%; margin: 8px 0 24px; color: var(--ink); font-size: clamp(6rem, 11.5vw, 10.5rem); font-weight: 780; line-height: 1; letter-spacing: -0.065em; font-variant-numeric: lining-nums tabular-nums; }
.home-population-count::after, .home-ml-percentage::after { content: ''; position: absolute; z-index: -1; left: -0.025em; right: -0.035em; bottom: 0.035em; height: 0.25em; background: var(--accent); border-radius: 3px; transform: rotate(-1.5deg); }
.home-intro h1 .home-population-count { display: inline-block; margin: 0 0.03em 0.05em; font-size: clamp(5rem, 8vw, 7.5rem); vertical-align: baseline; }
.home-intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 26px; margin-top: 30px; }
.home-intro-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 11px 12px 11px 24px; min-height: 64px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--white); font-size: var(--text-body); font-weight: 650; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.home-intro-link > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--accent); color: var(--ink); font-size: 22px; }
.home-intro-link:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--surface-muted); }
.home-secondary-link, .home-ml-link { display: inline-block; color: var(--ink); font-size: var(--text-ui); font-weight: 650; line-height: 1.5; text-decoration: none; }
.home-secondary-link span, .home-ml-link span, .home-footer a > span { display: inline-block; margin-left: 7px; color: var(--accent-dark); transition: transform 180ms ease; }
.home-secondary-link:hover span, .home-ml-link:hover span, .home-footer a:hover > span { transform: translate(2px, -2px); }
.home-secondary-link:hover, .home-ml-link:hover, .home-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.home-page main a:focus-visible, .home-page .home-footer a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 6px; }
.home-venue-preview { position: relative; isolation: isolate; width: 100%; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.home-intro .home-venue-preview::before { content: ''; position: absolute; z-index: -2; inset: -5px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-muted); transform: rotate(4deg); }
.home-intro .home-venue-preview::after { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--white); }
.home-preview-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 26px; color: var(--muted); font-size: var(--text-chart); font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; }
.home-preview-kicker > span { font-weight: 450; letter-spacing: 0; }
.home-preview-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.home-preview-heading h2, .home-preview-heading h3 { font-size: var(--text-body); font-weight: 700; line-height: 1.3; letter-spacing: -0.035em; }
.home-preview-heading > span { color: var(--muted); font-size: var(--text-chart); }
.home-venue-counts { margin: 0 0 22px; min-height: 212px; }
.home-venue-counts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin-bottom: 18px; }
.home-venue-counts > div:last-child { margin-bottom: 0; }
.home-venue-counts dt { align-self: center; font-size: var(--text-ui); font-weight: 550; letter-spacing: -0.015em; }
.home-venue-counts dd { margin: 0; font-size: var(--text-subheading); font-weight: 650; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.home-venue-counts > div::after { content: ''; grid-column: 1 / -1; height: 4px; background: linear-gradient(to right, var(--accent) 0 var(--venue-share), var(--surface-muted) var(--venue-share) 100%); border-radius: 4px; }
.home-preview-note { margin: 0; font-size: var(--text-chart); line-height: 1.6; color: var(--muted); }
.home-ml, .home-trend, .home-newcomers { padding: clamp(76px, 8vw, 112px) 0; }
.home-ml::before, .home-newcomers::before { content: ''; position: absolute; inset: 10px 24px; border-radius: 28px; background: var(--white); }
.home-newcomers::before { background: var(--accent-tint); }
.home-ml-inner, .home-newcomers-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: 'preview story'; align-items: center; gap: clamp(36px, 6vw, 84px); }
.home-ml-story, .home-newcomers-story { grid-area: story; }
.home-ml-inner > .home-venue-preview, .home-newcomers-figure { grid-area: preview; }
.home-ml-inner > .home-venue-preview { background: var(--paper); border-color: transparent; }
.home-ml-venue-counts { min-height: 135px; }
.home-ml-statement, .home-section-statement, .home-growth-metrics { max-width: 700px; font-size: clamp(1.875rem, 3.4vw, 3.1rem); font-weight: 450; line-height: 1.18; letter-spacing: -0.045em; text-wrap: pretty; }
.home-ml-statement > strong, .home-section-statement strong, .home-growth-metrics strong { font-weight: 700; }
.home-ml-statement .home-ml-percentage { font-size: clamp(5.75rem, 9.5vw, 8.5rem); font-weight: 780; line-height: 1; }
.home-ml-invitation { margin: 28px 0 0; font-size: var(--text-body); line-height: 1.9; color: var(--muted); }
.home-ml-invitation .home-ml-link { margin-left: 8px; }
.home-growth-metrics { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 16px; margin: 28px 0 16px; }
.home-growth-metrics > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; min-width: 0; }
.home-growth-metrics dt { grid-column: 2; grid-row: 1; }
.home-growth-metrics dd { grid-column: 1; grid-row: 1; margin: 0; text-align: right; }
.home-growth-value { position: relative; display: inline-block; padding-right: 23px; font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; background: linear-gradient(transparent 75%, var(--accent) 75%); background-size: calc(100% - 23px) 100%; background-repeat: no-repeat; }
/* Put the unit beneath the icon, sharing its reserved 20px column. */
.home-growth-unit { display: inline-block; margin-left: -20px; color: var(--muted); font-size: 0.5em; font-weight: 400; line-height: 1; letter-spacing: -0.02em; vertical-align: bottom; }
.home-growth-info { position: absolute; top: 0.05em; right: 0; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.home-growth-info svg { display: block; width: 100%; height: 100%; }
.home-growth-info:hover, .home-growth-info:focus-visible { color: var(--ink); outline: 1px solid var(--accent-dark); outline-offset: 2px; }
.home-trend-figure, .home-newcomers-figure { box-sizing: border-box; min-width: 0; margin: 0; padding: 24px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.home-trend-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; font-size: var(--text-small); font-weight: 600; }
.home-trend-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.home-trend-legend > span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--series-color); }
.home-trend-neurips { --series-color: var(--ml-neurips); }
.home-trend-icml { --series-color: var(--ml-icml); }
.home-trend-iclr { --series-color: var(--ml-iclr); }
.home-trend-axis { margin: 0 0 12px; color: var(--muted); font-size: var(--text-chart); line-height: 1.5; }
.home-trend-chart { position: relative; width: 100%; min-height: 280px; }
.home-trend-chart svg { display: block; width: 100%; overflow: visible; }
.home-trend-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.home-trend-tick { fill: var(--muted); font: 11px Inter, ui-sans-serif, system-ui, sans-serif; }
.home-trend-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.home-observed-bars { opacity: var(--home-observed-opacity); }
.home-smoothed-data .home-trend-line, .home-fitted-data .home-trend-line { stroke-width: 3; }
.home-trend-dot { stroke: var(--white); stroke-width: 1.5; }
.home-trend-dot:hover, .home-trend-dot:focus { stroke: var(--ink); stroke-width: 2; outline: none; }
.home-trend-tooltip { position: absolute; box-sizing: border-box; max-width: min(280px, 100%); padding: 10px 12px; background: var(--ink); color: var(--white); border-radius: 8px; font-size: var(--text-small); line-height: 1.5; pointer-events: none; z-index: 2; }
.home-tooltip-heading { display: block; font-weight: 700; margin-bottom: 8px; }
.home-tooltip-heading-with-source { margin-bottom: 0; line-height: 1.3; }
.home-tooltip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin-top: 8px; }
.home-tooltip-row > strong { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-tooltip-detail { grid-column: 1 / -1; opacity: 0.75; font-size: inherit; }
.home-tooltip-count { font-weight: 400; opacity: 0.8; }
.home-tooltip-note { margin: 12px 0 0; }
.home-trend-caption { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; font-size: var(--text-chart); line-height: 1.6; color: var(--muted); }
.home-newcomers-figure { background: var(--white); border-color: transparent; }
.home-newcomers-bar { fill: var(--muted); }
.home-newcomers-area { fill: var(--accent); fill-opacity: 0.18; pointer-events: none; }
.home-newcomers-trend { stroke: var(--accent-dark); }
.home-newcomers-trend-dot { fill: var(--accent-dark); stroke: var(--white); stroke-width: 1.5; }
.home-newcomers-trend-dot:hover, .home-newcomers-trend-dot:focus { stroke: var(--ink); stroke-width: 2; outline: none; }
.home-section-statement .home-statement-value { display: inline; font-size: inherit; font-weight: 700; line-height: inherit; font-variant-numeric: tabular-nums; white-space: nowrap; background: linear-gradient(transparent 75%, var(--accent) 75%); }
.home-section-statement .home-growth-with-info { display: inline-block; position: relative; padding-right: 23px; background-size: calc(100% - 23px) 100%; background-repeat: no-repeat; }
.home-growth-phrase { white-space: nowrap; }
.home-newcomers-bar:hover { filter: var(--chart-hover-filter); }
.home-newcomers-bar:focus { stroke: var(--ink); stroke-width: 2; outline: none; }
.home-newcomers-bar-label { fill: var(--ink); font: 650 12px Inter, ui-sans-serif, system-ui, sans-serif; }
.home-more { padding: 48px 0 28px; }
.home-more-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface-muted); }
.home-more-banner h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; letter-spacing: -0.04em; }
.home-more-copy { max-width: 35rem; margin: 12px 0 0; color: var(--muted); font-size: var(--text-body); line-height: 1.55; }
.home-more-link { display: inline-flex; flex: none; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 12px 18px; border: 1px solid var(--accent-dark); border-radius: 8px; background: var(--white); color: var(--accent-dark); font-size: var(--text-body); font-weight: 650; text-decoration: none; transition: background 180ms ease; }
.home-more-link span { font-size: 1.2em; line-height: 1; }
.home-more-link:hover { background: var(--accent-tint); }
@media (max-width: 700px) { .home-more-banner { align-items: flex-start; flex-direction: column; } .home-more-link { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .home-more-link { transition: none; } }
.home-footer { padding: 32px 0; font-size: var(--text-small); color: var(--muted); }
.home-footer > .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.home-footer a { color: var(--ink); font-weight: 650; text-decoration: none; }
.home-motion [data-home-reveal].is-visible > .shell { animation: home-enter 550ms cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes home-enter { from { transform: translateY(16px); } to { transform: none; } }
@media (max-width: 1000px) {
  .home-intro-inner, .home-trend-inner, .home-ml-inner, .home-newcomers-inner { gap: 36px; }
  .home-growth-unit { font-size: 0.45em; }
  .home-venue-preview { padding: 20px; }
  .home-preview-kicker { flex-wrap: wrap; gap: 8px; }
  .home-trend-figure, .home-newcomers-figure { padding: 22px 16px; }
}
@media (max-width: 800px) {
  .home-intro { min-height: auto; padding: 56px 0 66px; }
  .home-intro-inner, .home-trend-inner, .home-ml-inner, .home-newcomers-inner { grid-template-columns: 1fr; gap: 40px; }
  .home-ml-inner, .home-newcomers-inner { grid-template-areas: 'story' 'preview'; }
  .home-intro-story { padding-right: 0; }
  .home-intro h1 { max-width: 650px; font-size: clamp(1.875rem, 5vw, 2.6rem); }
  .home-intro h1 .home-population-count { font-size: clamp(4.5rem, 12vw, 6rem); }
  .home-intro .home-venue-preview, .home-ml .home-venue-preview { max-width: 460px; }
  .home-ml, .home-trend, .home-newcomers { padding: 64px 0; }
  .home-ml::before, .home-newcomers::before { inset: 8px 10px; border-radius: 22px; }
  .home-trend-figure, .home-newcomers-figure { max-width: 560px; }
  .home-kicker { margin-bottom: 24px; }
  .home-ml-statement, .home-section-statement, .home-growth-metrics { font-size: clamp(1.875rem, 5vw, 2.6rem); }
}
@media (max-width: 600px) {
  .home-intro-actions { gap: 20px; }
  .home-growth-metrics { column-gap: 8px; }
  .home-venue-preview { padding: 22px; }
  .home-intro .home-venue-preview::before { transform: rotate(2.5deg); }
  .home-ml-invitation .home-ml-link { margin-left: 0; }
  .home-footer > .shell { flex-wrap: wrap; }
}
.home-focus-info { display: inline-flex; width: 20px; height: 20px; padding: 0; margin-left: 3px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); vertical-align: -4px; cursor: pointer; }
.home-focus-label .home-focus-info { position: absolute; top: 0.05em; right: 0; margin-left: 0; vertical-align: baseline; }
.home-focus-info svg { width: 20px; height: 20px; }
.home-focus-info:hover, .home-focus-info:focus-visible { color: var(--ink); outline: 1px solid var(--accent-dark); outline-offset: 2px; }
.home-focus-tooltip { position: fixed; box-sizing: border-box; z-index: 100; width: min(310px, calc(100vw - 24px)); padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font-size: var(--text-small); line-height: 1.7; }
.home-focus-tooltip a { display: block; margin-top: 6px; text-decoration: underline; }
.home-focus-tooltip .home-tooltip-source { margin: 0 0 8px; color: var(--muted); font-size: var(--text-chart); font-weight: 400; line-height: 1.4; }
.home-focus-tooltip a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { transition: none !important; animation: none !important; }
  .home-motion [data-home-reveal] > .shell { opacity: 1; transform: none; }
}
