/* Kerb, one stylesheet.

   Plan (keep to it on every page)
   - Colour: four values, each with one job.
       --bg     #0b0b0a  the black of the shadow-box frame and the poster board; page ground
       --paper  #ecebe4  bone-white PLA, the lightest filament we stock; text
       --dim    #9a998f  secondary text (5.9:1 on --bg)
       --hot    #ff4f1f  the default track filament and the paint on a kerb; actions, prices, the cart count. Nothing decorative.
   - Type: Archivo only (Sedgwick Ave Display is the logo tag and nothing else).
       Archivo's expanded widths look like race numbers and pit-board lettering; the same family
       sets body text, and its tabular figures set the data (lengths, years, prices) instead of a mono.
       Uppercase is for product names and page titles only. Everything else is sentence case.
       Sizes: 12, 13, 15, 18, 28, 44 and two display clamps.
   - Space: 4, 8, 16, 24, 32, 48, 64, 96, 160.
   - Corners: square on everything; round only for colour swatches and the cart count.
     Shadows: none, except the edge where the page slides over the hero.
   - Signature: the printed model itself, in the hero and pinned beside each product. The rest stays quiet.
*/

:root {
  --bg: #0b0b0a;
  --bg-2: #141412;
  --paper: #ecebe4;
  --dim: #a8a79d;
  --mute: #8a8982;
  --line: rgba(236, 235, 228, .13);
  --line-2: rgba(236, 235, 228, .26);
  --hot: #ff4f1f;
  --blue: #2d46ff;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: var(--sans);   /* data uses Archivo's tabular figures, see .mono */
  --ui: var(--sans);
  --tag: "Sedgwick Ave Display", "Permanent Marker", cursive;
  --t-xs: 12px; --t-s: 13px; --t-m: 16px; --t-l: 18px; --t-xl: 28px; --t-2xl: 44px;
  --gut: clamp(16px, 3vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font: 400 16px/1.5 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--hot); color: #000; }

.grain {
  position: fixed; inset: -100%;
  width: 300%; height: 300%;
  pointer-events: none; z-index: 100;
  opacity: .75;   /* static on purpose: a moving grain makes small text shimmer */
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-7%, 4%); }
  33% { transform: translate(3%, -9%); }
  50% { transform: translate(-11%, -3%); }
  67% { transform: translate(8%, 7%); }
  83% { transform: translate(-4%, 11%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

.mono { font-family: var(--sans); font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.hot { color: var(--hot); }
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; height: 34px; padding: 0 16px;
  border: 1.5px solid var(--paper); border-radius: 999px;
  font: 500 12px var(--ui);
  box-shadow: 0 3px 0 -1px var(--bg), 0 3px 0 0 var(--paper);
  transition: transform .08s, box-shadow .08s;
}
.is-spinning .kbd { transform: translateY(2px); box-shadow: 0 1px 0 -1px var(--bg), 0 1px 0 0 var(--paper); }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gut);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr__logo { width: 112px; margin-right: auto; color: var(--paper); }
.hdr__nav { display: flex; gap: 22px; font: 500 12px var(--ui); }
.hdr__nav a, .hdr__cart { text-decoration: none; opacity: .78; transition: opacity .15s; }
.hdr__nav a:hover, .hdr__cart:hover { opacity: 1; }
.hdr__cart { font: 500 12px var(--ui); display: inline-flex; gap: 8px; align-items: center; opacity: 1; }
.hdr__cart span {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border: 1px solid var(--line-2); border-radius: 10px; font-size: 12px;
}
.hdr__cart span[data-n="0"] { display: none; }
.hdr__cart span:not([data-n="0"]) { background: var(--hot); border-color: var(--hot); color: #000; }
.hdr__menu { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 8px; cursor: pointer; }
.hdr__menu span { display: block; height: 1.5px; background: var(--paper); margin: 6px 0; transition: transform .2s; }
.hdr.is-open .hdr__menu span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hdr.is-open .hdr__menu span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.hdr--solid { background: linear-gradient(var(--bg) 55%, rgba(11,11,10,0)); }
.hdr { transition: background .25s; }

@media (max-width: 860px) {
  .hdr { gap: 14px; }
  .hdr__menu { display: block; }
  .hdr__nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 18px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .hdr__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .hdr.is-open .hdr__nav { opacity: 1; visibility: visible; transform: none; }
}

/* ---------- logo tag ---------- */
.tag { width: 100%; height: auto; overflow: visible; }
.tag__word {
  font-family: var(--tag); font-size: 100px;
  fill: currentColor; stroke: currentColor; stroke-width: 1.2; paint-order: stroke;
  letter-spacing: -3px;
}
.tag__swoosh, .tag__drip, .tag__crown { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.tag__drip { stroke-width: 3.6; }
.tag__crown { stroke: var(--hot); stroke-width: 4.5; }
.tag__dot { fill: currentColor; }

.tag--draw .tag__word {
  fill: transparent; stroke-width: 2;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: tag-stroke 1.5s cubic-bezier(.6,.05,.3,1) .15s forwards, tag-fill .35s ease 1.45s forwards;
}
.tag--draw .tag__swoosh { stroke-dasharray: 320; stroke-dashoffset: 320; animation: tag-stroke .45s ease-out 1.55s forwards; }
.tag--draw .tag__crown { stroke-dasharray: 80; stroke-dashoffset: 80; animation: tag-stroke .35s ease-out 1.95s forwards; }
.tag--draw .tag__drip { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tag-stroke .7s ease-in 1.9s forwards; }
.tag--draw .tag__dot { opacity: 0; animation: tag-dot .2s ease 2.5s forwards; }
@keyframes tag-stroke { to { stroke-dashoffset: 0; } }
@keyframes tag-fill { to { fill: currentColor; stroke-width: 1.2; } }
@keyframes tag-dot { to { opacity: 1; } }

/* ---------- intro (index) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .7s ease, visibility .7s;
  will-change: opacity;
}
.intro__tag { width: min(520px, 76vw); color: var(--paper); }
.intro.is-done { opacity: 0; visibility: hidden; }
.intro__skip { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--mute); }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: grid; grid-template-columns: 1fr; overflow: hidden;
}
.hero__stage { position: absolute; inset: 0; }
.hero__stage canvas { width: 100% !important; height: 100% !important; cursor: grab; opacity: 0; transition: opacity .9s ease; }
.hero__stage.is-ready canvas { opacity: 1; }
.hero__copy {
  position: absolute; left: var(--gut); bottom: 92px; z-index: 2; max-width: 46%; pointer-events: none;
}
.hero__copy h1 {
  margin: 0 0 22px -.04em;   /* pull the Y in by its side bearing so it lines up with the text below */
  font: 900 clamp(46px, min(6.2vw, 13svh), 120px)/.86 var(--sans);
  white-space: nowrap;   /* "Your line, / in / relief." on three lines, as written */
  color: #fff;
  font-stretch: 118%;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.hero__copy p { margin: 0; max-width: 460px; color: var(--dim); font-size: 17px; line-height: 1.5; }
.hero__copy .btns { pointer-events: auto; margin-top: 24px; }
.hero__spec {
  position: absolute; left: calc(65% + min(23svh, 15vw) + 28px); top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; min-width: 150px; border-bottom: 1px solid var(--line);
}
.hero__spec div { padding: 10px 0; border-top: 1px solid var(--line); }
.hero__spec span { display: block; color: var(--dim); font-size: var(--t-xs); margin-bottom: 4px; }
.hero__spec b { display: block; font-weight: 600; color: var(--paper); font-size: var(--t-s); }
.hero__spec .num { display: inline; font-variant-numeric: tabular-nums; font-size: 40px; font-weight: 900; font-stretch: 118%; line-height: 1; color: var(--paper); }
.hero__spec .num + span { display: inline; margin: 0 0 0 4px; }
.hero__hold {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700; font-size: 14px;
}
.hero__hold .kbd { cursor: pointer; user-select: none; background: transparent; color: var(--paper); }
.hero__bar {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px; background: var(--line);
}
.hero__pick {
  position: absolute; left: 65%; bottom: 40px; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: max-content; max-width: 52%;
}
.chip--more { text-decoration: none; border-style: dashed; }
.chip {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
  padding: 5px 11px; font: 500 12px var(--ui); cursor: pointer; color: var(--dim);
}
.chip:hover { color: var(--paper); border-color: var(--paper); }
.chip.is-on { background: var(--paper); color: #000; border-color: var(--paper); }

@media (max-width: 860px) {
  .hero__spec { top: 86px; left: auto; right: var(--gut); transform: none; min-width: 120px; text-align: right; }
  .hero__spec .num { font-size: 26px; }
  .hero__pick { display: none; }
  .hero__copy { bottom: 84px; right: var(--gut); max-width: none; }
  .hero__hold { display: none; }
}

/* ---------- buttons ---------- */
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  border: 1.5px solid var(--paper); border-radius: 0;
  background: var(--paper); color: #0b0b0a; text-decoration: none;
  font: 600 var(--t-m) var(--ui); cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--hot); border-color: var(--hot); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--paper); }
.btn--ghost:hover { background: var(--paper); border-color: var(--paper); color: #000; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- sections ---------- */
.sec { padding: 120px var(--gut); border-top: 1px solid var(--line); position: relative; }
.sec__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; margin-bottom: 64px; align-items: start; }
/* section titles are sentence case and smaller than product names: the products lead */
.sec__head h2 { margin: 0; font: 800 var(--t-2xl)/1 var(--sans); font-stretch: 112%; letter-spacing: -.01em; }
.sec__head p { margin: 4px 0 0; max-width: 560px; color: var(--dim); font-size: var(--t-l); line-height: 1.5; }
@media (max-width: 700px) {
  .sec { padding: 64px var(--gut); }
  .sec__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .sec__head h2 { font-size: var(--t-xl); }
  .sec__head p { font-size: var(--t-m); }
}
mark { background: rgba(255, 79, 31, .14); color: var(--hot); padding: 0 4px; }

/* product rows */
.rows { display: grid; }
.row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px;
  padding: 34px 0; border-top: 1px solid var(--line); align-items: center;
  text-decoration: none; position: relative;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row__n { align-self: start; padding-top: 6px; }
.row h3 {
  margin: 0 0 10px; font: 900 clamp(28px, 4.2vw, 60px)/.95 var(--sans); font-stretch: 118%;
  text-transform: uppercase; transition: color .2s;
}
.row p { margin: 0; color: var(--dim); max-width: 440px; }
.row__meta { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; font-size: var(--t-m); font-variant-numeric: tabular-nums; }
.row__art { height: 220px; display: flex; justify-content: center; align-items: center; }
.row__art svg { height: 100%; width: 100%; max-width: 360px; overflow: visible; }
.row__art path { fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linejoin: round; transition: stroke .2s; vector-effect: non-scaling-stroke; }
.row:hover h3 { color: var(--hot); }
.row:hover .row__art path { stroke: var(--hot); }
.row__go {
  position: absolute; right: 0; top: 36px; font: 600 var(--t-s) var(--ui); color: var(--hot); opacity: 0; transition: opacity .2s;
}
.row:hover .row__go { opacity: 1; }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row__n { padding: 0; }
  .row__art { height: 160px; justify-content: start; }
  .row__go { display: none; }
}

/* circuit specimen grid */
.specimen {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.spec {
  position: relative; aspect-ratio: 1 / 1.08; padding: 14px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; display: flex; flex-direction: column; justify-content: space-between;
  transition: background .2s;
}
.spec svg { flex: 1; min-height: 0; width: 100%; overflow: visible; }
.spec path { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .15s; }
.spec__name { font: 800 var(--t-s) var(--sans); font-stretch: 115%; text-transform: uppercase; }
.spec__row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.spec:hover { background: var(--bg-2); }
.spec:hover path { stroke: var(--hot); }
.spec .cc { color: var(--mute); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 24px 22px 28px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 22px; }
.step:last-child { border-right: 0; }
.step h4 { margin: 28px 0 8px; font: 800 20px var(--sans); font-stretch: 112%; text-transform: uppercase; }
.step p { margin: 0; color: var(--dim); font-size: 14px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step + .step { padding: 22px 16px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* price table */
.ptable { width: 100%; max-width: 1100px; border-collapse: collapse; font-size: var(--t-m); font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { text-align: left; padding: 16px 24px 16px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.ptable thead th { color: var(--dim); font-size: var(--t-s); padding-top: 0; }
.ptable tbody th { font-weight: 700; white-space: nowrap; }
.ptable tbody th a { text-decoration: none; }
.ptable tbody th a:hover { color: var(--hot); }
.ptable .num { text-align: right; white-space: nowrap; font-weight: 700; }
.ptable td.dim { font-size: var(--t-s); max-width: 380px; }
.tags__note { margin: 24px 0 0; font-size: var(--t-s); max-width: 720px; }
@media (max-width: 700px) {
  .ptable thead { display: none; }
  .ptable tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ptable th, .ptable td { border: 0; padding: 2px 0; }
  .ptable tbody th { grid-column: 1; grid-row: 1; }
  .ptable td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--dim); }
  .ptable .num { grid-column: 2; grid-row: 1; }
  .ptable td.dim { grid-column: 1 / -1; }
  .lap b { font-size: var(--t-l); }
}
/* about: visible placeholders until real photos exist */
.about__photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; text-align: center; border: 1px dashed var(--hot); color: var(--hot); font-size: var(--t-s); }
.about__photos .ph:first-child { aspect-ratio: auto; }
@media (max-width: 700px) { .about__photos { grid-template-columns: 1fr 1fr; } .about__photos .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
.ptable s { color: var(--mute); }
.ptable-wrap { overflow-x: auto; }

/* faq */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 700 18px var(--sans); font-stretch: 108%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 24px var(--ui); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--hot); }
.faq details p { margin: 0 0 22px; color: var(--dim); max-width: 680px; }

/* soon strip */
.soon {
  display: flex; gap: 40px; align-items: baseline; flex-wrap: wrap;
  padding: 26px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2);
}
.soon b { font: 900 22px var(--sans); font-stretch: 115%; text-transform: uppercase; }

/* footer */
.ftr { padding: 48px var(--gut) 32px; border-top: 1px solid var(--line); font: 400 var(--t-s)/1.5 var(--ui); color: var(--dim); }
.ftr__row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ftr__who { display: grid; gap: 4px; }
.ftr__who b { color: var(--paper); font-size: var(--t-m); }
.ftr__links { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 32px; align-content: start; }
.ftr a { color: var(--paper); text-decoration: none; }
.ftr a:hover { color: var(--hot); }
.ftr__fine { margin: 32px 0 0; max-width: 760px; color: var(--mute); font-size: var(--t-xs); line-height: 1.6; }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: 100svh; }
.studio__view { position: relative; overflow: hidden; }
.studio__view canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.studio__view canvas:active { cursor: grabbing; }
.studio__hud {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 20px;
  display: flex; justify-content: space-between; gap: 16px; align-items: end; pointer-events: none;
}
.studio__hud .hold { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 13px; pointer-events: auto; }
.studio__title {
  position: absolute; left: var(--gut); top: 92px; pointer-events: none;
  font: 900 clamp(30px, 4vw, 58px)/.9 var(--sans); font-stretch: 118%; text-transform: uppercase; max-width: 60%;
}
.studio__title small { display: block; margin-top: 10px; font: 400 12px var(--ui); color: var(--dim); text-transform: none; }
.studio__busy {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.studio__busy.is-on { opacity: 1; }
.studio__busy span { padding: 8px 14px; background: var(--bg); border: 1px solid var(--line-2); }

.panel {
  border-left: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; min-height: 0; padding-top: 66px;
}
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: 0; padding: 16px 0 14px; cursor: pointer;
  font: 800 13px var(--sans); font-stretch: 115%; text-transform: uppercase; color: var(--dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.is-on { color: var(--paper); border-color: var(--hot); }
.panel__body { flex: 1; overflow-y: auto; padding: 8px 22px 24px; scrollbar-width: thin; }
.panel__foot {
  border-top: 1px solid var(--line); padding: 16px 22px; display: flex; gap: 14px; align-items: center; justify-content: space-between;
}
.price { font: 900 26px var(--sans); font-stretch: 112%; }
.price small { display: block; font: 400 12px var(--ui); color: var(--dim); }

.fld { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fld:last-child { border-bottom: 0; }
.fld > label, .fld > .lbl { display: flex; justify-content: space-between; margin-bottom: 8px; font: 600 13px var(--ui); color: var(--paper); }
.fld > label output, .fld > .lbl output { color: var(--dim); font-weight: 400; font-variant-numeric: tabular-nums; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  flex: 1 0 auto; min-width: 58px; padding: 9px 10px; background: transparent; cursor: pointer;
  border: 1px solid var(--line-2); font: 500 12px var(--ui); color: var(--dim); text-align: center;
}
.seg button small { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.seg button.is-on { border-color: var(--paper); color: var(--paper); background: var(--bg-2); }
.seg button.is-on small { color: var(--dim); }
.seg button:hover { color: var(--paper); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; padding: 0;
  outline-offset: 3px;
}
.sw.is-on { outline: 1.5px solid var(--paper); }
.sw--custom { position: relative; overflow: hidden; background: conic-gradient(#f33, #fd3, #3f6, #3cf, #63f, #f3c, #f33); }
.sw--custom input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; }
.txt {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  font: 400 13px var(--ui); outline: none; border-radius: 0;
}
.txt:focus { border-color: var(--paper); }
.txt + .txt { margin-top: 8px; }
input[type=range] { width: 100%; accent-color: var(--hot); }
.list {
  position: relative;
  max-height: 210px; overflow-y: auto; border: 1px solid var(--line-2); margin-top: 8px; scrollbar-width: thin;
}
.list button {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left;
  font: 700 13px var(--sans); font-stretch: 110%; text-transform: uppercase;
}
.list button span { font: 400 12px var(--mono); color: var(--mute); text-transform: none; }
.list button:hover { background: var(--bg-2); }
.list button.is-on { color: var(--hot); }
.drop {
  display: grid; place-items: center; text-align: center; gap: 6px; padding: 26px 14px;
  border: 1px dashed var(--line-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--hot); background: rgba(255, 79, 31, .05); }
.drop b { font: 800 15px var(--sans); font-stretch: 110%; text-transform: uppercase; }
.note { margin: 10px 0 0; font: 400 13px/1.55 var(--ui); color: var(--dim); }
.note.err { color: var(--hot); }
.note.ok { color: #9be38f; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--paper); text-decoration: underline; cursor: pointer; font: inherit; }

.map { height: 240px; border: 1px solid var(--line-2); position: relative; background: #111; }
.map .leaflet-container { background: #111; }
.leaflet-control-attribution { font: 10px var(--mono) !important; background: rgba(0,0,0,.6) !important; color: #888 !important; }
.leaflet-control-attribution a { color: #bbb !important; }
.map__frame {
  position: absolute; z-index: 500; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 1.5px solid var(--hot); pointer-events: none; box-shadow: 0 0 0 9999px rgba(0,0,0,.35);
}
.map__frame.round { border-radius: 50%; }
.search { display: flex; gap: 6px; margin-bottom: 8px; }
.search .txt { flex: 1; }
.search .btn { height: 40px; padding: 0 14px; }
.avail { display: flex; gap: 10px; align-items: start; margin-top: 10px; font: 400 12px/1.5 var(--ui); }
.avail i { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; background: var(--mute); }
.avail.ok i { background: #6fd65f; }
.avail.part i { background: #f2c33a; }
.avail.no i { background: var(--hot); }

@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; height: auto; }
  .studio__view { height: 62svh; min-height: 380px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); padding-top: 0; }
  .panel__foot { position: sticky; bottom: 0; background: var(--bg); z-index: 5; }
  .studio__title { top: 80px; font-size: 32px; max-width: 80%; }
}

/* ---------- cart ---------- */
.page { padding: 120px var(--gut) 80px; min-height: 80svh; }
.page h1 { margin: 0 0 40px; font: 900 clamp(40px, 7vw, 96px)/.9 var(--sans); font-stretch: 118%; text-transform: uppercase; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.citem { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.citem img { width: 130px; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }
.citem h3 { margin: 0 0 6px; font: 800 20px var(--sans); font-stretch: 112%; text-transform: uppercase; }
.citem ul { list-style: none; margin: 0; padding: 0; font: 400 12px/1.7 var(--ui); color: var(--dim); }
.qty { display: inline-flex; border: 1px solid var(--line-2); margin-top: 12px; }
.qty button { width: 32px; height: 30px; background: none; border: 0; cursor: pointer; }
.qty span { width: 30px; display: grid; place-items: center; font: 500 12px var(--mono); }
.sum { position: sticky; top: 100px; border: 1px solid var(--line-2); padding: 22px; }
.sum div { display: flex; justify-content: space-between; padding: 6px 0; font: 400 13px var(--mono); }
.sum .tot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font: 900 22px var(--sans); font-stretch: 112%; }
.sum .btn { width: 100%; justify-content: center; margin-top: 18px; }
.empty { padding: 60px 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .cart { grid-template-columns: 1fr; }
  .citem { grid-template-columns: 90px 1fr; }
  .citem img { width: 90px; }
  .citem > :last-child { grid-column: 2; }
}

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 120;
  background: var(--paper); color: #000; padding: 12px 18px; font: 500 13px var(--ui);
  opacity: 0; transition: .25s; pointer-events: none; display: flex; gap: 14px; align-items: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #000; font-weight: 600; }

/* darken standard OSM tiles to match the site */
.map--raster .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.78) contrast(1.15); }
/* vector map: OpenFreeMap's light 'positron' style turned dark, same look as the raster fallback */
.map .maplibregl-canvas { filter: invert(1) hue-rotate(180deg) brightness(1.15) contrast(.9) grayscale(1); }
.map { overflow: hidden; }

/* phone hero: model on top, words underneath */
@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; display: block; padding-bottom: 40px; }
  .hero__stage { position: relative; inset: auto; height: 60svh; min-height: 380px; }
  .hero__spec { display: none; }
  .hero__copy { position: relative; left: auto; right: auto; bottom: auto; padding: 0 var(--gut); margin-top: -24px; }
  .hero__copy h1 { font-size: clamp(40px, 11.6vw, 72px); }
  .hero__bar { display: none; }
}

/* maker mode: print-file downloads (studio.html?maker) */
.maker { border-top: 1px dashed var(--line-2); padding: 12px 22px 2px; }
.maker[hidden] { display: none; }
.maker__row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px;  }
.maker__row .dim { text-transform: none; letter-spacing: 0; text-align: right; }
.maker__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.maker__btns .chip { padding: 6px 12px; cursor: pointer; }
.maker__btns .chip[hidden] { display: none; }
.maker .warn { color: #ffb000; }
.citem .mk { display: inline-block; margin-top: 10px; font: 500 12px var(--ui); color: var(--hot); }
.citem h3 a { color: inherit; text-decoration: none; }
.citem h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.citem__img { display: block; }
.citem__img img { transition: opacity .2s; }
.citem__img:hover img { opacity: .8; }

/* circuit panel extras */
.fld--sub { padding-top: 0; margin-top: -6px; }
.pair { display: grid; grid-template-columns: 64px 1fr; gap: 8px; margin-bottom: 8px; }
.pair .txt + .txt { margin-top: 0; }
.txt--no { text-align: center; }
.fld > label.drop { display: grid; justify-content: center; margin-bottom: 0; color: var(--paper); font: inherit; }
.sw--none { background: linear-gradient(135deg, transparent 46%, var(--dim) 47% 53%, transparent 54%) !important; border: 1px solid var(--line-2); }

/* ---------- process: four sectors on one line ---------- */
.laps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.laps::before, .laps::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; }
.laps::before { right: 0; background: var(--line-2); }
.laps::after { width: calc(var(--p, 1) * 100%); background: var(--hot); }
.lap { position: relative; padding: 34px 32px 0 0; }
.lap::before { content: ""; position: absolute; left: 0; top: -7px; width: 2px; height: 16px; background: var(--paper); }
.lap__s { font: 600 var(--t-s) var(--sans); color: var(--hot); font-variant-numeric: tabular-nums; }
.lap b { display: block; margin: 16px 0 8px; font: 800 var(--t-xl)/1.05 var(--sans); font-stretch: 112%; }
.lap p { margin: 0; color: var(--dim); max-width: 26ch; }
@media (max-width: 860px) {
  .laps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .lap { padding-right: 16px; }
}

/* ---------- prices: three big tags ---------- */
.tags { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tag-p {
  display: flex; flex-direction: column; gap: 10px; padding: 30px 28px 32px; text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s;
}
.tag-p__name { font: 800 15px var(--sans); font-stretch: 112%; text-transform: uppercase; }
.tag-p__price { margin: 18px 0 8px; font: 900 clamp(76px, 10vw, 168px)/.8 var(--sans); font-stretch: 118%; letter-spacing: -.035em; transition: color .2s; }
.tag-p__price small { font: 500 13px var(--mono); letter-spacing: 0; vertical-align: top; margin-right: 10px; color: var(--dim); }
.tag-p__was { font-size: 12px; }
.tag-p__was s { color: var(--dim); }
.tag-p:hover { background: var(--bg-2); }
.tag-p:hover .tag-p__price { color: var(--hot); }
.tags__note { margin: 18px 0 0; font-size: 12px; }
@media (max-width: 860px) { .tags { grid-template-columns: 1fr; } }

/* ---------- desktop: bigger sections + scroll animations (phones keep the plain layout) ---------- */
@media (min-width: 861px) {
  .sec { padding: 170px var(--gut); }
  .sec__head { margin-bottom: 80px; }
  .row { min-height: 64vh; padding: 64px 0; }
  .row h3 { font-size: clamp(48px, 7.2vw, 116px); margin-bottom: 18px; }
  .row p { font-size: 17px; max-width: 480px; }
  .row__art { height: 420px; }
  .row__art svg { max-width: 560px; }
}
/* Scroll animations. JS always adds .anim and keeps --p (0..1 scroll progress) up to date;
   the media query decides whether anything moves, so resizing the window switches them on/off. */
@media (min-width: 861px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .anim .reveal { opacity: 0; transform: translateY(70px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); }
  .anim .reveal.is-in { opacity: 1; transform: none; }
  /* headings wipe up out of a mask */
  .anim .sec__head h2 { clip-path: inset(0 0 100% 0); transform: translateY(.6em); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) .1s, transform 1.1s cubic-bezier(.7, 0, .2, 1) .1s; }
  .anim .sec__head.is-in h2 { clip-path: inset(-10% -5% -10% -5%); transform: none; }
  .anim .sec__head.reveal { transform: none; }
  /* product rows: scrubbed by scroll position (--p) */
  .anim .row.reveal { opacity: 1; transform: scale(calc(1 - var(--q, 0) * .05)); }
  .anim .row h3 { transform: translateX(calc((1 - var(--p, 1)) * -12vw)); }
  .anim .row > div:not(.row__art) p, .anim .row__meta { opacity: calc(var(--p, 1) * 1.6 - .5); }
  .anim .row__art { transform: translateY(calc((1 - var(--p, 1)) * 160px)) rotate(calc((1 - var(--p, 1)) * 8deg)); }
  .anim .row__art path { stroke-dasharray: var(--len, 4000px); stroke-dashoffset: calc(var(--len, 4000px) * (1 - var(--d, 1))); }
  /* product rows pin: each fills the screen and stays put while it plays, the next slides over it */
  .anim .row {
    position: sticky; top: 0; height: 100vh; min-height: 0; margin-bottom: 70vh; padding: 90px 0 50px;
    background: var(--bg); border-bottom: 0;
    transform: scale(calc(1 - var(--q, 0) * .05)); transform-origin: 50% 0;
  }
  .anim .row > * { opacity: calc(1 - var(--q, 0) * .75); }
  .anim .row:last-child { margin-bottom: 0; }
  /* sticky can't use its own margin as room, so the last row gets a spacer to stay pinned */
  .anim .rows::after { content: ""; height: 70vh; }
  /* the hero stays put and the page scrolls up over it */
  .anim .hero { position: sticky; top: 0; z-index: 0; }
  .anim .hero__stage { opacity: calc(1 - var(--hs, 0) * .55); }
  .anim main > .sec, .anim .ftr { position: relative; z-index: 1; background: var(--bg); }
  .anim #products { box-shadow: 0 -40px 80px rgba(0, 0, 0, .55); }
  .anim .row__go { top: 96px; }
  /* process: each sector lights up when the red line reaches it */
  .anim .lap { opacity: .18; transform: translateY(24px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .anim .lap.is-lit { opacity: 1; transform: none; }
  .anim .lap::before { transition: background .3s; }
  .anim .lap.is-lit::before { background: var(--hot); }
  /* circuit sheet: cards drop in, staggered */
  .anim .spec { opacity: 0; transform: translateY(40px); transition: opacity .7s, transform .8s cubic-bezier(.2, .7, .2, 1), background .2s; transition-delay: var(--sd, 0s); }
  .anim .spec.is-in { opacity: 1; transform: none; }
  .anim .tag-p:nth-child(2) { transition-delay: .12s; }
  .anim .tag-p:nth-child(3) { transition-delay: .24s; }
  /* hero copy drifts up and fades as you leave the hero */
  .anim .hero__copy { transform: translateY(calc(var(--hs, 0) * -120px)); opacity: calc(1 - var(--hs, 0) * 1.4); }
}

/* studio: we print it / print it yourself */
.panel__foot { flex-wrap: wrap; }
.panel__foot[hidden] { display: none; }
.how { flex-basis: 100%; }
.how button { flex: 1 1 0; }
.panel.is-locked .panel__body { pointer-events: none; opacity: .4; }
.maker--owned { border-top: 1px solid var(--hot); padding-bottom: 18px; }
.maker--owned .maker__btns .chip { padding: 10px 16px; font-size: 12px; }
.maker__help { margin-top: 12px; }
.citem .files-tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--hot); color: var(--hot); font: 500 12px var(--mono); vertical-align: middle; }

/* ---------- checkout (test) ---------- */
.testbar { margin: -24px 0 36px; padding: 10px 14px; border: 1px dashed var(--hot); color: var(--hot); font-size: 12px; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.co fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 22px 0 30px; min-width: 0; }
.co legend { padding: 0; float: left; width: 100%; margin-bottom: 18px; font: 800 18px var(--sans); font-stretch: 112%; text-transform: uppercase; }
.co legend + * { clear: both; }
.f { display: block; margin-bottom: 12px; }
.f > span { display: block; margin-bottom: 6px; font: 500 12px var(--ui); color: var(--dim);  }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f2--zip { grid-template-columns: 130px 1fr; }
/* address suggestions */
.ac { position: relative; }
.ac__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 2px 0 0; padding: 4px 0; list-style: none;
  background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0,0,0,.45); max-height: 300px; overflow-y: auto; }
.ac__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; cursor: pointer; font: 400 14px var(--ui); }
.ac__list li span { color: var(--dim); white-space: nowrap; }
.ac__list li:hover, .ac__list li.is-on { background: var(--line); }
select.txt { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay__opt { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line-2); cursor: pointer; position: relative; }
.pay__opt input { position: absolute; opacity: 0; }
.pay__opt:has(input:checked) { border-color: var(--paper); background: var(--bg-2); }
.pay__opt:has(input:focus-visible) { outline: 2px solid var(--hot); }
.pay__opt span { font-size: 12px; }
.chk { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-bottom: 14px; font-size: 13.5px; cursor: pointer; }
.chk input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--hot); }
.chk a, .co .note a { color: var(--paper); }
.co__sum .btn { margin-top: 14px; }
.co__lines { margin-bottom: 12px; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.co-line img { width: 52px; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }
.co-line b { display: block; font: 700 13px var(--sans); text-transform: uppercase; }
.co-line .mono { font-size: 12px; }
.sum .co__lines { display: block; padding: 0; }
.sum .co-line { display: grid; font: inherit; padding: 8px 0; justify-content: stretch; }
.sum .co-line > div { display: block; padding: 0; font: inherit; }
.sum .co-line .mono { font-size: 12px; }
.done { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.done__id { color: var(--hot); margin: 0 0 10px; }
.done__lead { font-size: 18px; margin: 0 0 40px; max-width: 46ch; }
.done h2 { margin: 30px 0 8px; font: 900 28px var(--sans); font-stretch: 115%; text-transform: uppercase; }
.done h2 + p { margin: 0 0 18px; max-width: 60ch; }
.done__files { display: grid; gap: 8px; }
.done__file { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 16px 10px 10px; border: 1px solid var(--line-2); text-decoration: none; transition: border-color .15s; }
.done__file:hover { border-color: var(--hot); }
.done__file img { width: 64px; aspect-ratio: 1; object-fit: cover; }
.done__file b { display: block; font: 800 15px var(--sans); text-transform: uppercase; }
.done__file .arr { font: 500 12px var(--ui); color: var(--hot); }
.done .sum .btn { width: 100%; justify-content: center; margin-top: 18px; }
@media (max-width: 860px) {
  .co, .done { grid-template-columns: 1fr; gap: 24px; }
  .pay { grid-template-columns: 1fr; }
  .f2 { grid-template-columns: 1fr; gap: 0; }
  .f2--zip { grid-template-columns: 110px 1fr; gap: 12px; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 14px; }
.legal .upd { margin: 0 0 44px; }
.legal h2 { margin: 44px 0 12px; font: 800 20px var(--sans); font-stretch: 112%; text-transform: uppercase; }
.legal h3 { margin: 24px 0 8px; font: 700 15px var(--sans); }
.legal p, .legal li { color: #c9c8c0; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--paper); }
.legal mark { background: rgba(255, 79, 31, .16); color: var(--hot); padding: 0 4px; }
.legal .fill { margin: 0 0 32px; padding: 12px 14px; border: 1px dashed var(--hot); font: 400 12px/1.6 var(--ui); color: var(--hot); }
.legal table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal td, .legal th { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); color: #c9c8c0; }
.legal th { font: 500 12px var(--ui); color: var(--dim);  }
.tabs[hidden] { display: none; }
.seg--font button { font-size: 20px; line-height: 1.1; min-width: 0; flex: 1 0 28%; text-transform: none; }
.seg--font button small { font: 400 12px var(--ui); }

/* ---------- shop: ready-made designs ---------- */
.shop__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.shop__intro h1 { margin: 0; }
.shop__terms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--t-s); color: var(--dim); }
.shop__terms li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--hot); vertical-align: 2px; }

/* product photos: renders on a lit backdrop, cropped to the model */
.ph-shot { position: relative; display: block; overflow: hidden; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer; width: 100%;
  background: radial-gradient(120% 90% at 50% 62%, #2a2a27 0%, #171715 55%, #10100f 100%); }
.ph-shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32) translateY(-7%); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ph-shot:hover img { transform: scale(1.4) translateY(-7%); }
.badge { display: inline-block; padding: 3px 8px; background: var(--paper); color: #000; font: 600 12px var(--ui); }

.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; margin-bottom: 64px; background: var(--bg-2); }
.feat__img { aspect-ratio: 4 / 3; }
.feat__img img { transform: scale(1.22) translateY(-7%); }
.feat__img:hover img { transform: scale(1.27) translateY(-7%); }
.feat__body { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.feat__kick { margin: 0 0 16px; font-size: var(--t-s); color: var(--dim); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feat h2 { margin: 0; font: 900 clamp(40px, 5vw, 72px)/.9 var(--sans); font-stretch: 118%; text-transform: uppercase; }
.feat__txt { margin: 20px 0 24px; max-width: 440px; color: var(--dim); }
.feat__price { margin: 0 0 20px; color: var(--dim); }
.feat__price b { color: var(--paper); font-size: var(--t-xl); font-weight: 800; margin-left: 6px; }

.shop__bar { position: sticky; top: 64px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.shop__tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.shop__tabs button { background: none; border: 0; padding: 8px 12px; font: 600 15px var(--ui); color: var(--dim); cursor: pointer; border-bottom: 2px solid transparent; }
.shop__tabs button span { font-weight: 400; color: var(--mute); font-variant-numeric: tabular-nums; margin-left: 4px; }
.shop__tabs button:hover { color: var(--paper); }
.shop__tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--hot); }
.shop__sort { display: flex; align-items: center; gap: 10px; font-size: var(--t-s); color: var(--dim); }
.shop__sort select { background: var(--bg); color: var(--paper); border: 1px solid var(--line-2); padding: 8px 10px; font: 500 13px var(--ui); border-radius: 0; }
.shop__note { margin: 20px 0 0; max-width: 620px; font-size: var(--t-s); min-height: 1px; }

.shop__grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 20px; }
.pt { position: relative; display: flex; flex-direction: column; }
.pt__img .badge { position: absolute; top: 12px; left: 12px; }
.pt__body { padding-top: 14px; }
.pt__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pt h3 { margin: 0; font: 800 var(--t-l)/1.15 var(--sans); font-stretch: 112%; text-transform: uppercase; }
.pt h3 button { all: unset; cursor: pointer; }
.pt h3 button:hover, .pt h3 button:focus-visible { color: var(--hot); }
.pt__price { white-space: nowrap; font-size: var(--t-s); color: var(--dim); font-variant-numeric: tabular-nums; }
.pt__price b { color: var(--paper); font-size: var(--t-m); }
.pt p { margin: 4px 0 0; font-size: var(--t-s); }
/* quick add: slides up over the photo on hover, always there on touch screens */
.pt__media { position: relative; }
.pt__media .badge { position: absolute; top: 12px; left: 12px; pointer-events: none; }
.pt__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 42px;
  border: 0; background: var(--paper); color: #000; font: 600 13px var(--ui); cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .25s cubic-bezier(.2, .7, .2, 1), background .15s;
}
.pt__add:hover { background: var(--hot); }
.pt:hover .pt__add, .pt__add:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .pt__add { opacity: 1; transform: none; } }

.shop__own { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap;
  margin-top: 96px; padding: 40px clamp(24px, 4vw, 48px); background: var(--bg-2); }
.shop__own h2 { margin: 0 0 8px; font: 800 var(--t-xl)/1.1 var(--sans); font-stretch: 112%; }
.shop__own p { margin: 0; max-width: 520px; }

/* product window */
.qv { width: min(1040px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; background: var(--bg); color: var(--paper); overflow: auto; }
.qv[open] { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); animation: qv-in .28s cubic-bezier(.2, .7, .2, 1); }
.qv::backdrop { background: rgba(0, 0, 0, .72); animation: qv-fade .28s ease; }
@keyframes qv-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes qv-fade { from { opacity: 0; } }
.qv__img { cursor: default; aspect-ratio: auto; min-height: 100%; }
.qv__img img { position: absolute; inset: 0; transform: scale(1.3) translateY(-6%); }
.qv__img:hover img { transform: scale(1.3) translateY(-6%); }
.qv__body { position: relative; padding: 32px; }
.qv__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; color: var(--paper); font-size: 28px; cursor: pointer; }
.qv__x:hover { color: var(--hot); }
.qv h2 { margin: 0; font: 900 clamp(32px, 4vw, 48px)/.95 var(--sans); font-stretch: 118%; text-transform: uppercase; }
.qv h2 + .dim { margin: 8px 0 0; }
.qv__about { margin: 16px 0 8px; font-size: var(--t-s); color: var(--dim); }
.qv__facts { margin: 12px 0 0; font-size: var(--t-s); color: var(--dim); font-variant-numeric: tabular-nums; }
.qv__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.qv__price { font: 800 var(--t-xl) var(--sans); font-variant-numeric: tabular-nums; }
.qv__buy .btn { flex: 1; justify-content: center; max-width: 260px; }
.qv__more { margin: 16px 0 0; font-size: var(--t-s); }
.qv__more a { color: var(--paper); }
.qv .note { margin: 8px 0 0; font-size: var(--t-xs); color: var(--mute); }

@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; }
  .shop__bar { top: 56px; }
  .shop__grid { grid-template-columns: 1fr 1fr; gap: 32px 12px; }
  .pt__add { height: 38px; font-size: 12px; left: 8px; right: 8px; bottom: 8px; }
  .pt__top { flex-direction: column; gap: 2px; }
  .qv[open] { grid-template-columns: 1fr; }
  .qv__img { aspect-ratio: 4 / 3; min-height: 0; }
  .qv__body { padding: 24px 16px; }
}
@media (max-width: 420px) {
  .shop__grid { grid-template-columns: 1fr; }
  .shop__tabs button { padding: 8px; font-size: 14px; }
}

/* ---------- workshop (maker side of orders) ---------- */
.work__top { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin: -16px 0 32px; }
.work__top p { max-width: 62ch; margin: 0; }
.work__top .btn { flex: none; cursor: pointer; }
.wo { border-top: 2px solid var(--line-2); padding: 26px 0 34px; }
.wo[data-status="shipped"] { opacity: .55; }
.wo__head { display: flex; justify-content: space-between; align-items: start; gap: 20px; flex-wrap: wrap; }
.wo__head h2 { margin: 4px 0 6px; font: 900 30px var(--sans); font-stretch: 115%; text-transform: uppercase; }
.wo__head p { margin: 0; }
.wo__id { color: var(--hot); }
.wo__status { flex: none; }
.wo__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; margin-top: 22px; align-items: start; }
.wi { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 18px 0; border-top: 1px solid var(--line); }
.wi:first-child { border-top: 0; padding-top: 0; }
.wi img { width: 150px; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }
.wi h3 { margin: 2px 0 8px; font: 800 20px var(--sans); font-stretch: 112%; text-transform: uppercase; }
.wi p { margin: 0; }
.wi__opts { list-style: none; margin: 0 0 14px; padding: 0; font: 400 12px/1.7 var(--ui); color: var(--dim); }
.wi__parts { border-collapse: collapse; margin: 0 0 14px; font: 400 13px var(--ui); }
.wi__parts td { padding: 5px 18px 5px 0; border-bottom: 1px solid var(--line); }
.wi__parts code { font: 500 12px var(--mono); color: var(--dim); }
.wsw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); vertical-align: -2px; margin-right: 8px; }
.wi__steps { list-style: none; margin: 16px 0 0; padding: 0; }
.wi__steps .chk { margin-bottom: 8px; }
.wi__steps input:checked + span { color: var(--dim); text-decoration: line-through; }
.btn--sm { padding: 9px 14px; font-size: 12px; }
.wo__ship { border: 1px solid var(--line-2); padding: 18px 20px; }
.wo__ship .lbl { display: block; margin: 14px 0 4px; font: 500 11px var(--ui); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.wo__ship .lbl:first-child { margin-top: 0; }
.wo__ship p, .wo__ship address { margin: 0; font-style: normal; font-size: 15px; line-height: 1.5; }
.wo__ship a { color: var(--paper); }
.wo__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 860px) {
  .work__top { flex-direction: column; }
  .wo__body { grid-template-columns: 1fr; }
  .wi { grid-template-columns: 90px 1fr; }
  .wi img { width: 90px; }
}
/* packing slip: only the order being printed, black on white */
@media print {
  body.printing .hdr, body.printing .ftr, body.printing .work__top, body.printing h1, body.printing .wo:not(.is-printing),
  body.printing .wo__status, body.printing .wo__btns, body.printing .wi__steps, body.printing .btn, body.printing .grain { display: none !important; }
  body.printing, body.printing .page { background: #fff !important; color: #000 !important; padding: 0 !important; }
  body.printing .wo { opacity: 1; border: 0; }
  body.printing .dim, body.printing .wi__opts, body.printing code { color: #444 !important; }
  body.printing .wo__ship { border-color: #000; }
  body.printing .wo__ship a { color: #000; }
}
