@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Newsreader:ital,opsz,wght@1,6..72,500&display=swap');

:root {
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --ink: #18211d;
  --muted: #626c65;
  --line: #cbc8bd;
  --soft-line: #dedbd1;
  --acid: #c9f34a;
  --orange: #eb6438;
  --dark: #14201a;
  --white: #fffdf7;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', sans-serif;
  --serif: 'Newsreader', serif;
  --page: min(1280px, 88vw);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); text-rendering: optimizeLegibility; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: white; padding: 12px 18px; }
.skip-link:focus { top: 12px; }

.masthead { min-height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 10px 4vw; position: sticky; top: 0; background: rgb(245 241 232 / 94%); backdrop-filter: blur(14px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 11px; font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--acid); font: 500 11px var(--mono); }
nav { display: flex; gap: 25px; margin: auto; }
nav a, .byline { color: inherit; text-decoration: none; font-size: 11px; font-weight: 700; }
nav a:hover { color: var(--orange); }
.byline { border-bottom: 1px solid var(--ink); }

main { overflow: hidden; }
.hero { min-height: 540px; padding: 86px max(6vw, calc((100vw - 1280px) / 2)) 58px; border-bottom: 1px solid var(--line); position: relative; }
.hero::after { content: '↓'; position: absolute; right: max(6vw, calc((100vw - 1280px) / 2)); bottom: 44px; font: 300 72px var(--sans); color: var(--orange); }
.eyebrow, .chapter-number, .label { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--orange); vertical-align: middle; margin-right: 10px; }
.hero h1 { font-size: clamp(62px, 8.5vw, 124px); line-height: .86; letter-spacing: -.065em; margin: 30px 0 36px; max-width: 1100px; }
.hero h1 em { font-family: var(--serif); font-weight: 500; color: var(--orange); }
.hero-copy { font-size: 18px; line-height: 1.6; max-width: 670px; margin: 0 0 0 min(31vw, 430px); }
.release-pill { font: 500 10px var(--mono); display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 50px; padding: 10px 14px; margin: 30px 0 0 min(31vw, 430px); }
.pulse { width: 8px; height: 8px; background: #3f9955; border-radius: 50%; box-shadow: 0 0 0 5px #49a65e22; flex: 0 0 auto; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.kpi-card { padding: 30px clamp(18px, 2vw, 30px); min-height: 178px; border-right: 1px solid var(--line); }
.kpi-card:last-child { border: 0; }
.kpi-label { min-height: 30px; margin: 0; font: 600 10px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.kpi-card strong { display: block; font-size: clamp(34px, 3.4vw, 56px); line-height: 1; letter-spacing: -.055em; margin: 17px 0 14px; }
.kpi-card span { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; max-width: 220px; }
.skeleton { height: 178px; background: linear-gradient(90deg, transparent, #fff8, transparent); background-size: 200% 100%; animation: load 1.2s infinite; }

.chapter { padding: 92px 0; border-bottom: 1px solid var(--line); }
.chapter > * { width: var(--page); margin-left: auto; margin-right: auto; }
.chapter-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9vw; align-items: end; margin-bottom: 52px; }
.chapter-number { color: var(--orange); margin: 0; }
.chapter h2 { font-size: clamp(42px, 5vw, 70px); letter-spacing: -.055em; line-height: .95; margin: 12px 0 0; }
.chapter-head > p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 520px; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 34px; }
.two-col { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(250px, .8fr); gap: 40px; }

.section-switch { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 34px; align-items: center; }
.section-switch button { font: 600 10px var(--mono); border: 1px solid var(--line); background: transparent; border-radius: 50px; padding: 9px 13px; cursor: pointer; color: inherit; }
.section-switch button:hover { border-color: var(--ink); }
.section-switch button.active { background: var(--ink); color: white; border-color: var(--ink); }

.chart-scale { display: grid; grid-template-columns: 190px 1fr 70px 190px; gap: 14px; color: var(--muted); font: 9px var(--mono); text-transform: uppercase; margin-bottom: 12px; }
.chart-scale span:nth-child(1) { grid-column: 2; }
.chart-scale span:nth-child(2) { grid-column: 2; text-align: center; }
.chart-scale span:nth-child(3) { grid-column: 2; text-align: right; }
.bar-row { display: grid; grid-template-columns: 190px minmax(120px, 1fr) 70px 190px; gap: 14px; align-items: center; min-height: 44px; border-top: 1px solid var(--soft-line); font-size: 12px; }
.bar-label { text-transform: capitalize; font-weight: 650; line-height: 1.25; }
.bar-track { height: 12px; background: repeating-linear-gradient(to right, #e8e5dc 0, #e8e5dc calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%); overflow: hidden; }
.metric-bar { display: block; width: 100%; height: 100%; }
.salary-bar rect, .share-bar rect { fill: var(--orange); }
.bar-row b { font: 500 12px var(--mono); text-align: right; }
.bar-row small { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; line-height: 1.45; }
.chart-footnote { margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.method-note { border-left: 1px solid var(--line); padding: 20px 10px 20px 34px; }
.method-note p { font-size: 16px; line-height: 1.65; margin: 27px 0; }
.method-note a { color: inherit; font-size: 12px; font-weight: 700; }

.dark { background: var(--dark); color: var(--white); }
.dark .chapter-head > p { color: #b6beb9; }
.line-wrap { border-top: 1px solid #ffffff30; padding-top: 28px; }
#demand-chart { display: block; width: 100%; height: auto; min-height: 260px; }
.trend { fill: none; stroke: var(--acid); stroke-width: 5; stroke-linejoin: round; }
.baseline { stroke: #ffffff42; stroke-dasharray: 7 7; }
.dark circle { fill: var(--dark); stroke: var(--acid); stroke-width: 3; }
.svg-label { font: 10px var(--mono); fill: #aab4ae; }
.chart-legend { display: flex; align-items: center; gap: 20px; margin: 18px 0 0; }
.chart-legend > strong { font-size: 54px; color: var(--acid); line-height: 1; }
.chart-legend > span { display: flex; flex-direction: column; gap: 4px; color: #b6beb9; }
.chart-legend b { color: white; font-size: 13px; }

.lifecycle-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); }
.lifecycle-kpis > div { background: var(--surface); padding: 26px; }
.lifecycle-kpis span { display: block; font: 9px/1.5 var(--mono); text-transform: uppercase; }
.lifecycle-kpis strong { display: block; font-size: 28px; margin-top: 15px; }

.skill-grid { border: 1px solid var(--line); background: var(--surface); }
.skill-grid article { display: grid; grid-template-columns: 48px minmax(190px, 1.2fr) minmax(180px, 1fr) 125px; gap: 18px; align-items: center; min-height: 76px; padding: 14px 22px; border-bottom: 1px solid var(--soft-line); }
.skill-grid article:last-child { border-bottom: 0; }
.skill-rank { color: var(--muted); font: 10px var(--mono); }
.skill-copy h3 { font-size: 16px; text-transform: capitalize; margin: 0 0 3px; }
.skill-copy p { font-size: 10px; color: var(--muted); margin: 0; }
.skill-track { height: 8px; background: #e8e5dc; overflow: hidden; }
.skill-bar rect { fill: var(--ink); }
.skill-grid article > b { justify-self: end; font: 500 10px var(--mono); }
.skill-footnote { padding: 0 22px 18px; }
.forming { color: var(--muted) !important; text-transform: uppercase; }
.up { color: #397b47; }
.down { color: var(--orange); }
sup { font: 10px var(--mono); color: var(--orange); letter-spacing: 0; }

.coverage-table { overflow-x: auto; }
.coverage-table table { width: 100%; border-collapse: collapse; }
.coverage-table th, .coverage-table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--soft-line); white-space: nowrap; }
.coverage-table thead th { color: var(--muted); font: 500 9px var(--mono); text-transform: uppercase; }
.coverage-table tbody th { min-width: 190px; text-transform: capitalize; font-size: 12px; }
.coverage-table td { font: 11px var(--mono); }
.unknown-row { background: #f8e9df; }
.share-cell { display: grid; grid-template-columns: 55px minmax(120px, 1fr); gap: 10px; align-items: center; min-width: 220px; }
.share-cell > i { height: 7px; background: #e8e5dc; overflow: hidden; }

.stories { background: var(--surface); }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.story-grid article { border-top: 3px solid var(--orange); background: var(--paper); padding: 27px; min-height: 230px; }
.story-grid span { font: 9px var(--mono); letter-spacing: .1em; }
.story-grid h3 { font-size: 23px; line-height: 1.18; margin: 34px 0 14px; }
.story-grid p { line-height: 1.55; }
.story-grid small { display: block; color: var(--muted); margin-top: 20px; line-height: 1.5; }

.methodology { background: #e9e4d8; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method-grid article { padding: 30px; background: #e9e4d8; }
.method-grid span { font: 9px var(--mono); text-transform: uppercase; }
.method-grid h3 { font-size: 22px; line-height: 1.15; margin: 35px 0 15px; }
.method-grid p { line-height: 1.65; color: var(--muted); }
details { margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 21px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 20px; list-style: none; }
.prose { max-width: 760px; padding: 10px 0 45px; line-height: 1.75; }
.prose h2, .prose h3 { font-size: 28px; letter-spacing: -.02em; margin-top: 40px; }
.prose h4 { font-size: 19px; }
.quality-panel { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 36px; margin-top: 65px; background: var(--ink); color: white; padding: 36px; }
.quality-panel h3 { font-size: 27px; }
.quality-summary { display: grid !important; grid-template-columns: auto 1fr auto !important; gap: 14px !important; padding: 0 0 18px !important; align-items: baseline !important; }
.quality-summary strong { color: var(--acid); font-size: 28px; }
.quality-summary span { color: #cad0cc; }
.quality-summary b { border-radius: 30px; padding: 5px 9px; }
.quality-summary b.passed { color: var(--ink); background: var(--acid); }
.quality-summary b.warning { color: var(--ink); background: #ffc15c; }
.quality-details { margin: 0; border-color: #ffffff22; }
.quality-issue { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #ffffff18; padding: 9px 0; font-size: 11px; }
.quality-issue i { width: 7px; height: 7px; border-radius: 50%; background: #ffc15c; }
.quality-issue i.failed { background: #ff6048; }
.quality-issue b { color: #ffc15c; font: 9px var(--mono); text-transform: uppercase; }
.quality-details summary { padding: 12px 0; font-size: 11px; }
.quality-details > div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid #ffffff18; padding: 8px 0; font-size: 11px; }
.quality-details i { width: 7px; height: 7px; border-radius: 50%; background: #aaa; }
.quality-details i.passed { background: var(--acid); }
.quality-details i.warning { background: #ffc15c; }
.quality-details i.failed { background: #ff6048; }
.quality-details b { font: 9px var(--mono); text-transform: uppercase; }

.empty-state { padding: 30px; border: 1px dashed var(--line); background: rgb(255 255 255 / 28%); }
.empty-state strong { display: block; font-size: 20px; margin-bottom: 7px; }
.empty-state p { color: var(--muted); margin: 0; max-width: 650px; }
.dark-empty { width: 100%; border-color: #ffffff30; background: #ffffff08; }
.dark-empty p { color: #b6beb9; }
.muted { color: var(--muted); }
.fatal { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #8d2d20; color: white; padding: 15px 22px; border-radius: 8px; z-index: 30; max-width: 90%; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 4vw; font-size: 10px; color: var(--muted); }
footer a { color: inherit; }
footer span { color: var(--orange); }
@keyframes load { to { background-position: -200% 0; } }

@media (max-width: 960px) {
  .masthead { flex-wrap: wrap; gap: 8px; }
  nav { order: 3; width: 100%; margin: 2px 0 0; overflow-x: auto; gap: 20px; padding: 8px 0 2px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; }
  .byline { margin-left: auto; }
  .hero { padding-top: 70px; min-height: 500px; }
  .hero-copy, .release-pill { margin-left: 0; }
  .hero::after { font-size: 54px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-card { border-bottom: 1px solid var(--line); }
  .kpi-card:nth-child(2n) { border-right: 0; }
  .kpi-card:last-child { grid-column: 1 / -1; }
  .chapter-head, .two-col, .quality-panel { grid-template-columns: 1fr; gap: 25px; }
  .chapter-head { margin-bottom: 38px; }
  .method-note { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .chart-scale { grid-template-columns: 150px 1fr 60px; }
  .bar-row { grid-template-columns: 150px 1fr 60px; }
  .bar-row small { grid-column: 2 / 4; flex-direction: row; gap: 14px; padding-bottom: 9px; }
  .skill-grid article { grid-template-columns: 42px minmax(160px, 1fr) minmax(120px, .8fr) 110px; }
  .quality-panel { gap: 10px; }
}

@media (max-width: 600px) {
  :root { --page: calc(100vw - 36px); }
  .masthead { padding: 9px 18px; }
  .brand { font-size: 10px; }
  .byline { font-size: 9px; }
  .hero { padding: 54px 18px 44px; min-height: 455px; }
  .hero h1 { font-size: 53px; margin: 25px 0 28px; }
  .hero-copy { font-size: 15px; max-width: 300px; }
  .hero::after { right: 20px; bottom: 40px; font-size: 42px; }
  .release-pill { max-width: 290px; line-height: 1.4; }
  .kpi-card { padding: 22px 18px; min-height: 158px; }
  .kpi-card strong { font-size: 38px; }
  .kpi-card span { font-size: 10px; }
  .chapter { padding: 60px 0; }
  .chapter h2 { font-size: 40px; }
  .chapter-head > p { font-size: 14px; }
  .panel { padding: 18px; }
  .section-switch { align-items: stretch; margin-bottom: 26px; }
  .section-switch button { flex: 1 1 auto; }
  .chart-scale { display: none; }
  .bar-row { grid-template-columns: 1fr auto; grid-template-areas: 'label value' 'track track' 'details details'; gap: 7px 12px; padding: 13px 0; }
  .bar-label { grid-area: label; }
  .bar-track { grid-area: track; }
  .bar-row b { grid-area: value; }
  .bar-row small { grid-area: details; padding: 0; justify-content: space-between; font-size: 9px; }
  #demand-chart { min-height: 180px; }
  .chart-legend { align-items: flex-start; }
  .chart-legend > strong { font-size: 42px; }
  .chart-legend > span { font-size: 11px; }
  .skill-grid article { grid-template-columns: 35px 1fr auto; gap: 10px; padding: 14px; }
  .skill-track { grid-column: 2 / 4; width: 100%; }
  .skill-grid article > b { grid-column: 3; grid-row: 1; }
  .skill-copy h3 { font-size: 14px; }
  .skill-copy p { font-size: 9px; }
  .story-grid, .method-grid { grid-template-columns: 1fr; }
  .coverage-table th, .coverage-table td { padding: 11px 8px; }
  .coverage-table tbody th { min-width: 140px; }
  .share-cell { min-width: 170px; grid-template-columns: 48px minmax(100px, 1fr); }
  .quality-panel { padding: 24px 18px; }
  .quality-summary { grid-template-columns: auto 1fr !important; }
  .quality-summary b { grid-column: 1 / -1; justify-self: start; }
  footer { flex-direction: column; padding: 27px 18px; }
}
