/* Velocity Prints: design system
   One ruled sheet: paper grounds, ink hairlines, blue for action only.
   Tokens first; every component below references tokens. */

/* ---------- Tokens ---------- */
:root {
  --paper: #F2F0EC;
  --paper-2: #E8E3DA;
  --paper-3: #DDD6CA;
  --white: #FBFAF8;
  --ink: #2C2823;
  --ink-2: #4A443B;
  --muted: #655D52;
  --rule: #2C2823;
  --rule-soft: rgba(44, 40, 35, .16);
  --blue: #2563EB;
  --blue-press: #1D4FC7;
  --blue-wash: #E3EAFB;
  --teal: #7FD8D6;
  --ok: #1E6B45;
  --ok-wash: #DDEEE3;
  --warn: #8A5300;
  --warn-wash: #F5E8D2;
  --err: #B42318;
  --err-wash: #F8E1DE;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);
  --t-h1: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --t-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --t-h3: 1.3125rem;
  --t-body: 1.0625rem;
  --t-small: 1rem;
  --t-micro: .875rem;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
  --section: clamp(72px, 9vw, 152px);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --hair: 1px solid var(--rule);
  --hair-soft: 1px solid var(--rule-soft);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
figure { margin: 0; }
[hidden] { display: none !important; }
.crumbs { padding-top: var(--s5); }
.price, .num, .data-table, .summary, .spec-table, .cart-line .line-total, .stat-row b, .qty input { font-variant-numeric: tabular-nums; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.04; letter-spacing: -.028em; }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.012em; }
h4 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s4); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html { scrollbar-color: var(--paper-3) var(--paper); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 64ch; }
.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); }
.num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: var(--s4); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6) var(--s8); align-items: end; margin-bottom: var(--s8); }
.section-head p { color: var(--ink-2); max-width: 52ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; margin-bottom: var(--s6); } }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--hair); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s6); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.1875rem/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); flex-shrink: 0; }
.brand img { width: 28px; height: 28px; }
.brand-word { white-space: nowrap; }
.brand-word span { color: var(--ink-2); font-weight: 400; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .96875rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 160ms ease, color 160ms ease; }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav a:hover { color: var(--ink); border-bottom-color: var(--blue); }
.head-tools { display: flex; align-items: center; gap: var(--s4); }
.head-tools .cart-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .96875rem; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 700; }
.cart-count[data-zero] { background: var(--paper-3); color: var(--ink-2); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: var(--hair); background: transparent; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.nav-extra { display: none; }
.acct-link { text-decoration: none; font-weight: 500; font-size: .96875rem; }
.foot-mail { margin-top: var(--s4); }
@media (max-width: 1040px) {
  .menu-btn { display: grid; margin-left: 0; }
  .site-head .wrap { flex-wrap: wrap; gap: 0 var(--s4); }
  .head-tools { margin-left: auto; }
  .head-tools .acct-link, .head-tools .cta-link { display: none; }
  .nav { display: none; order: 5; width: 100%; }
  .nav-extra { display: block; }
  .nav-extra[hidden] { display: none; }
  .site-head[data-open] .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0 calc(var(--gutter) * -1); padding: var(--s2) 0 var(--s4); border-top: var(--hair); }
  .site-head[data-open] .nav a { padding: 14px var(--gutter); border-bottom: var(--hair-soft); font-size: 1.0625rem; }
}

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); font: 600 1rem/1.1 var(--f-text); text-decoration: none; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); white-space: nowrap; }
.btn:hover { color: var(--fg); }
.btn:active { transform: scale(.97); }
.btn--primary { --bg: var(--blue); --fg: #fff; }
.btn--primary:hover { --bg: var(--blue-press); }
.btn--ink:hover { --bg: #000; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--fg); border-right-color: transparent; border-radius: 50%; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.arrow::after { content: ""; display: inline-block; width: 16px; height: 12px; margin-left: 6px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M1 6h13M9 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M1 6h13M9 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 160ms var(--ease-out); }
a:hover .arrow::after, .btn:hover.arrow::after { transform: translateX(3px); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .legend { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: var(--white); border: 1px solid #8C8274; border-radius: 0; font-size: 1rem; color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease; appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232C2823' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #7A7064; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field [aria-invalid="true"] { border-color: var(--err) !important; }
.hint { font-size: var(--t-micro); color: var(--muted); }
.err-msg { font-size: var(--t-micro); color: var(--err); font-weight: 600; }
.err-msg:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; gap: 2px; min-height: 48px; justify-content: center; padding: 10px 16px; border: 1px solid #8C8274; background: var(--white); font-weight: 600; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.choice small { font-weight: 400; color: var(--muted); font-size: var(--t-micro); }
.choice input:hover + span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:checked + span small { color: var(--paper-3); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.choices--wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-small); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: flex; gap: var(--s3); padding: var(--s4) var(--s5); background: var(--err-wash); color: #6E1A12; font-weight: 500; }
.form-error:empty, .form-error[hidden] { display: none; }

/* ---------- Notices, status ---------- */
.note { padding: var(--s4) var(--s5); background: var(--paper-2); color: var(--ink-2); font-size: var(--t-small); }
.note strong { color: var(--ink); }
.note--warn { background: var(--warn-wash); color: #5A3700; }
.note--ok { background: var(--ok-wash); color: #12452C; }
.note--blue { background: var(--blue-wash); color: #183A8E; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-small); white-space: nowrap; }
.status::before { content: ""; width: 9px; height: 9px; background: var(--muted); flex-shrink: 0; }
.status[data-tone="ok"]::before { background: var(--ok); }
.status[data-tone="warn"]::before { background: #C77A00; }
.status[data-tone="blue"]::before { background: var(--blue); }
.status[data-tone="err"]::before { background: var(--err); }
.avail { font-size: var(--t-small); font-weight: 600; }
.avail[data-a="in_stock"] { color: var(--ok); }
.avail[data-a="made_to_order"] { color: var(--ink-2); }
.avail[data-a="out_of_stock"], .avail[data-a="unavailable"] { color: var(--err); }

/* ---------- Ruled sheet (the world) ---------- */
.sheet { border-top: var(--hair); border-bottom: var(--hair); }
.sheet-row { display: grid; border-bottom: var(--hair); }
.sheet-row:last-child { border-bottom: 0; }
.cell { padding: var(--s5); min-width: 0; }
.cell + .cell { border-left: var(--hair); }
.field-label { display: block; font-size: .8125rem; line-height: 1.2; color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.field-value { font: 700 1.25rem/1.2 var(--f-display); letter-spacing: -.01em; }

/* ---------- Home: traveler ---------- */
.traveler-head { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); border-bottom: var(--hair); }
.traveler-head .intro { padding: clamp(32px, 4.5vw, 64px) var(--gutter) clamp(24px, 3vw, 40px) 0; border-right: var(--hair); display: flex; flex-direction: column; gap: var(--s5); }
.traveler-head h1 { font-size: clamp(2.5rem, 1.4rem + 4.8vw, 5.75rem); letter-spacing: -.04em; line-height: .93; max-width: 15ch; }
.traveler-head h1 em { font-style: normal; color: var(--blue); }
.traveler-head .lede { max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.title-block dd { margin: 0; }
.title-block { margin: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: stretch; }
.title-block > div { padding: var(--s4) var(--s5); border-bottom: var(--hair); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); min-height: 0; }
.title-block > div:nth-child(odd) { border-right: var(--hair); }
.title-block > div:nth-last-child(-n+2) { border-bottom: 0; }
.title-block .field-value { font-size: clamp(1.125rem, .9rem + .7vw, 1.5rem); }
.route { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; counter-reset: none; }
.station { position: relative; padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s2); }
.station + .station { border-left: var(--hair); }
.station .op { font: 700 .9375rem/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: .01em; display: flex; justify-content: space-between; align-items: center; }
.station .tick { width: 18px; height: 18px; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color 200ms var(--ease-out); }
.station .tick svg { width: 12px; height: 12px; opacity: 0; transform: scale(.8); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.station[data-done] .tick { background: var(--ink); }
.station[data-done] .tick svg { opacity: 1; transform: none; }
.station[data-active] .op { color: var(--blue); }
.station[data-active]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--blue); transform-origin: left; animation: draw 700ms var(--ease-out) both; }
.station h2 { font-size: 1.375rem; letter-spacing: -.02em; margin-top: var(--s1); }
.station p { color: var(--ink-2); font-size: var(--t-small); }
.station .tool { padding-top: var(--s3); }
.station .drop { min-height: 96px; padding: var(--s4); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1100px) {
  .route { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .station { min-height: 0; border-bottom: var(--hair); }
  .station + .station { border-left: 0; }
  .station:nth-child(even) { border-left: var(--hair); }
  .station:nth-child(n+3) { min-height: 0; }
  .station:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 860px) {
  .traveler-head { grid-template-columns: 1fr; }
  .traveler-head .intro { border-right: 0; padding-right: 0; border-bottom: var(--hair); }
}
@media (max-width: 560px) {
  .route { grid-template-columns: 1fr; }
  .station:nth-child(even) { border-left: 0; }
  .station { padding-inline: 0; }
  .title-block > div { padding: var(--s4); min-height: 88px; }
  .title-block > div:nth-child(odd) { padding-left: 0; }
}

/* Drop zone */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 128px; padding: var(--s5) var(--s4); background: var(--white); border: 1.5px dashed var(--blue); color: var(--blue); font-weight: 600; cursor: pointer; transition: background-color 160ms ease, border-style 160ms ease; }
.drop svg { width: 26px; height: 26px; }
.drop small { color: var(--muted); font-weight: 400; font-size: var(--t-micro); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop[data-over] { background: var(--blue-wash); border-style: solid; }
.drop:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.search { position: relative; display: flex; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px 10px 42px; border: 1px solid var(--ink); background: var(--white); border-radius: 0; font-size: 1rem; appearance: none; }
.search input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search button { min-height: 48px; border-radius: 0; }

/* ---------- Media ---------- */
.photo { position: relative; overflow: hidden; background: var(--paper-3); }
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption, .caption { font-size: var(--t-micro); color: var(--muted); margin-top: var(--s2); }
.photo-slot { display: grid; place-items: center; text-align: center; padding: var(--s6); background: var(--paper-2); border: 1.5px dashed #8C8274; color: var(--ink-2); font-size: var(--t-small); min-height: 260px; }
.photo-slot strong { display: block; font: 700 1.0625rem/1.3 var(--f-display); color: var(--ink); margin-bottom: 4px; }
.drawing { background: var(--white); display: grid; place-items: center; padding: var(--s5); }
.drawing img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Home sections ---------- */
.capability { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border-top: var(--hair); }
.capability + .capability { border-top: 0; }
.capability .photo { aspect-ratio: 4 / 3; border-right: var(--hair); }
.capability.flip .photo { order: 2; border-right: 0; border-left: var(--hair); }
.capability .body { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; gap: var(--s4); justify-content: center; border-bottom: var(--hair); }
.capability .body h3 { font-size: var(--t-h2); }
.capability { border-bottom: var(--hair); }
.capability .body { border-bottom: 0; }
.spec-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: var(--hair-soft); margin-top: var(--s3); }
.spec-list li { padding: var(--s3) 0; border-bottom: var(--hair-soft); font-size: var(--t-small); }
.spec-list li:nth-child(odd) { padding-right: var(--s4); }
.spec-list b { display: block; font-weight: 600; color: var(--ink); }
.spec-list span { color: var(--ink-2); }
@media (max-width: 860px) {
  .capability, .capability.flip { grid-template-columns: 1fr; }
  .capability .photo, .capability.flip .photo { order: 0; border: 0; border-bottom: var(--hair); }
}

/* Product cells */
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: var(--hair); border-left: var(--hair); }
.part { position: relative; display: flex; flex-direction: column; border-right: var(--hair); border-bottom: var(--hair); background: var(--paper); transition: background-color 180ms ease; }
.part:hover { background: var(--white); }
.part .drawing, .part .photo { aspect-ratio: 4 / 3; border-bottom: var(--hair-soft); }
.part .meta { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.part h3 { font-size: 1.0625rem; letter-spacing: -.01em; }
.part h3 a { text-decoration: none; }
.part h3 a::after { content: ""; position: absolute; inset: 0; }
.part .spec { font-size: .9375rem; color: var(--ink-2); }
.part .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-top: auto; padding-top: var(--s3); }
.price { font: 700 1.125rem/1 var(--f-display); letter-spacing: -.01em; }
.price small { font: 500 var(--t-micro) var(--f-text); color: var(--muted); }
.part .avail { font-size: var(--t-micro); }
.process-tag { font-size: var(--t-micro); font-weight: 600; color: var(--ink-2); }

.cat-index { list-style: none; border-top: var(--hair); }
.cat-index li { border-bottom: var(--hair); }
.cat-index a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: var(--s5); align-items: baseline; padding: var(--s5) 0; text-decoration: none; transition: padding 220ms var(--ease-out), color 160ms ease; }
.cat-index a:hover { padding-left: var(--s4); color: var(--ink); }
.cat-index a:hover .go { color: var(--blue); }
.cat-index .name { font: 700 clamp(1.375rem, 1rem + 1.4vw, 2.25rem)/1.05 var(--f-display); letter-spacing: -.025em; }
.cat-index .desc { color: var(--ink-2); font-size: var(--t-small); }
.cat-index .go { font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) { .cat-index a { grid-template-columns: 1fr auto; } .cat-index .desc { grid-column: 1 / -1; grid-row: 2; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--hair); border-bottom: var(--hair); }
.compare > div { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: var(--s4); }
.compare > div + div { border-left: var(--hair); background: var(--ink); color: var(--paper); }
.compare > div + div h3, .compare > div + div .steps b { color: var(--paper); }
.compare > div + div .steps li { border-color: rgba(242, 240, 236, .25); }
.compare > div + div .steps span { color: #CFC7BA; }
.compare h3 { font-size: var(--t-h2); }
.steps { list-style: none; counter-reset: s; margin-top: var(--s3); }
.steps li { display: grid; grid-template-columns: 2.25rem 1fr; padding: var(--s4) 0; border-top: var(--hair-soft); counter-increment: s; }
.steps li::before { content: counter(s); font: 700 1rem/1.4 var(--f-display); color: var(--blue); }
.compare > div + div .steps li::before { color: #CFC7BA; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--ink-2); font-size: var(--t-small); }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; } }

.b2b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper-2); }
.b2b .photo { min-height: 420px; }
.b2b .body { padding: clamp(32px, 5vw, 80px); display: flex; flex-direction: column; gap: var(--s5); }
.b2b ul { list-style: none; border-top: var(--hair); }
.b2b li { padding: var(--s3) 0; border-bottom: var(--hair-soft); display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s4); font-size: var(--t-small); }
.b2b li b { font-weight: 600; }
.b2b li span { color: var(--ink-2); }
@media (max-width: 860px) { .b2b { grid-template-columns: 1fr; } .b2b .photo { min-height: 280px; } }

.close-band { background: var(--paper); color: var(--ink); }
.close-band > .wrap { position: relative; }
.close-band > .wrap::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 2px solid var(--ink); }
.close-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s6); align-items: end; padding-block: clamp(56px, 7vw, 112px); }
.close-band h2 { color: var(--ink); font-size: var(--t-h1); max-width: 16ch; }
.close-band p { color: var(--ink-2); max-width: 48ch; margin-top: var(--s4); }
.close-band .btn--ink { --bg: var(--ink); }
.close-band .actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 860px) { .close-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { border-bottom: var(--hair); padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5) var(--s8); align-items: end; }
.page-head p { color: var(--ink); max-width: 48ch; font-size: 1.125rem; }
.crumbs { font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--ink-2); }
@media (max-width: 860px) { .page-head .wrap { grid-template-columns: 1fr; } }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; border-bottom: var(--hair); }
.filters { border-right: var(--hair); padding: var(--s5) var(--s5) var(--s6) 0; display: flex; flex-direction: column; gap: var(--s6); }
.filters h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: var(--s3); }
.cat-list { list-style: none; display: grid; }
.cat-list button { width: 100%; display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border: 0; border-bottom: var(--hair-soft); background: none; text-align: left; cursor: pointer; font-weight: 500; }
.cat-list button:hover { color: var(--blue); }
.cat-list button[aria-pressed="true"] { font-weight: 700; color: var(--ink); }
.cat-list button { position: relative; }
.cat-list button[aria-pressed="true"]::before { content: ""; position: absolute; left: -16px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--blue); }
.cat-list .n { color: var(--muted); font-weight: 400; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; padding: var(--s4) 0 var(--s4) var(--s5); border-bottom: var(--hair); }
.toolbar .search { flex: 1 1 320px; max-width: 520px; }
.toolbar select { min-height: 48px; padding: 10px 40px 10px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232C2823' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; }
.result-count { padding: var(--s3) 0 var(--s3) var(--s5); font-size: var(--t-small); color: var(--muted); }
.shop-results .parts-grid { border-left: 0; }
.empty { padding: var(--s9) var(--s5); text-align: left; display: flex; flex-direction: column; gap: var(--s3); max-width: 56ch; }
.empty h3 { font-size: var(--t-h3); }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { border-right: 0; padding: 0; gap: var(--s4); display: none; border-bottom: var(--hair); padding-bottom: var(--s5); }
  .filters[data-open] { display: flex; }
  .filter-toggle { display: inline-flex; }
  .toolbar, .result-count { padding-left: 0; }
}
.skeleton { background: var(--paper-2); animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .55; } }
.part.is-loading .meta > * { height: 14px; background: var(--paper-2); }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-bottom: var(--hair); }
.gallery { border-right: var(--hair); }
.gallery .main { aspect-ratio: 4 / 3; border-bottom: var(--hair); }
.thumbs { display: flex; gap: 0; }
.thumbs button { width: 96px; aspect-ratio: 4 / 3; border: 0; border-right: var(--hair); background: var(--white); padding: 6px; cursor: pointer; opacity: .65; transition: opacity 160ms ease; }
.thumbs button[aria-current="true"] { opacity: 1; box-shadow: inset 0 -3px 0 var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: var(--s5); }
.buy h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.buy .price { font-size: 2rem; }
.qty { display: inline-flex; border: 1px solid var(--ink); }
.qty button { width: 48px; height: 48px; border: 0; background: var(--white); cursor: pointer; font-size: 1.25rem; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 64px; height: 48px; border: 0; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); text-align: center; background: var(--white); font-weight: 600; appearance: textfield; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.buy-row .btn { flex: 1 1 200px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: var(--hair-soft); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 42%; padding-right: var(--s4); }
.spec-table td { font-weight: 600; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .gallery { border-right: 0; } }

/* ---------- Cart / checkout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.cart-lines { list-style: none; border-top: var(--hair); }
.cart-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: var(--s5); padding: var(--s5) 0; border-bottom: var(--hair); align-items: start; }
.cart-line .drawing, .cart-line .photo { aspect-ratio: 4 / 3; padding: 6px; border: var(--hair-soft); }
.cart-line h3 { font-size: 1.0625rem; }
.cart-line h3 a { text-decoration: none; }
.cart-line .controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s3); }
.cart-line .line-total { font: 700 1.0625rem/1 var(--f-display); text-align: right; }
.cart-line .issue { margin-top: var(--s2); font-size: var(--t-micro); color: var(--warn); font-weight: 600; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 80px minmax(0, 1fr); } .cart-line .line-total { grid-column: 2; text-align: left; } }
.summary { position: sticky; top: 96px; border: var(--hair); background: var(--white); }
.summary h2 { font-size: 1.25rem; padding: var(--s4) var(--s5); border-bottom: var(--hair); }
.summary dl { margin: 0; padding: var(--s4) var(--s5); display: grid; grid-template-columns: 1fr auto; gap: 10px var(--s4); font-size: var(--t-small); }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: var(--hair); padding-top: var(--s3); font: 700 1.25rem/1.2 var(--f-display); color: var(--ink); }
.summary .actions { padding: 0 var(--s5) var(--s5); display: grid; gap: var(--s3); }
.summary .fine { padding: 0 var(--s5) var(--s5); font-size: var(--t-micro); color: var(--muted); }
.mini-lines { list-style: none; padding: var(--s4) var(--s5) 0; display: grid; gap: var(--s3); font-size: var(--t-small); }
.mini-lines li { display: flex; justify-content: space-between; gap: var(--s4); }
.step-block { border-top: var(--hair); padding: var(--s6) 0; }
.step-block h2 { font-size: 1.5rem; margin-bottom: var(--s5); display: flex; gap: var(--s3); align-items: baseline; }
.step-block h2 .n { color: var(--blue); font-size: 1rem; }

/* ---------- Custom request ---------- */
.rfq { border-top: var(--hair); }
.rfq-part { display: grid; grid-template-columns: minmax(200px, .6fr) minmax(0, 1.6fr); gap: var(--s6); padding: var(--s7) 0; border-bottom: var(--hair); }
.rfq-part > header h2 { font-size: 1.5rem; }
.rfq-part > header p { color: var(--ink-2); font-size: var(--t-small); margin-top: var(--s2); }
.rfq-part > header .n { display: block; font: 700 .9375rem/1 var(--f-display); color: var(--blue); margin-bottom: var(--s3); }
@media (max-width: 860px) { .rfq-part { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s6) 0; } }
.file-list { list-style: none; display: grid; gap: 0; margin-top: var(--s4); border-top: var(--hair-soft); }
.file-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: var(--hair-soft); font-size: var(--t-small); }
.file-list .fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fmeta { color: var(--muted); }
.file-list .bad { color: var(--err); }
.progress { height: 6px; background: var(--paper-3); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 160ms linear; }
.reveal[hidden] { display: none !important; }
.success-panel { padding: clamp(32px, 5vw, 72px) 0; border-top: var(--hair); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); }
.success-panel h2 { font-size: var(--t-h1); }
@media (max-width: 860px) { .success-panel { grid-template-columns: 1fr; } }

/* ---------- Account / admin ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: var(--hair); min-height: 60vh; }
.auth-wrap .panel { padding: clamp(32px, 5vw, 72px) clamp(0px, 4vw, 64px) clamp(32px, 5vw, 72px) 0; display: flex; flex-direction: column; gap: var(--s5); max-width: 560px; }
.auth-wrap .side { border-left: var(--hair); padding: clamp(32px, 5vw, 72px); background: var(--paper-2); display: flex; flex-direction: column; gap: var(--s4); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-wrap .side { border-left: 0; border-top: var(--hair); padding-inline: 0; background: none; } }
.tabs { display: flex; gap: 0; border-bottom: var(--hair); overflow-x: auto; scrollbar-width: none; }
.tabs [role=tab] { padding: 14px 18px; border: 0; background: none; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; color: var(--ink-2); }
.tabs [role=tab][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.tabs [role=tab]:hover { color: var(--ink); }
.tabpanel { padding-block: var(--s6); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.data-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px var(--s3) 10px 0; border-bottom: var(--hair); white-space: nowrap; }
.data-table td { padding: 14px var(--s3) 14px 0; border-bottom: var(--hair-soft); vertical-align: top; }
.data-table tr[data-href] { cursor: pointer; }
.data-table tr[data-href]:hover td { background: var(--white); }
.data-table .r { text-align: right; }
.table-scroll { overflow-x: auto; }
.detail { border: var(--hair); background: var(--white); margin-top: var(--s5); }
.detail > header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: var(--hair); align-items: center; }
.detail > .body { padding: var(--s5); display: grid; gap: var(--s5); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s4) var(--s5); }
.kv div { font-size: var(--t-small); }
.kv dt, .kv .k { color: var(--muted); font-size: var(--t-micro); }
.kv dd, .kv .v { margin: 0; font-weight: 600; white-space: pre-wrap; word-break: break-word; }
.timeline { list-style: none; border-left: 2px solid var(--paper-3); padding-left: var(--s4); display: grid; gap: var(--s3); font-size: var(--t-small); }
.timeline li span { color: var(--muted); margin-left: var(--s2); }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 69px); }
.admin-nav { border-right: var(--hair); padding: var(--s5) var(--s4) var(--s5) 0; display: flex; flex-direction: column; gap: 2px; }
.admin-nav button { text-align: left; padding: 10px 12px; border: 0; background: none; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.admin-nav button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.admin-main { padding: var(--s5) 0 var(--s8) var(--s6); min-width: 0; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } .admin-nav { border-right: 0; border-bottom: var(--hair); flex-direction: row; overflow-x: auto; padding: var(--s3) 0; } .admin-main { padding-left: 0; } }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: var(--hair); border-left: var(--hair); margin-bottom: var(--s6); }
.stat-row > div { padding: var(--s4); border-right: var(--hair); border-bottom: var(--hair); }
.stat-row b { display: block; font: 700 1.75rem/1.1 var(--f-display); }
.stat-row span { font-size: var(--t-micro); color: var(--muted); }
.variant-rows { display: grid; gap: var(--s3); }
.variant-row { display: grid; grid-template-columns: 1.1fr 1.4fr .8fr 1fr .7fr auto; gap: var(--s3); align-items: end; padding: var(--s3); background: var(--paper-2); }
@media (max-width: 900px) { .variant-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 100; display: grid; gap: var(--s2); width: min(380px, calc(100vw - 2 * var(--gutter))); }
.toast { background: var(--ink); color: var(--paper); padding: var(--s4) var(--s5); box-shadow: 0 10px 30px -10px rgba(44, 40, 35, .5); display: flex; justify-content: space-between; gap: var(--s4); align-items: center; font-size: var(--t-small); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.toast a { color: #fff; font-weight: 600; }
.toast[data-tone="err"] { background: var(--err); }
@starting-style { .toast { opacity: 0; transform: translateY(8px); } }

/* ---------- Motion ---------- */
.rise { opacity: 1; transform: none; }
.js .rise:not(.in) { opacity: 0; transform: translateY(18px); }
.js .rise { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rise:not(.in) { opacity: 1; transform: none; }
}
@media (hover: none) { .part:hover { background: var(--paper); } .cat-index a:hover { padding-left: 0; } }

/* ---------- 404 ---------- */
.lost { padding-block: clamp(64px, 10vw, 160px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.lost h1 { font-size: var(--t-display); }
@media (max-width: 860px) { .lost { grid-template-columns: 1fr; } }

.feat-more { margin-top: var(--s6); }

/* Photo band */
.photo-band { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; border-top: var(--hair); border-bottom: var(--hair); }
.photo-band figure { position: relative; min-height: 360px; }
.photo-band figure + figure { border-left: var(--hair); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 8px 12px; background: var(--paper); color: var(--ink-2); font-size: var(--t-micro); }
@media (max-width: 760px) { .photo-band { grid-template-columns: 1fr 1fr; } .photo-band figure:first-child { grid-column: 1 / -1; } .photo-band figure { min-height: 220px; } .photo-band figure:nth-child(2) { border-left: 0; } .photo-band figure + figure { border-top: var(--hair); } }
.detail > header h2 { font-size: var(--t-h3); }
.signin-hint { margin: -12px 0 var(--s5); }
.notes-field { margin-top: var(--s5); }
.saved-addr { margin: var(--s5) 0; max-width: 480px; }
.addr-grid { margin-top: var(--s5); }
.pay-note { margin-top: var(--s4); }
.cart-foot { margin-top: var(--s5); }

/* Account */
.h3 { font-size: var(--t-h3); letter-spacing: -.012em; }
.dash-head { padding-block: clamp(32px, 4vw, 56px) var(--s5); border-bottom: 0; }
.dash-head .wrap-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s3) var(--s6); }
.dash-head p { color: var(--ink-2); }
.panel-title { margin: var(--s6) 0 var(--s3); }
.panel-title:first-child { margin-top: 0; }
.quote-note { display: block; margin-top: 6px; }
.doc-dl { margin-left: var(--s3); }
.chat { margin: var(--s5) 0; max-width: 720px; }
.chat li { padding: var(--s3) var(--s4); background: var(--white); }
.chat li.us { background: var(--blue-wash); }
.chat li b { margin-right: var(--s2); }
.chat li p { margin-top: 4px; white-space: pre-wrap; }
.chat-form { max-width: 720px; }
.addr-list { margin-bottom: var(--s7); }
.addr-line { display: flex; justify-content: space-between; gap: var(--s4); align-items: flex-start; padding: var(--s4) 0; border-bottom: var(--hair); }
.addr-form { max-width: 760px; }
.mat-table th[scope="row"] { font-weight: 700; color: var(--ink); white-space: nowrap; }
.submit-row { border-bottom: 0; }
.submit-row header p { color: var(--ink-2); font-size: var(--t-small); }
.lost-art { aspect-ratio: 4 / 3; }
.auth-wrap .side h2 { margin-top: var(--s4); }
.auth-wrap .side h2:first-child { margin-top: 0; }
.admin-tag { margin-left: var(--s2); }
.admin-tools { display: flex !important; margin-left: auto; width: auto !important; }
.admin-toolbar { padding-left: 0; border-bottom: 0; margin-bottom: var(--s4); }
@media (max-width: 860px) {
  .capability .body { padding-inline: 0; }
  .b2b .body { padding-inline: var(--s5); }
  .compare > div:first-child { padding-inline: 0; }
}
.skip:hover { color: var(--paper); }
a.btn:hover { color: var(--fg); }


/* Homepage: one continuous ruled sheet. Sections hang off hairlines instead of floating in bare paper. */
.home .section { padding-block: 0; }
.home main > section + section { margin-top: 0; }
.home .section-head { border-top: var(--hair); padding-block: clamp(28px, 3.5vw, 48px); margin: 0; align-items: start; }
.home .section-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.home .capability:first-of-type, .home .parts-grid, .home .cat-index, .home .compare { border-top: var(--hair-soft); }
.home .feat-more { margin: 0; padding-block: var(--s5) clamp(40px, 5vw, 72px); }
.home .cat-index, .home .compare, .home .capability:last-of-type { margin-bottom: clamp(40px, 5vw, 72px); }
.home .photo-band { margin-block: clamp(40px, 5vw, 72px); }
.home .b2b { background: var(--paper); border-top: var(--hair); border-bottom: var(--hair); margin-bottom: clamp(40px, 5vw, 72px); }
.home .b2b .photo { border-right: var(--hair); }
.home .b2b .body { padding-right: 0; }
@media (max-width: 860px) { .home .b2b .photo { border-right: 0; border-bottom: var(--hair); } .home .b2b .body { padding-inline: 0; } }

/* OP 20: field takes the station's full width, button below */
.station .search { flex-direction: column; gap: var(--s2); }
.station .search svg { top: calc(var(--s3) + 24px); } /* centred on the 48px field below the .tool top padding */
.station .search .btn { width: 100%; }

/* "Two ways to order" as rows of the sheet */
.order-sheet { border-top: var(--hair-soft); margin-bottom: clamp(40px, 5vw, 72px); }
.order-sheet .row { display: grid; grid-template-columns: minmax(140px, .55fr) 1fr 1fr; border-bottom: var(--hair); }
.order-sheet .row > * { padding: var(--s4) var(--s5); }
.order-sheet .row > * + * { border-left: var(--hair); }
.order-sheet .row > :first-child { padding-left: 0; }
.order-sheet .head h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.order-sheet .row b { display: block; font-weight: 600; }
.order-sheet .row span { color: var(--ink-2); font-size: var(--t-small); }
.order-sheet .row .custom { background: var(--white); }
@media (max-width: 760px) {
  .order-sheet .row { grid-template-columns: 1fr 1fr; }
  .order-sheet .row > :first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .order-sheet .row > :nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) { .home .b2b { border-bottom: 0; } }

/* Machine scenes (three.js) */
.floor-section .section-head { margin-bottom: 0; }
.shop-floor { position: relative; border-top: var(--hair-soft); border-bottom: var(--hair); background: var(--paper); margin-bottom: clamp(40px, 5vw, 72px); }
.shop-floor .machine-canvas { height: clamp(320px, 42vw, 560px); }
.machine-canvas { position: relative; width: 100%; cursor: grab; }
.machine-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.is-dragging .machine-canvas { cursor: grabbing; }
[data-machine] > .drawing[data-machine-fallback] { aspect-ratio: 16 / 7; max-height: 560px; background: var(--paper); }
.floor-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: var(--hair); }
.floor-cell { padding: var(--s4) var(--s5); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.floor-cell:first-child { padding-left: 0; }
.floor-cell + .floor-cell { border-left: var(--hair); }
.readout { font: 700 1.0625rem/1.3 var(--f-display); font-variant-numeric: tabular-nums; }
.floor-focus { flex-direction: row; align-items: center; gap: 0; padding: var(--s3) 0 var(--s3) var(--s5); }
.floor-focus button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--ink); background: var(--paper); font-weight: 600; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
.floor-focus button + button { border-left: 0; }
.floor-focus button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.floor-focus button:active { transform: scale(.97); }
@media (max-width: 760px) {
  .floor-bar { grid-template-columns: minmax(0, 1fr); }
  .floor-cell { padding-right: 0; }
  .floor-focus { border-left: 0 !important; border-top: var(--hair); padding-left: 0; }
  .floor-focus button { flex: 1; padding: 8px 6px; }
}
.equip-scene { aspect-ratio: 4 / 3; background: var(--paper); }
.equip-scene .machine-canvas { height: 100%; }

/* Category index thumbnails */
.cat-index a { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; }
.cat-index .thumb { width: 96px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.cat-index .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
@media (hover: hover) { .cat-index a:hover .thumb img { transform: scale(1.06); } }
@media (max-width: 720px) {
  .cat-index a { grid-template-columns: 72px 1fr auto; }
  .cat-index .thumb { width: 72px; grid-row: 1 / span 2; }
  .cat-index .desc { grid-column: 2 / -1; }
}

/* Work gallery */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: var(--hair); border-left: var(--hair); }
.work-grid figure { position: relative; border-right: var(--hair); border-bottom: var(--hair); grid-column: span 4; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.work-grid figure.wide { grid-column: span 8; aspect-ratio: 8 / 3; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; }
.work-grid figcaption { position: absolute; left: 0; bottom: 0; padding: 8px 12px; background: var(--paper); font-size: var(--t-micro); color: var(--ink-2); }
@media (max-width: 860px) { .work-grid figure, .work-grid figure.wide { grid-column: span 6; aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .work-grid figure, .work-grid figure.wide { grid-column: span 12; } }
.equip-scene img[data-owner-photo] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.equip-scene.has-photo .machine-canvas { visibility: hidden; }
#main > .page-head .wrap:has(.cat-photo:not([hidden])) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 240px; }
.cat-photo { width: 240px; aspect-ratio: 4 / 3; overflow: hidden; border: var(--hair); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .cat-photo { width: 100%; max-width: 420px; } #main > .page-head .wrap:has(.cat-photo:not([hidden])) { grid-template-columns: 1fr; } }
@media (hover: hover) { .work-grid img { transition: transform 500ms var(--ease-out); } .work-grid figure:hover img { transform: scale(1.04); } }

/* Traveler stepper */
.station { transition: background-color 300ms ease; }
.station[data-active] { background: var(--white); }
.station[data-done] .op { color: var(--ink); }
@media (hover: hover) { .route .station:not([data-active]):hover { background: rgba(251, 250, 248, .55); } }

/* OP 20 suggestions */
.station .search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 52px; z-index: 20; list-style: none; background: var(--white); border: 1px solid var(--ink); box-shadow: 0 12px 28px -14px rgba(44, 40, 35, .45); }
.suggest li + li { border-top: var(--hair-soft); }
.suggest a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; text-decoration: none; }
.suggest .sg-name { font-weight: 600; font-size: .9375rem; }
.suggest .sg-meta { font-size: var(--t-micro); color: var(--muted); }
.suggest .sg-all a { font-size: var(--t-micro); font-weight: 600; color: var(--blue); }
.suggest li[aria-selected="true"] a, .suggest a:hover { background: var(--blue-wash); }

/* Quick add on part cells (sits above the cell's stretched link) */
.quick-add { position: relative; z-index: 2; margin-top: var(--s3); align-self: flex-start; min-height: 38px; padding: 8px 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 .9375rem/1.1 var(--f-text); text-decoration: none; cursor: pointer; transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.quick-add:hover { background: var(--ink); color: var(--paper); }
.quick-add:active { transform: scale(.97); }
.quick-add[data-added] { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ---------- Footer: a finished close, not a sitemap ---------- */
.site-foot { margin-top: var(--section); border-top: var(--hair); background: var(--paper-2); }
.foot-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s6); padding-block: clamp(48px, 6vw, 88px) var(--s7); }
.foot-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.foot-brand img { width: 56px; height: 56px; }
.foot-brand > span { font: 800 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1 var(--f-display); letter-spacing: -.035em; }
.foot-brand > span span { font-weight: 500; color: var(--ink-2); }
.foot-brand:hover { color: var(--ink); }
.foot-tag { color: var(--ink-2); justify-self: center; text-align: left; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s6); padding-block: var(--s7); border-top: 1px solid var(--rule-soft); }
.foot-grid h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: var(--s3); }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--blue); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s6); padding-block: var(--s5) var(--s6); border-top: 1px solid var(--rule-soft); font-size: var(--t-micro); color: var(--muted); }
.foot-legal a { color: inherit; }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr; justify-items: start; gap: var(--s4); }
  .foot-tag { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero with the work itself ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: end; padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.hero-copy { display: flex; flex-direction: column; gap: var(--s5); }
.hero-copy h1 { font-size: clamp(2.75rem, 1.4rem + 5.2vw, 6rem); letter-spacing: -.04em; line-height: .93; max-width: 12ch; }
.hero-copy .lede { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); color: var(--ink); }
.hero .title-block { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 4vw, 56px); border-top: var(--hair); }
.hero .title-block > div { border-bottom: 0; border-right: var(--hair); padding: var(--s4) var(--s4) 0 0; min-height: 0; }
.hero .title-block > div + div { padding-left: var(--s4); }
.hero .title-block > div:last-child { border-right: 0; }
.hero .title-block > div:nth-child(odd) { border-right: var(--hair); }
.hero .title-block .field-value { font-size: clamp(1rem, .9rem + .35vw, 1.1875rem); }
.hero-photo { position: relative; aspect-ratio: 4 / 5; max-height: 78vh; overflow: hidden; background: var(--paper-3); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-photo figcaption, .mosaic figcaption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 8px 12px; background: var(--paper); color: var(--ink-2); font-size: var(--t-micro); }
.hero .route { border-top: var(--hair); border-bottom: var(--hair); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-photo { aspect-ratio: 4 / 3; max-height: none; order: -1; margin-inline: calc(var(--gutter) * -1); }
  .hero .title-block { grid-template-columns: 1fr 1fr; }
  .hero .title-block > div { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: var(--hair); }
  .hero .title-block > div:nth-child(even) { border-right: 0; padding-left: var(--s4); }
  .hero .title-block > div:nth-child(odd) { padding-left: 0; }
}

/* ---------- Recent work mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(220px, 24vw, 380px)); gap: var(--s3); }
.mosaic figure { position: relative; overflow: hidden; background: var(--paper-3); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-wide { grid-column: span 2; }
@media (hover: hover) { .mosaic figure:hover img { transform: scale(1.03); } }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .mosaic .m-tall { grid-row: span 2; }
  .mosaic .m-wide { grid-column: span 2; }
}

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s5); }
.review { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s6) var(--s5); background: var(--white); }
.review blockquote { margin: 0; font: 500 clamp(1.125rem, 1rem + .35vw, 1.3125rem)/1.45 var(--f-text); color: var(--ink); }
.review .stars { display: flex; gap: 3px; color: var(--ink); }
.review .stars svg { width: 18px; height: 18px; }
.review .who { margin-top: auto; font-size: var(--t-small); }
.review .who b { display: block; }
.review .who span { color: var(--muted); }
.review .verified { color: var(--ok); font-weight: 600; }
.rev-summary { font: 700 1.25rem/1.3 var(--f-display); color: var(--ink); }

/* Home spacing: generous, consistent */
.home .section { padding-block: 0; margin-top: clamp(72px, 9vw, 144px); }
.home .floor-section { margin-top: clamp(72px, 9vw, 144px); }
.home .section-head { border-top: 0; padding-block: 0; margin-bottom: clamp(28px, 3.5vw, 48px); }
.home .cat-index, .home .compare, .home .capability:last-of-type, .home .photo-band, .home .order-sheet { margin-bottom: 0; }
.home .b2b { border: 0; background: var(--paper-2); margin-bottom: 0; }
.home .b2b .photo { border: 0; min-height: 520px; }
.home .b2b .body { padding: clamp(32px, 5vw, 80px); justify-content: center; }
.home .feat-more { padding-block: var(--s5) 0; }
.home .close-band { margin-top: clamp(72px, 9vw, 144px); }
.home .close-band > .wrap::before { display: none; }
.home .close-band .wrap { padding-block: clamp(48px, 6vw, 96px); background: var(--ink); color: var(--paper); padding-inline: clamp(24px, 5vw, 80px); max-width: calc(var(--max) - 2 * var(--gutter)); }
.home .close-band h2 { color: var(--paper); }
.home .close-band p { color: #CFC7BA; }
.home .close-band .btn--ink { --bg: var(--paper); --fg: var(--ink); }
@media (max-width: 860px) { .home .close-band .wrap { margin-inline: var(--gutter); width: auto; } .home .b2b .photo { min-height: 320px; } }
.review-forms > form { padding: var(--s5); background: var(--white); max-width: 760px; }
/* revamp fixes */
.hero-copy h1 { max-width: 15ch; }
.field-label { text-transform: none; letter-spacing: 0; font-size: .875rem; font-weight: 600; color: var(--muted); }
.mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mosaic .m-wide { grid-column: span 3; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic .m-wide { grid-column: span 2; } .mosaic figure:last-child { grid-column: span 2; } }
.review-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.review blockquote { max-width: 60ch; }
@media (max-width: 860px) { .hero-photo figcaption { left: var(--gutter); } }
.hero-copy h1 { font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5rem); max-width: none; }
.foot-grid, .foot-legal { position: relative; border-top: 0; }
.foot-grid::before, .foot-legal::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--rule-soft); }
.home .b2b .photo img { object-position: center 72%; }
@media (max-width: 760px) {
  .mosaic .m-tall { grid-row: auto; grid-column: span 2; }
  .mosaic { grid-auto-rows: 220px; }
}
@media (max-width: 860px) { .home .b2b .photo { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- Hero: centred statement, the work rising beneath it ---------- */
.hero-stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(56px, 8vw, 120px); }
.hero-stage .hero-copy { align-items: center; gap: 0; max-width: 980px; }
.hero-kicker { color: var(--ink-2); font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); margin-bottom: clamp(16px, 2vw, 24px); }
.hero-stage h1 { font-size: clamp(3rem, 1.2rem + 7vw, 7.25rem); line-height: .92; letter-spacing: -.045em; max-width: 11ch; margin-inline: auto; text-wrap: balance; }
.hero-stage .lede { margin-top: clamp(20px, 2.4vw, 32px); max-width: 34ch; color: var(--ink-2); }
.hero-stage .hero-actions { justify-content: center; margin-top: clamp(28px, 3vw, 40px); }
.hero-photos { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr) minmax(0, .62fr); gap: clamp(12px, 2vw, 28px); align-items: end; width: min(100%, 1120px); margin-top: clamp(56px, 7vw, 104px); }
.hero-photo--main { aspect-ratio: 4 / 5; max-height: none; }
.hero-photo--side { aspect-ratio: 4 / 5; margin-bottom: clamp(32px, 6vw, 96px); }
.hero-photo--side img { object-position: center; }
.hero > .title-block { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 760px) {
  .hero-stage { padding-top: 40px; }
  .hero-photos { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr) minmax(0, .5fr); gap: 8px; margin-top: 40px; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); }
  .hero-photo--side { margin-bottom: 40px; }
  .hero-photo--main figcaption { display: none; }
}
.hero-photos .hero-photo { order: 0; margin-inline: 0; }
.hero-photos .hero-photo--side { aspect-ratio: 4 / 5; }
.hero-stage { padding-top: clamp(40px, 5vw, 72px); }
.hero-stage h1 { max-width: 14ch; font-size: clamp(3rem, 1.2rem + 6.4vw, 6.75rem); }
.hero-photos { margin-top: clamp(48px, 5vw, 72px); }
.hero-photos .hero-photo--main { aspect-ratio: 3 / 4; }

/* Shop is closed for now: everything tagged data-shop is hidden. Delete this rule to reopen it. */
[data-shop] { display: none !important; }
/* With the stock-part station hidden, the route runs as four stations: 2 x 2 on tablets. */
@media (max-width: 1100px) and (min-width: 561px) {
  .route:has(> #op20[data-shop]) .station:last-child { grid-column: auto; }
  .route:has(> #op20[data-shop]) .station:nth-child(even) { border-left: 0; }
  .route:has(> #op20[data-shop]) .station:nth-child(3), .route:has(> #op20[data-shop]) .station:nth-child(5) { border-left: var(--hair); }
  .route:has(> #op20[data-shop]) .station:nth-child(4) { border-bottom: 0; }
}

/* ---------- Buttons: printed parts with depth ----------
   Each button is a small extruded slab: a stepped side face (the depth), faint FDM layer lines on the
   face, a lift on hover and a press that pushes it into the page. The first time a button comes into
   view it prints in, layer by layer, under a moving nozzle line (js/core.js adds data-print). */
.btn {
  --depth: color-mix(in srgb, var(--bg) 62%, #000);
  --layers: rgba(255, 255, 255, .08);
  --nozzle: #fff;
  position: relative;
  background-image: repeating-linear-gradient(0deg, var(--layers) 0 1px, transparent 1px 4px);
  box-shadow: 1px 1px 0 var(--depth), 2px 2px 0 var(--depth), 3px 3px 0 var(--depth), 4px 4px 0 var(--depth);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn--ghost { --depth: var(--ink); --layers: rgba(44, 40, 35, .06); --nozzle: var(--blue); }
.btn--ghost:hover { --layers: rgba(255, 255, 255, .08); }
.btn--ink { --depth: #000; }
.btn--sm { box-shadow: 1px 1px 0 var(--depth), 2px 2px 0 var(--depth), 3px 3px 0 var(--depth); }
@media (hover: hover) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 1px 1px 0 var(--depth), 2px 2px 0 var(--depth), 3px 3px 0 var(--depth), 4px 4px 0 var(--depth), 5px 5px 0 var(--depth), 6px 6px 0 var(--depth); }
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--depth); transition-duration: 80ms; }
.btn[disabled], .btn[aria-disabled="true"] { transform: none; box-shadow: none; }

.btn[data-print] { animation: btn-print 960ms steps(12, end) var(--pd, 0ms) both; }
.btn[data-print]::before {
  content: ""; position: absolute; left: -6px; right: -6px; top: 100%; height: 2px; pointer-events: none;
  background: var(--nozzle); box-shadow: 0 0 10px 1px var(--nozzle);
  animation: btn-nozzle 960ms steps(12, end) var(--pd, 0ms) both;
}
@keyframes btn-print {
  from { clip-path: inset(100% -12px -12px -12px); }
  to { clip-path: inset(-12px -12px -12px -12px); }
}
@keyframes btn-nozzle {
  from { top: 100%; opacity: 1; }
  90% { opacity: 1; }
  to { top: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .btn[data-print], .btn[data-print]::before { animation: none; } }

/* ---------- Inner pages: the homepage's photo-led hero, smaller ---------- */
.page-hero { border-bottom: var(--hair); padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero .hero-stage { padding-top: clamp(40px, 5vw, 72px); }
.page-hero h1 { font-size: clamp(2.6rem, 1.1rem + 5vw, 5.5rem); max-width: 19ch; }
.page-hero .hero-photos { width: min(100%, 1040px); margin-top: clamp(40px, 5vw, 64px); }
.page-hero .hero-photo--main { aspect-ratio: 4 / 3; }
.page-hero .hero-photo--side { margin-bottom: clamp(24px, 4vw, 64px); }
.page-hero + .section, .page-hero + section { margin-top: 0; }

/* Custom request: text with one photo beside it, so the form stays near the top. */
.page-head--photo .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: var(--s6) clamp(32px, 6vw, 96px); }
.page-head--photo h1 { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5rem); letter-spacing: -.04em; line-height: .95; }
.page-head--photo .page-head-copy > p:not(.hero-kicker) { margin-top: var(--s4); }
.page-head-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.page-head-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.mini-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: var(--s5); padding: 0; color: var(--ink-2); font-size: .9375rem; }
.mini-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; background: var(--ink); color: var(--paper); font: 700 .75rem/1 var(--f-display); }
@media (max-width: 860px) {
  .page-head--photo .wrap { grid-template-columns: 1fr; }
  .page-head-photo { aspect-ratio: 16 / 9; order: -1; margin-inline: calc(var(--gutter) * -1); }
}

/* The ink closing panel, on every page that ends with a call to action. */
.close-band { margin-top: clamp(72px, 9vw, 144px); }
.close-band > .wrap::before { display: none; }
.close-band .wrap { padding-block: clamp(48px, 6vw, 96px); background: var(--ink); color: var(--paper); padding-inline: clamp(24px, 5vw, 80px); max-width: calc(var(--max) - 2 * var(--gutter)); }
.close-band h2 { color: var(--paper); }
.close-band p { color: #CFC7BA; }
.close-band .btn--ink { --bg: var(--paper); --fg: var(--ink); }
.close-band .btn--ghost { --fg: var(--paper); border-color: var(--paper); }
@media (max-width: 860px) { .close-band .wrap { margin-inline: var(--gutter); width: auto; } }

/* Recent work on phones: two columns (one column made a 14-photo scroll), the first photo full width. */
@media (max-width: 520px) {
  .work-grid figure, .work-grid figure.wide { grid-column: span 6; aspect-ratio: 1 / 1; }
  .work-grid figure.wide:first-child { grid-column: span 12; aspect-ratio: 4 / 3; }
  .work-grid figure:not(:first-child) figcaption { display: none; } /* too small to read at half width */
}

/* Contact: one photo at the top of the side panel. */
.side-photo { margin: 0 0 var(--s2); aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.side-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Orders the shop manages: progress line per order (account) ---------- */
.jobs { gap: var(--s5); }
.job { background: var(--white); padding: clamp(20px, 3vw, 32px); display: grid; gap: var(--s4); }
.job header { display: flex; justify-content: space-between; align-items: start; gap: var(--s4); }
.job h3 { font-size: 1.25rem; }
.job-meta { color: var(--muted); font-size: var(--t-small); margin-top: 4px; }
.job-line { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.job-line li { position: relative; display: grid; gap: 4px; padding-top: 22px; font-size: var(--t-small); color: var(--muted); }
.job-line li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--paper-3); }
.job-line li:first-child::before { left: 7px; }
.job-line li.done::before, .job-line li.now::before { background: var(--ink); }
.job-line li.now::before { right: calc(100% - 7px); }
.job-dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border: 2px solid var(--paper-3); background: var(--white); }
.job-line li.done .job-dot { background: var(--ink); border-color: var(--ink); }
.job-line li.now .job-dot { background: var(--blue); border-color: var(--blue); }
.job-line li.done b, .job-line li.now b { color: var(--ink); }
.job-line b { font-weight: 600; padding-right: 8px; }
.job-when { font-size: var(--t-micro); }
.job-track { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-small); }
.job-note { color: var(--ink-2); border-left: 2px solid var(--ink); padding-left: 12px; }
@media (max-width: 720px) {
  .job-line { grid-auto-flow: row; gap: 14px; }
  .job-line li { padding: 0 0 0 26px; }
  .job-line li::before { top: 14px; bottom: -14px; left: 6px; right: auto; width: 2px; height: auto; }
  .job-line li:last-child::before { display: none; }
  .job-line li.now::before { background: var(--paper-3); }
  .job-dot { top: 1px; }
}

/* ---------- Account overview ---------- */
.ov-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.ov-stat { display: grid; gap: 6px; text-align: left; padding: clamp(18px, 2.4vw, 28px); background: var(--white); border: 0; cursor: pointer;
  font: inherit; color: var(--ink); transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.ov-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px var(--paper-3); }
.ov-stat:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ov-stat-k { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.ov-stat-v { font: 800 clamp(1.9rem, 1.3rem + 1.8vw, 2.75rem)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ov-stat-n { font-size: var(--t-small); color: var(--muted); }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.ov-card { background: var(--white); padding: clamp(20px, 2.6vw, 32px); display: grid; gap: var(--s4); min-width: 0; }
.ov-span2 { grid-column: 1 / -1; }
.ov-h { font-size: 1.125rem; }
.ov-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s4); }
.ov-big { font: 800 clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem)/1.05 var(--f-display); letter-spacing: -.03em; }
.ov-big small { font: 500 var(--t-small)/1.4 var(--f-text); color: var(--ink-2); letter-spacing: 0; }
.ov-calm { color: var(--ink-2); }
.ov-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ov-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule-soft); }
.ov-list li:first-child { border-top: 0; padding-top: 0; }
.ov-list li div { display: grid; gap: 2px; }
.ov-list li div span { color: var(--ink-2); font-size: var(--t-small); }
.ov-dot { width: 10px; height: 10px; background: var(--paper-3); }
.ov-dot[data-tone="err"] { background: var(--err); }
.ov-dot[data-tone="warn"] { background: #C77A00; }
.ov-dot[data-tone="blue"] { background: var(--blue); }
.ov-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.ov-job { display: grid; gap: 8px; }
.ov-job-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; }
.ov-pill { font-size: var(--t-small); font-weight: 600; color: var(--blue); white-space: nowrap; }
.ov-prog { display: block; height: 6px; background: var(--paper-2); overflow: hidden; }
.ov-prog-fill { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out); }
.ov-job-meta { font-size: var(--t-small); color: var(--muted); }
.ov-legend { display: inline-flex; align-items: center; gap: 6px 10px; font-size: var(--t-small); color: var(--ink-2); flex-wrap: wrap; }
.sw { display: inline-block; width: 12px; height: 12px; }
.sw-paid { background: var(--ink); }
.sw-open { background: var(--white); outline: 2px solid var(--blue); outline-offset: -2px; }
.ov-chart-wrap { position: relative; }
.ov-chart { width: 100%; height: auto; display: block; overflow: visible; }
.ov-axis { stroke: var(--paper-3); }
.ov-tick { font: 500 11px var(--f-text); fill: var(--muted); }
.b-paid { fill: var(--ink); }
.b-open { fill: var(--white); stroke: var(--blue); stroke-width: 2; }
.b-hit { fill: transparent; }
.ov-bar { outline: none; }
.ov-bar:hover .b-paid, .ov-bar:focus .b-paid { fill: var(--blue); }
.ov-bar:focus .b-hit { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ov-chart.grow .b-paid, .ov-chart.grow .b-open { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: transform 700ms var(--ease-out); }
.ov-chart.grow.in .b-paid, .ov-chart.grow.in .b-open { transform: scaleY(1); }
.ov-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: var(--ink); color: var(--paper); padding: 8px 12px;
  display: grid; gap: 2px; font-size: var(--t-small); white-space: nowrap; pointer-events: none; z-index: 2; }
.ov-tip[hidden] { display: none; }
.ov-summary { color: var(--ink-2); font-size: var(--t-small); }
.ov-mix { display: flex; height: 14px; gap: 2px; }
.ov-mix span { min-width: 6px; }
.mix-cnc { background: var(--ink); }
.mix-fdm { background: var(--blue); }
.mix-unsure { background: var(--paper-3); }
.ov-mix-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--t-small); color: var(--ink-2); }
.ov-mix-key li { display: inline-flex; align-items: center; gap: 6px; }
.ov-reorder h3 { font-size: 1rem; margin-bottom: var(--s2); }
.ov-reorder ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ov-reorder li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--rule-soft); }
.ov-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.ov-feed li { display: flex; justify-content: space-between; gap: var(--s4); padding: 10px 0 10px 18px; border-left: 2px solid var(--paper-3); position: relative; font-size: var(--t-small); }
.ov-feed li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; background: var(--white); border: 2px solid var(--ink); }
.ov-feed li:first-child::before { background: var(--blue); border-color: var(--blue); }
.ov-feed time { color: var(--muted); white-space: nowrap; }
.ov-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.ov-actions .ov-h { margin-right: auto; }
.ov-welcome { background: var(--white); padding: clamp(28px, 5vw, 64px); display: grid; gap: var(--s4); max-width: 760px; }
.ov-welcome h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.ov-welcome ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
.ov-skeleton { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.ov-skeleton span { height: 120px; background: linear-gradient(90deg, var(--white), var(--paper-2), var(--white)); background-size: 200% 100%; animation: ov-shimmer 1.2s linear infinite; }
@keyframes ov-shimmer { to { background-position: -200% 0; } }
@media (max-width: 960px) { .ov-stats, .ov-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ov-tick { font-size: 21px; } .ov-list li { align-items: start; } .ov-dot { margin-top: 6px; } .ov-stat-v { font-size: 1.6rem; } .ov-list li { grid-template-columns: 10px minmax(0, 1fr); } .ov-list li > :last-child { grid-column: 2; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .ov-prog-fill { transition: none; } .ov-skeleton span { animation: none; } .ov-stat { transition: none; } }

/* ---------- Customer portal: sidebar, cards, requests ---------- */
.portal { --pt-bg: #ECE8E1; --pt-shadow: 0 1px 2px rgba(44, 40, 35, .06), 0 10px 28px -16px rgba(44, 40, 35, .28);
  display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 69px);
  background: linear-gradient(to right, var(--white) 263px, var(--rule-soft) 263px 264px, var(--pt-bg) 264px); }
main:has(> .portal:not([hidden])) + .site-foot { margin-top: 0; }
.pt-side { background: var(--white); border-right: var(--hair-soft); position: sticky; top: 69px; height: calc(100vh - 69px);
  overflow-y: auto; display: flex; flex-direction: column; }
.pt-user { display: flex; gap: 12px; align-items: center; padding: 22px 20px; border-bottom: var(--hair-soft); min-width: 0; }
.pt-user div { display: grid; min-width: 0; }
.pt-user b { font-family: var(--f-display); font-size: 1.0625rem; line-height: 1.2; }
.pt-user span:not(.pt-avatar) { font-size: var(--t-micro); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-avatar { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 1rem var(--f-display); }
.pt-nav { display: grid; padding: 8px 0 16px; }
.pt-group { font-size: var(--t-micro); color: var(--muted); padding: 18px 20px 6px; }
.pt-nav [role=tab] { display: flex; align-items: center; gap: 12px; padding: 11px 20px; min-height: 46px; border: 0; background: none; cursor: pointer;
  font-weight: 600; color: var(--ink-2); text-align: left; transition: background 160ms var(--ease-out), color 160ms var(--ease-out); }
.pt-nav [role=tab] .ic { color: var(--muted); flex: none; transition: color 160ms var(--ease-out); }
.pt-nav [role=tab]:hover { background: var(--paper); color: var(--ink); }
.pt-nav [role=tab][aria-selected="true"] { background: var(--blue-wash); color: var(--blue-press); box-shadow: inset 3px 0 0 var(--blue); }
.pt-nav [role=tab][aria-selected="true"] .ic { color: var(--blue); }
.pt-nav [role=tab]:focus-visible { outline-offset: -3px; }
.pt-side-foot { margin-top: auto; padding: 18px 20px 24px; border-top: var(--hair-soft); display: grid; gap: 10px; justify-items: start; }
.pt-signout { border: 0; background: none; padding: 6px 0; color: var(--ink-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.pt-signout:hover { color: var(--blue); }
.pt-main { padding: clamp(20px, 3vw, 40px); min-width: 0; max-width: 1480px; width: 100%; }
.pt-head { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.pt-head-ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--white); color: var(--blue); box-shadow: var(--pt-shadow); }
.pt-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -.03em; line-height: 1.05; }
.pt-head p { color: var(--ink-2); font-size: var(--t-small); margin-top: 4px; }
.portal .tabpanel { padding: 0; }
.pt-main > .note { margin-bottom: var(--s5); }
.nowrap { white-space: nowrap; }

.pt-card { background: var(--white); box-shadow: var(--pt-shadow); min-width: 0; display: flex; flex-direction: column; }
.pt-card-h { display: flex; align-items: center; gap: 12px; min-height: 58px; padding-left: 24px; border-bottom: var(--hair-soft); }
.pt-card-h h2 { font-size: 1.0625rem; letter-spacing: -.01em; margin-right: auto; padding-block: 12px; }
.pt-card-h .ov-legend { margin-right: 4px; }
.pt-card-ic { flex: none; align-self: stretch; width: 58px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.pt-card-b { padding: 20px 24px 24px; display: grid; gap: var(--s4); align-content: start; }
.pt-pad { padding: clamp(20px, 2.6vw, 32px); }
.pt-stack { display: grid; gap: 20px; }

.pt-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.pt-top--new { grid-template-columns: minmax(0, 1fr); }
.pt-top--new .pt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-tiles { display: grid; gap: 16px; }
.pt-tile { display: flex; align-items: stretch; background: var(--white); box-shadow: var(--pt-shadow); color: var(--ink); text-decoration: none;
  border: 0; padding: 0; cursor: pointer; text-align: left; min-height: 96px; font: inherit; transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.pt-tile:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(44, 40, 35, .08), 0 16px 32px -16px rgba(44, 40, 35, .35); }
.pt-tile:active { transform: translateY(0); }
.pt-tile-t { flex: 1; display: grid; align-content: center; gap: 2px; padding: 16px 20px; }
.pt-tile-t b { font-family: var(--f-display); font-size: 1.0625rem; }
.pt-tile-t span { font-size: var(--t-micro); color: var(--ink-2); }
.pt-tile-ic { flex: none; width: 96px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.pt-tile--dark .pt-tile-ic { background: var(--blue-press); }
.pt-kpi { position: relative; display: grid; align-content: space-between; gap: 18px; text-align: left; border: 0; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--white); box-shadow: var(--pt-shadow); padding: 24px 28px 22px 24px; min-height: 208px; transition: transform 180ms var(--ease-out); }
.pt-kpi::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 46%; background: var(--blue); transition: height 300ms var(--ease-out); }
.pt-kpi:hover { transform: translateY(-2px); }
.pt-kpi:hover::after { height: 60%; }
.pt-kpi-k { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pt-kpi-k .ic { color: var(--ink-2); }
.pt-kpi-v { font: 800 clamp(1.75rem, 1.1rem + 1.4vw, 2.5rem)/1 var(--f-display); letter-spacing: -.02em; }
.pt-kpi-n { font-size: var(--t-micro); color: var(--muted); }

.pt-row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-bottom: 20px; }
.pt-row2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; align-items: start; }
.pt-span-5 { grid-column: span 5; }
.pt-span-7 { grid-column: span 7; }
.pt-row2 > :only-child { grid-column: 1 / -1; }
.pt-table { width: 100%; border-collapse: collapse; font-size: var(--t-micro); font-variant-numeric: tabular-nums; }
.pt-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 14px 12px 12px; border-bottom: var(--hair-soft); white-space: nowrap; }
.pt-table td { padding: 14px 12px; border-top: var(--hair-soft); vertical-align: middle; }
.pt-table tr:first-child td { border-top: 0; }
.pt-table th:first-child, .pt-table td:first-child { padding-left: 24px; }
.pt-table th:last-child, .pt-table td:last-child { padding-right: 24px; }
.pt-table .r { text-align: right; }
.pt-table td:first-child { width: 100%; max-width: 0; overflow: hidden; }
.pt-table td:not(:first-child) { white-space: nowrap; }
.pt-table .pt-sub { max-width: none; }
.pt-table tbody tr { transition: background 140ms var(--ease-out); }
.pt-table tbody tr:hover { background: var(--paper); }
.pt-ref { white-space: nowrap; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.pt-ref:hover { color: var(--blue-press); }
.pt-pay { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pt-pay:hover { background: var(--blue-press); color: #fff; }
.pt-sub { display: block; font-size: var(--t-micro); color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-late { color: var(--err); font-weight: 600; }
.pt-table-empty { padding: 28px 24px; color: var(--ink-2); }
.pt-mini { display: flex; gap: 3px; margin-bottom: 4px; }
.pt-mini i { width: 12px; height: 6px; background: var(--paper-3); }
.pt-mini i.done { background: var(--ink); }
.pt-mini i.now { background: var(--blue); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; font-weight: 600; font-size: var(--t-micro); white-space: nowrap;
  background: var(--blue-wash); color: var(--blue-press); }
.pill[data-tone="ok"] { background: var(--ok-wash); color: var(--ok); }
.pill[data-tone="warn"] { background: var(--warn-wash); color: var(--warn); }
.pill[data-tone="err"] { background: var(--err-wash); color: var(--err); }

.pt-att { list-style: none; margin: 0; padding: 4px 24px 12px; display: grid; }
.pt-att li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: var(--hair-soft); }
.pt-att li:first-child { border-top: 0; }
.pt-att li div { display: grid; gap: 2px; }
.pt-att li div span { font-size: var(--t-micro); color: var(--ink-2); }
.pt-att-ic { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.pt-att-ic[data-tone="blue"], .rq-ic, .rq-ic[data-tone="blue"] { background: var(--blue-wash); color: var(--blue); }
.pt-att-ic[data-tone="err"], .rq-ic[data-tone="err"] { background: var(--err-wash); color: var(--err); }
.rq-ic[data-tone="ok"] { background: var(--ok-wash); color: var(--ok); }
.rq-ic[data-tone="warn"] { background: var(--warn-wash); color: var(--warn); }
.pt-calm { display: flex; align-items: center; gap: 10px; padding: 24px; color: var(--ok); font-weight: 600; }
.ov-grid-line { stroke: var(--paper-2); stroke-dasharray: 4 4; }
.portal .ov-feed { padding-left: 6px; }
.portal .ov-skeleton span { background: linear-gradient(90deg, var(--white), var(--paper), var(--white)); background-size: 200% 100%; }
.ov-skeleton--rows { grid-template-columns: 1fr; }
.ov-skeleton--rows span { height: 84px; }

.pt-welcome { max-width: 920px; }
.pt-welcome h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.pt-welcome-steps { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pt-welcome-steps li { display: grid; gap: 4px; padding: 16px; background: var(--paper); }
.pt-welcome-steps .ic { color: var(--blue); margin-bottom: 6px; }
.pt-welcome-steps span { font-size: var(--t-micro); color: var(--ink-2); }
.pt-empty { background: var(--white); box-shadow: var(--pt-shadow); padding: clamp(28px, 5vw, 56px); display: grid; gap: 14px; justify-items: start; max-width: 720px; }
.pt-empty h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.pt-empty-ic { width: 56px; height: 56px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); }

/* Requests & orders */
.rq-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 14px; border: var(--hair-soft); background: var(--white);
  font-weight: 600; font-size: var(--t-micro); cursor: pointer; transition: background 160ms var(--ease-out), color 160ms var(--ease-out); }
.chip span { min-width: 22px; padding: 1px 6px; background: var(--paper-2); text-align: center; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] span { background: rgba(255, 255, 255, .18); }
.rq-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: var(--white); border: var(--hair-soft); color: var(--muted); }
.rq-search:focus-within { border-color: var(--blue); }
.rq-search input { border: 0; background: none; outline: none; width: min(280px, 60vw); min-height: 42px; color: var(--ink); }
.rq-count { font-size: var(--t-micro); color: var(--muted); margin: 10px 0; }
.rq-list { display: grid; gap: 12px; }
.rq-none { padding: 24px 0; }
.rq { background: var(--white); box-shadow: var(--pt-shadow); scroll-margin-top: 90px; transition: box-shadow 200ms var(--ease-out); }
.rq.open { box-shadow: 0 0 0 1px var(--blue), var(--pt-shadow); }
.rq-head { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) 170px 250px 24px; gap: 18px; align-items: center;
  padding: 16px 20px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.rq-head:hover .rq-title { color: var(--blue); }
.rq-head:focus-visible { outline-offset: -3px; }
.rq-ic { width: 48px; height: 48px; display: grid; place-items: center; }
.rq-main { display: grid; gap: 3px; min-width: 0; }
.rq-title { font: 700 1.0625rem/1.25 var(--f-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 140ms; }
.rq-meta { font-size: var(--t-micro); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-prog { display: grid; gap: 6px; }
.rq-bar { position: relative; height: 6px; background: var(--paper-2); overflow: hidden; }
.rq-bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p)); transform-origin: left; }
.rq-prog-t { font-size: .8125rem; color: var(--muted); }
.rq-side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.rq-due { font-size: var(--t-micro); font-weight: 600; color: var(--err); white-space: nowrap; }
.rq-chev { color: var(--muted); display: grid; transition: transform 240ms var(--ease-out); }
.rq.open .rq-chev { transform: rotate(180deg); color: var(--blue); }
.rq-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 320ms var(--ease-out), visibility 0s 320ms; }
.rq.open .rq-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 320ms var(--ease-out), visibility 0s; }
.rq-body > * { min-height: 0; overflow: hidden; }
.rq-inner { display: grid; gap: 24px; padding: 22px 20px 24px; border-top: var(--hair-soft); }
.rq-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.rq-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; padding: 0 4px; font-size: .8125rem; color: var(--muted); }
.rq-steps li::before { content: ""; position: absolute; top: 19px; right: 50%; left: -50%; height: 2px; background: var(--paper-3); }
.rq-steps li:first-child::before { display: none; }
.rq-steps li.done::before, .rq-steps li.now::before { background: var(--ink); }
.rq-step-ic { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: var(--white); border: 2px solid var(--paper-3); color: var(--muted); }
.rq-steps li.done .rq-step-ic { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rq-steps li.now .rq-step-ic { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-wash); }
.rq-steps b { font-weight: 600; line-height: 1.25; }
.rq-steps li.done b, .rq-steps li.now b { color: var(--ink); }
.rq-step-at { font-size: .75rem; }
.rq-cancel { display: flex; align-items: center; gap: 8px; color: var(--err); font-weight: 600; }
.rq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.rq-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.rq-col h4 { font-size: 1rem; margin-bottom: 8px; }
.rq-quote { display: grid; gap: 2px; padding: 16px 18px; background: var(--blue-wash); }
.rq-quote-k { font-size: var(--t-micro); font-weight: 600; color: var(--blue-press); }
.rq-quote b { font: 800 1.75rem/1.1 var(--f-display); letter-spacing: -.02em; }
.rq-quote span:not(.rq-quote-k) { font-size: var(--t-micro); color: var(--ink-2); }
.rq-quote p { margin-top: 8px; font-size: var(--t-micro); }
.rq-track { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--paper); }
.rq-track .ic { color: var(--blue); flex: none; margin-top: 2px; }
.rq-track div { display: grid; gap: 2px; }
.rq-track a { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: var(--t-micro); font-weight: 600; }
.rq-note { padding: 12px 16px; background: var(--warn-wash); font-size: var(--t-micro); }
.rq-desc { font-size: var(--t-micro); color: var(--ink-2); margin-bottom: 12px; white-space: pre-line; }
.rq-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.rq-kv dt { font-size: .8125rem; color: var(--muted); }
.rq-kv dd { margin: 0; font-weight: 600; font-size: var(--t-micro); }
.rq-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.rq-files li { display: flex; align-items: center; gap: 8px; font-size: var(--t-micro); min-width: 0; }
.rq-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-files small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.rq-docs { list-style: none; margin: 0; padding: 0; display: grid; }
.rq-doc { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: var(--hair-soft); }
.rq-doc:first-child { border-top: 0; }
.rq-doc-ic { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); }
.rq-doc div { display: grid; gap: 1px; min-width: 0; }
.rq-doc div span { font-size: .8125rem; color: var(--muted); }
.rq-doc-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.rq-doc-act { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: var(--hair-soft); background: var(--white); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.rq-history { list-style: none; margin: 0; padding: 0; display: grid; }
.rq-history li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: var(--hair-soft); font-size: var(--t-micro); }
.rq-history li:first-child { border-top: 0; }
.rq-history time { color: var(--muted); white-space: nowrap; }
.rq-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rq-other { margin-top: 24px; }
.rq-other .rq-docs { padding: 4px 24px 12px; }

/* Switches and the signup opt-in */
.switch { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; max-width: 64ch; }
.switch input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: pointer; }
.switch-track { position: relative; width: 44px; height: 26px; background: var(--paper-3); transition: background 200ms var(--ease-out); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform 200ms var(--ease-out); }
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 3px; }
.switch > span:last-child { display: grid; gap: 4px; }
.check.optin { padding: 14px 16px; background: var(--white); border: var(--hair-soft); line-height: 1.45; }

@media (max-width: 1240px) {
  .pt-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-tiles { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-row2 > * { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .rq-head { grid-template-columns: 44px minmax(0, 1fr) auto 24px; }
  .rq-prog { display: none; }
}
@media (max-width: 900px) {
  .portal { grid-template-columns: minmax(0, 1fr); background: var(--pt-bg); }
  .pt-head-ic { display: none; }
  .pt-side { position: static; height: auto; border-right: 0; border-bottom: var(--hair-soft); }
  .pt-user { padding: 16px var(--gutter); }
  .pt-nav { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 calc(var(--gutter) - 12px); }
  .pt-group { display: none; }
  .pt-nav [role=tab] { padding: 10px 12px; white-space: nowrap; flex: none; }
  .pt-nav [role=tab][aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--blue); }
  .pt-side-foot { display: none; }
  .pt-main { padding: 20px var(--gutter) 40px; }
  .rq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .pt-top, .pt-tiles, .pt-top--new .pt-tiles { grid-template-columns: minmax(0, 1fr); }
  .pt-kpi { min-height: 0; }
  .pt-tile-ic { width: 72px; }
  .pt-welcome-steps { grid-template-columns: minmax(0, 1fr); }
  .rq-head { grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 12px; padding: 14px 16px; }
  .rq-ic { width: 40px; height: 40px; }
  .rq-side { grid-column: 2; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .rq-chev { grid-column: 3; grid-row: 1; }
  .rq-inner { padding: 18px 16px 20px; }
  .rq-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rq-steps li { grid-template-columns: 40px minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: 12px; text-align: left; padding: 6px 0; }
  .rq-steps li::before { top: -10px; bottom: auto; left: 19px; right: auto; width: 2px; height: 22px; }
  .rq-kv { grid-template-columns: minmax(0, 1fr); }
  .rq-doc { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .rq-doc-act { grid-column: 2 / -1; }
  .rq-search { flex: 1; }
  .rq-search input { width: 100%; }
  .pt-att li { grid-template-columns: 36px minmax(0, 1fr); }
  .pt-att li > :last-child:not(div) { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .rq-body, .rq.open .rq-body, .rq-chev, .pt-tile, .pt-kpi, .pt-kpi::after, .switch-track, .switch-track::after { transition: none; }
}

/* ---------- Home flow: two doors, parts we make, numbered band, industries ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s2); max-width: 760px; }
.door { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 20px 22px; background: var(--white); border: var(--hair); color: var(--ink); text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
.door:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.door:active { transform: translateY(0); box-shadow: none; }
.door--alt { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.door--alt:hover { color: var(--paper); box-shadow: 4px 4px 0 var(--blue); }
.door-n { font: 700 var(--t-micro) var(--f-display); color: var(--blue); letter-spacing: .02em; }
.door--alt .door-n { color: var(--teal); }
.door-k { font: 800 1.25rem/1.15 var(--f-display); letter-spacing: -.015em; }
.door-p { font-size: var(--t-micro); color: var(--ink-2); line-height: 1.45; }
.door--alt .door-p { color: rgba(242, 240, 236, .78); }
.door-go { font-weight: 600; font-size: var(--t-micro); margin-top: 6px; color: var(--blue); }
.door--alt .door-go { color: var(--paper); }

.kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--hair); border-left: var(--hair); }
.kind { border-right: var(--hair); border-bottom: var(--hair); }
.kind a { display: grid; align-content: start; gap: 6px; height: 100%; padding: 0 0 22px; color: var(--ink); text-decoration: none; background: var(--paper); transition: background 180ms var(--ease-out); }
.kind a:hover { background: var(--white); color: var(--ink); }
.kind-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: var(--hair); margin-bottom: 12px; background: var(--paper-2); }
.kind-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.kind a:hover .kind-img img { transform: scale(1.04); }
.kind-tag, .kind-name, .kind-desc, .kind-go { padding-inline: 22px; }
.kind-tag { font-size: var(--t-micro); font-weight: 600; color: var(--blue); }
.kind-name { font: 700 1.3125rem/1.2 var(--f-display); letter-spacing: -.012em; }
.kind-desc { font-size: var(--t-micro); color: var(--ink-2); max-width: 40ch; }
.kind-go { font-size: var(--t-micro); font-weight: 600; margin-top: 6px; }

.cap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }

.numbered { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--hair); }
.numbered li { display: grid; align-content: start; gap: var(--s3); padding: var(--s5) var(--s5) var(--s6) 0; }
.numbered li + li { padding-left: var(--s5); border-left: var(--hair-soft); }
.num-n { font: 800 2.5rem/1 var(--f-display); color: var(--blue); letter-spacing: -.03em; }
.numbered h3 { font-size: 1.25rem; }
.numbered p { font-size: var(--t-small); color: var(--ink-2); }

.industries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.industries li { display: grid; align-content: start; gap: var(--s3); padding: 24px; background: var(--white); border-top: 3px solid var(--ink); }
.industries li:nth-child(2) { border-top-color: var(--blue); }
.industries h3 { font-size: 1.1875rem; }
.industries p { font-size: var(--t-micro); color: var(--ink-2); }

/* Materials library page */
.mat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.mat-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: var(--hair); scroll-margin-top: 96px; }
.mat-card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: var(--hair); position: relative; }
.mat-card figure img { width: 100%; height: 100%; object-fit: cover; }
.mat-badge { position: absolute; top: 14px; left: 14px; padding: 4px 10px; background: var(--ink); color: var(--paper); font: 700 var(--t-micro) var(--f-display); letter-spacing: .04em; }
.mat-body { display: grid; align-content: start; gap: var(--s4); padding: clamp(22px, 3vw, 36px); }
.mat-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.mat-body p { color: var(--ink-2); }
.mat-table { width: 100%; border-collapse: collapse; font-size: var(--t-micro); }
.mat-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: var(--hair); }
.mat-table td { padding: 10px 12px 10px 0; border-bottom: var(--hair-soft); vertical-align: top; }
.mat-table td:first-child { font-weight: 700; white-space: nowrap; }
.mat-ask { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: var(--s8); padding: clamp(24px, 4vw, 48px);
  background: var(--ink); color: var(--paper); }
.mat-ask h2 { color: var(--paper); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.mat-ask p { color: rgba(242, 240, 236, .78); margin-top: 6px; }
.mat-ask .actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.mat-ask .btn--ghost { --fg: var(--paper); --depth: var(--paper); border-color: var(--paper); }
.mat-ask .btn--ghost:hover { --bg: var(--paper); --fg: var(--ink); }

@media (max-width: 1100px) {
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbered, .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbered li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .doors, .kinds, .numbered, .industries, .mat-cards { grid-template-columns: minmax(0, 1fr); }
  .numbered li, .numbered li + li { padding: var(--s5) 0; border-left: 0; border-top: var(--hair-soft); }
}
@media (prefers-reduced-motion: reduce) {
  .door, .kind a, .kind-img img { transition: none; }
  .kind a:hover .kind-img img { transform: none; }
}

/* ---------- Portal, simplified overview and money ---------- */
.ov2 { display: grid; gap: 20px; max-width: 1040px; }
.ov2-sec { background: var(--white); border: var(--hair-soft); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 14px; }
.ov2-sec--flush { padding-left: 0; padding-right: 0; padding-bottom: 6px; }
.ov2-sec--flush > .ov2-sec-h { padding-inline: clamp(18px, 2.4vw, 28px); }
.ov2-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ov2-sec-h h2 { font-size: 1.125rem; letter-spacing: -.01em; }
.ov2-todo, .ov2-orders { list-style: none; margin: 0; padding: 0; display: grid; }
.ov2-todo li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: var(--hair-soft); }
.ov2-todo li:first-child { border-top: 0; padding-top: 0; }
.ov2-todo li div { display: grid; gap: 2px; min-width: 0; }
.ov2-todo li div span { font-size: var(--t-micro); color: var(--ink-2); }
.ov2-todo-ic { width: 36px; height: 36px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); }
.ov2-todo li[data-tone="err"] .ov2-todo-ic { background: var(--err-wash); color: var(--err); }
.ov2-todo li[data-tone="warn"] .ov2-todo-ic { background: var(--warn-wash); color: var(--warn); }
.ov2-orders li { border-top: var(--hair-soft); }
.ov2-orders li:first-child { border-top: 0; }
.ov2-order { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 8px;
  margin: 0 -8px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: background 140ms var(--ease-out); }
.ov2-order:hover { background: var(--paper); }
.ov2-order:hover b { color: var(--blue); }
.ov2-order-ic { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); }
.ov2-order-ic[data-tone="ok"] { background: var(--ok-wash); color: var(--ok); }
.ov2-order-ic[data-tone="warn"] { background: var(--warn-wash); color: var(--warn); }
.ov2-order-ic[data-tone="err"] { background: var(--err-wash); color: var(--err); }
.ov2-order-main { display: grid; gap: 2px; min-width: 0; }
.ov2-order-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 140ms; }
.ov2-order-main span { font-size: var(--t-micro); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov2-steps { display: flex; gap: 3px; }
.ov2-steps i { width: 10px; height: 6px; background: var(--paper-3); }
.ov2-steps i.done { background: var(--ink); }
.ov2-steps i.now { background: var(--blue); }
.ov2-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.ov2-fig { display: grid; gap: 4px; padding: 16px 18px; background: var(--paper); border: 0; text-align: left; font: inherit; color: var(--ink); }
button.ov2-fig { cursor: pointer; transition: background 140ms var(--ease-out); }
button.ov2-fig:hover { background: var(--paper-2); }
.ov2-fig span { font-size: var(--t-micro); color: var(--ink-2); font-weight: 600; }
.ov2-fig b { font: 800 clamp(1.5rem, 1.1rem + 1vw, 2rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.ov2-fig[data-tone="warn"] b { color: var(--warn); }
.mn-figs .ov2-fig { background: var(--white); border: var(--hair-soft); }
.ov2-welcome { max-width: 760px; }
.ov2-welcome h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.mn-chart .ov-legend { margin-top: 8px; }
.mn-table td:nth-child(2) { width: 100%; max-width: 0; overflow: hidden; }
.mn-table td:first-child { width: auto; max-width: none; }
.mn-table .pt-ref { white-space: normal; text-align: left; }
.mn-act { display: inline-flex; gap: 8px; justify-content: flex-end; align-items: center; }
@media (max-width: 720px) {
  .ov2-order { grid-template-columns: 36px minmax(0, 1fr); row-gap: 8px; }
  .ov2-order .pill { grid-column: 2; justify-self: start; }
  .ov2-order-main b, .ov2-order-main span { white-space: normal; }
  .ov2-order-ic { width: 36px; height: 36px; }
  .ov2-steps { display: none; }
  .ov2-todo li { grid-template-columns: 36px minmax(0, 1fr); }
  .ov2-todo li > a, .ov2-todo li > button { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .mn-figs { grid-template-columns: 1fr 1fr; }
  .mn-figs .ov2-fig:last-child { grid-column: 1 / -1; }
  .mn-table thead { display: none; }
  .mn-table, .mn-table tbody { display: block; }
  .mn-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "for amt" "date status" "act act";
    gap: 6px 12px; padding: 14px 18px; border-top: var(--hair-soft); }
  .mn-table tr:first-child { border-top: 0; }
  .mn-table td, .mn-table td:first-child, .mn-table td:last-child { display: block; padding: 0; border: 0; width: auto; max-width: none; }
  .mn-table td:nth-child(1) { grid-area: date; color: var(--muted); align-self: center; }
  .mn-table td:nth-child(2) { grid-area: for; width: auto; max-width: none; overflow: visible; }
  .mn-table td:nth-child(3) { grid-area: status; justify-self: end; }
  .mn-table td:nth-child(4) { grid-area: amt; font-weight: 700; }
  .mn-table td:nth-child(5) { grid-area: act; text-align: left; }
  .mn-table td:nth-child(5):has(.mn-act:empty) { display: none; }
}

/* ---------- Instant quote ---------- */
.iq-form .ov2-sec { gap: 16px; }
.iq-drop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 22px; border: 2px dashed var(--paper-3);
  background: var(--paper); cursor: pointer; color: var(--ink); transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out); }
.iq-drop .ic { grid-row: span 2; color: var(--blue); }
.iq-drop span { display: grid; gap: 2px; }
.iq-drop small { color: var(--muted); }
.iq-drop-name { grid-column: 2; font-size: var(--t-micro); color: var(--ink-2); }
.iq-drop:hover, .iq-drop.over { border-color: var(--blue); background: var(--blue-wash); }
.iq-drop.has { border-style: solid; border-color: var(--ok); }
#iq-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.iq-procs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.iq-proc { position: relative; cursor: pointer; }
.iq-proc input { position: absolute; opacity: 0; }
.iq-proc > span { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 16px; border: var(--hair-soft); background: var(--white); }
.iq-proc .ic { grid-row: span 2; color: var(--ink-2); }
.iq-proc small { color: var(--muted); font-size: var(--t-micro); }
.iq-proc input:checked + span { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--blue-wash); }
.iq-proc input:checked + span .ic { color: var(--blue); }
.iq-proc input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.iq-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.iq-steps li { display: grid; gap: 6px; font-size: var(--t-micro); color: var(--muted); }
.iq-steps li::before { content: ""; height: 4px; background: var(--paper-3); }
.iq-steps li span { display: none; }
.iq-steps li.done { color: var(--ink); }
.iq-steps li.done::before { background: var(--ink); }
.iq-steps li.now { color: var(--blue); font-weight: 600; }
.iq-steps li.now::before { background: var(--blue); }
.iq-banner { display: flex; gap: 10px; align-items: center; }
.iq-banner[data-tone="err"] { background: var(--err-wash); color: var(--err); }
.iq-banner[data-tone="warn"] { background: var(--warn-wash); color: var(--warn); }
.iq-banner[data-tone="ok"] { background: var(--ok-wash); color: var(--ok); }
.iq-spin { flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: iq-spin 0.8s linear infinite; }
@keyframes iq-spin { to { transform: rotate(360deg); } }
.iq-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.iq-lines td { padding: 10px 0; border-top: var(--hair-soft); }
.iq-lines tr:first-child td { border-top: 0; }
.iq-lines tr.tax td { color: var(--ink-2); font-size: var(--t-micro); }
.iq-lines tr.total td { border-top: var(--hair); font-weight: 700; font-size: 1.125rem; }
.iq-lines .r { text-align: right; }
.ov2-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
@media (prefers-reduced-motion: reduce) { .iq-spin { animation: none; } }
@media (max-width: 720px) { .iq-steps li:not(.now) { font-size: 0; gap: 0; } .iq-steps li.now { grid-column: span 1; white-space: nowrap; } }
.ov2-sec-h h2 { overflow-wrap: anywhere; }

.rq-kv dd, .rq-kv dt { overflow-wrap: anywhere; }

/* ---------- Instant quote: parts with previews, itemized estimate ---------- */
.iq-parts { display: grid; gap: 14px; }
.iq-part { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; padding: 16px 18px; border: var(--hair-soft); background: var(--white); }
.iq-part-h { display: flex; gap: 10px; align-items: center; }
.iq-part-h > svg { color: var(--blue); flex-shrink: 0; }
.iq-matnote { margin: 0; color: var(--blue-press); font-weight: 600; }
.iq-extras { display: grid; gap: 14px; margin-top: 4px; padding-top: 14px; border-top: var(--hair-soft); }
.iq-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
.iq-row > .iq-l { padding-top: 8px; }
.iq-row-c { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.iq-row-c select { max-width: 380px; width: 100%; }
.iq-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 6px; }
.iq-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; cursor: pointer; font-size: var(--t-small); }
.iq-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.iq-check > span { display: grid; gap: 2px; }
.iq-check b { font-weight: 600; }
.iq-check small { color: var(--muted); font-size: var(--t-micro); line-height: 1.45; }
.iq-check.inline { display: inline-grid; }
.iq-risks { display: grid; gap: 10px; padding-top: 6px; }
.iq-name { flex: 1; min-width: 0; font: 700 1.0625rem var(--f-display); border: 0; border-bottom: var(--hair-soft); padding: 6px 2px; background: none; }
.iq-name:focus { border-bottom-color: var(--blue); outline: none; }
.iq-file { margin: -6px 0 0; overflow-wrap: anywhere; }
.iq-seg { display: inline-flex; border: var(--hair-soft); width: max-content; max-width: 100%; }
.iq-seg label { cursor: pointer; }
.iq-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iq-seg span { display: block; padding: 8px 14px; font-weight: 600; font-size: var(--t-micro); color: var(--ink-2); }
.iq-seg input:checked + span { background: var(--ink); color: var(--paper); }
.iq-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }
.iq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 12px; }
.iq-f { margin: 0; display: grid; gap: 4px; }
.iq-l { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.iq-part-err:empty { display: none; }
.iq-drop.compact { padding: 12px 16px; }
.iq-drop.compact small { display: none; }
#iq-files { position: absolute; width: 1px; height: 1px; opacity: 0; }
.iq-disclaimer { background: var(--blue-wash); color: var(--ink); }
.iq-items { width: 100%; border-collapse: collapse; font-size: var(--t-micro); font-variant-numeric: tabular-nums; }
.iq-items th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 8px 8px 0; border-bottom: var(--hair); white-space: nowrap; }
.iq-items td { padding: 10px 8px 10px 0; border-bottom: var(--hair-soft); vertical-align: top; }
.iq-items .r { text-align: right; }
.iq-items .iq-n { color: var(--muted); width: 2em; }
.iq-items td b { display: block; font-size: var(--t-small); }
.iq-items td, .iq-spec li, .iq-view-q h2, .iq-part-h .iq-name { overflow-wrap: anywhere; }
.iq-desc { display: block; color: var(--muted); font-size: .8125rem; }
.iq-flag { display: block; color: var(--blue-press); font-weight: 600; font-size: .8125rem; margin-top: 2px; }
.iq-items tr.iq-tbd, .iq-items tr.iq-tbd td { background: var(--blue-wash); }
.iq-items tfoot td { border-bottom: 0; padding-top: 6px; padding-bottom: 6px; }
.iq-items tfoot tr.total td { border-top: var(--hair); font-weight: 700; font-size: var(--t-small); padding-top: 10px; }
.iq-spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iq-spec li { display: grid; gap: 2px; }
.iq-spec li span { font-size: var(--t-micro); color: var(--ink-2); }
@media (max-width: 720px) {
  .iq-row { grid-template-columns: minmax(0, 1fr); }
  .iq-part { padding: 14px 12px; }
  .iq-grid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
  .iq-grid > * { min-width: 0; }
  .iq-grid select, .iq-grid input { width: 100%; min-width: 0; }
  .iq-row > .iq-l { padding-top: 0; }
  .iq-items thead { display: none; }
  .iq-items tbody tr { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 0; border-bottom: var(--hair-soft); }
  .iq-items tbody td { border: 0; padding: 0; }
  .iq-items, .iq-items tbody, .iq-items tfoot { display: block; }
  .iq-items tbody td:nth-child(4) { display: none; }
  .iq-items tbody td:nth-child(2) { grid-column: 2; }
  .iq-items tbody td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: left; color: var(--muted); }
  .iq-items tbody td:nth-child(3)::before { content: "Qty "; }
  .iq-items tbody td:nth-child(5) { grid-column: 3; grid-row: 1; }
  .iq-items tfoot tr { display: flex; justify-content: flex-end; gap: 16px; }
}

/* Technical drawing slot on part cards and the quote view */
.iq-draw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.iq-draw-name { font-size: 0.875rem; overflow-wrap: anywhere; }
.iq-draw .linkish { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-size: 0.875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; text-align: left; }

