/* ATOMAT LAB — shop. Paper, ink, one orange. Expanded Archivo for display, mono for data. */

:root {
  --paper: #e4e3dd;
  --stage: #cfcec9;
  --ink: #151515;
  --ink-60: rgba(21, 21, 21, .6);
  --ink-40: rgba(21, 21, 21, .4);
  --ink-12: rgba(21, 21, 21, .12);
  --acc: #ff4a1c;
  --line: 1px solid var(--ink);
  --glass: rgba(236, 235, 229, .55);

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(18px, 3.4vw, 48px);
  --gap: clamp(16px, 1.8vw, 24px);
  --max: 1440px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 8px; top: 8px; color: var(--paper); }

/* ---------------------------------------------------------------- type */
.x { font-family: var(--sans); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
.m { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

h1, h2, h3 { margin: 0; font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: .94; letter-spacing: -.01em; }
h1 { font-size: clamp(42px, 8.4vw, 118px); }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: .01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; }
.mark { background: var(--acc); padding: 0 .1em .06em; display: inline-block; line-height: .9; }

/* ---------------------------------------------------------------- dymo tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px 3px; border-radius: 2px; white-space: nowrap;
}
.tag.acc { background: var(--acc); color: var(--ink); }
.tag.ghost { background: none; color: var(--ink); border: var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- frequency ruler divider */
.ruler { position: relative; height: 22px; border-top: var(--line); margin: 0; }
.ruler i { position: absolute; top: 0; width: 1px; height: 5px; background: var(--ink); }
.ruler i.maj { height: 10px; }
.ruler b {
  position: absolute; top: 11px; font-family: var(--mono); font-size: 9px; font-weight: 400;
  letter-spacing: .04em; white-space: nowrap; color: var(--ink-60);
}
.ruler b.end { transform: translateX(-100%); }
.ruler.light { border-color: var(--ink-12); }

/* ---------------------------------------------------------------- header */
.head-pad { height: 0; }
.head {
  position: sticky; top: 12px; z-index: 40;
  margin: 12px auto 0; width: calc(100% - 2 * var(--pad)); max-width: calc(var(--max) - 2 * var(--pad));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px; padding: 0 14px 0 18px; border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 30px rgba(21, 21, 21, .12);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 40px; height: 40px; animation: spin 20s linear infinite; }
.brand span { font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; gap: 6px; }
.nav a {
  font-stretch: 125%; font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .02em;
  padding: 10px 18px; border-radius: 9px;
}
.nav a:hover { background: rgba(21, 21, 21, .08); color: var(--ink); }
.nav a[aria-current] { background: rgba(21, 21, 21, .9); color: var(--paper); }
.cart-link {
  justify-self: end; display: flex; align-items: center; gap: 11px; padding: 8px 10px 8px 14px; border-radius: 10px;
  font-stretch: 125%; font-weight: 600; font-size: 18px; text-transform: uppercase;
}
.cart-link:hover { background: rgba(21, 21, 21, .08); color: var(--ink); }
.badge {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; background: var(--acc); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-stretch: 100%; font-weight: 700; font-size: 15px;
}
.badge.zero { background: none; border: var(--line); color: var(--ink-60); }
.burger { display: none; background: none; border: var(--line); border-radius: 9px; padding: 9px 13px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; flex-direction: column; padding: 20px var(--pad) 40px;
}
.menu[hidden] { display: none; }
.menu .menu-top { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.menu-close { background: none; border: var(--line); border-radius: 9px; padding: 8px 14px; font-family: var(--mono); font-size: 13px; }
.menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.menu nav a { font-stretch: 125%; font-weight: 800; font-size: clamp(32px, 11vw, 54px); text-transform: uppercase; line-height: 1.1; }
.menu .menu-foot { margin-top: auto; }

/* ---------------------------------------------------------------- turntable stage */
.stage-wrap { position: relative; width: 100%; }
.stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: var(--stage); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.stage::after {
  content: ""; position: absolute; inset: 5%; border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(21, 21, 21, .22); animation: spin 30s linear infinite;
}
.stage > img { position: relative; width: 78%; height: 78%; object-fit: contain; }
/* the rotation loops are encoded square, so they fill the circular stage edge to edge */
.stage > video { position: relative; width: 100%; height: 100%; object-fit: cover; }
.stage.fill > img, .stage.fill > video { width: 100%; height: 100%; object-fit: cover; }
.stage-wrap .stage-tag { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); }
.stage.sm::after { inset: 7%; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .brand img, .stage::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- home hero */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: center; padding: clamp(40px, 7vw, 110px) 0 clamp(32px, 4vw, 56px); }
.hero-copy { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 28px); }
.hero-copy .lead { max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-stage { position: relative; }
.hero-stage .stage { margin-left: auto; max-width: 560px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; border: var(--line); padding: 14px 22px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  background: none; border-radius: 2px;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--acc); border-color: var(--acc); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.big { padding: 18px 28px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- section heads */
.sec { padding: clamp(40px, 5vw, 72px) 0 0; }
.sec-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: baseline; padding-bottom: 14px; }
.sec-head .m { color: var(--ink-60); }

/* ---------------------------------------------------------------- product index rows */
.rows { border-top: var(--line); }
.row {
  display: grid;
  grid-template-columns: 78px 128px minmax(0, 1fr) 232px 104px 168px;
  gap: var(--gap); align-items: center; padding: 16px 0; border-bottom: var(--line);
}
.row-thumb { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: var(--stage); }
.row-thumb img, .row-thumb video { width: 100%; height: 100%; object-fit: cover; }
.row-name { display: flex; flex-direction: column; gap: 5px; }
.row-name .t { font-stretch: 125%; font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); text-transform: uppercase; line-height: 1; }
.row-name .d { font-size: 16px; }
.row-specs { font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--ink-60); }
.row-price { font-stretch: 125%; font-weight: 700; font-size: 24px; }
.row-buy { justify-self: end; }
.row[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  border: var(--line); background: none; border-radius: 2px; padding: 7px 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters .soon { border-style: dashed; opacity: .5; cursor: default; }

/* ---------------------------------------------------------------- generic grids */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.card { border: var(--line); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card .m { color: var(--ink-60); }
.quote { border-left: 2px solid var(--acc); padding-left: 16px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.quote figcaption { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-40); }

/* ---------------------------------------------------------------- product page */
.crumb { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); padding: clamp(28px, 4vw, 56px) 0 18px; }
.prod { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.prod-media { display: flex; flex-direction: column; gap: var(--gap); }
.prod-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.prod-thumbs button { border: var(--line); background: var(--stage); padding: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.prod-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumbs button[aria-current] { outline: 2px solid var(--acc); outline-offset: -2px; }
.prod-copy { display: flex; flex-direction: column; gap: 22px; }
.prod-copy h1 { font-size: clamp(38px, 5.4vw, 74px); }
.buy { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.buy .price { font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 3vw, 40px); }
.note { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--ink-40); text-transform: uppercase; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--ink-12); vertical-align: top; }
.spec-table th { width: 38%; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }
.spec-table td { font-size: 16px; }

.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.gal figure { margin: 0; background: var(--stage); aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal figure:hover img { transform: scale(1.03); }

.sc { border: var(--line); padding: 14px; }
.sc iframe { display: block; width: 100%; height: 420px; border: 0; }
.soon-box { border: 1px dashed var(--ink); padding: 28px; text-align: center; color: var(--ink-40); }

/* ---------------------------------------------------------------- cart */
.cart-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) 118px 96px 32px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: var(--line); }
.line-thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--stage); }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-stretch: 125%; font-weight: 700; font-size: 19px; text-transform: uppercase; }
.qty { display: inline-flex; align-items: center; border: var(--line); border-radius: 2px; }
.qty button { background: none; border: 0; width: 34px; height: 34px; font-size: 17px; line-height: 1; }
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty span { min-width: 34px; text-align: center; font-family: var(--mono); font-size: 14px; }
.line-sum { font-stretch: 125%; font-weight: 700; font-size: 19px; text-align: right; }
.rm { background: none; border: 0; padding: 4px 8px; font-size: 19px; line-height: 1; color: var(--ink-40); }
.rm:hover { color: var(--acc); }
.totals { border: var(--line); padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 16px; position: sticky; top: 112px; }
.totals dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-family: var(--mono); font-size: 13px; }
.totals dt { color: var(--ink-60); }
.totals dd { margin: 0; text-align: right; }
.totals .grand { border-top: var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.totals .grand b { font-stretch: 125%; font-weight: 800; font-size: 30px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); }
.field select {
  font: inherit; font-size: 16px; padding: 13px 12px; border: var(--line); border-radius: 2px;
  background: var(--paper); color: var(--ink); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 13px) 21px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.err { color: var(--acc); font-family: var(--mono); font-size: 12px; }
.err[hidden] { display: none; }
.empty { padding: 40px 0; border-bottom: var(--line); color: var(--ink-60); }

/* ---------------------------------------------------------------- prose (about, policies) */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(20px, 1.9vw, 26px); margin: 2em 0 .7em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(21, 21, 21, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 86vh; width: auto; }
.lb button { position: absolute; background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 2px; padding: 10px 14px; font-family: var(--mono); font-size: 13px; }
.lb button:hover { background: #fff; color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: clamp(56px, 8vw, 110px); padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: 4fr 3fr 3fr 4fr; gap: var(--gap); padding: 28px 0 32px; }
.foot-grid h3 { font-size: 13px; letter-spacing: .1em; font-stretch: 100%; font-family: var(--mono); font-weight: 500; color: var(--ink-60); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 16px; }
.foot-grid a, .foot-note { overflow-wrap: anywhere; }
.foot-note { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: var(--line); }
.pay { display: flex; gap: 16px; align-items: center; }
.pay img { height: 20px; width: auto; opacity: .55; }
.mark-big { width: 100%; max-width: 150px; opacity: .9; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); z-index: 80;
  background: var(--ink); color: var(--paper); padding: 13px 20px; border-radius: 2px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.toast.on { transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .row { grid-template-columns: 64px 104px minmax(0, 1fr) 96px 150px; }
  .row-specs { display: none; }
  .row-thumb { width: 104px; height: 104px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gal, .prod-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .head { height: 66px; padding: 0 10px 0 14px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .brand span { white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 16px; }
  .nav { display: none; }
  .burger { display: block; }
  .cart-link { font-size: 0; gap: 0; padding: 6px; }
  .hero, .prod, .cart-grid, .trio, .duo { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stage .stage { margin: 0 auto; max-width: 420px; }
  .totals { position: static; }
  .sc iframe { height: 340px; }
}

@media (max-width: 620px) {
  .row { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "thumb name" "thumb price" "buy buy"; row-gap: 10px; padding: 18px 0; }
  .row .row-serial { display: none; }
  .row-thumb { grid-area: thumb; width: 72px; height: 72px; }
  .row-name { grid-area: name; }
  .row-price { grid-area: price; font-size: 21px; }
  .row-buy { grid-area: buy; justify-self: stretch; }
  .row-buy .btn { width: 100%; justify-content: center; }
  .gal, .prod-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line { grid-template-columns: 44px minmax(0, 1fr) 30px; grid-template-areas: "thumb name rm" "thumb qty sum" ; row-gap: 8px; }
  .line-thumb { grid-area: thumb; width: 44px; height: 44px; }
  .line-name { grid-area: name; }
  .line-qty { grid-area: qty; }
  .line-sum { grid-area: sum; }
  .rm { grid-area: rm; justify-self: end; }
  .ruler b { font-size: 8px; }
}
