/* Cut & Carry / Cutting room. See DESIGN.md for the complete visual contract. */
:root {
  --canvas: #f4f3ee;
  --paper: #fff;
  --ink: #17201f;
  --muted: #56605d;
  --line: #d5d8d0;
  --orange: #ff6b35;
  --blue: #244cde;
  --blue-hover: #1639b6;
  --blue-tint: #edf1ff;
  --yellow: #f5db57;
  --good: #135440;
  --good-tint: #e3f1e9;
  --error: #a52b16;
  --error-tint: #fff0e9;
  --sans: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scroll-padding-bottom: 110px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--sans); }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; box-shadow: 0 0 0 2px white; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.1; }
h2, h3 { letter-spacing: -.035em; }
h2 { font-size: 28px; font-weight: 800; }
h3 { font-size: 21px; font-weight: 750; }
p + p { margin-top: 12px; }
small { font-size: 12px; }
svg { display: block; max-width: 100%; }
fieldset { min-width: 0; }
.shell { max-width: 1400px; padding: 0 40px; margin: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: white; padding: 12px; }
.eyebrow, .tiny-label { font: 600 11px/1.4 var(--mono); letter-spacing: .085em; text-transform: uppercase; }
.eyebrow { display: block; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.35; transition: background-color 120ms, border-color 120ms; }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: var(--blue-hover); }
.button.secondary { background: var(--paper); border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: var(--blue-tint); border-color: var(--blue); }
.button.ghost { background: transparent; color: var(--muted); padding-left: 10px; padding-right: 10px; }
.button.ghost:hover { color: var(--blue); background: var(--blue-tint); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 27px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; white-space: nowrap; }
.brandmark { flex: none; width: 36px; height: 36px; fill: currentColor; }
.brand-amp { font-weight: 500; }
.brand-dot { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.button) { font-size: 13px; font-weight: 700; padding: 12px 0; text-decoration: none; }
.nav-links a:hover { color: var(--blue); }
.nav-note { font: 11px var(--mono); color: var(--muted); border-left: 1px solid var(--line); padding-left: 24px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; padding: 32px 0; align-items: center; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-copy > .eyebrow::before { content: ''; width: 24px; height: 3px; background: var(--orange); }
h1 { font-size: clamp(60px, 6vw, 88px); letter-spacing: -.065em; font-weight: 800; line-height: .97; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { max-width: 460px; margin-top: 18px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.hero-actions .primary { background: var(--ink); }
.hero-actions .primary:hover { background: var(--blue); }
.local-note { font-size: 11px; color: var(--muted); }
.hero-result { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; padding: 8px 12px; background: var(--tint, #edf1ff); border-radius: 4px; width: fit-content; }
.hero-result strong { font-size: 20px; letter-spacing: -.02em; }
.hero-result span { font-size: 12px; color: var(--muted); }
.live-overview { margin: 0; background: var(--orange); padding: 20px 22px 16px; border-radius: 4px; color: var(--ink); }
.overview-top, .overview-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 11px/1.4 var(--mono); }
.overview-top { border-bottom: 1px solid rgb(23 32 31 / 30%); padding-bottom: 16px; }
.overview-foot { border-top: 1px solid rgb(23 32 31 / 30%); padding-top: 14px; }
.live-overview a:focus-visible { outline-color: var(--ink); box-shadow: none; }
.overview-foot a { font-family: var(--sans); font-weight: 700; font-size: 12px; text-decoration: none; }
.overview-svg { width: 100%; max-height: 210px; margin: 12px 0 0; }
.overview-part-id { fill: var(--orange); font: 12px var(--mono); }
.measure-line { stroke: currentColor; stroke-width: 1; fill: none; }
.overview-measure, .overview-index { font: 11px var(--mono); fill: currentColor; }
.overview-base { fill: none; stroke: currentColor; stroke-width: 1; }
.overview-piece { fill: var(--ink); stroke: var(--orange); stroke-width: 2; }
.overview-empty { min-height: 275px; display: flex; flex-direction: column; justify-content: space-between; }
.overview-empty strong { font-size: 48px; line-height: 1; letter-spacing: -.04em; }
.overview-empty > span:last-child { font-size: 13px; }
.preset-strip { display: grid; grid-template-columns: 205px 1fr; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preset-strip > span small { display: block; font: 12px var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 6px; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.presets button { display: flex; align-items: center; gap: 12px; min-height: 66px; border: 1px solid var(--line); border-radius: 4px; padding: 10px 16px; background: transparent; text-align: left; font-size: 13px; font-weight: 700; }
.presets button:hover { border-color: var(--blue); background: var(--blue-tint); }
.preset-drawing { width: 54px; height: 38px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.preset-arrow { margin-left: auto; font-size: 18px; }
#workspace { padding-top: 36px; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.workspace-toolbar .eyebrow { margin-bottom: 7px; }
.workspace-toolbar h2 { font-size: 30px; }
.workspace-status { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); margin: 0 0 14px; }
#record-state::before { content: ''; display: inline-block; width: 6px; height: 6px; border: 1px solid currentColor; margin-right: 7px; }
#save-status { text-align: right; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 24px; align-items: start; }
#planner { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: clip; }
.project-identity { display: grid; grid-template-columns: minmax(0, 1fr) 135px; align-items: end; gap: 24px; padding: 22px 24px; background: #eceee7; border-bottom: 1px solid var(--line); }
.project-identity label { display: block; font: 10px/1.4 var(--mono); letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.project-identity input { border: 0; border-bottom: 1px solid #7f8a80; background: transparent; padding: 0 0 5px; border-radius: 0; font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.project-utilities select { font-size: 12px; }
.input-section { padding: 24px; border-bottom: 1px solid var(--line); }
.step-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-heading h2 { font-size: 23px; }
.step-number { font: 12px/1 var(--mono); background: var(--ink); color: white; width: 29px; height: 29px; display: inline-grid; place-items: center; border-radius: 3px; flex: none; }
.step-aside { margin-left: auto; font-size: 11px; color: var(--muted); }
.section-note { color: var(--muted); font-size: 12px; margin: -8px 0 16px; }
label { font-size: 12px; font-weight: 600; }
input, select, textarea { color: var(--ink); background: var(--paper); border: 1px solid #7f8a80; border-radius: 4px; min-height: 44px; padding: 9px 10px; width: 100%; min-width: 0; }
input { font-variant-numeric: tabular-nums; }
input::placeholder, textarea::placeholder { color: #69716a; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid var(--error); background: var(--error-tint); }
.fields { display: grid; gap: 16px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; }
.field label span { color: var(--muted); font-size: 10px; font-weight: 500; }
.field small { color: var(--muted); font-size: 11px; line-height: 1.4; display: block; margin-top: 5px; }
.field-input-row { display: flex; flex-direction: column; gap: 4px; }
.field-slider { width: 100%; }
.price-badge { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.parts-columns { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px; gap: 10px; font: 10px var(--mono); letter-spacing: .035em; color: var(--muted); padding: 0 0 8px; }
.part-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 96px 64px; gap: 0 10px; margin: 0; padding: 11px 0 10px; border: 0; border-top: 1px solid var(--line); }
.part-id { width: 28px; height: 28px; display: grid; place-items: center; align-self: center; border-radius: 2px; font: 600 10px var(--mono); }
.part-field { min-width: 0; }
.part-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.part-field input { padding: 8px; font-size: 14px; }
.part-length input, .part-quantity input { font-family: var(--mono); font-size: 13px; }
.part-secondary { grid-column: 2 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 3px; }
.priority-select { width: 105px; min-height: 32px; padding: 4px 2px; border: 0; font-size: 11px; color: var(--muted); background: transparent; }
.part-tools { display: flex; align-items: center; gap: 14px; }
.part-tools button { min-height: 32px; padding: 4px 0; font-size: 11px; border: 0; color: var(--muted); background: none; }
.part-tools button:hover { color: var(--blue); text-decoration: underline; }
.part-tools button.remove:hover { color: var(--error); }
.parts-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.parts-actions .button { font-size: 12px; padding: 8px 10px; }
.upload { position: relative; overflow: hidden; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.upload:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.input-help { margin-top: 8px; }
.input-help summary { font-size: 11px; color: var(--muted); }
.input-help p { font-size: 12px; color: var(--muted); margin-top: 8px; }
code { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
summary::marker { font-size: 10px; }
#undo-notice { background: var(--blue-tint); font-size: 12px; padding: 4px 12px; margin-top: 12px; }
.allowances { background: #f3f4ef; border-radius: 4px; padding: 14px; margin: 20px 0 8px; }
.allowance-title { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 12px; color: var(--muted); }
.allowance-title > span:last-child { font-size: 10px; }
.subtle-details { border-top: 1px solid var(--line); margin-top: 10px; }
.subtle-details summary { display: list-item; font-size: 12px; padding: 15px 0; }
.subtle-details summary > span { float: right; font-size: 10px; font-weight: 400; color: var(--muted); }
.subtle-details .fields { padding-bottom: 10px; }
.subtle-details p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; gap: 12px; }
.form-actions > span { font-size: 11px; color: var(--muted); }
.result { border: 1px solid var(--line); border-radius: 6px; background: var(--paper); overflow: clip; transition: opacity 120ms; }
.result.pending { opacity: .45; }
.purchase-ticket { background: var(--blue); color: white; padding: 24px 28px 18px; }
.ticket-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 20px; }
.ticket-top .tiny-label { font-size: 10px; letter-spacing: .1em; }
.ticket-status { font-size: 10px; border: 1px solid #859ef2; padding: 2px 8px; border-radius: 2px; }
.purchase-ticket h2 { font-size: 27px; font-weight: 600; letter-spacing: -.035em; }
.ticket-price { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 10px 0 20px; }
.ticket-price strong { font-size: clamp(44px, 5vw, 72px); letter-spacing: -.06em; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.ticket-price > span { flex-shrink: 0; font-size: 12px; }
.ticket-price b { font-size: 10px; font-weight: 400; color: #dce4ff; }
.ticket-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #6682e9; padding-top: 10px; gap: 12px; font-size: 11px; }
.ticket-bottom button { border: 0; color: white; background: transparent; min-height: 36px; padding: 8px 0 8px 12px; font-weight: 700; font-size: 12px; }
.purchase-ticket button:focus-visible { outline-color: white; box-shadow: 0 0 0 2px var(--ink); }
.budget-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; padding: 12px 28px; color: var(--good); background: var(--good-tint); }
.budget-note > span::before { content: '✓'; margin-right: 6px; }
.budget-note.over-budget { color: var(--error); background: var(--error-tint); }
.budget-note.over-budget > span::before { content: '!'; font-weight: 800; }
.result-body { padding: 22px 28px 24px; }
.material-balance { margin-bottom: 22px; }
.balance-heading { display: flex; justify-content: space-between; font-size: 11px; gap: 12px; margin-bottom: 10px; }
.balance-heading > span { color: var(--muted); }
.material-balance > svg { width: 100%; height: 10px; }
.balance-used { fill: var(--blue); }
.balance-loss { fill: var(--ink); }
.diagram-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.diagram-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.diagram-legend i { display: inline-block; width: 8px; height: 8px; }
.legend-parts { background: var(--blue); }
.legend-kerf { background: var(--ink); }
.legend-offcut { background: repeating-linear-gradient(135deg, var(--yellow), var(--yellow) 3px, var(--ink) 3px, var(--ink) 4px); }
.result-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); gap: 16px; }
.result-tabs button { border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 12px 2px 13px; background: none; min-height: 44px; font-size: 12px; font-weight: 700; }
.result-tabs button[aria-selected="true"] { border-color: var(--blue); color: var(--blue); }
.result-tabs button:hover { color: var(--blue); background: var(--blue-tint); }
.panel-intro { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 16px; }
.panel-intro h3 { font-size: 20px; }
.panel-intro p { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; margin-top: 7px; }
.panel-intro .tiny-label { color: var(--muted); font-size: 9px; }
.part-locator { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 22px; padding: 8px 10px; background: #f4f5ef; border-radius: 4px; }
.part-locator label { font-size: 11px; white-space: nowrap; color: var(--muted); }
.part-locator select { max-width: 250px; min-height: 36px; font-size: 12px; }
.locator-status { font-size: 12px; color: var(--blue); margin: -8px 0 16px; padding: 8px 10px; border-left: 3px solid var(--blue); background: var(--blue-tint); }
.board-card { margin: 0; padding: 0 0 15px; }
.board-card + .board-card { padding-top: 15px; border-top: 1px solid var(--line); }
.board-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 11px; }
.board-card figcaption strong { display: inline-flex; align-items: center; gap: 8px; }
.board-number { font: 10px var(--mono); color: var(--muted); }
.board-source { font-size: 10px; font-weight: 600; }
.board-source > span { font-weight: 400; color: var(--muted); }
.board-card > svg { width: 100%; border: 1px solid #929b91; }
.board-base { fill: #f8f6ed; }
.trim, .kerf { fill: var(--ink); }
.hatch-line { fill: none; stroke: #7b8273; stroke-width: 1; }
.piece-label { font: 500 23px var(--mono); fill: var(--ink); }
.offcut-label { font: 22px var(--mono); fill: #384135; }
.color-0 { background: #ff9b72; fill: #ff9b72; }
.color-1 { background: #bfd0ff; fill: #bfd0ff; }
.color-2 { background: #f5db57; fill: #f5db57; }
.color-3 { background: #9dd7bf; fill: #9dd7bf; }
.color-4 { background: #efb2cb; fill: #efb2cb; }
.cut-tags { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 3px; }
.cut-tags button, .cut-tags > span { border: 0; color: var(--muted); background: transparent; font: 11px var(--mono); min-height: 32px; padding: 5px 0; }
.cut-tags b { color: var(--ink); }
.cut-tags button:hover { color: var(--blue); text-decoration: underline; }
.cut-tags button[aria-pressed="true"] { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.board-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.board-foot .keep { color: var(--good); font-weight: 700; }
.board-card.is-match > svg { outline: 2px solid var(--blue); outline-offset: 2px; }
.board-card.is-unmatched .piece, [data-piece-row].is-muted .piece { fill-opacity: .3; }
[data-part-row].located { outline: 2px solid var(--blue); outline-offset: 3px; background: var(--blue-tint); }
.offcut-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 18px; padding: 12px; background: var(--good-tint); color: var(--good); font-size: 11px; }
.offcut-note > span { font-size: 10px; }
.purchase-hero { display: flex; align-items: center; gap: 24px; margin: 16px 0; padding: 20px; background: var(--blue-tint); }
.purchase-hero > strong { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.06em; color: var(--blue); }
.purchase-hero h4 { font-size: 19px; }
.purchase-hero p { font-size: 12px; margin-top: 8px; color: var(--muted); }
.cost-list { margin: 18px 0; }
.cost-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 13px; }
.cost-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.cost-list .subtotal { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; }
.cost-list .total { border-top: 2px solid var(--ink); margin-top: 5px; padding-top: 14px; font-size: 20px; font-weight: 800; }
.note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 12px 0 20px; }
.stock-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stock-shortcuts button { font: 11px var(--mono); background: #f4f5ef; padding: 7px 12px; min-height: 36px; border: 1px solid var(--line); border-radius: 3px; }
.stock-shortcuts button:hover { border-color: var(--blue); color: var(--blue); }
.comparison { padding-top: 24px; }
.comparison h4 { font-size: 24px; letter-spacing: -.04em; margin-bottom: 20px; }
.quote-row { margin-bottom: 20px; }
.quote-row > div { flex-wrap: wrap; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 8px; }
.quote-row > div strong { font-size: 18px; }
.quote-row svg { width: 100%; height: 10px; background: #eeefe9; }
.quote-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
.quote-current { fill: var(--ink); }
.quote-alternative { fill: var(--blue); }
.comparison p { font-size: 12px; margin: 0 0 18px; color: var(--muted); }
.method-details { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 5px; }
.method-details summary { font-size: 11px; color: var(--muted); }
.method-details p { font-size: 12px; color: var(--muted); margin-top: 12px; }
.report-actions { padding: 12px 8px 0; }
.report-actions .button { font-size: 12px; }
.report-actions p { color: var(--muted); font-size: 10px; margin: 4px 10px; }
.empty-result { padding: 32px; min-height: 280px; background: var(--blue-tint); display: flex; align-items: start; flex-direction: column; justify-content: center; }
.empty-result h2 { margin: 18px 0 14px; font-size: 32px; }
.empty-result p { max-width: 390px; font-size: 14px; color: var(--muted); }
.empty-result .button { margin-top: 24px; }
.empty-input { padding: 20px 0; }
.empty-input strong { display: block; }
.empty-input p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.notice { padding: 16px; margin: 16px; border-left: 3px solid var(--blue); background: var(--blue-tint); font-size: 13px; overflow-wrap: anywhere; }
.notice.error { background: var(--error-tint); color: var(--error); border-left-color: var(--error); }
.mobile-dock { display: none; }
.learn { padding: 64px 0 36px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin-top: 8px; font-size: 28px; }
.guide-links { border-top: 1px solid var(--line); }
.guide-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-card .tiny-label { color: var(--muted); }
.guide-card h3 { font-size: 19px; }
.guide-card > span:last-child { font-size: 22px; color: var(--blue); }
.guide-card:hover { color: var(--blue); background: var(--blue-tint); }
.faq { display: grid; grid-template-columns: 1fr 1.12fr; gap: 48px; padding: 32px 0 64px; }
.faq h2 { margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 13px; padding: 17px 0; }
.faq p { font-size: 13px; color: var(--muted); padding-bottom: 16px; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.footer-note { font-size: 11px; color: var(--muted); margin-top: 18px; max-width: 820px; }
.site-footer .brand { font-size: 24px; }
.site-footer .brandmark { width: 30px; height: 30px; }
.article { max-width: 880px; padding-top: 40px; padding-bottom: 64px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 40px; }
.article > h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.05; margin: 16px 0 24px; }
.article > p { color: var(--muted); font-size: 17px; }
.article > section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 32px; }
.article section h2 { font-size: 24px; margin-bottom: 14px; }
.article section p { color: var(--muted); font-size: 15px; }
.sources { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; font-size: 12px; }
.article > .button { margin-top: 32px; }
.related-links { display: grid; gap: 10px; margin-top: 32px; font-size: 13px; }
dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
dialog::backdrop { background: rgb(23 32 31 / 48%); }
dialog h2 { font-size: 28px; margin-bottom: 16px; }
dialog p { margin: 12px 0 18px; font-size: 13px; color: var(--muted); }
dialog label { display: block; margin: 12px 0 6px; }
dialog .button-row { margin-top: 18px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog-head h2 { margin: 8px 0 0; }
.saved-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.saved-row > div { min-width: 0; }
.saved-row strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.saved-row small { display: block; color: var(--muted); font-size: 10px; }
.saved-row .button { font-size: 12px; padding: 8px; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(600px, calc(100% - 32px)); width: max-content; padding: 14px 20px; background: var(--ink); color: white; border: 1px solid white; border-radius: 6px; font-size: 13px; }
.print-only { display: none; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px; overflow-wrap: anywhere; }
.ad-slot { min-height: 250px; contain: layout; display: grid; place-items: center; margin-top: 40px; color: var(--muted); font-size: 10px; }
@media (min-width: 1400px) { .ticket-price strong { font-size: 76px; } }
@media (max-width: 1160px) {
  .shell { padding: 0 28px; }
  .hero { gap: 32px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 12px; }
  .preset-strip { grid-template-columns: 175px 1fr; gap: 12px; }
  .presets button { gap: 8px; padding: 8px; }
  .preset-drawing { width: 42px; }
  .project-identity, .input-section { padding: 20px; }
  .project-identity { gap: 16px; grid-template-columns: minmax(0, 1fr) 122px; }
  .ticket-price { flex-wrap: wrap; gap: 6px; }
  .ticket-price > span br { display: none; }
  .ticket-price > span b { margin-left: 8px; }
  .purchase-ticket { padding: 22px 24px 16px; }
  .result-body { padding: 20px 24px; }
  .parts-columns { grid-template-columns: minmax(0, 1fr) 78px 54px; gap: 8px; }
  .part-row { grid-template-columns: 26px minmax(0, 1fr) 78px 54px; gap: 0 8px; }
  .part-id { width: 26px; height: 26px; }
  .part-field input { font-size: 12px; padding: 8px 5px; }
}
@media (max-width: 979px) {
  .nav-links { gap: 20px; }
  .nav-note { display: none; }
  .hero { padding: 36px 0; grid-template-columns: 1.1fr 1fr; }
  h1 { font-size: 68px; }
  .hero-copy > p { font-size: 15px; }
  .overview-top, .overview-foot { font-size: 10px; flex-wrap: wrap; gap: 6px; }
  .overview-top .tiny-label { font-size: 10px; }
  .live-overview { padding: 18px; }
  .preset-strip { grid-template-columns: 1fr; gap: 12px; }
  .preset-strip > span { display: flex; align-items: center; gap: 12px; }
  .preset-strip > span small { margin-top: 0; }
  .presets button { padding: 10px 16px; }
  .workspace { grid-template-columns: 1fr; }
  .workspace-toolbar .button-row { gap: 5px; }
  .workspace-toolbar .button { font-size: 12px; padding: 9px 12px; }
  .project-identity { grid-template-columns: minmax(0, 1fr) 155px; }
  .input-section, .project-identity, .form-actions { padding-left: 24px; padding-right: 24px; }
  .parts-columns { grid-template-columns: minmax(0, 1fr) 120px 90px; }
  .part-row { grid-template-columns: 28px minmax(0, 1fr) 120px 90px; }
  .part-field input { font-size: 15px; padding: 8px 10px; }
  .ticket-price { flex-wrap: nowrap; }
  .ticket-price > span br { display: block; }
  .ticket-price > span b { margin-left: 0; }
  .ticket-price strong { font-size: 72px; }
  .result-body { padding: 24px; }
  .purchase-ticket { padding: 28px 24px 18px; }
  .mobile-dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px max(12px, env(safe-area-inset-bottom)); background: var(--ink); color: white; box-shadow: 0 -1px 0 white; }
  .mobile-dock > div { display: flex; align-items: baseline; gap: 10px; }
  .mobile-dock #dock-total { font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
  .mobile-dock small { font-size: 11px; color: #d5d8d0; }
  .mobile-dock a { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; padding: 12px 16px; background: var(--orange); color: var(--ink); border-radius: 4px; min-height: 44px; font-size: 13px; font-weight: 700; }
  body:has(.mobile-dock) { padding-bottom: 80px; }
  .toast { bottom: 96px; }
  .faq { grid-template-columns: .8fr 1.2fr; gap: 32px; }
  .footer-row { align-items: start; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 16px; }
  .shell { padding: 0 16px; }
  .nav { min-height: 68px; gap: 16px; }
  .brand { font-size: 23px; gap: 5px; }
  .brandmark { width: 30px; height: 30px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.button) { font-size: 12px; }
  .desktop-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 32px 0 26px; }
  h1 { font-size: clamp(48px, 12.4vw, 76px); }
  .hero-copy > .eyebrow { font-size: 9px; margin-bottom: 16px; gap: 8px; }
  .hero-copy > p { font-size: 15px; margin-top: 18px; max-width: 290px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 16px; margin-top: 20px; }
  .hero-actions .button { font-size: 12px; padding: 10px 12px; gap: 12px; }
  .local-note { font-size: 10px; max-width: 110px; }
  .live-overview { padding: 14px 16px; }
  .overview-top { flex-wrap: nowrap; padding-bottom: 12px; }
  .overview-svg { max-height: 168px; margin-top: 10px; }
  .overview-foot { flex-wrap: nowrap; padding-top: 10px; }
  .overview-foot a { font-size: 11px; }
  .overview-empty { min-height: 200px; }
  .preset-strip { padding: 18px 0; }
  .preset-strip > span { justify-content: space-between; font-size: 9px; gap: 8px; }
  .preset-strip > span small { font-size: 10px; }
  .presets { gap: 8px; }
  .presets button { flex-direction: column; gap: 5px; padding: 10px 4px; justify-content: center; font-size: 11px; }
  .preset-drawing { width: 42px; height: 29px; }
  .preset-arrow { display: none; }
  #workspace { padding-top: 28px; }
  .workspace-toolbar { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 12px; }
  .workspace-toolbar h2 { font-size: 28px; }
  .workspace-toolbar .button-row { justify-content: space-between; gap: 6px; }
  .workspace-toolbar .button { flex: 1; font-size: 11px; padding: 9px 10px; }
  .workspace-status { flex-direction: column; gap: 4px; font-size: 10px; }
  #save-status { text-align: left; }
  .project-identity { grid-template-columns: 1fr; align-items: start; gap: 14px; padding: 18px 16px; }
  .project-identity input { font-size: 23px; }
  .project-utilities { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .project-utilities label { margin-bottom: 0; }
  .project-utilities select { max-width: 155px; }
  .input-section { padding: 20px 16px; }
  .step-heading { gap: 10px; margin-bottom: 16px; }
  .step-heading h2 { font-size: 22px; }
  .step-aside { font-size: 10px; }
  .parts-columns { display: none; }
  .part-row { grid-template-columns: 26px minmax(0, 1fr) 62px; gap: 8px; padding: 14px 0; }
  .part-id { align-self: start; margin-top: 24px; }
  .part-part { grid-column: 2 / -1; }
  .part-length { grid-column: 2; }
  .part-quantity { grid-column: 3; }
  .part-field label { position: static; width: auto; height: auto; clip-path: none; display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
  .part-field input { font-size: 16px; padding: 8px; }
  .part-secondary { grid-column: 2 / -1; margin-top: 0; gap: 6px; }
  .priority-select { width: 95px; }
  .part-tools { gap: 14px; }
  .part-tools button { font-size: 10px; min-height: 36px; }
  .parts-actions { gap: 2px; }
  .parts-actions .button { font-size: 11px; padding: 8px; }
  .fields { gap: 14px 12px; }
  .field label { font-size: 11px; }
  .field small { font-size: 10px; }
  .field input, .field select { font-size: 16px; }
  .allowances { padding: 12px; }
  .allowance-title { gap: 8px; }
  .allowance-title > span:first-child { font-size: 9px; }
  .allowance-title > span:last-child { font-size: 9px; }
  .form-actions { padding: 18px 16px; }
  .form-actions .button { font-size: 12px; }
  .form-actions > span { font-size: 10px; }
  .purchase-ticket { padding: 22px 20px 14px; }
  .purchase-ticket h2 { font-size: 25px; }
  .ticket-top { margin-bottom: 18px; }
  .ticket-price { display: block; margin-bottom: 18px; }
  .ticket-price strong { display: block; font-size: clamp(48px, 15vw, 72px); }
  .ticket-price > span { display: block; margin-top: 6px; font-size: 11px; }
  .ticket-price > span br { display: none; }
  .ticket-price > span b { margin-left: 8px; }
  .budget-note { padding: 12px 20px; font-size: 10px; }
  .result-body { padding: 20px 16px; }
  .balance-heading { font-size: 10px; }
  .diagram-legend { font-size: 9px; gap: 12px; }
  .result-tabs { gap: 8px; }
  .result-tabs button { font-size: 11px; }
  .panel-intro h3 { font-size: 19px; }
  .part-locator { padding: 8px; gap: 12px; }
  .part-locator select { max-width: 200px; font-size: 12px; }
  .part-locator label { font-size: 10px; }
  .board-card figcaption { font-size: 11px; }
  .board-card > svg { min-height: 30px; }
  .board-foot, .board-source { font-size: 11px; }
  .cut-tags { gap: 0 12px; }
  .cut-tags button { min-height: 36px; font-size: 12px; }
  .offcut-note { align-items: start; flex-direction: column; gap: 3px; }
  .result-body > section > .button-row .button { font-size: 11px; padding: 9px 12px; }
  .report-actions { padding: 10px 0 0; }
  .report-actions .button-row { gap: 0; justify-content: space-between; }
  .report-actions .button { font-size: 11px; padding: 10px; }
  .report-actions p { font-size: 10px; }
  .empty-result { padding: 24px; }
  .empty-result h2 { font-size: 29px; }
  .mobile-dock { padding: 10px 16px max(10px, env(safe-area-inset-bottom)); gap: 12px; }
  .mobile-dock > div { display: block; }
  .mobile-dock small { display: block; font-size: 10px; }
  .mobile-dock a { padding: 10px 14px; }
  .learn { padding: 44px 0 24px; }
  .section-heading h2 { font-size: 25px; }
  .guide-card { grid-template-columns: 28px 1fr auto; gap: 10px; padding: 18px 0; }
  .guide-card h3 { font-size: 17px; }
  .faq { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 40px; }
  .faq h2 { font-size: 25px; }
  .faq summary { font-size: 12px; }
  .footer-row { flex-direction: column; gap: 22px; }
  .footer-links { gap: 12px 20px; font-size: 11px; }
  .footer-note { font-size: 10px; }
  .article { padding-top: 28px; padding-bottom: 40px; }
  .article > h1 { font-size: 40px; }
  .article > p { font-size: 15px; }
  .article section h2 { font-size: 23px; }
  .article section p { font-size: 14px; }
  dialog { padding: 22px; }
  dialog h2 { font-size: 25px; }
  dialog .button { font-size: 12px; }
  .saved-row { grid-template-columns: 1fr auto; }
  .saved-row > div { grid-column: 1 / -1; }
  .toast { font-size: 12px; padding: 12px 16px; bottom: 96px; }
}
.ticket-price.large-cost { display: block; }
.ticket-price.large-cost strong { display: block; font-size: clamp(32px, 5vw, 46px); }
.ticket-price.large-cost > span { display: block; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .piece, .overview-piece { stroke: CanvasText; }
  .purchase-ticket { border: 2px solid CanvasText; }
  .result-tabs button[aria-selected="true"] { border-color: Highlight; }
}
@media print {
  @page { size: auto; margin: 14mm; }
  body { background: white; color: black; font-size: 10pt; padding: 0; }
  .shell { max-width: none; padding: 0; }
  .site-header, .site-footer, .hero, .preset-strip, .workspace-toolbar, .workspace-status, #planner,
  .result-tabs, #panel-compare, .report-actions, .button-row, .method-details summary, .learn, .faq,
  .mobile-dock, .toast, dialog, .part-locator, #locator-status, .ticket-bottom button, .ad-slot, .skip { display: none !important; }
  #workspace { padding: 0; }
  .workspace { display: block; }
  .result { border: 0; overflow: visible; }
  .result-body { padding: 0; }
  .print-only { display: block; padding: 0 0 12px; }
  .print-only h2 { font-size: 20pt; margin-bottom: 8px; }
  .print-only p { margin-bottom: 5px; font-size: 9pt; }
  .print-only th, .print-only td { padding: 6px; font-size: 9pt; }
  .purchase-ticket { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; background: white; color: black; padding: 12px 0; border-top: 2px solid black; break-inside: avoid; }
  .ticket-top { display: none; }
  .purchase-ticket h2 { align-self: center; font-size: 19pt; }
  .ticket-price { margin: 0; gap: 16px; }
  .ticket-price strong { font-size: 30pt; }
  .ticket-price > span b { color: black; }
  .ticket-status { border-color: black; }
  .ticket-bottom { grid-column: 1 / -1; border-color: black; padding-top: 8px; }
  .budget-note { background: white; color: black; padding: 8px 0; }
  .material-balance { margin: 12px 0; }
  .panel-intro { margin: 16px 0 12px; }
  .board-card { break-inside: avoid; padding-bottom: 8px; }
  .board-card + .board-card { padding-top: 8px; }
  .board-card figcaption { margin-bottom: 6px; }
  .board-card > svg { height: auto; max-height: none; print-color-adjust: exact; }
  .board-card.is-unmatched, [data-piece-row].is-muted { opacity: 1; }
  .board-card.is-match > svg { outline: none; }
  .cut-tags > span { color: black; font-size: 9pt; min-height: 24px; }
  .board-foot { color: black; font-size: 9pt; }
  .offcut-note { background: white; color: black; padding: 8px 0; }
  .method-details p { color: black; font-size: 9pt; }
  #panel-shopping, .cost-list, .method-details { break-inside: avoid; }
  .purchase-hero { background: white; border: 1px solid black; padding: 12px; }
  .purchase-hero > strong { color: black; }
  a { text-decoration: none; }
}
/* Compact launch layout: show the cut list workbench with less marketing overhead. */
.hero { padding-block: 26px 20px; }
.hero h1 { font-size: clamp(2.35rem, 4.2vw, 3.35rem); margin-block: 10px 14px; }
.hero-copy > p { font-size: .88rem; line-height: 1.55; }
.hero-actions { margin-top: 17px; }
#workspace { padding-top: 22px; }
/* Compact density: reduce repeated vertical chrome while keeping touch targets intact. */
.workspace-toolbar { padding-block: 16px 11px; }
.workspace-heading { margin-bottom: 16px; }
.section-heading { margin-bottom: 12px; }
.workspace, .workspace-grid { row-gap: 18px; }
.card, .panel, .result-section, .workspace-section, fieldset { margin-block: 14px; }
.form-group, .field-group, .input-group, .form-field { margin-block: 10px; }
.card, .panel, fieldset { padding-block: 14px; }
@media (max-width: 600px) {
  .workspace-toolbar { padding-block: 14px 9px; }
  .workspace, .workspace-grid { row-gap: 14px; }
  .card, .panel, .result-section, .workspace-section, fieldset { margin-block: 10px; }
  .card, .panel, fieldset { padding-block: 12px; }
}
/* Copy-density pass: bring project inputs into view sooner. */
.hero { padding-block: 20px; }
.hero-copy > .eyebrow { margin-bottom: 12px; }
.hero-copy > p { margin-top: 12px; }
.hero-actions { margin-top: 16px; }
.preset-strip { padding-block: 12px; }
.workspace-toolbar { padding-top: 12px; }
.step-heading { margin-bottom: 13px; }
.fields { gap: 12px; }
.part-row { padding-block: 8px; }
@media (max-width: 720px) {
  .hero { padding-block: 14px; }
  .preset-strip { padding-block: 10px; }
  .workspace-toolbar { padding-top: 8px; }
  .fields { gap: 10px; }
  .part-row { padding-block: 7px; }
}
/* Aggressive landing density: show project inputs immediately. */
.hero { padding-block: 8px 10px; }
.hero h1 { margin-block: 4px 6px; }
.hero-copy > p { margin-block: 6px 0; }
.hero-actions { margin-top: 10px; }
.live-overview { display: none; }
.preset-strip { padding-block: 10px; }
.shell:has(#workspace) { display: flex; flex-direction: column; }
.shell:has(#workspace) > .hero { order: 0; }
.shell:has(#workspace) > #workspace { order: 1; }
.shell:has(#workspace) > .preset-strip { order: 2; }
.shell:has(#workspace) > :not(.hero):not(#workspace):not(.preset-strip) { order: 3; }

/* Drastic density pass: put the cut planner controls directly after the title. */
.hero { padding-block: 3px 5px; }
.hero-copy > .eyebrow, .live-overview, .hero-actions, .workspace-toolbar .eyebrow { display: none; }
.hero h1 { margin: 0 0 4px; font-size: clamp(2rem, 3.2vw, 2.8rem); }
.hero-copy > p { margin: 0; line-height: 1.35; }
.workspace-toolbar { padding-block: 3px 5px; }
.preset-strip { padding-block: 3px; }
@media (max-width: 600px) { .hero { padding-block: 2px 4px; } .workspace-toolbar { padding-block: 2px 4px; } }

/* Final landing compression: keep the first editable cut row in the opening view. */
.hero-copy > p { display: none; }
.workspace-toolbar { margin-bottom: 4px; }
.workspace-toolbar > div:first-child h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.workspace-status { margin-bottom: 4px; }
.project-identity { gap: 8px; padding-block: 5px; }
.input-section { padding-block: 5px; }
.step-heading { margin-bottom: 6px; }
.part-row { padding-block: 4px; }
@media (max-width: 600px) {
  .workspace-toolbar { gap: 6px; }
  .workspace-toolbar .button { padding-block: 7px; }
  .project-identity { grid-template-columns: minmax(0, 1fr) 130px; align-items: end; gap: 6px; padding-block: 5px; }
  .project-utilities { display: block; }
  .project-utilities select { width: 100%; max-width: none; }
  .part-row { padding-block: 3px; }
  .part-part { grid-row: 2; }
  .part-length { grid-row: 1; }
  .part-quantity { grid-row: 1; }
}

/* 2026-09-14 vertical breathing room */
.result-body{padding-block:26px}
@media(max-width:720px){.result-body{padding-block:22px}}

/* Analytics consent banner and preferences panel (injected by analytics.js) */
.analytics-consent{position:fixed;right:1rem;bottom:1rem;left:auto;z-index:1000;box-sizing:border-box;width:min(22rem,calc(100vw - 2rem));margin:0;padding:1rem 1.125rem;border:1px solid #cfcfcf;border-radius:10px;background:#fff;color:#1a1a1a;font:inherit;font-size:.875rem;line-height:1.45;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.analytics-consent h2{margin:0 0 .5rem;font-size:1rem;line-height:1.3;color:inherit}
.analytics-consent p{margin:0 0 .75rem;color:inherit}
.analytics-consent button{display:inline-block;margin:0 .5rem .25rem 0;padding:.5rem .85rem;border:1px solid #1a1a1a;border-radius:6px;background:#1a1a1a;color:#fff;font:inherit;font-size:.875rem;font-weight:600;line-height:1.2;cursor:pointer;min-height:40px}
.analytics-consent button[data-analytics="decline"],.analytics-consent button[data-analytics="close"]{background:#fff;color:#1a1a1a}
.analytics-consent button:hover{opacity:.88}
.analytics-consent button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.analytics-consent[role="dialog"]{bottom:auto;top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(26rem,calc(100vw - 2rem))}
body > button[data-action="privacy-choices"]{position:fixed;left:1rem;bottom:1rem;z-index:999;margin:0;padding:.4rem .7rem;border:1px solid #cfcfcf;border-radius:999px;background:#fff;color:#1a1a1a;font:inherit;font-size:.75rem;line-height:1.2;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
body > button[data-action="privacy-choices"]:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media (max-width:480px){.analytics-consent{right:.75rem;bottom:.75rem;width:calc(100vw - 1.5rem)}}
@media print{.analytics-consent,body > button[data-action="privacy-choices"]{display:none}}
/* Landing-page interaction motion. */
@keyframes landing-tool-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes landing-result-ready { 0% { opacity: .72; transform: scale(.985); } 100% { opacity: 1; transform: scale(1); } }
main > :first-child { animation: landing-tool-enter .46s cubic-bezier(.2,.75,.25,1) both; }
main :where(form, .workspace, .studio, .calculator, .dashboard, [data-workspace]) { transition: transform .2s ease, box-shadow .2s ease; }
main :where(form, .workspace, .studio, .calculator, .dashboard, [data-workspace]):focus-within { transform: translateY(-2px); }
main :where(output, [aria-live="polite"], .result, .results, .summary, .metric):not(:empty) { animation: landing-result-ready .32s ease-out both; }
@media (prefers-reduced-motion: reduce) { main > :first-child, main :where(output, [aria-live="polite"], .result, .results, .summary, .metric):not(:empty) { animation: none; } main :where(form, .workspace, .studio, .calculator, .dashboard, [data-workspace]) { transition: none; } }

/* Example projects make a tiny measuring-saw bounce when selected by intent. */
@keyframes kerf-preset-snap {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-3px) rotate(-2deg); }
  72% { transform: translateY(1px) rotate(1deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .presets button[data-preset]:hover .preset-drawing,
  .presets button[data-preset]:focus-visible .preset-drawing {
    transform-origin: 50% 100%;
    animation: kerf-preset-snap .48s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .presets button[data-preset] .preset-drawing { animation: none; }
}

/* Scroll-reveal for below-fold content: visible by default (no-JS/crawlers), animated only once JS marks html.js-reveal. */
html.js-reveal .js-reveal-target { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
html.js-reveal .js-reveal-target.is-revealed { opacity: 1; transform: translateY(0); }
