:root {
  color-scheme: light;
  --ink: #14231f; --body: #465951; --deep: #12221d; --deep-2: #192c25;
  --paper: #fbfaf6; --wash: #edf2ea; --line: #d5ddd2; --sage: #aecb9e;
  --moss: #385c45; --rust: #a45634; --white: #fffefa;
  --display: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #bb753c; outline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .57; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2 { font: 400 clamp(2.15rem, 4.1vw, 3.8rem)/1.04 var(--display); letter-spacing: -.04em; text-wrap: balance; }
h3 { font-size: 1.16rem; line-height: 1.3; }
.wrap { width: min(100% - 3.5rem, 74rem); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-180%); padding: .625rem 1rem; top: .25rem; left: .5rem; z-index: 5; background: white; }
.skip:focus { transform: translateY(0); }
.header { background: var(--deep); color: var(--white); border-bottom: 1px solid #32443b; }
.header-row, .footer-row { min-height: 4.7rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .64rem; font-size: .96rem; font-weight: 700; text-decoration: none; }
.brand i { position: relative; width: 1.13rem; height: 1.13rem; flex: none; border: 1px solid var(--sage); border-radius: 70% 40% 63% 48%; transform: rotate(-25deg); }
.brand i::after { content: ""; position: absolute; inset: .24rem; border: 1px solid var(--sage); border-radius: 50%; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.1rem); }
nav a { text-decoration: none; color: #e0e8df; font-weight: 550; font-size: .94rem; }
nav a:hover, .footer a:hover { color: var(--sage); text-decoration: underline; }
.hero { color: #f4f3e9; background: var(--deep); padding: clamp(2.5rem, 6vw, 5.5rem) 0 1.8rem; }
.hero-layout { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: clamp(1rem, 3vw, 3.25rem); }
.hero h1 { font-size: clamp(2.9rem, 5.6vw, 5rem); text-wrap: pretty; }
.label { margin-bottom: .65rem; font-size: .88rem; font-weight: 730; text-transform: uppercase; letter-spacing: .1em; color: var(--moss); }
.hero .label { color: #bacfb2; }
.hero-text { margin-top: 1.25rem; max-width: 39rem; color: #cfd8cf; font-size: clamp(1rem, 1.55vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .68rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .62rem 1.08rem; border: 1px solid transparent; border-radius: .26rem; text-decoration: none; line-height: 1.2; font-weight: 680; }
.primary { background: var(--sage); color: #14241a; }
.primary:hover { background: #c3deaf; }
.outline { color: var(--white); border-color: #718378; }
.outline:hover { background: #243a2e; }
.dark-button { background: #28533d; color: var(--white); }
.dark-button:hover { background: #1d432f; }
.subtle { background: transparent; color: var(--ink); border-color: #aebbae; }
.subtle:hover { background: #e4ede0; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; border-radius: .25rem; }
.hero-art figcaption { margin: .45rem .05rem 0; color: #a2b6a8; font-size: .8rem; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(2.35rem, 6vw, 4.25rem); padding-top: 1.25rem; border-top: 1px solid #405348; }
.numbers div { padding-left: clamp(.75rem, 3vw, 2.5rem); border-left: 1px solid #405348; }
.numbers div:first-child { border: 0; padding-left: 0; }
.numbers dt { font: 400 clamp(1.9rem, 4.5vw, 3.2rem)/1 var(--display); }
.numbers dd { margin: .3rem 0 0; color: #c5d0c5; font-size: .94rem; }
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section-heading { margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1rem, 4vw, 4.2rem); align-items: end; }
.split > p, .workflow p, .insight p, .paper-layout p { color: var(--body); }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.workflow li { padding: 1.45rem clamp(.8rem, 3vw, 2rem); border-left: 1px solid var(--line); }
.workflow li:first-child { border-left: 0; padding-left: 0; }
.workflow h3 { margin-bottom: .45rem; color: var(--moss); }
.quiet-note, .caption { margin-top: .85rem; color: #5c6c61; font-size: .83rem; }
.results-band { background: var(--wash); border-block: 1px solid var(--line); }
.results-card, .form-card { background: var(--white); border: 1px solid var(--line); border-radius: .38rem; }
.results-card { padding: clamp(1rem, 3vw, 2rem); }
.switcher { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.switcher button { background: transparent; min-height: 2.5rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: .2rem; color: var(--moss); font-weight: 650; font-size: .91rem; }
.switcher button:hover { background: #e7eee2; }
.switcher button[aria-pressed=true] { background: var(--deep-2); border-color: var(--deep-2); color: white; }
.result-content { display: grid; grid-template-columns: .8fr 1.5fr; gap: clamp(1.25rem, 4vw, 3.4rem); padding-block: 1.55rem; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem; }
.score span:first-child { font: 400 clamp(3.2rem, 6vw, 5.3rem)/1 var(--display); letter-spacing: -.06em; color: #28533d; }
.score span:last-child, .metric-model { font-weight: 640; color: var(--body); }
.metric-model { margin-top: .55rem; }
.metric-detail { margin-top: .95rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.metric-detail div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .55rem; padding: .43rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.metric-detail dd { margin: 0; font-weight: 670; }
.comparison h3 { margin: .1rem 0 .9rem; }
.bar-rows { display: grid; gap: .58rem; }
.bar-row { display: grid; grid-template-columns: 9.5rem 1fr 3rem; align-items: center; gap: .5rem; }
.bar-label, .bar-value { font-size: .87rem; }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.track { position: relative; height: 1.45rem; background: #edf1eb; border-radius: .16rem; }
.track::before { content: ""; position: absolute; inset-block: 0; left: 23.0769%; width: 1px; background: #879a8b; z-index: 1; }
.bar { position: absolute; top: .23rem; bottom: .23rem; border-radius: .12rem; background: #577e61; min-width: 2px; }
.bar.loss { background: #b37153; }
.bar-axis { position: relative; height: 1.4rem; margin: .3rem 3.5rem 0 10rem; color: #4b6054; font-size: .75rem; }
.bar-axis span { position: absolute; transform: translateX(-50%); }
.bar-axis span:nth-child(1) { left: 0; transform: none; }
.bar-axis span:nth-child(2) { left: 23.0769%; }
.bar-axis span:nth-child(3) { left: 61.5385%; }
.bar-axis span:nth-child(4) { right: 0; transform: none; }
.chart-note { margin-top: .65rem; font-size: .91rem; color: var(--body); }
.results-card > .caption { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: 0; }
.insights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.insight { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: .3rem; }
.insight h3 { margin-bottom: .5rem; }
.insight p.label { color: var(--moss); }
.recovery { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin-top: .8rem; }
.recovery div { min-width: 4.3rem; }
.recovery dt { font-size: .86rem; color: var(--body); }
.recovery dd { margin: 0; color: #2a533d; font: 400 1.85rem/1.15 var(--display); }
.predict-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: 1rem; }
.form-card, .prediction-results { padding: clamp(1rem, 2.7vw, 1.8rem); }
.form-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.link-button { background: none; border: 0; color: #2e5b42; text-decoration: underline; text-underline-offset: .2em; padding: .25rem 0 .25rem .2rem; font-size: .91rem; font-weight: 720; }
.form-note { margin-top: .65rem; font-size: .90rem; color: var(--body); }
.form-error { margin-top: .65rem; color: #8b3c23; font-weight: 650; }
fieldset { border: 0; padding: 0; margin: 1.2rem 0 0; min-width: 0; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: .5rem; }
legend { display: block; width: 100%; margin-bottom: .36rem; padding: .32rem 0; font-size: .93rem; font-weight: 720; color: var(--moss); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field label { display: block; font-size: .88rem; line-height: 1.33; font-weight: 600; margin-bottom: .28rem; }
.field input, .field select { display: block; min-height: 2.52rem; width: 100%; border: 1px solid #aebbae; border-radius: .22rem; background: var(--white); color: var(--ink); padding: .42rem .53rem; }
.field select { appearance: none; padding-right: 1.42rem; background-image: linear-gradient(45deg, transparent 50%, #567362 50%), linear-gradient(135deg, #567362 50%, transparent 50%); background-position: calc(100% - .83rem) 51%, calc(100% - .52rem) 51%; background-size: .32rem .32rem; background-repeat: no-repeat; }
.extra-fields { border-top: 1px solid var(--line); margin-top: 1.05rem; }
.extra-fields summary { cursor: pointer; color: var(--moss); padding: .55rem 0 0; font-weight: 660; font-size: .91rem; }
.extra-fields fieldset:first-of-type { margin-top: .5rem; }
.prediction-results { background: var(--deep-2); color: #f7f5e9; border-radius: .38rem; }
.prediction-results #prediction-message, .output-note { color: #ccd9ce; font-size: .92rem; margin-top: .55rem; }
.output-list { margin-top: .9rem; }
.output-list div { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .62rem 0; border-top: 1px solid #4a6053; }
.output-list dt { font-size: .93rem; color: #e1eae0; }
.output-list dd { margin: 0; text-align: right; white-space: nowrap; }
.output-list strong { font: 400 1.6rem/1.1 var(--display); color: #cae2bb; }
.output-list span { color: #d6ded2; margin-left: .34rem; font-size: .82rem; }
.warnings { padding: .55rem 0 0 1.2rem; margin: 0; color: #fae3b7; font-size: .88rem; }
.output-note { margin-top: .9rem; padding-top: .82rem; border-top: 1px solid #4a6053; }
.paper-band { background: #e9efe4; border-top: 1px solid var(--line); }
.paper-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1rem 3rem; }
.paper-layout h3 { max-width: 45rem; }
.paper-layout p { margin-top: .35rem; }
.footer { background: var(--deep); color: #dbe5da; }
.footer-row { padding-block: .9rem; flex-wrap: wrap; }
.footer-row p, .footer-row > a:last-child { font-size: .86rem; }
@media (max-width: 750px) {
  .wrap { width: min(100% - 2rem, 74rem); }
  .hero-layout, .split, .result-content, .predict-grid, .paper-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 1.7rem; }
  .hero-art img { aspect-ratio: 1.65; }
  .metric-detail { max-width: 34rem; }
}
@media (max-width: 510px) {
  .header-row { flex-wrap: wrap; padding-block: .8rem; gap: .35rem .8rem; }
  .header-row nav { width: 100%; justify-content: space-between; border-top: 1px solid #33493d; padding-top: .47rem; }
  .numbers dd { font-size: .8rem; line-height: 1.3; }
  .workflow, .insights { grid-template-columns: 1fr; }
  .workflow li, .workflow li:first-child { padding: 1rem 0; border-left: 0; }
  .workflow li + li { border-top: 1px solid var(--line); }
  .bar-row { grid-template-columns: 6rem 1fr 2.65rem; gap: .35rem; }
  .bar-axis { margin-left: 6.35rem; margin-right: 3rem; }
  .bar-label { font-size: .79rem; }
  .fields { gap: .63rem; }
  .field label { min-height: 2.15em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

