:root {
  color-scheme: light;
  --ink: #15202b;
  --muted: #586575;
  --subtle: #edf0f3;
  --line: #d6dce2;
  --surface: #ffffff;
  --page: #f6f7f8;
  --accent: #1f5eff;
  --accent-dark: #1244c4;
  --danger: #a12b2b;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.5; }
button, input, select { font: inherit; }
button, select, input { min-height: 44px; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 5; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { color: #fff; background: #15202b; }
.header-inner { display: flex; flex-direction: column; gap: 24px; padding: 40px 0 32px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.site-header .eyebrow { color: #aeb9c5; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 8vw, 3.6rem); line-height: 1; letter-spacing: -0.05em; }
h2 { margin-bottom: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.15; letter-spacing: -0.03em; }
h3 { margin-bottom: 6px; font-size: 0.95rem; }
.lede { max-width: 580px; margin-bottom: 0; color: #cbd3db; font-size: 1.05rem; }
.simulation-badge, .simulator-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #617080; border-radius: 999px; color: #fff; font-size: 0.78rem; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #85b4ff; }
.context-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #394754; }
.context-grid div { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 20px 0; }
.context-grid span { color: #aeb9c5; font-size: 0.78rem; }
.context-grid strong { font-size: 0.94rem; }
.main-content { padding: 36px 0 56px; }
.intro-row, .section-heading { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.scope-note, .caption, .metric-note, .feedback { color: var(--muted); font-size: 0.86rem; }
.scope-note { max-width: 390px; margin-bottom: 0; }
.metric-grid { display: grid; gap: 12px; margin-bottom: 24px; }
.metric-card { min-height: 152px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 9px rgb(21 32 43 / 4%); }
.metric-card-accent { border-color: #a9c0ff; box-shadow: inset 4px 0 0 var(--accent); }
.metric-label { margin-bottom: 12px; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.metric-value { margin-bottom: 2px; font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 800; letter-spacing: -0.055em; line-height: 1.05; }
.metric-note { margin-bottom: 0; }
.panel { margin-bottom: 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comparison-panel { border-top: 4px solid var(--ink); }
.compact-heading { align-items: flex-start; }
.bar-chart { display: grid; gap: 22px; margin: 30px 0 18px; }
.bar-row { display: grid; gap: 8px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.bar-label strong { white-space: nowrap; }
.bar-track { height: 25px; overflow: hidden; border-radius: 4px; background: var(--subtle); }
.bar-fill { display: block; width: var(--bar-width, 0%); height: 100%; border-radius: 4px; transition: width 180ms ease-out; }
.bar-fill-team { background: #15202b; }
.bar-fill-pineal { background: var(--accent); }
.caption { margin-bottom: 0; }
.filter-grid, .simulator-grid, .methodology-grid { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: 0.85rem; font-weight: 700; }
select, input { width: 100%; padding: 9px 12px; border: 1px solid #9da8b3; border-radius: 8px; color: var(--ink); background: #fff; }
select:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #85b4ff; outline-offset: 2px; }
.button { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 8px; font-weight: 800; }
.button-secondary { color: var(--ink); background: #fff; }
.button-secondary:hover { color: #fff; background: var(--ink); }
.feedback { min-height: 1.3em; margin: 12px 0 0; }
.feedback-emphasis { color: var(--accent-dark); font-weight: 700; }
.feedback-error { color: var(--danger); font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 570px; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.simulator-tag { color: var(--accent-dark); border-color: #a9c0ff; background: #f2f5ff; }
.simulator-result { align-self: stretch; padding: 18px; border-radius: 10px; background: var(--ink); color: #fff; }
.result-label { margin-bottom: 12px; color: #b8c4d0; font-size: 0.82rem; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid #394754; }
.result-row strong { font-size: 1.2rem; }
.result-row-highlight strong { color: #9fc0ff; }
.simulator-result .feedback { color: #cbd3db; }
.methodology { margin: 8px 0 24px; border-top: 1px solid var(--line); }
.methodology summary { padding: 20px 0; cursor: pointer; font-size: 1rem; font-weight: 800; }
.methodology-grid { padding-bottom: 8px; }
.methodology-grid p { margin-bottom: 0; color: var(--muted); font-size: 0.88rem; }
.state-panel { padding: 44px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.state-panel h2 { margin-bottom: 10px; }
.state-panel p:last-child { margin-bottom: 0; color: var(--muted); }
.state-error { border-color: #d99b9b; }
.empty-action { margin-top: 20px; }
.site-footer { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.site-footer p { margin: 0; }
.projects-grid { display: grid; gap: 12px; }
.project-card { display: flex; min-height: 220px; flex-direction: column; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.project-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.project-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; color: #fff; background: var(--ink); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; }
.project-type { margin: 0 0 2px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.project-name { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.complexity-pill { flex: 0 0 auto; padding: 4px 8px; border: 1px solid #c3ccd5; border-radius: 999px; color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.project-scope { flex: 1; margin: 0; color: var(--muted); font-size: 0.86rem; }
.project-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.project-times > div { display: grid; gap: 3px; padding: 9px 10px; border-radius: 8px; background: var(--subtle); }
.project-time-label { color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.project-times strong { font-size: 0.82rem; }
.project-card-footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.72rem; }
.project-status { color: var(--accent-dark); font-weight: 800; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (min-width: 640px) {
  .header-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-row, .section-heading { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simulator-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .main-content { padding-top: 52px; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  .metric-card { padding: 22px; }
  .panel { padding: 28px; }
  .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
