@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f5f6ef;
  --white: #fbfcf7;
  --ink: #17241e;
  --soft: #53625a;
  --quiet: #646f67;
  --line: #dbe0d5;
  --night: #111f23;
  --night-line: #2d4140;
  --chalk: #e9f3e8;
  --green: #c9f071;
  --mint: #82edba;
  --amber: #f5bc7b;
  --link: #2f5a36;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, select, input[type="range"], input[type="checkbox"] { cursor: pointer; }
button, select { color: inherit; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #538f37; outline-offset: 4px; }
.dark :focus-visible { outline-color: var(--green); }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
code, .mono { font-family: var(--mono); }
small { font-size: .83rem; }
.shell { width: min(1216px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-300%); z-index: 20; background: var(--green); padding: .75rem; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.identity { display: flex; align-items: center; gap: 11px; font-size: 1.04rem; font-weight: 720; letter-spacing: -.025em; }
.brand { display: grid; grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(2, 6px); align-content: center; justify-content: center; gap: 3px; width: 33px; height: 33px; border-radius: 9px; background: var(--ink); }
.brand i { background: var(--green); border-radius: 1px; }
.brand i:nth-child(2) { opacity: .38; }
.brand i:nth-child(3) { opacity: .65; }
.site-nav { display: flex; align-items: center; gap: 27px; font-size: .88rem; font-weight: 670; }
.site-nav .git-link { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.arrow { text-decoration: none; font-family: system-ui, sans-serif; }
.home-hero { display: grid; grid-template-columns: .94fr 1.06fr; gap: 54px; padding-block: 74px 53px; align-items: center; }
.tagline { font-size: .76rem; letter-spacing: .10em; font-weight: 700; text-transform: uppercase; color: var(--link); }
h1 { font-size: clamp(3.75rem, 6.16vw, 6.1rem); letter-spacing: -.057em; font-weight: 700; }
.hero-text h1 { margin-top: 16px; }
.deck { color: var(--soft); font-size: clamp(1rem, 1.6vw, 1.24rem); line-height: 1.52; max-width: 34em; margin-top: 21px; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; border: 1px solid var(--ink); padding: 10px 15px; min-height: 43px; font-size: .88rem; font-weight: 700; line-height: 1.3; }
.button:hover, .site-nav .git-link:hover { text-decoration: none; }
.button.primary { color: var(--chalk); background: var(--ink); }
.button.primary:hover { background: #314e3f; }
.button.secondary { background: transparent; border-color: #c3cec0; }
.button.secondary:hover { background: #eaf0e2; }
.dark { background: var(--night); color: var(--chalk); }
.stage { overflow: hidden; border-radius: 17px; border: 1px solid var(--night-line); }
.stage-header { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 17px; border-bottom: 1px solid var(--night-line); }
.stage-title { font-size: .85rem; font-weight: 680; }
.stage-meta { font-size: .72rem; color: #b8c8bb; font-family: var(--mono); }
.stage-meta strong { color: var(--green); font-weight: 650; }
.indicator { width: 7px; height: 7px; display: inline-block; margin-inline-end: 7px; border-radius: 50%; background: var(--mint); }
.plot { width: 100%; display: block; height: auto; }
.motion { aspect-ratio: 1.64; min-height: 219px; }
.stage-footer { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; min-height: 52px; gap: 12px; border-top: 1px solid var(--night-line); }
.stage-footer a, .text-link { font-weight: 700; font-size: .88rem; }
.stage-footer a { color: var(--green); white-space: nowrap; }
.stage-footer .stage-meta { color: #b9c9bd; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.metric { min-width: 0; padding: 17px 22px 18px 0; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 24px; }
.metric strong { display: block; font-size: clamp(1.55rem, 3.1vw, 2.45rem); font-weight: 700; letter-spacing: -.062em; line-height: 1.15; }
.metric span { display: block; color: var(--soft); margin-top: 4px; font-size: .88rem; }
.projects { padding-block: 51px 62px; }
.section-head { margin-bottom: 20px; }
.section-head h2, .body-block h2 { font-size: clamp(1.7rem, 3.5vw, 2.65rem); font-weight: 700; letter-spacing: -.045em; }
.projects-grid { display: grid; gap: 17px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.project-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--white); transition: border-color .18s, transform .18s; }
.project-card:hover { transform: translateY(-3px); border-color: #a2baa1; text-decoration: none; }
.thumb { display: block; width: 100%; aspect-ratio: 2.28; border-bottom: 1px solid var(--line); background: #e5ecdd; }
.thumb.copy { display: flex; align-items: center; justify-content: center; gap: 12px; color: #36523a; }
.thumb.copy span { border: 1px solid #9eb59c; background: #f2f6ed; border-radius: 7px; padding: 7px 9px; font: 670 .71rem/1.3 var(--mono); }
.thumb.copy span:last-of-type { background: #d9ebc4; }
.card-body { display: flex; flex-direction: column; min-height: 158px; padding: 20px; flex: 1; }
.card-body h3 { font-size: 1.28rem; letter-spacing: -.04em; }
.card-body p { font-size: .92rem; color: var(--soft); margin: 8px 0 16px; }
.card-body .text-link { color: var(--link); margin-top: auto; }
.site-footer { border-top: 1px solid var(--line); color: var(--soft); font-size: .84rem; }
.footer-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner a { font-weight: 680; color: var(--ink); }
.project-header { padding-block: 50px 29px; }
.breadcrumb { font-size: .84rem; color: var(--link); font-weight: 680; }
.project-header h1 { font-size: clamp(2.75rem, 5.8vw, 5.45rem); margin-top: 15px; font-weight: 700; }
.project-header .deck { margin-top: 15px; max-width: 43em; }
.project-header .metrics { margin-top: 28px; }
.workbench { display: grid; grid-template-columns: 1.76fr minmax(238px, 1fr); align-items: stretch; gap: 16px; }
.control-panel, .surface { border: 1px solid var(--line); border-radius: 15px; background: var(--white); padding: 18px; min-width: 0; }
.control-panel h2, .surface h2 { font-size: 1.18rem; letter-spacing: -.035em; }
.controls { display: grid; gap: 11px; margin-top: 14px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field span { font-size: .79rem; font-weight: 710; color: var(--soft); }
.field select { width: 100%; border: 1px solid #c7d1c2; border-radius: 7px; min-height: 41px; background: #f8faf5; padding: 6px 8px; font-size: .86rem; }
.control-panel .readout { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.readout-title { font-size: .89rem; font-weight: 750; }
.readout-copy { font-size: .82rem; color: var(--soft); margin-top: 5px; }
.pass { color: #2b6a3d; }
.fail { color: #941e1f; }
.transport { display: grid; grid-template-columns: minmax(66px, auto) minmax(35px, 1fr) 47px; align-items: center; width: 100%; gap: 12px; }
.transport button { border: 1px solid #526559; border-radius: 7px; background: #253a35; color: var(--chalk); min-height: 34px; font-weight: 700; font-size: .82rem; }
.transport button:hover { background: #345447; }
input[type="range"] { width: 100%; accent-color: #547c36; }
.dark input[type="range"], .dark input[type="checkbox"] { accent-color: var(--green); }
.legend { display: flex; flex-wrap: wrap; gap: 9px 18px; font-size: .77rem; font-weight: 630; }
.legend span, .legend label { display: inline-flex; gap: 7px; align-items: center; }
.legend label { cursor: pointer; }
.swatch { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--mint); }
.swatch.amber { background: var(--amber); }
.swatch.grey { background: #a5b8c1; }
.body-block { margin-top: 33px; }
.body-block p { margin-top: 10px; color: var(--soft); max-width: 73ch; font-size: .94rem; }
.bottom-gap { padding-bottom: 58px; }
.matrix { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 710; color: #405246; background: #edf2e8; }
tbody tr:last-child td { border: 0; }
.workspace-panel { display: grid; grid-template-columns: minmax(0, 1.44fr) minmax(200px, 1fr); gap: 16px; margin-top: 14px; }
.workspace-panel canvas { border-radius: 12px; aspect-ratio: 1.9; }
.workspace-panel output { display: block; font-weight: 700; margin-bottom: 4px; }
.label-inline { display: flex; justify-content: space-between; gap: 9px; font-size: .85rem; font-weight: 700; }
.methods { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 15px; }
.methods article { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); min-width: 0; }
.methods h3 { font-size: .95rem; }
.methods p { margin-top: 6px; font-size: .82rem; overflow-wrap: anywhere; }
.methods a { color: var(--link); text-decoration: underline; }
.audit-stage { padding: 17px; }
.audit-steps { list-style: none; padding: 0; margin: 10px 0 0; }
.audit-steps li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--night-line); font-size: .86rem; }
.audit-steps li:last-child { border-bottom: 0; }
.audit-steps .state { color: var(--mint); font: 650 .73rem/1.2 var(--mono); }
.audit-steps .issue { color: var(--amber); }
.audit-summary { margin-top: 12px; font-size: .84rem; color: #c2d0c7; }
pre { background: var(--night); color: var(--chalk); white-space: pre-wrap; overflow-wrap: anywhere; font: .78rem/1.5 var(--mono); padding: 13px; border-radius: 8px; min-height: 10rem; }
.sample-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.sample-pair h3 { font-size: .99rem; letter-spacing: -.02em; }
.sample-pair .surface { padding-bottom: 7px; }
.chart { aspect-ratio: 1.78; min-height: 240px; }
.chart-stage .stage-footer { justify-content: flex-start; }
.checkbox-legend input { margin: 0; }
.chart-status { font-variant-numeric: tabular-nums; }
.error-state { padding: 12px; color: #941e1f; background: #fff1eb; font-size: .86rem; }
[hidden] { display: none !important; }
@media (max-width: 1040px) {
  .shell { width: calc(100% - 62px); }
  .home-hero { gap: 28px; padding-top: 59px; }
  h1 { font-size: clamp(3.2rem, 7.5vw, 5.1rem); }
}
@media (max-width: 790px) {
  .home-hero, .workbench { grid-template-columns: 1fr; }
  .home-hero { gap: 31px; padding-top: 41px; padding-bottom: 33px; }
  .hero-text h1 { margin-top: 11px; }
  .hero-text h1 br { display: none; }
  .deck { margin-top: 15px; }
  .actions { margin-top: 20px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .control-panel .controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .methods { grid-template-columns: 1fr; }
}
@media (max-width: 550px) {
  .shell { width: calc(100% - 36px); }
  .site-nav { gap: 12px; }
  .site-nav .projects-link { display: none; }
  .site-nav .git-link { padding: 6px 9px; }
  .identity { font-size: .92rem; gap: 7px; }
  .brand { width: 28px; height: 28px; border-radius: 7px; }
  .header-inner { min-height: 62px; }
  .home-hero, .project-header { padding-top: 31px; }
  h1 { font-size: clamp(2.65rem, 11vw, 3.75rem); letter-spacing: -.055em; }
  .stage-header, .stage-footer { padding-inline: 10px; }
  .metric, .metric + .metric { padding: 12px 8px; }
  .metric:first-child { padding-left: 0; }
  .metric strong { font-size: clamp(1.15rem, 6.0vw, 1.5rem); }
  .metric span { font-size: .74rem; line-height: 1.32; }
  .projects { padding-block: 35px 46px; }
  .projects-grid, .sample-pair, .workspace-panel { grid-template-columns: 1fr; }
  .card-body { min-height: 0; }
  .control-panel { padding: 13px; }
  .control-panel .controls { grid-template-columns: 1fr 1fr; }
  .footer-inner { min-height: auto; padding-block: 18px; font-size: .77rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
