/* ---------- Font: Neue Haas Grotesk Display Pro, upright ----------
   Roman for regular text, Bold for headings and buttons. Browsers never fake bold or slant.
   Symbols it lacks fall back to the system font. */
@font-face { font-family: "Neue Haas Display"; src: url("fonts/NeueHaasDisplay-Roman.woff2") format("woff2"); font-weight: 100 599; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Haas Display"; src: url("fonts/NeueHaasDisplay-Bold.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }

/* ---------- Theme: change these to restyle the whole site ---------- */
:root {
  color-scheme: dark;
  --bg: #000;
  --bg-raised: #000;
  --surface: #000;
  --ink: #ecebe6;
  --on-ink: #000;
  --muted: #9a9f9c;
  --line: #2a2a2a;
  --accent: #ecebe6;
  --accent-ink: #000;
  --accent-soft: #1a1a1a;
  --code-bg: #1f1f1f;
  --sold: #d0604f;
  --sold-soft: #3a1e1a;
  --low: #e3b664;
  --warn-bg: #3a3017;
  --warn-ink: #f0d58c;
  --radius: 10px;
  --serif: "Neue Haas Display", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --sans: var(--serif);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); letter-spacing: .01em; font-synthesis: none; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }
body > .wrap { width: 100%; }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 2.5rem; }
.section { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 700px) { .section { padding-top: 64px; padding-bottom: 64px; } }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 900px; }
.lede { font-size: 1.125rem; color: var(--muted); }
.empty { padding: 48px 0; color: var(--muted); font-size: 1.1rem; }

/* ---------- header / footer ---------- */
.announce { background: var(--accent-soft); color: var(--ink); text-align: center; font-size: .875rem; padding: 8px 16px; }
.site-header, .admin-header { position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: -.01em; }
.links { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; }
.links a, .linkish { text-decoration: none; font-size: .95rem; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.links a:hover, .links a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; padding: 0 6px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }

/* ---------- buttons / badges / flash ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); border-radius: 999px; padding: 12px 24px; font: 500 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 6px 14px; font-size: .85rem; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--sold); border-color: var(--sold); color: #fff; }
.linkish { background: none; border: 0; cursor: pointer; font: inherit; }
.sq { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.sq:hover:not(:disabled) { border-color: var(--ink); }
.sq:disabled { opacity: .3; cursor: default; }
.sq.danger { color: var(--sold); }
.badge { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--surface); }
.badge.sold { background: var(--sold); color: #fff; }
.badge.low { background: var(--surface); color: var(--low); }
.badge.inline { position: static; display: inline-block; }
.low-text { color: var(--low); font-weight: 500; }
.flashes { padding-top: 16px; position: relative; z-index: 6; }
.flash { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
.flash.error { background: var(--sold-soft); color: var(--sold); }
.demo-note, .demo-banner { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 10px 14px; }
.demo-banner { margin-top: 16px; font-size: .9rem; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero.has-media { height: 78vh; height: 78svh; min-height: 460px; max-height: 900px; background: var(--bg-raised); }
.hero.no-media { padding: 72px 0 40px; text-align: center; }
.hero.no-media .hero-content { max-width: 820px; }
.hero.no-media .actions { justify-content: center; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .45) 40%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .25) 100%); }
.no-media .hero-shade { display: none; }
.hero-content { position: relative; width: 100%; padding-bottom: 72px; }
.hero.has-media .hero-content > * { max-width: 620px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero.has-media .lede { color: #d6d8d5; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 1; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(236, 235, 230, .6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
.hero-wrap { position: relative; }
.no-media + .scroll-cue { display: none; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }
@media (max-width: 599px) { .hero.has-media { height: 72svh; min-height: 420px; } .hero-content { padding-bottom: 76px; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h1, .section-head h2 { margin: 0; }
.more { font-size: .95rem; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 860px) { .strip { grid-template-columns: repeat(6, 1fr); } }
.strip img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; transition: opacity .2s; }
.strip a:hover img { opacity: .85; }
.about-teaser { max-width: 760px; text-align: center; }

/* ---------- product grid ---------- */
.page-head { margin-bottom: 32px; }
.grid.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 32px 24px; }
.card { text-decoration: none; display: block; }
.card-img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4/5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card.is-sold .card-img img { opacity: .55; filter: grayscale(.4); }
.card-body { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.card-body h3 { font-size: 1.05rem; margin: 0; letter-spacing: 0; }
.price { color: var(--muted); white-space: nowrap; }
.noimg { width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, var(--accent-soft), var(--line)); }

/* ---------- product page ---------- */
.product-page { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 860px) { .product-page { grid-template-columns: 1.2fr 1fr; gap: 56px; padding-top: 48px; } .product-info { position: sticky; top: 100px; align-self: start; } }
.main-img img { width: 100%; border-radius: var(--radius); background: var(--surface); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; width: 72px; height: 72px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--ink); }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 16px; }
.price-lg { font-size: 1.4rem; margin-bottom: 8px; }
.availability { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; color: var(--muted); }
.dot { opacity: .5; }
.buy { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; gap: 8px; color: var(--muted); }
select, input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.prose { margin-top: 24px; }
.details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
.ship-note { margin-top: 24px; }

/* ---------- gallery ---------- */
.masonry { columns: 1; column-gap: 16px; }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 960px) { .masonry { columns: 3; } }
.masonry figure { break-inside: avoid; margin: 0 0 24px; }
.masonry .open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.masonry img { width: 100%; border-radius: var(--radius); }
.masonry figcaption { padding-top: 8px; font-size: 1rem; }
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
dialog#lightbox::backdrop { background: rgba(6, 7, 7, .94); }
dialog#lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 6px; margin: 0 auto; }
.lb-text { color: #fff; text-align: center; padding-top: 10px; display: flex; flex-direction: column; }
.lb-text .muted { color: #c9cbc9; }
.close { position: fixed; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* ---------- about ---------- */
.about { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 860px) { .about { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; } }
.about.no-image { grid-template-columns: 1fr; max-width: 760px; }
.about-img img { width: 100%; border-radius: var(--radius); }
.about .prose { margin-top: 0; font-size: 1.05rem; }

/* ---------- cart ---------- */
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-info a { text-decoration: none; }
.cart-qty { grid-column: 2; }
.cart-total { grid-column: 3; grid-row: 1; text-align: right; }
@media (min-width: 600px) { .cart-line { grid-template-columns: 80px 1fr auto 90px; } .cart-qty { grid-column: 3; grid-row: 1; } .cart-total { grid-column: 4; } }
.summary { margin-top: 24px; margin-left: auto; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.summary > div { display: flex; justify-content: space-between; }
.summary .grand { font-weight: 600; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; margin-bottom: 8px; }
.order-items { list-style: none; padding: 0; margin: 24px 0; font-size: 1.1rem; }

/* ---------- admin ---------- */
body.admin { background: var(--bg); }
.admin-header .brand { font-size: 1.2rem; }
.tag { font: 600 .7rem var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--on-ink); padding: 3px 8px; border-radius: 4px; vertical-align: middle; }
.admin h1 { font-size: 2rem; }
form.inline { display: inline; }
.login { max-width: 420px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); }
.stat .num { font-size: 1.9rem; line-height: 1.1; }
.stat .label { color: var(--muted); font-size: .9rem; }
.stat.attention { border-color: var(--accent); background: var(--accent-soft); }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.two-col { display: grid; gap: 16px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 1.4rem; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }

.admin-list { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.admin-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.admin-row .grow { flex: 1 1 200px; min-width: 0; }
.admin-row a { text-decoration: none; }
.thumb-sm { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--accent-soft); flex: none; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.stock-ctl, .row-actions, .tile-actions { display: flex; align-items: center; gap: 6px; }
.stock-ctl form, .row-actions form, .tile-actions form { margin: 0; }
.stock-set input { width: 64px; text-align: center; padding: 6px; }
.hidden-item { opacity: .6; }

.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
.form .help { font-weight: 400; color: var(--muted); font-size: .82rem; }
.form .opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form input[type=file] { background: var(--surface); }
.row3, .row2 { display: grid; gap: 16px; }
@media (min-width: 700px) { .row3 { grid-template-columns: repeat(3, 1fr); } }
.row2 { grid-template-columns: 1fr 1fr; align-items: end; }
.checks { display: flex; gap: 24px; flex-wrap: wrap; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.form > .btn { align-self: flex-start; }
.form.compact { gap: 10px; }
.form.compact input { padding: 7px 10px; }

.img-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.img-tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.img-tile img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 6px; }
.img-tile .badge { top: 14px; left: 14px; }
.img-tile .tile-actions { margin-top: 8px; justify-content: center; }
.danger-zone { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.image-field { display: flex; flex-direction: column; gap: 8px; }
.image-field .label { font-weight: 500; font-size: .95rem; }
.image-field img, .image-field video { max-width: 220px; border-radius: 8px; }

.upload-box { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0 28px; }
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.g-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 6px; }

.tabs { display: flex; gap: 16px; }
.tabs a { text-decoration: none; color: var(--muted); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.orders { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; scroll-margin-top: 90px; }
.order.done { opacity: .65; }
.order-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.order-total { margin-left: auto; font-weight: 600; }
.order ul { margin: 10px 0; padding-left: 18px; }
.order-ship { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 12px; font-size: .9rem; }
.order-ship .label { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.order-ship pre { font: inherit; margin: 0; white-space: pre-wrap; }
@media (min-width: 700px) { .stock-ctl { min-width: 236px; } }
@media (max-width: 599px) {
  .grid.products { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-body { flex-direction: column; gap: 2px; }
  .card-body h3 { font-size: .98rem; }
  .badge { top: 8px; left: 8px; font-size: .64rem; padding: 4px 8px; }
}

/* ==========================================================================
   Frosted glass
   Every frosted surface uses these tokens. Raise --glass alpha for more
   opaque glass, raise the blur values for heavier frost.
   ========================================================================== */
:root {
  --radius: 14px;
  --glass: rgba(34, 34, 34, .34);
  --glass-strong: rgba(18, 18, 18, .58);
  --glass-sheen: linear-gradient(155deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .012) 45%, rgba(255, 255, 255, .03));
  --glass-border: rgba(255, 255, 255, .09);
  --glass-edge: rgba(255, 255, 255, .13);
  --glass-shadow: 0 14px 44px rgba(0, 0, 0, .3);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.07'/></svg>");
}

/* Header: the signature frosted bar */
.site-header, .admin-header {
  background-color: rgba(0, 0, 0, .34);
  background-image: var(--noise), linear-gradient(to bottom, rgba(255, 255, 255, .055), rgba(255, 255, 255, .01));
  -webkit-backdrop-filter: blur(26px) saturate(185%); backdrop-filter: blur(26px) saturate(185%);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 34px rgba(0, 0, 0, .2);
}
.announce { background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-border); }

/* Glass surfaces */
.card, .panel, .stat, .admin-row, .g-card, .order, .img-tile, .summary, .cart, .upload-box, .glass-panel {
  background-color: var(--glass);
  background-image: var(--noise), var(--glass-sheen);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}
.upload-box { border-style: dashed; border-width: 1.5px; border-color: rgba(255, 255, 255, .18); }
.stat.attention { background-color: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.flash, .demo-banner, .demo-note { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: var(--radius); }
.flash { background: rgba(255, 255, 255, .13); }
.flash.error { background: rgba(208, 96, 79, .16); color: #f2a497; }
.demo-note, .demo-banner { background: rgba(227, 182, 100, .13); }

/* Product cards: frosted frame around the photo */
.card { padding: 10px; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 22px 54px rgba(0, 0, 0, .38); }
.card-img { border-radius: calc(var(--radius) - 5px); background: rgba(255, 255, 255, .03); }
.card-body { padding: 12px 6px 4px; }

/* Frosted badges and buttons sit over photos and video */
.badge { background: rgba(0, 0, 0, .42); color: var(--ink); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); }
.badge.sold { background: rgba(208, 96, 79, .58); color: #fff; border-color: rgba(255, 180, 165, .35); }
.badge.low { color: var(--low); }
.btn { background: rgba(236, 235, 230, .94); border-color: rgba(255, 255, 255, .6); box-shadow: 0 6px 22px rgba(0, 0, 0, .22); }
.btn.ghost { background: rgba(255, 255, 255, .07); color: var(--ink); border-color: rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.ghost:hover { background: rgba(255, 255, 255, .13); opacity: 1; }
.btn.danger { background: rgba(208, 96, 79, .85); border-color: rgba(255, 180, 165, .4); }
.sq { background: rgba(255, 255, 255, .05); border-color: var(--glass-border); }
select, input, textarea { background: rgba(255, 255, 255, .045); border-color: var(--glass-border); }
.form input[type=file] { background: rgba(255, 255, 255, .045); }
.count { box-shadow: 0 0 12px rgba(255, 255, 255, .5); }

/* Home: the video runs up under the frosted header */
.home .hero.has-media { margin-top: calc(-1 * var(--header-h, 0px)); height: calc(76svh + var(--header-h, 0px)); max-height: calc(900px + var(--header-h, 0px)); }
@media (max-width: 599px) { .home .hero.has-media { height: calc(70svh + var(--header-h, 0px)); } }

/* Frost that rises over the video as you scroll (--p goes 0 → 1, set by script) */
.hero-frost { position: absolute; inset: 0; pointer-events: none;
  --edge: calc(24% + var(--p, 0) * 118%);
  background-color: rgba(0, 0, 0, calc(.1 + var(--p, 0) * .42));
  background-image: var(--noise), linear-gradient(to top, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--edge) - 34%), transparent var(--edge));
  mask-image: linear-gradient(to top, #000 calc(var(--edge) - 34%), transparent var(--edge)); }
.no-media .hero-frost { display: none; }
.hero-content { opacity: calc(1 - var(--p, 0) * 1.7); transform: translate3d(0, calc(var(--p, 0) * -36px), 0); will-change: opacity, transform; }
.scroll-cue { opacity: calc(1 - var(--p, 0) * 4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(255, 255, 255, .06); }

/* Home sections as glass panels */
.strip { padding: 10px; }
.strip img { border-radius: 9px; }
.about-teaser { padding: 40px 28px; }
@media (min-width: 700px) { .about-teaser { padding: 56px 48px; } }

/* Product page: frosted info column */
@media (min-width: 860px) { .product-info { padding: 28px; } }
.main-img img { border-radius: var(--radius); }
.thumb { border-radius: 10px; }

/* Cart */
.cart { padding: 4px 20px; }
.cart-line:last-child { border-bottom: 0; }
.cart-line { border-bottom-color: var(--glass-border); }
.summary { padding: 20px; }

/* Gallery: frosted caption over each photo */
.masonry figure { position: relative; }
.masonry figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 9px 14px; border-radius: 10px; pointer-events: none;
  background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
dialog#lightbox::backdrop { background: rgba(8, 9, 9, .55); -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%); }

/* Footer: a frosted base */
.site-footer { background-color: var(--glass-strong); background-image: var(--noise), var(--glass-sheen); border-top: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-edge); }

/* Browsers without backdrop blur get more solid glass so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header, .admin-header { background-color: rgba(0, 0, 0, .9); }
  .badge, .masonry figcaption { background-color: rgba(0, 0, 0, .78); }
  .hero-frost { background-color: rgba(0, 0, 0, calc(.4 + var(--p, 0) * .5)); }
}
@media (min-width: 860px) {
  .product-info { background-color: var(--glass); background-image: var(--noise), var(--glass-sheen); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow); }
}
.about-teaser { margin: 0 auto; }
/* Melt the bottom of the video into the page instead of ending on a hard line */
.hero.has-media { background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), rgba(0, 0, 0, .55) calc(100% - 45px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 110px), rgba(0, 0, 0, .55) calc(100% - 45px), transparent); }
.masonry figcaption .muted { color: #c9cdca; }

/* ==========================================================================
   Minimal: small uppercase type, square edges, fewer frills.
   --fs is the base text size; --fs-ui is labels, nav, buttons and prices.
   ========================================================================== */
:root { --radius: 2px; --fs: 13px; --fs-ui: 11px; --track: .07em; }
body { font-size: var(--fs); line-height: 1.45; letter-spacing: .012em; }
h1, h2, h3 { text-transform: uppercase; letter-spacing: .005em; line-height: 1.1; }
h1 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h2, h3 { font-size: var(--fs); }
.lede, .about .prose { font-size: var(--fs); }
.small, .back, .more, .availability, .price, .card-body h3, .links a, .linkish, .announce,
.btn, .badge, .tabs a, .footer-links, .site-footer .brand, .masonry figcaption, .stat .label, .order-ship .label {
  font-size: var(--fs-ui); text-transform: uppercase; letter-spacing: var(--track); }
.empty { font-size: var(--fs); }

/* Header */
.nav { min-height: 50px; padding-top: 6px; padding-bottom: 6px; }
.brand { font-size: 15px; letter-spacing: 0; }
.links { gap: 4px 18px; }
.links a, .linkish { border-bottom: 0; padding: 2px 0; }
.links a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.announce { padding: 6px 16px; }

/* Spacing */
.section { padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 700px) { .section { padding-top: 44px; padding-bottom: 44px; } }
.page-head { margin-bottom: 18px; }
.section-head { margin-bottom: 12px; align-items: center; }

/* Buttons: square outlines */
.btn { border-radius: 0; padding: 10px 18px; box-shadow: none; font-weight: 700; }
.btn.small { padding: 6px 11px; font-size: 10px; }
.btn.ghost { border-color: rgba(236, 235, 230, .55); box-shadow: none; }
.sq { border-radius: var(--radius); width: 30px; height: 30px; font-size: 13px; }
select, input, textarea { border-radius: var(--radius); font-size: var(--fs); }

/* Hero: short, centred */
.hero.has-media .hero-content { text-align: center; padding-bottom: 104px; }
.hero.has-media .hero-content > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.hero.has-media .actions { justify-content: center; }
.hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
.hero .lede { margin-bottom: 14px; }
.hero .lede p { margin: 0; }

/* Glass, flattened: square, no drop shadows */
.card, .panel, .stat, .admin-row, .g-card, .order, .img-tile, .summary, .cart, .upload-box, .glass-panel, .product-info,
.flash, .demo-banner, .demo-note { border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.card { padding: 0; overflow: hidden; background-color: rgba(34, 34, 34, .22); }
.card:hover { transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.card-img { border-radius: 0; }
.card:hover .card-img img { transform: scale(1.02); }
.card-body { padding: 9px 10px 10px; gap: 8px; }
.card-body h3 { margin: 0; line-height: 1.25; }
.grid.products { gap: 12px; }
@media (max-width: 599px) { .grid.products { gap: 8px; } .card-body h3 { font-size: 10px; } }
.badge { border-radius: 0; font-size: 9.5px; padding: 3px 7px; top: 8px; left: 8px; letter-spacing: .1em; }

/* Home panels */
.strip { padding: 4px; gap: 4px; }
.strip img { border-radius: 0; }
.about-teaser { padding: 28px 22px; }
@media (min-width: 700px) { .about-teaser { padding: 40px; } }
.about-teaser h2 { margin-bottom: 10px; }

/* Product page */
.product-page { gap: 24px; }
@media (min-width: 860px) { .product-page { gap: 32px; } .product-info { padding: 22px; } }
.main-img img, .masonry img, .about-img img { border-radius: 0; }
.thumb { border-radius: 0; width: 56px; height: 56px; border-width: 1px; }
.product-info h1 { margin-bottom: 6px; }
.price-lg { font-size: var(--fs); margin-bottom: 6px; }
.availability { margin-bottom: 16px; }
.details { margin-top: 18px; padding-top: 12px; border-top-color: var(--glass-border); }
.details h3 { font-size: var(--fs-ui); letter-spacing: var(--track); color: var(--muted); }
.prose { margin-top: 18px; }

/* Gallery */
.masonry { column-gap: 12px; }
.masonry figure { margin-bottom: 12px; }
.masonry figcaption { left: 8px; right: 8px; bottom: 8px; padding: 6px 9px; border-radius: 0; }

/* Cart */
.cart-line { padding: 12px 0; }
.cart-thumb img { width: 56px; height: 56px; border-radius: 0; }
.summary .grand { font-size: var(--fs); }

/* Footer: one quiet line */
.site-footer { margin-top: 24px; padding: 18px 0; }
.footer-grid { align-items: center; gap: 10px 24px; }
.footer-links { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .brand { font-size: var(--fs-ui); }
.site-footer p { display: none; }

/* Footer: name left, logo centred, links right; stacked and centred on phones */
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; }
.footer-links { justify-content: flex-end; }
.footer-logo { display: block; line-height: 0; }
.footer-logo img, .footer-spin { width: 40px; height: 40px; }
.footer-spin { display: none; background: 0 0 / 3600px 40px no-repeat; }
.footer-logo.spinning img { display: none; }
.footer-logo.spinning .footer-spin { display: block; animation: footer-spin 3s steps(90) infinite; }
@keyframes footer-spin { to { background-position: -3600px 0; } }
@media (max-width: 599px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-logo { order: -1; }
  .footer-links { justify-content: center; }
}

/* Admin keeps slightly larger type for comfortable editing */
body.admin { --fs: 14px; }
.admin h1 { font-size: 1.15rem; }
.panel h2 { font-size: var(--fs-ui); letter-spacing: var(--track); }
.stat .num { font-size: 1.4rem; }
.form label { font-size: var(--fs-ui); text-transform: uppercase; letter-spacing: var(--track); }
.form label input, .form label textarea, .form label select, .form .help, .form .opt, label.check { text-transform: none; letter-spacing: .012em; }
.form label input, .form label textarea, .form label select { font-size: var(--fs); }
.image-field .label { font-size: var(--fs-ui); text-transform: uppercase; letter-spacing: var(--track); }
.tag { border-radius: 0; }
.thumb-sm { border-radius: 0; }
.img-tile img, .g-card img, .image-field img, .image-field video { border-radius: 0; }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
@media (max-width: 599px) { .grid.products { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Shapes: cells are square at their tallest; wide is fine, tall never is.
   Containers report their width (container-type) so images can cap their
   height at that width (100cqw).
   ========================================================================== */
/* Product cards: a square photo with the title on a frosted strip across the bottom */
.card { position: relative; aspect-ratio: 1; }
.card-img { aspect-ratio: 1; height: 100%; }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 8px 10px;
  background: rgba(0, 0, 0, .42); border-top: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
@media (max-width: 599px) { .card-body { flex-direction: row; gap: 6px; padding: 6px 8px; } .price { font-size: 10px; } }

/* Gallery: wide photos keep their shape, tall ones are cropped to a square (the lightbox shows them whole) */
.masonry figure { container-type: inline-size; }
.masonry img { max-height: 100cqw; object-fit: cover; }

/* Product page: the main photo shows the whole piece inside a box no taller than it is wide */
.main-img { container-type: inline-size; background: rgba(255, 255, 255, .025); border: 1px solid var(--glass-border); }
.main-img img { width: 100%; max-height: 100cqw; object-fit: contain; }

/* About page portrait */
.about-img { container-type: inline-size; }
.about-img img { max-height: 100cqw; object-fit: cover; }

/* ==========================================================================
   Motion details (static/motion.js): HUD labels, decoding text, scan reveals
   ========================================================================== */
.fx-label { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 9px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(236, 235, 230, .72); white-space: pre; line-height: 1; }
.fx-cursor { display: inline-block; width: .62em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: fx-blink 1s steps(1) infinite; }
@keyframes fx-blink { 50% { opacity: 0; } }

/* Hero readouts */
.fx-hud { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(1 - var(--p, 0) * 3); }
.fx-plus { position: absolute; font: 300 14px/1 ui-monospace, Menlo, monospace; color: rgba(236, 235, 230, .55); }
.fx-tl, .fx-tr { top: calc(var(--header-h, 0px) + 14px); }
.fx-bl, .fx-br { bottom: 14px; }
.fx-tl, .fx-bl { left: 16px; }
.fx-tr, .fx-br { right: 16px; }
.fx-tc, .fx-go { position: absolute; bottom: 38px; }
.fx-tc { left: 36px; }
.fx-go { right: 36px; animation: fx-blink 2.4s steps(1) infinite; }
@media (max-width: 599px) { .fx-tc, .fx-go { bottom: 74px; } .fx-tc { left: 16px; } .fx-go { right: 16px; } }

/* Section titles */
.fx-index { margin-right: 10px; vertical-align: .2em; color: var(--muted); }
.fx-title { display: inline-block; }

/* Photos: corner marks and stepped scan reveal */
.fx-box { position: relative; display: block; }
.fx-corners { position: absolute; inset: 8px; z-index: 1; pointer-events: none; color: rgba(255, 255, 255, .8);
  background:
    linear-gradient(currentColor, currentColor) top left / 9px 1px, linear-gradient(currentColor, currentColor) top left / 1px 9px,
    linear-gradient(currentColor, currentColor) top right / 9px 1px, linear-gradient(currentColor, currentColor) top right / 1px 9px,
    linear-gradient(currentColor, currentColor) bottom left / 9px 1px, linear-gradient(currentColor, currentColor) bottom left / 1px 9px,
    linear-gradient(currentColor, currentColor) bottom right / 9px 1px, linear-gradient(currentColor, currentColor) bottom right / 1px 9px;
  background-repeat: no-repeat; opacity: 0; transition: inset .24s steps(3), opacity .24s steps(3); }
.fx-box:hover .fx-corners, a:hover > .fx-box .fx-corners, .card:hover .fx-corners { opacity: 1; inset: 16px; }
.fx-tag { position: absolute; top: 28px; right: 32px; z-index: 2; color: #fff; clip-path: inset(0 100% 0 0); transition: clip-path .3s steps(10); }
.card:hover .fx-tag { clip-path: inset(0); }
.fx-reveal { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; background: var(--bg); }

/* Scroll meter */
.fx-meter { position: fixed; right: 12px; top: 50%; height: 140px; width: 22px; margin-top: -70px; z-index: 9; pointer-events: none; }
.fx-meter::before { content: ""; position: absolute; right: 0; top: -6px; bottom: -6px; width: 1px; background: rgba(236, 235, 230, .14); }
@media (hover: hover) and (pointer: fine) { .fx-meter { pointer-events: auto; cursor: pointer; } }
.fx-tick { position: absolute; right: 0; top: 0; width: 6px; height: 1px; background: #ecebe6; opacity: .28;
  transform-origin: 100% 50%; will-change: transform, opacity; }
.fx-pct { position: absolute; right: 30px; top: 0; will-change: transform; }
.fx-off { display: none; }
@media (max-width: 599px) { .fx-meter { display: none; } }


@media (prefers-reduced-motion: reduce) {
  .fx-cursor, .fx-go { animation: none; }
  .fx-corners, .fx-tag { transition: none; }
}
.fx-box .badge { z-index: 2; }

/* ==========================================================================
   Product dossier: catalogue code and spec sheet
   ========================================================================== */
.product-code { display: block; margin-bottom: 8px; color: var(--muted); }
.details h3.fx-label { font-size: 9px; margin-bottom: 10px; }
.spec { margin: 0; display: grid; }
.spec > div { display: grid; grid-template-columns: minmax(84px, 34%) 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--glass-border, var(--line)); }
.spec > div:first-child { border-top: 0; padding-top: 0; }
.spec dt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.spec dd { margin: 0; font-size: var(--fs); }

/* ==========================================================================
   Page transitions (browsers with cross-document view transitions; others just load normally).
   A short crossfade (the browser's default) beneath the header and footer, which hold still.
   ========================================================================== */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
/* The footer holds still too, jumping straight to its new place instead of sliding. */
.site-footer { position: relative; z-index: 10; view-transition-name: site-footer; }
::view-transition-group(site-footer), ::view-transition-new(site-footer) { animation: none; }
::view-transition-old(site-footer) { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* About: full-resolution spin at the foot of the page */
.about-spin { position: relative; width: min(420px, 72vw); aspect-ratio: 1; margin: 8px auto 56px; padding: 0; }
.about-spin img, .about-spin video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.about-spin video.standby { opacity: 0; }
.about-spin.spinning img { opacity: 0; }
