/* Toolroom store. A machined tool drawer: graphite foam, anodised aluminium plates,
   engraved expanded capitals, safety yellow for the one thing to press. Tools sit in
   foam pockets and leave their outline behind when they go into the bag. */
:root {
  --page: #121417;
  --foam: #1b1e22;
  --foam-2: #23272c;
  --pocket: #0c0d0f;
  --line: #31363d;
  --line-soft: #262a30;
  --text: #eceef0;
  --muted: #a3a9b1;
  --dim: #8a919a;
  --alu: #d9dce0;
  --alu-2: #bfc4ca;
  --alu-3: #a7adb4;
  --alu-ink: #15181b;
  --alu-muted: #4f5660;
  --yellow: #f2d22e;
  --yellow-2: #ffe25a;
  --yellow-ink: #1a1700;
  --good: #8fd6a6;
  --bad: #ff9a9a;
  --bad-ink: #9b1c24;
  --wide: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --gutter: 48px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--wide); font-stretch: 125%; font-weight: 800; letter-spacing: -.01em; line-height: 1.02; text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; opacity: .5; }
img, svg { display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wrap { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 300; padding: 12px 16px; background: var(--yellow); color: var(--yellow-ink); font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow .num { padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--yellow); font-size: 12px; letter-spacing: .04em; }

/* Buttons: machined keys. Yellow is the only colour that asks to be pressed. */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font-family: var(--wide); font-stretch: 112%; font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: background-color .15s ease-out, color .15s ease-out, transform .12s ease-out, box-shadow .15s ease-out; }
.button svg { width: 18px; height: 18px; }
.primary { background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); color: var(--yellow-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 #a68d0e, 0 6px 16px rgba(0, 0, 0, .35); }
.primary:hover { background: var(--yellow-2); }
.primary:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 #a68d0e; }
.secondary { border-color: var(--line); background: linear-gradient(180deg, #2a2f35, #22262b); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.secondary:hover { border-color: #4a515a; background: #2e343b; }
.in-bag { border-color: rgba(143, 214, 166, .45); background: rgba(143, 214, 166, .1); color: var(--good); }
.in-bag:hover { background: rgba(143, 214, 166, .18); }
.full { width: 100%; }
.grow { flex: 1; }
.text-button { min-height: 44px; padding: 0 2px; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--yellow); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--foam-2); transition: background-color .15s ease-out; }
.icon-button:hover { background: #30353c; }

/* Header: an anodised top plate with engraved lettering */
.site-header { position: relative; z-index: 5; border-bottom: 1px solid #000; background: linear-gradient(180deg, #2b3036, #1d2025); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(255, 255, 255, .03); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--wide); font-stretch: 125%; font-size: 22px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; padding: 4px; border: 1px solid #0b0c0e; border-radius: 10px; background: #15181b; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.main-nav a, .nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out; }
.main-nav a:hover, .nav-link:hover { color: var(--text); background: #22262b; }
.main-nav a[aria-current="page"] { background: linear-gradient(180deg, #3a4048, #2c3138); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.nav-count:not(:empty) { min-width: 22px; padding: 1px 6px; border-radius: 4px; background: var(--yellow); color: var(--yellow-ink); font-size: 11px; text-align: center; }
.bag-button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #2a2f35, #202429); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: border-color .15s ease-out; }
.bag-button:hover { border-color: var(--yellow); }
.bag-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; background: var(--yellow); color: var(--yellow-ink); font-size: 13px; font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 64px; align-items: start; padding-block: 72px 64px; }
.hero h1 { max-width: 13ch; font-size: clamp(38px, 4.6vw, 70px); line-height: .96; letter-spacing: -.02em; }
.lede { max-width: 34rem; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; max-width: 34rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--foam); }
.spec-strip div { padding: 12px 14px; border-left: 1px solid var(--line); }
.spec-strip div:first-child { border-left: 0; }
.spec-strip dt { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.spec-strip dd { margin: 2px 0 0; font-family: var(--wide); font-stretch: 118%; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.spec-strip dd.num { font-family: var(--mono); font-weight: 500; color: var(--yellow); }
.hero-note { margin-top: 14px; color: var(--dim); font-size: 14px; }

/* The bench: an aluminium instrument panel with four screws */
.bench { position: relative; min-width: 0; padding: 22px 22px 18px; border-radius: 14px; background: linear-gradient(160deg, #e6e8eb 0%, var(--alu) 45%, var(--alu-2) 100%); color: var(--alu-ink); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .12), 0 30px 60px rgba(0, 0, 0, .45), 0 2px 0 #000; }
.bench::before, .bench::after { content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fbfbfb, #8b9199 70%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.bench::before { left: 10px; }
.bench::after { right: 10px; }
.bench-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 0 6px 14px; }
.bench-title { font-size: 13px; font-stretch: 118%; font-weight: 800; letter-spacing: .1em; color: var(--alu-muted); }
.bench-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #9da3aa; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.bench-tabs button { min-height: 40px; padding: 0 16px; border-radius: 7px; color: #2c3137; font-size: 14px; font-weight: 700; transition: background-color .15s ease-out; }
.bench-tabs button:hover { background: rgba(255, 255, 255, .35); }
.bench-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #fff, #e9ebee); color: var(--alu-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.bench :focus-visible { outline-color: var(--alu-ink); }
.bench-sheet { position: relative; padding: 18px 20px 20px; border-radius: 10px; background: #f6f7f8; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset 0 2px 6px rgba(0, 0, 0, .08); animation: sheet-in .25s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bench-sheet .sheet-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid #cdd1d6; }
.bench-sheet .sheet-top b { font-family: var(--wide); font-stretch: 118%; font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.bench-sheet .sheet-top span { color: var(--alu-muted); font-size: 12.5px; white-space: nowrap; }
.q-row { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 4.4rem; align-items: center; gap: 14px; min-height: 50px; border-bottom: 1px solid #e1e4e7; }
.q-row label { font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.q-row output { text-align: right; font-size: 15px; font-weight: 600; }
.q-row input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: ew-resize; }
.q-row input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--alu-ink) var(--fill, 50%), #c9cdd2 var(--fill, 50%)); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.q-row input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: #c9cdd2; }
.q-row input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--alu-ink); }
.q-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 28px; margin-top: -10px; border-radius: 5px; border: 1px solid #000; background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.q-row input[type="range"]::-moz-range-thumb { width: 18px; height: 26px; border-radius: 5px; border: 1px solid #000; background: var(--yellow); }
.q-row input[type="range"]:focus-visible { outline: 3px solid var(--alu-ink); outline-offset: 2px; border-radius: 6px; }
.q-math { display: grid; margin: 10px 0 0; }
.q-math div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14.5px; }
.q-math dt { color: var(--alu-muted); }
.q-math dd { margin: 0; font-weight: 500; }
.q-gauge { display: flex; height: 10px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: #d4d7db; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.q-gauge i { display: block; height: 100%; transition: width .25s ease-out; }
#q-gauge-keep { background: var(--alu-ink); }
#q-gauge-fee { background: repeating-linear-gradient(135deg, #8b9199 0 3px, #b3b8be 3px 6px); }
.q-keep { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 12px; }
.q-keep p:first-child { display: flex; align-items: baseline; gap: 12px; }
.q-keep p:first-child span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--alu-muted); }
.q-keep strong { font-family: var(--mono); font-size: clamp(26px, 2.8vw, 36px); font-weight: 500; line-height: 1; }
.q-hour { color: var(--alu-muted); font-size: 14px; }
.q-hour span { color: var(--alu-ink); font-size: 17px; font-weight: 600; }
.q-hour.low span { color: var(--bad-ink); text-decoration: underline wavy; text-underline-offset: 3px; }
.q-versions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.button.small { min-height: 44px; padding: 0 16px; font-size: 13px; }
.bench .secondary { border-color: #b6bbc1; background: linear-gradient(180deg, #fff, #e7e9ec); color: var(--alu-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.bench .secondary:hover { background: #fff; }
.q-pins { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.q-pins button { display: grid; min-height: 44px; padding: 4px 10px; border: 1px solid #c3c8cd; border-radius: 7px; background: #fff; text-align: left; font-size: 12px; line-height: 1.25; transition: background-color .15s; animation: pin-in .25s ease-out; }
.q-pins button b { font-size: 13px; }
.q-pins button:hover { border-color: var(--alu-ink); }
.q-pins button[aria-current="true"] { border-color: var(--alu-ink); background: var(--alu-ink); color: #fff; }
@keyframes pin-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.csv-hint { margin: 6px 0 12px; color: var(--alu-muted); font-size: 14.5px; }
.csv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; table-layout: fixed; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px #cdd1d6; }
.csv-table th { padding: 8px 10px; background: #2a2f35; color: #e8eaed; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.csv-table th:first-child { width: 3.8rem; }
.csv-table th:last-child { width: 7.8rem; }
.csv-table td { height: 48px; padding: 0 10px; border-bottom: 1px solid #e1e4e7; background: #fff; }
.csv-table tr:last-child td { border-bottom: 0; }
.csv-table input { width: 100%; min-height: 40px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-family: var(--mono); font-size: 13.5px; transition: border-color .15s, background-color .15s; }
.csv-table input:hover { border-color: #cdd1d6; }
.csv-table input:focus { outline: 0; border-color: var(--alu-ink); background: #fff; }
.csv-table tr.bad td { background: #fbe6e6; }
.csv-table tr.bad input::placeholder { color: var(--bad-ink); font-style: italic; }
.csv-table [data-status] { font-size: 13px; font-weight: 700; color: #2c6a43; }
.csv-table tr.bad [data-status] { color: var(--bad-ink); }
.csv-table tr.fixed td { animation: row-ok .7s ease-out; }
@keyframes row-ok { from { background: #d9f0df; } to { background: #fff; } }
.csv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; min-height: 48px; }
/* An inspection tag that drops in once every row passes */
.csv-stamp { padding: 6px 14px 6px 26px; border-radius: 6px; background: #2c6a43; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; position: relative; opacity: 0; transform: translateY(-10px) rotate(-3deg); transition: opacity .2s ease-out, transform .35s cubic-bezier(.2, 1.5, .4, 1); pointer-events: none; }
.csv-stamp::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #f6f7f8; }
.csv-stamp.on { opacity: 1; transform: rotate(-3deg); }
.bench-note { margin: 12px 6px 0; color: var(--alu-muted); font-size: 13px; }

/* Finder: four problem keys that light the matching pocket */
.finder { padding-block: 16px 56px; }
.finder-head h2 { font-size: clamp(26px, 3vw, 40px); }
.finder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.finder-grid button { display: grid; align-content: start; gap: 8px; min-height: 132px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--foam); text-align: left; transition: border-color .15s ease-out, background-color .15s ease-out, transform .15s ease-out; }
.finder-grid button:hover { border-color: #4a515a; transform: translateY(-2px); }
.finder-grid button[aria-pressed="true"] { border-color: var(--yellow); background: #24231a; }
.finder-grid .num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--foam-2); color: var(--yellow); font-size: 13px; }
.finder-grid button[aria-pressed="true"] .num { background: var(--yellow); color: var(--yellow-ink); }
.finder-grid b { font-size: 17px; font-weight: 700; line-height: 1.25; }
.finder-grid small { color: var(--dim); font-size: 13px; }
.finder-result { max-width: 52rem; margin-top: 16px; color: var(--muted); font-size: 15.5px; }
.finder-result:empty { display: none; }
.finder-result b { color: var(--text); }
.finder-result a { margin-left: 4px; color: var(--yellow); font-weight: 700; text-underline-offset: 4px; }

/* The drawer */
.collection { padding-block: 64px 80px; border-top: 1px solid var(--line-soft); counter-reset: entry; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 26px; }
.section-head h2, .how h2, .faq h2 { font-size: clamp(32px, 4vw, 56px); }
.section-note { max-width: 25rem; color: var(--muted); }
.catalog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid #0b0c0e; border-radius: 10px; background: #15181b; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background-color .15s ease-out, color .15s ease-out; }
.chips button:hover { color: var(--text); background: #22262b; }
.chips button[aria-pressed="true"] { background: var(--yellow); color: var(--yellow-ink); }
.chips .num { font-size: 12px; }
.search-sort { display: flex; gap: 8px; flex: 1 1 300px; justify-content: flex-end; }
.search { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; max-width: 280px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--foam); }
.search:focus-within, .sort select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.search svg { width: 18px; height: 18px; color: var(--dim); }
.search input { width: 100%; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search input::placeholder { color: var(--dim); }
.sort select { min-height: 48px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--foam) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a9b1' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; font-size: 15px; font-weight: 600; appearance: none; }
.sort select option { background: var(--foam); color: var(--text); }
.catalog-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 18px 0 14px; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#drawer-out { color: var(--muted); }
/* The tray itself: a sunken foam bed with a machined lip */
.drawer { padding: 18px; border-radius: 18px; background: linear-gradient(180deg, #2a2f35, #1c1f23); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 50px rgba(0, 0, 0, .45); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; border-radius: 12px; background: var(--foam); box-shadow: inset 0 4px 14px rgba(0, 0, 0, .55); }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 12px; background: #1f2327; counter-increment: entry; transition: box-shadow .25s ease-out; }
.product-card.spot { box-shadow: 0 0 0 2px var(--yellow), 0 0 0 7px rgba(242, 210, 46, .15); }
.product-media { position: relative; margin: 12px 12px 0; }
/* The pocket: the art sits inside a cut-out and lifts toward the pointer */
.product-art { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; container-type: inline-size; aspect-ratio: 16 / 10; border-radius: 10px; cursor: pointer; isolation: isolate; background: var(--pocket); box-shadow: inset 0 6px 18px rgba(0, 0, 0, .9), inset 0 -1px 0 rgba(255, 255, 255, .05); }
.product-art::before { content: "No. " counter(entry, decimal-leading-zero); position: absolute; left: 14px; top: 12px; z-index: 2; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.product-card .preview-window, .product-card .bundle-files { transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .3s ease-out, filter .3s ease-out; }
/* Out of the drawer: the tool leaves, its outline stays */
.pocket-label { position: absolute; left: 50%; top: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(12, 13, 15, .85); color: var(--good); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translate(-50%, -40%); transition: opacity .25s ease-out, transform .25s ease-out; pointer-events: none; }
.pocket-label svg { width: 16px; height: 16px; }
.product-card.out .product-art { box-shadow: inset 0 6px 18px rgba(0, 0, 0, .9), inset 0 0 0 2px rgba(143, 214, 166, .35); }
.product-card.out .preview-badge { opacity: 0; }
.product-card.out .preview-window, .product-card.out .bundle-file { background: transparent; box-shadow: none; outline: 2px dashed rgba(143, 214, 166, .55); outline-offset: 0; }
.product-card.out .preview-window > *, .product-card.out .bundle-file > * { opacity: 0; }
.preview-window > *, .bundle-file > * { transition: opacity .3s ease-out; }
.preview-badge { transition: opacity .3s ease-out; }
.product-card.out .pocket-label { opacity: 1; transform: translate(-50%, -50%); }
.save-button { position: absolute; top: 8px; right: 8px; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: rgba(27, 30, 34, .92); transition: background-color .15s ease-out, color .15s; }
.save-button:hover { background: #2e343b; }
.save-button[aria-pressed="true"] { color: var(--yellow); border-color: rgba(242, 210, 46, .5); }
.save-button[aria-pressed="true"] svg { fill: var(--yellow); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 20px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-head h3 { font-size: 22px; font-stretch: 118%; letter-spacing: 0; }
.card-title { min-height: 44px; text-align: left; font: inherit; line-height: 1.1; }
.card-title:hover { color: var(--yellow); }
/* Price plate: a small engraved yellow tag */
.price { padding: 4px 10px; border-radius: 6px; background: var(--yellow); color: var(--yellow-ink); font-size: 16px; font-weight: 600; white-space: nowrap; }
.card-meta { display: flex; gap: 14px; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-meta .num { font-size: 12px; font-weight: 500; }
.summary { flex: 1; margin-top: 10px; color: var(--muted); font-size: 15px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.card-actions .button { flex: 1 1 auto; }

/* Product art: tool screens rendered as small light panels */
.preview-window { width: 72%; overflow: hidden; border-radius: 1.4cqw; background: #f4f5f6; color: var(--alu-ink); box-shadow: 0 2.4cqw 4cqw rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .2); font-size: 1.9cqw; line-height: 1.35; transform: rotate(-2deg); }
.data .preview-window { transform: rotate(2deg); }
.projects .preview-window { transform: rotate(-1.5deg); }
.preview-top { display: flex; align-items: center; gap: .6cqw; padding: 1.4cqw 2.2cqw; border-bottom: 1px solid #d5d8dc; background: linear-gradient(180deg, #e9ebee, #dcdfe3); font-size: .85em; }
.preview-top i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #a9aeb5; }
.preview-top b { margin-left: auto; font-weight: 600; color: var(--alu-muted); }
.preview-body { padding: 2.6cqw 3cqw 3cqw; }
.preview-sub { color: var(--alu-muted); font-size: .9em; }
.preview-title { margin: .4cqw 0 2cqw; font-family: var(--wide); font-stretch: 118%; font-size: 2.1em; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.preview-totals { display: flex; gap: 1.6cqw; margin-bottom: 1.2cqw; }
.preview-totals div { flex: 1; padding: 1.6cqw; border-radius: 1cqw; background: #e6e8eb; color: var(--alu-muted); font-size: .85em; }
.preview-totals strong { display: block; margin-top: .4cqw; color: var(--alu-ink); font-family: var(--mono); font-size: 1.5em; font-weight: 500; }
.preview-row { display: flex; justify-content: space-between; padding: 1.1cqw 0; border-bottom: 1px solid #dfe2e5; }
.preview-row span:last-child { font-family: var(--mono); }
.csv-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; overflow: hidden; border-radius: 1cqw; box-shadow: 0 0 0 1px #d5d8dc; }
.csv-grid span { padding: 1cqw 1.6cqw; border-bottom: 1px solid #e3e5e8; background: #fff; }
.csv-grid span:nth-child(-n+3) { background: #2a2f35; color: #e8eaed; font-weight: 600; }
.csv-grid span:nth-last-child(-n+3) { border-bottom: 0; }
.csv-grid .flag { background: #fbe6e6; color: var(--bad-ink); font-weight: 700; }
.mini-checklist { display: grid; gap: 1.2cqw; }
.mini-checklist div { display: flex; justify-content: space-between; padding: 1.3cqw 1.8cqw; border-radius: 1cqw; background: #fff; box-shadow: 0 0 0 1px #dfe2e5; }
.mini-checklist b { color: #2c6a43; font-weight: 700; }
.preview-badge { position: absolute; right: 5%; bottom: 8%; padding: 1.2cqw 2.2cqw; border-radius: 1cqw; background: var(--yellow); color: var(--yellow-ink); font-size: 1.9cqw; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .5); }
.data .preview-badge, .projects .preview-badge { background: #eceef0; color: var(--alu-ink); }
.bundle-files { display: flex; align-items: center; justify-content: center; }
.bundle-file { width: 30cqw; padding: 3cqw; border-radius: 1.4cqw; background: #f4f5f6; color: var(--alu-ink); box-shadow: 0 2.4cqw 4cqw rgba(0, 0, 0, .6); font-size: 1.9cqw; transform: rotate(-4deg); }
.bundle-file + .bundle-file { margin-left: -4cqw; background: #dfe2e6; transform: rotate(4deg) translateY(2cqw); }
.bundle-file small { color: var(--alu-muted); font-size: .9em; }
.bundle-file strong { display: block; margin: 1cqw 0 3cqw; padding-bottom: 2cqw; border-bottom: 1px solid #b9bec4; font-family: var(--wide); font-stretch: 118%; font-size: 2em; line-height: 1.02; text-transform: uppercase; }
.bundle-file p { color: var(--alu-muted); }

/* How it works: three stamped steel tags */
.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 64px; padding-block: 80px; border-top: 1px solid var(--line-soft); }
.how-intro > p:last-child { max-width: 26rem; margin-top: 18px; color: var(--muted); }
.how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.how li { position: relative; display: grid; align-content: start; gap: 14px; padding: 22px 20px 24px; border-radius: 12px; background: linear-gradient(170deg, #2b3036, #1f2328); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.how li::before { content: ""; position: absolute; top: 14px; right: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--page); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .08); }
.step { color: var(--yellow); font-size: 40px; font-weight: 400; line-height: 1; }
.how h3 { font-size: 18px; font-stretch: 112%; }
.how li p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Spec notes */
.faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 64px; padding-block: 72px 96px; border-top: 1px solid var(--line-soft); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 8px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--foam-2); color: var(--yellow); font-family: var(--mono); font-size: 18px; }
.faq details[open] summary::after { content: "\2212"; background: var(--yellow); color: var(--yellow-ink); }
.faq summary:hover { color: var(--yellow); }
.faq details p { max-width: 40rem; padding-bottom: 22px; color: var(--muted); }

/* Footer */
.site-footer { padding-block: 32px 40px; border-top: 1px solid #000; background: #0c0d0f; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand-small { font-size: 17px; }
.brand-small img { width: 26px; height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-links a, .footer-links .nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover, .footer-links .nav-link:hover { color: var(--text); background: var(--foam-2); }
.footer-note { margin-top: 16px; color: var(--dim); font-size: 14px; }

/* Empty states */
.empty-state { padding: 48px 20px; border: 1px dashed #464c54; border-radius: 14px; background: var(--foam); text-align: center; }
.empty-state h2, .empty-state h3 { font-size: 22px; }
.empty-state p { margin: 10px auto 20px; max-width: 26rem; color: var(--muted); }
.empty-state.compact { margin-top: 12px; padding: 36px 16px; }
#no-results { margin-top: 16px; }

/* Library: a tool chest, each order a drawer */
.library { min-height: 70vh; padding-block: 64px 96px; }
.library-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.library h1 { font-size: clamp(34px, 5vw, 64px); }
.library h1:focus { outline: 0; }
.library-description { margin-top: 12px; color: var(--muted); }
.library-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 32px 0; }
.library-stats div { padding: 16px 18px; border-radius: 12px; background: var(--foam); box-shadow: inset 0 0 0 1px var(--line); }
.library-stats dt { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.library-stats dd { margin: 4px 0 0; color: var(--yellow); font-size: 28px; }
.order { margin-top: 16px; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #2a2f35, #1f2328); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .35); }
.order-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 18px 22px; }
.order-header h2 { font-size: 18px; font-stretch: 112%; }
.order-header h2 .num { font-size: 16px; font-weight: 500; color: var(--yellow); }
.order-header p { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.order-body { margin: 0 12px 12px; padding: 4px 16px; border-radius: 10px; background: var(--foam); box-shadow: inset 0 3px 10px rgba(0, 0, 0, .5); }
.order-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.order-item:last-child { border-bottom: 0; }
.order-info h3, .cart-info h3 { font-size: 16px; font-stretch: 112%; }
.order-info p, .cart-info p { color: var(--dim); font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 10px; background: var(--alu); color: var(--alu-ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 15px; font-weight: 600; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .18s ease-out, transform .18s ease-out, visibility .18s; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Dialogs */
dialog { max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 32px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #1b1e22; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(5, 6, 7, .72); }
dialog h2 { font-size: 28px; }
.dialog-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.fine-print { margin-top: 14px; color: var(--dim); font-size: 14px; }
.form-error { margin: 8px 0; color: var(--bad); font-size: 15px; font-weight: 600; }
.form-error:empty { display: none; }
.product-dialog { width: 980px; padding: 0; overflow: auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail-layout > .product-art { aspect-ratio: auto; min-height: 100%; border-radius: 0; cursor: default; }
.detail-layout > .product-art::before { content: none; }
.detail-layout > .product-art .preview-window { width: 80%; font-size: 2.3cqw; }
.detail-layout > .product-art .bundle-file { width: 36cqw; font-size: 2.3cqw; }
.detail-layout > .product-art .preview-badge { font-size: 2.2cqw; }
.detail-copy { position: relative; padding: 36px 32px 32px; }
.detail-copy .eyebrow { margin-bottom: 10px; }
.detail-copy h2 { padding-right: 52px; font-size: 34px; }
.detail-meta { margin-top: 6px; color: var(--dim); font-size: 13px; }
.detail-summary { margin-top: 14px; color: var(--muted); }
.detail-buy { display: flex; align-items: center; gap: 14px; margin: 22px 0 10px; }
.detail-price { padding: 6px 12px; border-radius: 8px; background: var(--yellow); color: var(--yellow-ink); font-size: 22px; font-weight: 600; }
.detail-copy h3 { margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-stretch: 100%; letter-spacing: .14em; }
.includes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.includes li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.includes svg { margin-top: 2px; color: var(--yellow); }
.requirements { color: var(--muted); font-size: 15px; }
.side-dialog { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 24px; border-width: 0 0 0 1px; border-radius: 0; }
.side-dialog[open] { display: flex; flex-direction: column; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 44px 1fr auto; align-items: start; gap: 14px; padding: 16px 0 6px; border-bottom: 1px solid var(--line-soft); }
.cart-line > strong { padding-top: 2px; font-family: var(--mono); font-weight: 500; }
.cart-mini { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; background: var(--pocket); color: var(--yellow); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .8); font-family: var(--wide); font-stretch: 125%; font-size: 18px; font-weight: 800; }
.cart-summary { margin-top: auto; padding-top: 24px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sum-row strong { color: var(--text); font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: 0; }
.form-dialog { width: 540px; }
.form-dialog h2 { padding-right: 52px; }
.dialog-lede { margin-top: 10px; color: var(--muted); }
.checkout-summary { margin: 18px 0 8px; border-top: 1px solid var(--line); }
.checkout-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.checkout-total { font-weight: 700; }
.checkout-total .num { color: var(--yellow); }
#checkout-form { display: flex; flex-direction: column; }
#checkout-form label { margin: 14px 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
#checkout-form input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--pocket); font-size: 16px; }
#checkout-form input::placeholder { color: var(--dim); }
#checkout-form .button { margin-top: 16px; }
.backup-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.backup-action h3 { font-size: 16px; font-stretch: 112%; }
.backup-action p { color: var(--muted); font-size: 14px; }
.file-label { position: relative; overflow: hidden; cursor: pointer; }
.file-label input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file-label:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.restore-preview { margin-top: 20px; padding: 18px; border-radius: 12px; background: var(--foam-2); box-shadow: inset 0 0 0 1px var(--yellow); }
.restore-preview h3 { font-size: 16px; }
.restore-preview p { margin: 6px 0 14px; color: var(--muted); }
.restore-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.noscript { padding: 16px; border: 1px solid var(--yellow); border-radius: 10px; }

@media (min-width: 1900px) {
  .wrap { width: min(1440px, calc(100% - var(--gutter) * 2)); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero { gap: 40px; padding-block: 56px; }
  .finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how, .faq { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 48px; }
  .hero h1 { max-width: 14ch; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-layout > .product-art { aspect-ratio: 16 / 10; min-height: 0; }
  .detail-layout > .product-art .preview-window { width: 72%; font-size: 1.9cqw; }
  .detail-layout > .product-art .bundle-file { width: 30cqw; font-size: 1.9cqw; }
  .detail-layout > .product-art .preview-badge { font-size: 1.8cqw; }
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
  .how ol { grid-template-columns: 1fr; }
  .how li { grid-template-columns: 64px 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-row { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; min-height: 0; padding-block: 10px; }
  .brand { font-size: 18px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; margin: 10px 0 0; }
  .main-nav a, .nav-link { flex: 1 1 auto; justify-content: center; padding: 0 8px; font-size: 12px; }
  .bag-label { display: none; }
  .bag-button { padding: 0 6px 0 12px; }
  .hero { padding-block: 32px 40px; gap: 32px; }
  .hero h1 { font-size: clamp(30px, 9.4vw, 46px); }
  .lede { font-size: 16.5px; }
  .hero-actions .button { flex: 1 1 auto; }
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip div:nth-child(3) { border-left: 0; }
  .spec-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bench { padding: 16px 10px 12px; border-radius: 12px; }
  .bench-head { flex-direction: column; align-items: stretch; margin-inline: 4px; }
  .bench-tabs button { flex: 1; }
  .bench-sheet { padding: 14px 12px 16px; }
  .q-row { grid-template-columns: minmax(0, 1fr) 4rem; gap: 0 10px; padding-top: 8px; }
  .q-row input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
  .q-row label { display: flex; align-items: center; min-height: 44px; }
  .bench-sheet .sheet-top { flex-wrap: wrap; gap: 2px 12px; }
  .bench-sheet .sheet-top span { white-space: normal; }
  .csv-table th:first-child { width: 3rem; }
  .csv-table th:last-child { width: 5.8rem; }
  .csv-table td { padding: 0 6px; }
  .csv-table input { padding: 0 4px; font-size: 12.5px; }
  .csv-foot { flex-wrap: wrap; }
  .finder { padding-bottom: 40px; }
  .finder-grid { grid-template-columns: 1fr; gap: 8px; }
  .finder-grid button { min-height: 0; grid-template-columns: 28px 1fr; align-items: center; gap: 4px 12px; padding: 14px; }
  .finder-grid small { grid-column: 2; }
  .collection { padding-block: 48px 56px; }
  .catalog-tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .chips, .search-sort { min-width: 0; }
  .chips button { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
  .search-sort { flex: 1 1 auto; flex-wrap: wrap; }
  .search { flex: 1 1 190px; max-width: none; }
  .sort { flex: 1 1 120px; }
  .sort select { width: 100%; }
  .drawer { margin-inline: -8px; padding: 8px; border-radius: 14px; }
  .product-grid { padding: 8px; gap: 10px; }
  .card-body { padding: 14px 14px 16px; }
  .card-head h3 { font-size: 19px; }
  .how, .faq { padding-block: 56px; }
  .footer-links { margin-inline: -12px; }
  dialog { padding: 24px 18px; max-width: calc(100% - 24px); }
  .product-dialog { padding: 0; }
  .side-dialog { max-width: 100%; }
  .detail-copy { padding: 24px 18px; }
  .detail-copy h2 { font-size: 26px; }
  .detail-buy { flex-wrap: wrap; }
  .backup-action { flex-direction: column; align-items: stretch; }
  .library { padding-block: 40px 64px; }
  .library-head .button { width: 100%; }
  .library-stats { gap: 8px; }
  .library-stats div { padding: 12px; }
  .library-stats dd { font-size: 20px; }
  .order-header { padding: 16px; }
  .order-header .button { width: 100%; }
  .order-body { margin: 0 8px 8px; padding: 4px 12px; }
  .order-item { grid-template-columns: 44px 1fr; }
  .order-item .button { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .main-nav a, .nav-link { padding: 0 4px; letter-spacing: .04em; }
  .chips button { padding: 0 8px; font-size: 12px; }
  .csv-table, .csv-table input { font-size: 12px; }
  .library-stats { grid-template-columns: 1fr; }
}

/* Footer contacts */
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.footer-contact span { margin-right: 2px; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(242, 210, 46, .45); text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--yellow); }

/* The bundle art: the one-word file name fits its card at every width */
.bundle-file strong { font-size: 1.4em; }
h1, h2, h3 { text-wrap: balance; }
.lede, .hero-note, .summary, .section-note, .how li p, .faq details p, .finder-result, .footer-note, .bench-note { text-wrap: pretty; }
.chips button:active, .main-nav a:active, .nav-link:active, .bench-tabs button:active, .bag-button:active, .secondary:active, .finder-grid button:active { transform: translateY(1px); }

/* Touch screens: 44 pixel targets */
@media (pointer: coarse) {
  .main-nav a, .nav-link, .bench-tabs button, .chips button { min-height: 44px; }
  .q-row label { display: flex; align-items: center; min-height: 44px; }
}
/* Phones and tablets: long notes at 16 pixels, inputs at 16 so phones do not zoom on focus */
@media (max-width: 1023px) {
  .hero-note, .bench-note, .summary, .how li p, .footer-note, .finder-grid small { font-size: 16px; }
  .sort select { font-size: 16px; }
}
@media (pointer: coarse) {
  .csv-table input, .sort select { font-size: 16px; }
}
@media (max-width: 640px) {
  .csv-table input { font-family: var(--body); font-size: 16px; }
  .csv-table th:first-child { width: 2.6rem; }
}
/* Two-column hero on small laptops and tablets: the four facts sit 2 by 2 so each word fits */
@media (min-width: 901px) and (max-width: 1180px) {
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip div:nth-child(3) { border-left: 0; }
  .spec-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* Mid widths: the bag button drops its word so the header row never overflows */
@media (min-width: 641px) and (max-width: 780px) {
  .header-row { gap: 12px; }
  .bag-label { display: none; }
  .bag-button { padding: 0 6px 0 12px; }
  .main-nav a, .nav-link { padding: 0 12px; }
}
/* Fold cover and other very narrow screens */
@media (max-width: 340px) {
  :root { --gutter: 12px; }
  .brand { gap: 8px; font-size: 16px; letter-spacing: .03em; }
  .brand img { width: 28px; height: 28px; }
  .main-nav { padding: 3px; gap: 2px; }
  .main-nav a, .nav-link { padding: 0 2px; font-size: 11px; letter-spacing: .02em; }
  .bench { padding: 14px 6px 10px; }
  .bench-title { letter-spacing: .04em; }
  .bench-tabs button { padding: 0 6px; font-size: 13px; }
  .bench-sheet { padding: 12px 8px 14px; }
  .spec-strip div { padding: 10px; }
  .spec-strip dd { font-size: 17px; }
  .chips button { padding: 0 6px; letter-spacing: .04em; }
  .card-head { gap: 10px; }
  .card-head h3 { font-size: 17px; }
  .drawer { margin-inline: -4px; padding: 6px; }
  .csv-table th { padding: 8px 6px; letter-spacing: .06em; }
}

/* Very wide screens: the store scales up instead of sitting as a narrow strip.
   Heights tied to the viewport are divided by the same factor so dialogs still fit. */
@media (min-width: 2048px) { :root { --page-zoom: 1.15; } body { zoom: 1.15; } }
@media (min-width: 2400px) { :root { --page-zoom: 1.3; } body { zoom: 1.3; } }
@media (min-width: 2880px) { :root { --page-zoom: 1.5; } body { zoom: 1.5; } }
@media (min-width: 3300px) { :root { --page-zoom: 1.75; } body { zoom: 1.75; } }
@media (min-width: 3700px) { :root { --page-zoom: 2; } body { zoom: 2; } }
@media (min-width: 2048px) {
  dialog { max-height: calc(100dvh / var(--page-zoom, 1) - 32px); }
  .side-dialog { height: calc(100dvh / var(--page-zoom, 1)); max-height: calc(100dvh / var(--page-zoom, 1)); }
  .library { min-height: calc(70vh / var(--page-zoom, 1)); }
}

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