/* Tokens, keyframes and everything utilities can't express. */
:root {
  --page: #0a0a0b;
  --panel: #121214;
  --tile: #1a1a1d;
  --ink: #f3f3ef;
  --muted: #8b8b87;
  --line: #29292d;
  --dim: #55555a;                        /* unavailable options */
  --accent: #00a3e2;
  --bar-bg: rgba(18, 18, 20, 0.9);       /* header bar over content */
  --bar-bg-stuck: rgba(10, 10, 11, 0.96);
  --veil: rgba(10, 10, 11, 0.94);        /* caption bars over media */
  --backdrop: rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: 10px;
  --bar: 48px;       /* header bar height */
  --dock: 62px;      /* mobile dock height */
  color-scheme: dark;
}
:root[data-theme='light'] {
  --page: #f5f5f2;
  --panel: #ffffff;
  --tile: #e4e4e0;
  --ink: #0d0d0d;
  --muted: #6c6c68;
  --line: #d6d6d1;
  --dim: #b4b4b0;
  --bar-bg: rgba(255, 255, 255, 0.9);
  --bar-bg-stuck: rgba(255, 255, 255, 0.97);
  --veil: rgba(255, 255, 255, 0.94);
  --backdrop: rgba(20, 20, 20, 0.35);
  color-scheme: light;
}
/* A short cross-fade while the theme switches. */
html.theme-anim, html.theme-anim * { transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease !important; }
@media (min-width: 990px) { :root { --gutter: 12px; } }

html { background: var(--page); }
html.is-locked { overflow: hidden; }
body { background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, video { display: block; }
/* Tailwind's reset stops buttons inheriting case and tracking from a .label parent. */
body button { text-transform: inherit; letter-spacing: inherit; }
.gutter { padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tailwind's reset loads after this file, so headings need the extra specificity. */
body :is(h1, h2, h3, h4) { font-family: 'Space Grotesk', sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.98; }
.h-display { font-size: clamp(38px, 6.4vw, 96px); }
.h-tile { font-size: clamp(34px, 4.4vw, 68px); }
.h-section { font-size: clamp(26px, 2.5vw, 38px); }
.label { font-family: 'Space Mono', monospace; font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.02em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 26px;
  font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid var(--ink); background: var(--ink); color: var(--page);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--page); border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #000; }
.btn--accent:hover { background: transparent; color: var(--accent); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn--lg { height: 46px; }
.ulink { font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size 0.4s var(--ease), color 0.3s ease; }
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent); }
.sq-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--page); color: var(--ink); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s ease; }
.sq-btn:hover { background: var(--ink); color: var(--page); }
.sq-btn:disabled { opacity: 0.3; pointer-events: none; }
.close-btn svg { transition: transform 0.4s var(--ease); }
.close-btn:hover svg { transform: rotate(90deg); }

/* ---------- Motion: split headings and reveals ---------- */
.js [data-split] .w {
  display: inline-block; opacity: 0; transform: translateY(0.4em); color: var(--accent);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.5s ease;
  transition-delay: calc(var(--i) * 70ms), calc(var(--i) * 70ms), calc(var(--i) * 70ms + 380ms);
}
.js [data-split].is-in .w { opacity: 1; transform: none; color: inherit; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='scale'] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { display: flex; overflow: hidden; white-space: nowrap; }
.marquee__track { display: flex; flex: none; align-items: center; min-width: 100%; animation: marquee var(--dur, 30s) linear infinite; }
.marquee.is-paused .marquee__track, .marquee--hover:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Announcement and header ---------- */
.announce { height: 30px; background: #000; color: #f3f3ef; border-bottom: 1px solid var(--line); }
.header { position: sticky; top: 0; z-index: 40; height: 0; }
.header__bar {
  position: absolute; top: 10px; left: var(--gutter); right: var(--gutter); height: var(--bar);
  background: var(--bar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), background-color 0.4s ease;
}
.header.is-hidden .header__bar { transform: translateY(calc(-100% - 24px)); }
.header.is-stuck .header__bar { background: var(--bar-bg-stuck); }
.cell { display: flex; align-items: center; justify-content: center; height: 100%; }
.nav-link { position: relative; display: flex; align-items: center; height: 100%; padding: 0 9px; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 13px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-link:hover::after, .has-mega:hover > .nav-link::after, .has-mega:focus-within > .nav-link::after { transform: scaleX(1); }
.count-box { min-width: 18px; height: 18px; padding: 0 4px; display: inline-grid; place-items: center; background: var(--ink); color: var(--page); font-size: 10px; line-height: 1; transition: background-color 0.3s ease; }
.count-box:not([data-count='0']) { background: var(--accent); color: #000; }

.mega {
  position: absolute; left: -1px; right: -1px; top: 100%; background: var(--panel); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease), visibility 0s 0.45s;
}
.has-mega:hover > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega a.mlink { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--muted); transition: color 0.3s ease, transform 0.4s var(--ease); }
.mega a.mlink:hover { color: var(--accent); transform: translateX(6px); }
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.2s var(--ease); }
.zoom:hover img, .group:hover .zoom img { transform: scale(1.04); }

/* ---------- Section label rows ---------- */
.rowbar { margin-top: -1px; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 46px; padding-inline: var(--gutter); border-block: 1px solid var(--line); }
.tab { color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #000; padding-top: calc(var(--bar) + 20px); }
.hero__stage { position: relative; aspect-ratio: 4 / 5; }
@media (min-width: 750px) {
  .hero { padding-top: 0; }
  .hero__stage { aspect-ratio: auto; height: min(calc(100svh - 30px), 56.25vw); min-height: 420px; }
}
.hero__slide { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease); z-index: 0; }
.hero__slide.is-on { clip-path: inset(0); z-index: 2; }
.hero__slide.is-prev { clip-path: inset(0); z-index: 1; transition: none; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.hero__slide.is-on img { transform: none; }
.hero__copy > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: 0s; }
.hero__slide.is-on .hero__copy > * { opacity: 1; transform: none; transition-delay: calc(0.5s + var(--i, 0) * 90ms); }
.hero__tick { position: relative; width: 34px; height: 3px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.hero__tick::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__tick.is-on::after { animation: tick var(--hold, 6s) linear forwards; }
.hero.is-paused .hero__tick.is-on::after { animation-play-state: paused; }
@keyframes tick { to { transform: scaleX(1); } }

/* ---------- Product rows and cards ---------- */
.prow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.prow::-webkit-scrollbar { display: none; }
.prow > * { flex: 0 0 50%; scroll-snap-align: start; }
.prow--wide > * { flex-basis: 74%; }
@media (min-width: 750px) { .prow > * { flex-basis: 33.3334%; } .prow--wide > * { flex-basis: 40%; } }
@media (min-width: 990px) { .prow > * { flex-basis: 25%; } }
.prow.is-swapping { opacity: 0; transform: translateY(10px); }
.prow { transition: opacity 0.3s ease, transform 0.3s var(--ease); }

.pcard { position: relative; background: var(--tile); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); aspect-ratio: 3 / 4; overflow: hidden; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease), opacity 0.6s ease; }
.pcard__img--alt { opacity: 0; }
.pcard__info { position: absolute; left: 6px; right: 6px; bottom: 6px; background: var(--page); border: 1px solid var(--line); padding: 9px 11px 10px; }
.pcard__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.pcard__more > div { overflow: hidden; min-height: 0; }
.pcard__tag { position: absolute; top: 6px; right: 6px; height: 26px; padding: 0 10px; display: none; align-items: center; background: var(--page); border: 1px solid var(--line); color: var(--ink); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease; }
.pcard__tag:hover { background: var(--ink); color: var(--page); }
.pcard__eye { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--page); border: 1px solid var(--line); }
.badge { position: absolute; top: 6px; left: 6px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; background: var(--accent); color: #000; font-family: 'Space Mono', monospace; font-size: 10px; }
.badge--out { background: var(--page); color: var(--muted); border: 1px solid var(--line); }
.size { min-width: 26px; height: 24px; padding: 0 5px; display: inline-grid; place-items: center; border: 1px solid var(--line); font-family: 'Space Mono', monospace; font-size: 10px; color: var(--ink); transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: var(--page); border-color: var(--ink); }
.size:disabled { color: var(--dim); text-decoration: line-through; pointer-events: none; }
@media (hover: hover) and (min-width: 990px) {
  .pcard__eye { display: none; }
  .pcard__tag { display: inline-flex; }
  .pcard:hover .pcard__img, .pcard:focus-within .pcard__img { transform: scale(1.04); }
  .pcard:hover .pcard__img--alt, .pcard:focus-within .pcard__img--alt { opacity: 1; }
  .pcard:hover .pcard__more, .pcard:focus-within .pcard__more { grid-template-rows: 1fr; }
  .pcard:hover .pcard__tag, .pcard:focus-within .pcard__tag { opacity: 1; transform: none; }
}
.clamp-1 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* ---------- Featured list ---------- */
.frow { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); border-top: 1px solid var(--line); opacity: 0.42; cursor: pointer; transition: opacity 0.4s ease, background-color 0.4s ease; }
.frow:hover { opacity: 0.8; }
.frow.is-active { opacity: 1; background: var(--panel); }
.frow__btn { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.frow__btn > div { overflow: hidden; min-height: 0; }
.frow.is-active .frow__btn { grid-template-rows: 1fr; }
.fimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.05); transition: opacity 0.7s ease, transform 1.1s var(--ease); }
.fimg.is-on { opacity: 1; transform: none; }

/* ---------- Collections list ---------- */
.crow { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px var(--gutter) 12px; border-bottom: 1px solid var(--line); transition: color 0.3s ease, background-color 0.4s ease; }
.crow h3 { font-size: clamp(34px, 5.2vw, 84px); transition: transform 0.5s var(--ease); }
.crow:hover { color: var(--accent); background: var(--panel); }
.crow:hover h3 { transform: translateX(14px); }
.cpeek { position: fixed; left: 0; top: 0; z-index: 30; width: 250px; aspect-ratio: 4 / 5; overflow: hidden; pointer-events: none; border: 1px solid var(--line); background: var(--tile); opacity: 0; clip-path: inset(100% 0 0 0); transition: opacity 0.3s ease, clip-path 0.5s var(--ease); will-change: transform; }
.cpeek.is-on { opacity: 1; clip-path: inset(0); }
.cpeek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.cpeek img.is-on { opacity: 1; }

/* ---------- Lookbook ---------- */
.look { position: relative; border-right: 1px solid var(--line); background: var(--tile); }
.look__media { position: relative; height: min(74vh, 720px); min-height: 420px; overflow: hidden; }
.look__media video, .look__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look__bar { position: absolute; left: 0; right: 0; bottom: 0; background: var(--veil); border-top: 1px solid var(--line); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.acc__body > * { overflow: hidden; min-height: 0; }
.acc.is-open > .acc__body { grid-template-rows: 1fr; }
.acc__chev { transition: transform 0.4s var(--ease); }
.acc.is-open .acc__chev { transform: rotate(180deg); }
@media (min-width: 990px) { .acc--foot > .acc__body { grid-template-rows: 1fr; } .acc--foot .acc__chev { display: none; } .acc--foot > button { pointer-events: none; } }

/* ---------- Instagram strip ---------- */
.ig { position: relative; flex: none; width: clamp(150px, 16.6vw, 290px); aspect-ratio: 1; margin-right: 4px; overflow: hidden; background: var(--tile); }
.ig img, .ig video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.4s ease; }
.ig video { opacity: 0; }
.ig.is-playing video { opacity: 1; }
.ig:hover img { transform: scale(1.04); }
.ig__mark { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; background: rgba(10, 10, 11, 0.8); color: #fff; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s 0.8s; }
.overlay.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.overlay__backdrop { position: absolute; inset: 0; background: var(--backdrop); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity 0.8s var(--ease); }
.overlay.is-open .overlay__backdrop { opacity: 1; }
/* Phones: every panel is a bottom sheet. */
.overlay__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90svh; display: flex; flex-direction: column; background: var(--panel); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform 0.6s var(--ease); }
.overlay.is-open .overlay__panel { transform: none; }
.grab { width: 44px; height: 3px; background: var(--line); margin: 8px auto 0; flex: none; }
@media (min-width: 990px) {
  .grab { display: none; }
  .overlay__panel--side { left: auto; top: 0; width: 420px; max-height: none; border-top: 0; border-left: 1px solid var(--line); transform: translateX(100%); }
  .overlay__panel--modal { left: 50%; top: 50%; right: auto; bottom: auto; width: min(940px, calc(100vw - 48px)); height: min(640px, calc(100svh - 48px)); max-height: none; border: 1px solid var(--line); opacity: 0; transform: translate(-50%, -50%) scale(0.97); transition: transform 0.6s var(--ease), opacity 0.4s ease; }
  .overlay.is-open .overlay__panel--modal { opacity: 1; transform: translate(-50%, -50%); }
}
.panel-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding-inline: 14px; border-bottom: 1px solid var(--line); flex: none; }
.submenu { position: absolute; inset: 0; background: var(--panel); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s 0.5s; }
.submenu.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.menu-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 14px; border-bottom: 1px solid var(--line); font-family: 'Space Grotesk', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: -0.03em; text-align: left; transition: color 0.3s ease, padding-left 0.4s var(--ease); }
.menu-link:hover { color: var(--accent); padding-left: 20px; }
.field { width: 100%; height: 44px; padding: 0 12px; background: var(--page); border: 1px solid var(--line); color: var(--ink); font-size: 14px; outline: none; transition: border-color 0.3s ease; }
.field:focus { border-color: var(--ink); }
.field::placeholder { color: var(--muted); }
.s-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); background: var(--page); transition: border-color 0.3s ease; }
.s-item:hover { border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 34px; }
.qty button { width: 32px; height: 100%; display: grid; place-items: center; transition: background-color 0.3s ease, color 0.3s ease; }
.qty button:hover { background: var(--ink); color: var(--page); }
.qty output { min-width: 28px; text-align: center; font-family: 'Space Mono', monospace; font-size: 12px; }
.qty--lg { height: 46px; }
.qty--lg button { width: 40px; }
.snap-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { flex: none; scroll-snap-align: start; }

/* ---------- Dock, corner card ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--page); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform 0.6s var(--ease); }
.dock.is-on { transform: none; }
.dock__item { position: relative; height: var(--dock); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-right: 1px solid var(--line); font-family: 'Space Mono', monospace; font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease; }
.dock__item:last-child { border-right: 0; }
.dock__item:active { background: var(--ink); color: var(--page); }
.dock__badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 3px; display: grid; place-items: center; background: var(--accent); color: #000; font-size: 9px; line-height: 1; }
.dock__badge[data-count='0'] { display: none; }
.note { position: fixed; z-index: 44; right: var(--gutter); bottom: var(--gutter); width: min(330px, calc(100vw - 2 * var(--gutter))); background: var(--panel); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.6s var(--ease), visibility 0s 0.6s; }
.note.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (max-width: 989px) { .note { bottom: calc(var(--dock) + env(safe-area-inset-bottom) + var(--gutter)); } }

/* ---------- Product description inside quick view ---------- */
.prose p { margin-top: 8px; }
.prose b, .prose strong { font-weight: 500; color: var(--ink); }
.prose ul { list-style: square; padding-left: 18px; margin-top: 8px; }

/* ---------- Theme switch ---------- */
.tswitch { position: relative; width: 26px; height: 14px; border: 1px solid currentColor; flex: none; }
.tswitch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; background: currentColor; transition: transform 0.4s var(--ease); }
[data-theme='light'] .tswitch::after { transform: translateX(12px); }
[data-theme='light'] [data-wordmark] img { filter: invert(1); }

/* ---------- Pages without a hero start below the floating header ---------- */
body:not(.has-hero) main { padding-top: calc(var(--bar) + 20px); }

/* ---------- Collection page ---------- */
.cbanner { position: relative; overflow: hidden; background: var(--panel); min-height: 300px; padding: calc(var(--bar) + 30px) var(--gutter) 18px; display: flex; flex-direction: column; color: #fff; }
.cbanner--plain { color: var(--ink); }
@media (min-width: 750px) { .cbanner { min-height: 370px; } }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(10, 10, 11, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s ease; }
.chip:hover, .chip.is-active { background: #fff; color: #0a0a0b; border-color: #fff; }
.cbanner--plain .chip { border-color: var(--line); background: transparent; }
.cbanner--plain .chip:hover, .cbanner--plain .chip.is-active { background: var(--ink); color: var(--page); border-color: var(--ink); }
.toolbar { position: sticky; top: calc(var(--bar) + 19px); z-index: 20; background: var(--page); transition: top 0.6s var(--ease); }
.bar-hidden .toolbar { top: -1px; }
.select { appearance: none; background: transparent; color: var(--ink); font: inherit; text-transform: inherit; padding-right: 16px; cursor: pointer; outline: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-size: 4px 4px; background-position: right 5px center, right 1px center; background-repeat: no-repeat; }
.select option { background: var(--panel); color: var(--ink); text-transform: none; }
.toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); transition: color 0.3s ease; }
.toggle::before { content: ''; width: 10px; height: 10px; border: 1px solid currentColor; transition: background-color 0.3s ease; }
.toggle:hover, .toggle.is-active { color: var(--ink); }
.toggle.is-active::before { background: var(--accent); border-color: var(--accent); }
.view-btn { width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); transition: color 0.3s ease; }
.view-btn.is-active, .view-btn:hover { color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.pgrid[data-view='wide'] { grid-template-columns: 1fr; }
.pgrid.is-swapping { opacity: 0; transform: translateY(10px); }
@media (min-width: 990px) { .pgrid { grid-template-columns: repeat(4, 1fr); } .pgrid[data-view='wide'] { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product page ---------- */
/* Explicit widths: an image in a flex row won't shrink below its natural width on flex-basis alone. */
.gal > * { flex: none; width: 100%; min-width: 0; scroll-snap-align: start; }
@media (min-width: 750px) { .gal > * { width: 50%; } }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
@media (min-width: 990px) { .prow--six > * { flex-basis: 16.6667%; } }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px var(--gutter); background: var(--page); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.6s var(--ease); }
.buybar.is-on { transform: none; }
@media (max-width: 989px) { .buybar { bottom: calc(var(--dock) + env(safe-area-inset-bottom)); transform: translateY(calc(110% + var(--dock) + env(safe-area-inset-bottom))); } .has-buybar footer > div:last-child { height: calc(var(--dock) + 56px + env(safe-area-inset-bottom)) !important; } }
@media (min-width: 990px) { .has-buybar footer { padding-bottom: 52px; } }
.fact { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }

/* ---------- Policy pages ---------- */
.policy li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px var(--gutter); border-bottom: 1px solid var(--line); }
.policy li > span:first-child { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--accent); padding-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w { opacity: 1; transform: none; color: inherit; }
}
