:root {
  color-scheme: dark;
  --navy: #0a1a2b;
  --panel: #10253a;
  --white: #f5faff;
  --muted: #a9c5d5;
  --cyan: #8be9f6;
  --pink: #fa387f;
  --display: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-family: Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--navy); color: var(--white); }
button, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.masthead { min-height: 76px; padding: 12px clamp(18px, 4vw, 70px); display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--cyan); }
.brand { display: flex; align-items: center; gap: clamp(9px, 2vw, 28px); text-decoration: none; font: italic 900 clamp(23px, 3.4vw, 53px)/1 var(--display); }
.brand span { border-left: 3px solid var(--pink); padding-left: clamp(8px, 1.5vw, 22px); font-size: clamp(10px, 1.6vw, 24px); letter-spacing: .15em; }
.bag-button, .quiet { color: var(--white); background: transparent; border: 1px solid #50798d; padding: 10px 13px; min-height: 44px; white-space: nowrap; font-weight: 700; }
.hero { display: grid; grid-template-columns: minmax(0, 59fr) minmax(0, 41fr); align-items: start; gap: clamp(20px, 3.6vw, 62px); max-width: 1580px; margin: 0 auto; padding: clamp(20px, 3vw, 54px) clamp(16px, 4vw, 64px); }
.gallery { min-width: 0; }
.gallery-stage { position: relative; border: 1px solid #2b4a60; background: #0b1a2a; }
.photo-button { display: block; position: relative; padding: 0; border: 0; background: #0b1a2a; width: 100%; cursor: zoom-in; }
.racer-photo { display: block; width: 100%; height: auto; aspect-ratio: 1.34; object-fit: contain; }
.zoom-label { position:absolute; bottom:12px; right:12px; padding:7px 10px; background:#0a1a2be8; color:var(--white); font-size:.82rem; }
.gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:44px; height:46px; border:1px solid #50798d; background:#0a1a2be8; color:var(--white); font-size:30px; line-height:1; }
.previous { left:10px; }
.next { right:10px; }
.gallery-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:10px; }
.thumbnail { display:grid; gap:5px; min-width:0; padding:4px 4px 7px; border:1px solid #39566b; background:var(--panel); color:var(--white); font-size:clamp(10px,1vw,13px); line-height:1.25; }
.thumbnail img { display:block; width:100%; height:auto; aspect-ratio:1.55; object-fit:cover; }
.thumbnail[aria-pressed="true"] { border-color:var(--cyan); box-shadow:inset 0 -2px var(--cyan); }
.thumbnail:hover, .gallery-arrow:hover { border-color:var(--cyan); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.product { min-width: 0; }
.hero-copy { padding: clamp(18px, 3vw, 51px) 0 24px clamp(18px, 2.4vw, 40px); border-left:1px solid #45798a; }
.series { width: fit-content; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 5px solid var(--pink); font: italic 800 clamp(13px, 1.4vw, 23px)/1.1 var(--display); letter-spacing: .07em; }
h1, h2, .figure-type, .price { font-family: var(--display); font-style: italic; font-weight: 900; }
h1 { margin: 0; font-size: clamp(48px, 5.7vw, 96px); line-height: .95; letter-spacing: -.045em; }
.hero h2 { margin: 7px 0 0; text-transform: uppercase; font-size: clamp(19px, 2.22vw, 38px); line-height: 1.03; }
.price { margin: 23px 0 18px; font-size: clamp(33px, 3.85vw, 66px); line-height: 1; }
.specs { list-style: none; display: flex; width: fit-content; max-width: 100%; margin: 0; padding: 8px 14px; border: 1px solid var(--cyan); font: italic 800 clamp(14px, 1.6vw, 25px)/1.2 var(--display); text-transform: uppercase; }
.specs li + li { border-left: 1px solid var(--cyan); padding-left: 12px; margin-left: 12px; }
.product > p:not(.price, .series, .demo, .figure-type) { line-height: 1.55; margin: 20px 0; }
.cta { text-transform: uppercase; width: 100%; min-height: 53px; padding: 13px 22px; border: 0; border-right: 10px solid var(--pink); background: var(--cyan); color: #091422; font: italic 900 clamp(18px, 2.1vw, 33px)/1 var(--display); }
.cta:hover { background: #baf5ff; }
.cta:disabled { cursor: default; opacity: .48; }
.demo { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.hero .demo { text-align: center; margin: 13px 0 0; text-transform: uppercase; }
.figure { max-width: 1140px; display: grid; grid-template-columns: 1fr 1fr; margin: 0 auto; padding: clamp(28px, 6vw, 88px) 22px; gap: 0; }
.figure-gallery { min-width:0; padding:10px; background:#0b1a2a; border:1px solid #2b4a60; }
.figure-photo { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:contain; background:#0b1a2a; }
.figure-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
.figure-strip .thumbnail { min-height:44px; }
.figure-copy { padding: clamp(24px, 4vw, 52px); background: var(--panel); }
.figure h2 { margin: 0; font-size: clamp(34px, 4vw, 64px); line-height: .95; letter-spacing: -.03em; }
.figure-type { font-size: 22px; text-transform: uppercase; margin: 8px 0 0; color: var(--cyan); }
.figure .price { font-size: clamp(32px, 3vw, 44px); }
.related { max-width: 1500px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 64px) 64px; }
.related h2 { font-size:clamp(36px,5vw,65px); margin:0; line-height:1; }
.related-grid { list-style:none; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(10px,2vw,23px); }
.related-grid li { min-width:0; padding:8px; background:var(--panel); border:1px solid #2b4a60; }
.related-grid img { display:block; width:100%; height:auto; }
.related-grid span { display:block; margin:.65rem 0 .15rem; font-weight:700; font-size:clamp(.78rem,1.3vw,1rem); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #456b7f; padding: 22px clamp(22px, 5vw, 70px); font-weight: 700; }
footer span { color: var(--muted); font-size: .86rem; font-weight: 400; }
dialog { margin: 0 0 0 auto; width: min(480px, 100%); max-width: 100%; max-height: 100%; height: 100%; padding: 24px; border: 0; border-left: 2px solid var(--cyan); color: var(--white); background: var(--navy); overscroll-behavior: contain; }
body:has(dialog[open]) { overflow: hidden; }
dialog::backdrop { background: #050d14be; }
.dialog-header, .subtotal, .line-item, .quantity { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-header h2 { margin: 0; font-size: 34px; }
.line-item, .subtotal { padding: 16px 0; border-bottom: 1px solid #456b7f; }
.line-item small { display: block; margin-top: 5px; color: var(--muted); }
.line-item > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.quantity { flex-shrink: 0; }
.quantity button { padding: 0; width: 44px; }
.subtotal { margin: 8px 0 18px; }
.photo-viewer { width:min(1050px,calc(100% - 20px)); height:auto; max-height:calc(100% - 20px); margin:auto; padding:clamp(12px,2vw,22px); border:1px solid var(--cyan); }
.photo-viewer img { display:block; width:100%; max-height:calc(100dvh - 175px); object-fit:contain; margin:12px auto; }
.viewer-controls { display:flex; justify-content:space-between; gap:8px; }
@media (max-width: 850px) {
  .hero, .figure { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .racer-photo { height: auto; }
  .hero-copy { padding: 20px 4px 12px; border-left:0; }
}
@media (max-width: 600px) {
  .masthead { min-height:64px; padding-inline:14px; gap:8px; }
  .brand { min-width:0; }
  .brand strong { white-space:nowrap; }
  .brand span { letter-spacing:.09em; }
  .hero { gap:14px; }
  .gallery-strip { gap:6px; }
  .thumbnail { min-height:58px; }
  .thumbnail span { text-wrap:balance; }
  .photo-button { touch-action:pan-y pinch-zoom; }
  #bag { width:100%; height:100dvh; padding:16px; border-left:0; }
  .quantity { gap:6px; }
  .viewer-controls button { padding-inline:8px; font-size:.875rem; }
  .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .photo-viewer .dialog-header h2 { font-size:24px; }
}
@media (max-width: 359px) {
  .brand { flex-direction:column; align-items:flex-start; gap:4px; }
  .brand span { border:0; padding-left:0; }
}
