:root {
  --ink: #0b0c0d;
  --coal: #141518;
  --steel: #1d1f23;
  --edge: #2c2f35;
  --mute: #8b9097;
  --paper: #eef0f2;
  --red: #e3241b;
  --red-hot: #ff3b2f;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gut: clamp(16px, 3vw, 40px);
}
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body {
  margin: 0; color: var(--paper); font: 16px/1.55 var(--body); background: var(--ink);
  background-image:
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.2px),
    radial-gradient(rgba(0,0,0,.5) 1px, transparent 1.2px);
  background-size: 5px 5px, 7px 7px; background-position: 0 0, 2px 3px;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--red); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 2px; }

/* header */
.top {
  display: flex; align-items: center; gap: 24px; padding: 14px var(--gut);
  border-bottom: 1px solid var(--edge); background: rgba(11,12,13,.85); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 26px/1 var(--display); letter-spacing: .04em; font-style: italic; }
.brand svg { width: 30px; height: 30px; color: var(--red); }
.brand b { color: var(--red); font-weight: 900; }
.crumbs { font: 500 13px var(--mono); color: var(--mute); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--paper); }
.crumbs i { font-style: normal; color: var(--red); }
.shop { margin-left: auto; font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; border: 1px solid var(--edge); padding: 9px 14px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); background: var(--steel); white-space: nowrap; }
.shop:hover { background: var(--red); border-color: var(--red); }

/* stage: viewer + build panel */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: calc(100vh - 62px); border-bottom: 1px solid var(--edge); }
.stage:fullscreen { grid-template-columns: 1fr 380px; background: var(--ink); }
.viewer { position: relative; min-height: 520px; overflow: hidden; background: #1f2226; touch-action: none; }
.viewer canvas { display: block; position: absolute; inset: 0; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; text-align: center; z-index: 5; background: #17191c; transition: opacity .6s .2s, visibility 0s .8s; font: 500 14px var(--mono); color: var(--mute); }
.loading.done { opacity: 0; visibility: hidden; }
.loading .bar { width: 220px; height: 3px; background: var(--edge); overflow: hidden; }
.loading .bar i { display: block; height: 100%; width: 40%; background: var(--red); animation: slide 1.1s infinite ease-in-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.nojs { position: absolute; inset: 0; display: grid; place-content: center; }

.hud { position: absolute; z-index: 4; display: flex; gap: 8px; }
.hud-tl { top: 16px; left: 16px; flex-direction: column; align-items: flex-start; }
.hud-tr { top: 16px; right: 16px; }
.hud-bl { left: 16px; bottom: 74px; flex-direction: column; align-items: flex-start; gap: 10px; }
.hud-bc { left: 0; right: 0; bottom: 16px; justify-content: center; padding: 0 16px; }
.hud[hidden] { display: none; }
.hint { margin: 0; font: 400 11px var(--mono); color: rgba(238,240,242,.55); text-shadow: 0 1px 2px #000; }
.seg { display: flex; background: rgba(11,12,13,.78); border: 1px solid var(--edge); backdrop-filter: blur(6px); }
.seg button { background: none; border: 0; padding: 9px 14px; font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.seg button[aria-selected="true"] { color: #fff; background: var(--red); }
.ico { display: grid; justify-items: center; gap: 3px; width: 54px; padding: 8px 0 6px; background: rgba(11,12,13,.78); border: 1px solid var(--edge); backdrop-filter: blur(6px); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.ico svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.ico[data-toggle="labels"] svg circle:last-child { stroke-width: 1.6; }
.ico[aria-pressed="true"] { color: #fff; border-color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.ico:hover { color: #fff; }
.ico.busy { opacity: .5; pointer-events: none; }
.views { display: flex; gap: 0; background: rgba(11,12,13,.78); border: 1px solid var(--edge); backdrop-filter: blur(6px); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.views button { background: none; border: 0; border-right: 1px solid var(--edge); padding: 10px 14px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; color: var(--paper); }
.views button:last-child { border-right: 0; }
.views button:hover { background: var(--red); }

.cta-detach { position: relative; border: 0; background: var(--red); color: #fff; font: 900 20px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; padding: 14px 22px 13px 46px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); box-shadow: 0 10px 30px rgba(227,36,27,.35); }
.cta-detach::before { content: ''; position: absolute; left: 20px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-left: 3px solid #fff; border-top: 3px solid #fff; transform: rotate(45deg); transition: transform .3s, margin .3s; }
.cta-detach[aria-pressed="true"]::before { transform: rotate(225deg); margin-top: -14px; }
.cta-detach .lbl-on, .cta-detach[aria-pressed="true"] .lbl-off { display: none; }
.cta-detach[aria-pressed="true"] .lbl-on { display: inline; }
.cta-detach:hover { background: var(--red-hot); }
.scrub { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(11,12,13,.78); border: 1px solid var(--edge); font: 500 11px var(--mono); color: var(--mute); text-transform: uppercase; }
.scrub input { width: 180px; accent-color: var(--red); }

.hotspot { position: relative; pointer-events: auto; background: none; border: 0; padding: 0; transition: opacity .25s; }
.hotspot.hidden { opacity: 0; pointer-events: none; }
.hotspot .dot { display: grid; place-items: center; width: 22px; height: 22px; background: var(--red); color: #fff; font: 700 11px var(--mono); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(227,36,27,.3); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(227,36,27,0); } }
.hotspot .tip { position: absolute; left: 30px; top: 50%; transform: translateY(-50%) translateX(-4px); white-space: nowrap; background: rgba(11,12,13,.92); border-left: 3px solid var(--red); padding: 6px 10px; font: 600 12px var(--body); opacity: 0; pointer-events: none; transition: .2s; }
.hotspot:hover .tip, .hotspot:focus-visible .tip { opacity: 1; transform: translateY(-50%); }

/* build panel */
.panel { padding: 28px 28px 32px; border-left: 1px solid var(--edge); background: linear-gradient(180deg, var(--coal), var(--ink)); overflow-y: auto; max-height: calc(100vh - 62px); position: sticky; top: 62px; }
.kicker { margin: 0 0 8px; font: 600 12px var(--mono); color: var(--red-hot); text-transform: uppercase; letter-spacing: .12em; }
h1 { margin: 0; font: 900 44px/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
h1 small { display: block; margin-top: 8px; font: 600 15px var(--mono); color: var(--mute); letter-spacing: .04em; text-transform: none; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 20px; }
.price { font: 800 38px/1 var(--display); }
.lvl-tag { font: 700 12px var(--mono); padding: 4px 8px; background: var(--red); text-transform: uppercase; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; }
fieldset[hidden], .switch[hidden] { display: none; }
legend { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin-bottom: 10px; padding: 0; }
legend em { font-style: normal; color: #5b6067; margin-left: 6px; }
.lv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lv-grid button { display: grid; gap: 2px; padding: 10px 6px 8px; background: var(--steel); border: 1px solid var(--edge); text-align: center; transition: .15s; }
.lv-grid b { font: 900 26px/1 var(--display); }
.lv-grid span { font: 500 11px var(--mono); color: var(--mute); }
.lv-grid button:hover { border-color: #555; }
.lv-grid button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.lv-grid button[aria-pressed="true"] span { color: #fff; }
.included { margin-bottom: 22px; padding: 16px 18px; border: 1px solid var(--edge); background: rgba(255,255,255,.02); position: relative; }
.included::before { content: ''; position: absolute; left: -1px; top: -1px; width: 40px; height: 3px; background: var(--red); }
.included h2 { margin: 0 0 10px; font: 800 20px var(--display); text-transform: uppercase; }
.included h2 span { color: var(--red-hot); }
.included ul { margin: 0; padding: 0; list-style: none; }
.included li { padding: 6px 0 6px 18px; border-bottom: 1px dashed var(--edge); font-size: 15px; position: relative; }
.included li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 2px; background: var(--red); }
.sheet-btn { margin-top: 12px; background: none; border: 0; padding: 0; font: 600 12px var(--mono); color: var(--mute); text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; }
.sheet-btn:hover { color: #fff; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--edge); background: var(--c); box-shadow: inset 0 0 0 3px var(--ink); }
.swatches button.rgb { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.swatches button[aria-pressed="true"] { border-color: #fff; box-shadow: inset 0 0 0 3px var(--ink), 0 0 14px var(--c, #fff); }
.switch { display: flex; align-items: center; gap: 10px; margin: -4px 0 22px; font: 600 14px var(--body); }
.switch input { width: 18px; height: 18px; accent-color: var(--red); }
.buy { display: flex; justify-content: center; gap: 10px; background: #fff; color: var(--ink); text-decoration: none; font: 900 21px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 17px 18px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: .15s; }
.buy:hover { background: var(--red); color: #fff; }
.fine { margin: 12px 0 0; font: 400 12px var(--mono); color: var(--mute); }

/* strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--edge); }
.strip div { padding: 26px var(--gut); border-right: 1px solid var(--edge); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; font: 900 40px/1 var(--display); text-transform: uppercase; color: var(--red-hot); font-style: italic; }
.strip span { color: var(--mute); font-size: 14px; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(48px, 8vw, 110px) var(--gut); align-items: center; }
.about h2, .compare h2, .gallery h2 { margin: 0 0 18px; font: 900 clamp(36px, 5vw, 62px)/.95 var(--display); text-transform: uppercase; }
.about p { color: #c4c8cd; font-size: 17px; max-width: 60ch; }
.feat { padding: 0; margin: 26px 0 0; list-style: none; display: grid; gap: 12px; }
.feat li { padding-left: 22px; position: relative; color: #b4b9bf; font-size: 15px; }
.feat li::before { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--red); transform: skewX(-18deg); }
.feat b { color: var(--paper); }
.about-fig { margin: 0; position: relative; }
.about-fig img { width: 100%; height: auto; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.about-fig::after { content: ''; position: absolute; right: -10px; bottom: -14px; width: 40%; height: 10px; background: var(--red); transform: skewX(-30deg); }

/* compare */
.compare { padding: 0 var(--gut) clamp(48px, 8vw, 100px); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--edge); }
table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
tbody th { font: 600 12px var(--mono); text-transform: uppercase; color: var(--mute); white-space: nowrap; }
thead th button { background: none; border: 0; padding: 0; font: 900 22px var(--display); text-transform: uppercase; }
td.on, th.on { background: rgba(227,36,27,.12); }
thead th.on button { color: var(--red-hot); }
tbody tr:first-child td { font: 800 20px var(--display); }

/* gallery */
.gallery { padding: 0 var(--gut) clamp(48px, 8vw, 100px); }
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.gal-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { background: var(--steel); border: 1px solid var(--edge); padding: 8px 12px; font: 600 12px var(--mono); text-transform: uppercase; }
.filters button em { font-style: normal; color: var(--mute); margin-left: 6px; }
.filters button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.filters button[aria-pressed="true"] em { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ph { position: relative; padding: 0; border: 1px solid var(--edge); background: #fff; aspect-ratio: 1; overflow: hidden; animation: rise .5s both; animation-delay: var(--d); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; text-align: left; font: 600 12px var(--body); background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; opacity: 0; transition: .25s; }
.ph:hover img { transform: scale(1.05); }
.ph:hover span, .ph:focus-visible span { opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5,6,7,.94); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-content: center; padding: 50px 70px; }
.lightbox img { max-height: calc(100vh - 130px); max-width: min(1400px, calc(100vw - 140px)); width: auto; margin: auto; background: #fff; }
.lightbox figcaption { margin-top: 12px; text-align: center; font: 500 13px var(--mono); color: var(--mute); }
.lb-close, .lb-nav { position: fixed; background: rgba(20,21,24,.9); border: 1px solid var(--edge); color: #fff; font-size: 34px; line-height: 1; width: 48px; height: 48px; }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; margin-top: -24px; } .prev { left: 12px; } .next { right: 12px; }
.lb-nav:hover, .lb-close:hover { background: var(--red); }

.foot { padding: 34px var(--gut); border-top: 1px solid var(--edge); color: var(--mute); font-size: 14px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 70ch; }

@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .viewer { height: 72vh; min-height: 460px; }
  .panel { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--edge); }
  .stage:fullscreen { grid-template-columns: 1fr; }
  .stage:fullscreen .viewer { height: 100vh; }
  .stage:fullscreen .panel { display: none; }
}
@media (max-width: 760px) {
  .crumbs { display: none; }
  .shop { padding: 8px 10px; font-size: 11px; }
  .brand { font-size: 22px; }
  .viewer { height: 78vh; }
  .hud-tl { left: 10px; top: 10px; } .hud-tr { top: auto; bottom: 64px; right: 10px; flex-direction: column; }
  .hud-bl { left: 10px; bottom: 64px; }
  .hud-bc { bottom: 10px; padding: 0 10px; justify-content: flex-start; }
  .hint { display: none; }
  .ico { width: 46px; }
  .scrub input { width: 110px; }
  .cta-detach { font-size: 17px; }
  .seg button { padding: 8px 10px; font-size: 11px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(2) { border-right: 0; }
  .strip div { border-bottom: 1px solid var(--edge); }
  .about { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 38px; }
  .lightbox figure { padding: 60px 10px; }
  .lightbox img { max-width: calc(100vw - 20px); }
  .lb-nav { top: auto; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.seg-light { width: 100%; }
.seg-light button { flex: 1; padding: 10px 8px; font-size: 12px; }
.seg-light button[aria-pressed="true"] { color: #fff; background: var(--red); }
