/* DYNAMITIVE storefront. Light paper surfaces, near-black bands, restrained grays.
   Orbitron only for the wordmark and display headlines; Manrope for everything else. */
@font-face { font-family: "Orbitron"; src: url("/static/fonts/orbitron-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url("/static/fonts/orbitron-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #111111;
  --accent: #ff1a1a;
  --ink-2: #1c1c1b;
  --paper: #f4f3ef;
  --surface: #ffffff;
  --line: #e2e0da;
  --line-2: #cfcdc6;
  --text: #161615;
  --muted: #6a6964;
  --muted-2: #9a9893;
  --ok: #2f6b45;
  --warn: #8a5a12;
  --danger: #a3302a;
  --display: "Orbitron", "Eurostile", "Arial Black", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 6px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only, .hp { 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: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(40px, 7vw, 88px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.row { display: flex; align-items: center; }
.gap { gap: 12px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > *, .admin-main > * { min-width: 0; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.text-danger { color: var(--danger); }
.placeholder-text { color: var(--muted); font-style: italic; }

/* Type */
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: .16em; font-size: 17px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.08; font-size: clamp(32px, 5.4vw, 60px); margin: 0 0 18px; text-wrap: balance; }
.h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 24px; text-wrap: balance; }
.h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 0 0 12px; }
.h4 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 56ch; margin: 0 0 28px; }
.lead-sm { font-size: 17px; color: var(--muted); margin: 0 0 16px; }
.more { font-weight: 600; text-decoration: underline; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 20px; margin: 32px 0 10px; }
.prose ul { padding-left: 20px; }
.prose p, .prose li { color: #2b2b29; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r);
  background: var(--ink); color: #fff; border: 1px solid var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: #2a2a29; color: #fff; }
.btn:disabled { background: var(--line-2); border-color: var(--line-2); color: #fff; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-invert:hover { background: #fff; color: var(--ink); }
.btn-ghost-invert { background: transparent; color: var(--paper); border-color: #4a4a48; }
.btn-ghost-invert:hover { border-color: var(--paper); color: #fff; background: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* Bars + header */
.testbar { background: #3a3a38; color: #f4f3ef; font-size: 13px; text-align: center; padding: 6px 16px; }
.announce { background: var(--ink); color: var(--paper); font-size: 14px; text-align: center; padding: 9px 16px; border-bottom: 1px solid #2a2a29; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(244, 243, 239, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 22px; height: 22px; flex: none; fill: var(--accent); overflow: visible; }
.mark path { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1.2); }
a.logo:hover .m2 { transform: translate(8%, -8%); }
a.logo:hover .m3 { transform: translate(-8%, 8%); }
.site-nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--text); padding: 6px 0; }
.site-nav a:hover { text-decoration: underline; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; } .bars::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .no-js .site-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; border: 0; padding: 0; }
}

/* Hero */
.hero { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 8vw, 104px); }
.hero .eyebrow { color: #9a9893; }
.hero .lead { color: #c9c7c1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-visual { min-width: 0; }
.hero-product { display: block; border-radius: var(--r); overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 3; }
.hero-product img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Dock diagram */
.dock-diagram { width: 100%; height: auto; max-width: 100%; }
.dock-diagram .d-desk { fill: none; stroke: currentColor; stroke-width: 2; opacity: .55; }
.dock-diagram .d-rail { fill: currentColor; opacity: .9; }
.dock-diagram .d-slot { fill: var(--ink); }
.hero .dock-diagram .d-slot { fill: var(--ink); }
.dock-diagram .d-mod { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dock-diagram .d-label { fill: currentColor; font: 500 13px var(--sans); opacity: .7; }
.dock-diagram .d-leader { stroke: currentColor; stroke-width: 1; opacity: .5; }
.hero .dock-diagram { color: var(--paper); }
.system-visual .dock-diagram { color: var(--ink); }
.system-visual .d-slot { fill: var(--surface); }

/* Sections */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.system-visual { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
@media (max-width: 860px) { .system-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps h3 { margin: 4px 0 2px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; font: 700 13px var(--display); }
.brand { background: var(--ink); color: var(--paper); }
.brand .eyebrow { color: #9a9893; }
.brand-text { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; margin: 0 0 20px; }
.brand .more { color: var(--paper); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 40px 24px; text-align: center; display: grid; gap: 8px; justify-items: center; background: var(--surface); }
.empty p { margin: 0; }
.empty .btn { margin-top: 10px; }

/* Product cards */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.card-link:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 32px -22px rgba(17, 17, 17, .45); }
.card-link:hover .card-title { text-decoration: underline; }
.card-media { aspect-ratio: 1; background: #ecebe6; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; align-content: start; }
.card-title { font-size: 16px; font-weight: 700; margin: 0; }
.card-tag { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; }
.price { font-weight: 600; }
.avail { font-size: 13px; font-weight: 600; }
.avail-in { color: var(--ok); } .avail-low { color: var(--warn); } .avail-out { color: var(--muted); }
.placeholder { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 1; display: grid; place-items: end start; padding: 12px;
  background: repeating-linear-gradient(135deg, #ecebe6 0 12px, #e7e6e0 12px 24px); color: var(--muted-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* Product page */
.product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.gallery-main { aspect-ratio: 1; background: #ecebe6; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.thumb { padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #ecebe6; cursor: pointer; aspect-ratio: 1; overflow: hidden; width: 100%; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 88px; }
@media (max-width: 860px) { .buybox { position: static; } }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.price-lg { font-size: 24px; font-weight: 700; margin: 0 0 20px; }
.meta-list { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.meta-list > div { display: flex; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.meta-list dt { color: var(--muted); } .meta-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.qty-row .qty { max-width: 120px; }
.buttons .btn { flex: 1 1 160px; }
.shipinfo { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-details { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: 56px; }
@media (max-width: 860px) { .product-details { grid-template-columns: minmax(0, 1fr); } }
.specs { margin: 0; display: grid; }
.specs > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }
.option-groups { display: grid; gap: 16px; }
.option-groups:empty { display: none; }
.opt-group { border: 0; margin: 0; padding: 0; }
.opt-group legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip input:disabled + span { color: var(--muted-2); text-decoration: line-through; cursor: not-allowed; }

/* Forms */
.field { display: grid; gap: 6px; min-width: 0; }
.row > .field { flex: 1 1 200px; }
[hidden] { display: none !important; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field p { margin: 0; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--text); font: 400 16px/1.4 var(--sans); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); }
.field-error { font-size: 14px; color: var(--danger); margin: 0; }
.has-error input { border-color: var(--danger); }
.check { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.fieldset { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 16px; display: grid; gap: 8px; }
.fieldset legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.notice { padding: 12px 16px; border-radius: var(--r); border: 1px solid; font-size: 15px; margin: 0 0 16px; }
.notice-ok { background: #eef5f0; border-color: #c4dccb; color: #1f4a2f; }
.notice-error { background: #f8ecea; border-color: #e6c3bf; color: #6d211c; }
.notice-info { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-wrap { padding-block: clamp(32px, 6vw, 72px); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 36px); display: grid; gap: 14px; }
.auth-card p { margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 3vw, 24px); min-width: 0; }
.narrow-panel { max-width: 520px; }

/* Cart */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: minmax(0, 1fr); } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; grid-template-areas: "thumb info qty total" "thumb info remove remove"; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb { grid-area: thumb; width: 88px; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #ecebe6; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .placeholder { padding: 0; }
.cart-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.cart-name { font-weight: 700; text-decoration: none; }
.cart-qty { grid-area: qty; display: flex; gap: 8px; align-items: center; }
.cart-qty input { width: 72px !important; min-height: 40px !important; }
.cart-total { grid-area: total; font-weight: 600; text-align: right; min-width: 90px; }
.cart-remove { grid-area: remove; justify-self: end; }
.js [data-hide-js] { display: none; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb qty total" "thumb remove remove"; }
  .cart-thumb { width: 72px; }
}
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 16px; position: sticky; top: 88px; }
@media (max-width: 900px) { .summary { position: static; } }
.summary p { margin: 0; }
.sum { margin: 0; display: grid; gap: 8px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); } .sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 18px; }
.sum-total dt { color: var(--text); }
.discount-form { display: grid; gap: 6px; }
.discount-form .row { gap: 8px; }
.discount-form input { min-height: 40px !important; text-transform: uppercase; }
.ship-form { display: grid; gap: 6px; }
.ship-form .row { gap: 8px; }
.ship-form select { flex: 1; min-height: 40px; }

/* Tables, account, admin */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-form input { min-height: 38px !important; padding: 6px 8px !important; min-width: 80px; }
.details { max-width: 360px; overflow-wrap: anywhere; }
.table .small { white-space: nowrap; }
.table td.details { white-space: normal; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #ecebe6; white-space: nowrap; }
.status-paid, .status-manufacturing, .status-packed { background: #f3ead9; color: #6a4510; }
.status-shipped, .status-completed { background: #e3efe6; color: #234a31; }
.status-refunded, .status-failed, .status-expired { background: #efe6e5; color: #6d211c; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #ecebe6; color: var(--text); }
.pill-ok { background: #e3efe6; color: #234a31; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 10px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.account-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .account-cols, .admin-cols { grid-template-columns: minmax(0, 1fr); } }
.list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.addr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.addr-list li { border-bottom: 1px solid var(--line); padding-bottom: 12px; display: grid; gap: 8px; justify-items: start; }
address { font-style: normal; line-height: 1.5; }
.timeline { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.errorpage { padding-block: clamp(56px, 10vw, 120px); }

.admin { padding-block: 32px 64px; }
.admin-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-nav { display: grid; gap: 2px; position: sticky; top: 88px; }
.admin-nav a { padding: 9px 12px; border-radius: var(--r); text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.admin-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.admin-nav a:hover:not([aria-current="page"]) { background: var(--surface); color: var(--ink); }
.admin-main { min-width: 0; display: grid; gap: 16px; align-content: start; }
@media (max-width: 860px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .admin-nav a { white-space: nowrap; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 4px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; color: var(--muted); }
.variant-list, .image-admin { display: grid; gap: 12px; }
.variant-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.variant-row p { grid-column: 1 / -1; margin: 0; }
.image-admin { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.image-row { display: grid; gap: 10px; }
.image-row img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #ecebe6; }
.filters { align-items: end; }
.filters .field { flex: 0 1 260px; }

/* Footer */
.site-footer { background: var(--ink); color: #c9c7c1; padding-block: 56px 28px; margin-top: 0; }
.site-footer a { color: #e9e7e1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand .wordmark { color: var(--paper); }
.footer-brand p { max-width: 34ch; font-size: 14px; }
.footer-col { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer-col h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8d8b86; margin: 0 0 4px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2c2c2a; font-size: 13px; color: #8d8b86; }
.site-footer .muted { color: #8d8b86; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Motion: opening animation, hero entrance, scroll reveals. All of it is skipped with reduced motion. */
.intro { display: none; }
html.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--ink); cursor: pointer;
  animation: intro-out .75s cubic-bezier(.7, 0, .2, 1) 1.6s forwards; }
html.intro-on .intro.done { display: none; }
html.intro-on .intro.skip { animation-delay: 0s; animation-duration: .4s; }
.intro-inner { display: grid; justify-items: center; gap: 26px; }
.intro .mark { width: clamp(76px, 11vw, 112px); height: auto; }
.intro .mark path { opacity: 0; will-change: transform, opacity; animation: intro-piece .9s cubic-bezier(.16, 1, .3, 1) forwards; }
.intro .m1 { --from: scale(.35) rotate(-35deg); animation-delay: .1s; }
.intro .m2 { --from: translate(70%, -70%) rotate(20deg); animation-delay: .32s; }
.intro .m3 { --from: translate(-70%, 70%) rotate(-20deg); animation-delay: .44s; }
.intro .wordmark { color: var(--paper); font-size: clamp(18px, 2.4vw, 24px); letter-spacing: .24em; margin-right: -.24em; opacity: 0; will-change: transform, opacity;
  animation: intro-word .9s cubic-bezier(.16, 1, .3, 1) .75s forwards; }
@keyframes intro-piece { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
@keyframes intro-word { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }

.hero-copy > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-visual { animation: settle 1.1s cubic-bezier(.2, .8, .2, 1) .1s both; }
html.intro-on .hero-copy > *, html.intro-on .hero-visual { animation-delay: 1.85s; }
html.intro-on .hero-copy > :nth-child(2) { animation-delay: 1.93s; }
html.intro-on .hero-copy > :nth-child(3) { animation-delay: 2.01s; }
html.intro-on .hero-copy > :nth-child(4) { animation-delay: 2.09s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  html.intro-on .intro { display: none; }
  .hero-copy > *, .hero-visual { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .card-link:hover { transform: none; }
}

/* Embedded Stripe checkout */
.checkout-page { max-width: 1120px; padding-top: 40px; padding-bottom: 72px; }
.checkout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.checkout-head .h2 { margin: 0; }
.link-muted { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-muted:hover { color: var(--text); }
.checkout-embed { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-height: 520px; padding: 24px 0; overflow: hidden; }
.checkout-embed > p { padding: 0 24px; }
@media (max-width: 640px) { .checkout-page { padding-top: 24px; } .checkout-embed { border-radius: 8px; padding: 8px 0; } }

/* Our own checkout page */
.checkout-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.checkout-top .h1 { margin: 0; }
.checkout-form { display: grid; gap: 20px; min-width: 0; }
.co-section { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px; display: grid; gap: 16px; }
.co-title { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin: 0 0 4px; padding: 0; font: 700 18px/1.2 var(--sans); }
.co-title + * { clear: both; }
.co-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.co-ship { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--ink); border-radius: var(--r); font-size: 15px; }
.co-secure { margin: 0; }
.payment-element { min-height: 120px; }
.btn-lg { min-height: 54px; font-size: 16px; }
.is-busy { opacity: .85; }
.co-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.co-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.co-thumb { position: relative; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.co-thumb img, .co-thumb .placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.co-qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--muted); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.co-name { display: grid; gap: 2px; font-weight: 600; font-size: 15px; }
.co-price { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .co-section { padding: 16px; } }
@media (max-width: 900px) { .checkout-grid > .summary { order: -1; position: static; } }
