:root {
  --bg: #090d0e;
  --text: #e9ebe7;
  --muted: #949c9a;
  --line: #303737;
  --red: #ff443b;
  --cond: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; font-size: 16px; }
.frame { max-width: 1600px; margin: auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, #markers g:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

header { height: 92px; padding: 0 4%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-size: 22px; font-weight: 600; letter-spacing: -1px; }
.brand em { color: var(--red); font-size: 14px; letter-spacing: -.5px; margin-left: 6px; }
nav { display: flex; gap: 30px; }
nav a, .edition, .mono, .eyebrow, .section-label, .metrics > div > span { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
nav a { font-size: 13px; color: #b9c0bc; }
nav a:hover, footer a:hover { color: var(--red); }
.edition { border: 1px solid var(--line); padding: 8px 12px; }
.red { color: var(--red); }
.muted { color: var(--muted); line-height: 1.8; }

/* ---------- hero ---------- */
.hero {
  padding: 28px 4% 0;
  background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px);
  background-size: 42px 42px;
}
.eyebrow { display: flex; justify-content: space-between; color: var(--muted); }
.title-line { display: flex; justify-content: space-between; margin-top: 35px; }
h1 { font-family: var(--cond); font-size: clamp(80px, 11.5vw, 174px); line-height: .8; letter-spacing: -.025em; margin: 0; font-weight: 800; }
h1 span { display: block; margin-top: 12px; }
h1 i { color: var(--red); font-weight: 800; }
.intro { padding: 10px 0 0; width: 285px; }
.cross { color: var(--red); font-size: 30px; line-height: 1; }
.intro p { line-height: 1.7; font-size: 17px; margin: 16px 0; }
.intro .muted { font-size: 14px; }
.outline { display: flex; align-items: center; justify-content: space-between; border: 1px solid #67716d; padding: 15px 17px; font-size: 14px; margin-top: 24px; }
.outline:hover { background: var(--text); color: var(--bg); }
.outline span { color: var(--red); font-size: 23px; }

/* ---------- drawing / explorer ---------- */
.drawing { margin-top: 40px; padding: 0 0 20px; }
.drawing-top, .drawing-bottom { display: flex; justify-content: space-between; color: #899490; gap: 20px; }
.drawing-top { margin-bottom: 12px; }
.drawing-bottom { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }

.explorer { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); border: 1px solid var(--line); background: var(--bg); }
.stage { position: relative; isolation: isolate; border-right: 1px solid var(--line); overflow: hidden; align-self: start; }
.stage img { display: block; width: 100%; height: auto; mix-blend-mode: screen; }
.view { opacity: 0; transition: opacity .5s; }
.view:not([data-v="main"]) { position: absolute; inset: 0; }
.stage[data-view="main"] .view[data-v="main"], .stage[data-view="front"] .view[data-v="front"],
.stage[data-view="rear"] .view[data-v="rear"], .stage[data-view="interior"] .view[data-v="interior"] { opacity: 1; }
.stage:not([data-view="main"]) { cursor: zoom-out; }
.stage:not([data-view="main"]) #markers { opacity: 0; pointer-events: none; }
.stage:not([data-view="main"]) .axis { display: none; }

.spot { position: absolute; width: 0; height: 0; pointer-events: none; }
.spot b { position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border: 1.5px solid var(--red); border-radius: 50%; animation: pulse 2.2s ease-out infinite; }
.spot b::after { content: ''; position: absolute; inset: 29px; background: var(--red); border-radius: 50%; }
.spot span { position: absolute; left: 22px; top: -30px; white-space: nowrap; font-size: 11px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-left: 2px solid var(--red); padding: 5px 9px; }
.stage.exploded .spot { display: none; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.axis { font-family: monospace; color: var(--muted); position: absolute; bottom: 16px; left: 20px; font-size: 12px; pointer-events: none; }

.tint { position: absolute; border-radius: 50%; mix-blend-mode: multiply; opacity: 0; transition: opacity .4s; pointer-events: none; }
.tint-wheel { background: radial-gradient(closest-side, #7d8288 70%, #fff); }
.tint-seat { background: radial-gradient(closest-side, #ff3a30 55%, #fff); }
.stage[data-wheels="1"] .tint-wheel, .stage[data-seats="1"] .tint-seat { opacity: 1; }

#markers g { cursor: pointer; }
#markers circle { fill: var(--bg); stroke: var(--text); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
#markers .pulse { fill: none; stroke: var(--red); stroke-width: 1; opacity: .7; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
#markers text { font-family: var(--mono); font-size: 17px; text-anchor: middle; fill: var(--text); pointer-events: none; }
#markers g.on circle:not(.pulse), #markers g:hover circle:not(.pulse) { fill: var(--red); stroke: var(--red); }
#markers g.on text, #markers g:hover text { fill: #fff; }
@keyframes pulse { from { transform: scale(.75); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

#markers, .tint { transition: opacity .4s; }
.stage.exploded .view[data-v="front"] { opacity: .16; }
.stage.exploded #markers, .stage.exploded .tint { opacity: 0 !important; pointer-events: none; }

/* exploded engine */
/* grows out of the hood of the front view */
#exploded { pointer-events: none; opacity: 0; transform-origin: 50% 44%; transform: scale(.12); transition: opacity .4s, transform .8s cubic-bezier(.2, .8, .2, 1); }
#exploded * { vector-effect: non-scaling-stroke; }
#exploded .xp { fill: var(--bg); stroke: var(--text); stroke-width: 1.1; stroke-linejoin: round; transition: transform .9s .35s cubic-bezier(.2, .8, .2, 1); }
#exploded .redline { stroke: var(--red); stroke-width: 1.6; }
#exploded .dash { stroke-dasharray: 3 3; fill: none; }
#exploded .cast { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; fill: var(--red); stroke: none; }
#exploded .xl { opacity: 0; transition: opacity .5s; }
#exploded .n { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; fill: var(--muted); }
#exploded .v { font-family: Inter, Arial, sans-serif; font-size: 13px; fill: var(--text); }
.stage.exploded #exploded { opacity: 1; transform: none; }
.stage.exploded #exploded .xp { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
.stage.exploded #exploded .xl { opacity: 1; transition-delay: .6s; }

.back { position: absolute; top: 16px; left: 20px; background: none; border: 1px solid #67716d; color: var(--text); padding: 9px 12px; font-size: 11px; }
.back:hover { background: var(--text); color: var(--bg); }

/* placard */
.topic { padding: 26px 30px 30px; }
.index { display: grid; grid-template-columns: repeat(9, 1fr); border: 1px solid var(--line); margin-bottom: 26px; }
.index button { background: transparent; color: var(--muted); border: 0; border-right: 1px solid var(--line); padding: 11px 0; font: 12px var(--mono); }
.index button:last-child { border-right: 0; }
.index button:hover { color: var(--text); }
.index button.on { color: var(--red); background: #171d1c; box-shadow: inset 0 2px 0 var(--red); }

#card .no { font: 12px var(--mono); letter-spacing: .04em; color: var(--red); margin: 0; text-transform: uppercase; }
#card h2 { font-family: Inter, Arial, sans-serif; font-weight: 500; font-size: 26px; letter-spacing: 0; text-transform: none; line-height: 1.2; margin: 16px 0 4px; }
#card .sub { font: 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
#card .txt { color: var(--muted); line-height: 1.75; font-size: 14.5px; margin: 0 0 18px; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.opts button, .listen { font: 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid #67716d; background: transparent; color: var(--text); padding: 10px 12px; display: inline-flex; align-items: center; gap: 8px; }
.opts button i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--muted); }
.opts button.on { border-color: var(--red); color: var(--red); }
.listen:hover, .listen.playing { background: var(--text); color: var(--bg); }
.optnote { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }

.tach { margin-top: 20px; }
.tach .rpm { font: 600 44px/1.1 var(--cond); margin-top: 14px; }
.tach .rpm small { font-size: 18px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.tach .bar { position: relative; height: 6px; background: var(--line); margin: 8px 0 6px; }
.tach .bar b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--text); }
.tach .bar b.vtec { background: var(--red); }
.tach .bar s { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--red); }
.tach .scale { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--muted); }

/* ---------- metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--bg); }
.metrics > div { padding: 28px 26px; border-right: 1px solid var(--line); }
.metrics > div:last-child { border: 0; }
.metrics > div > span { color: var(--muted); font-size: 11px; }
.metrics strong { display: block; font-family: var(--cond); font-size: 70px; font-weight: 600; margin: 8px 0 0; line-height: 1.1; }
.metrics small { font-size: 23px; color: var(--muted); margin-left: 8px; }
.metrics p { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ---------- sections ---------- */
.section { padding: 95px 4%; border-bottom: 1px solid var(--line); }
.section-label { color: var(--red); margin-bottom: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 44px; }
h2 { font-family: var(--cond); font-size: clamp(44px, 5.3vw, 76px); line-height: 1.03; text-transform: uppercase; letter-spacing: -.015em; margin: 0; font-weight: 600; }
.section-heading p { color: var(--muted); font-size: 15px; line-height: 1.8; }

.two { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.panel { padding: 32px 40px; }
.panel + .panel { border-left: 1px solid var(--line); }
.panel h3 { font-weight: 500; font-size: 26px; margin: 18px 0 10px; }
.panel p { color: var(--muted); line-height: 1.8; font-size: 15px; }
.panel table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 18px 0; }
.panel td { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; vertical-align: top; }
.panel tr:first-child td { border-top: 1px solid var(--line); }
.panel td:nth-child(2) { color: var(--muted); }
.panel td:last-child { text-align: right; padding-right: 0; color: var(--muted); }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--muted); margin-right: 9px; vertical-align: -1px; }

.gears { margin-top: 18px; border-top: 1px solid var(--line); }
.gear { display: grid; grid-template-columns: 2.4rem 1fr 4.6rem; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.gear .track { height: 4px; background: var(--line); }
.gear .track b { display: block; height: 100%; background: var(--text); }
.gear:last-child .track b { background: var(--red); }
.gear span:last-child { text-align: right; }
.gear small { grid-column: 2 / 4; color: var(--muted); font: 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; margin-top: -6px; }

.heritage { background: #e4e6df; color: #151b19; }
.heritage .section-label { color: #ac2f27; }
.history { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 52px; gap: 40px; }
.history article { border-top: 1px solid #a5aca4; padding-top: 22px; }
.year { font-family: var(--cond); font-size: 65px; }
.history h3 { font-size: 17px; font-weight: 600; }
.history p { font-size: 15px; line-height: 1.8; color: #535d55; }

.specification { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; }
.specification p { font-size: 13px; margin-top: 24px; }
.specification dl { margin: 0; }
.specification dl div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 19px 0; font-size: 14px; gap: 20px; }
.specification dt { color: var(--muted); }
.specification dd { text-align: right; margin: 0; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 36px 4%; }
footer p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 640px; }
footer p a { text-decoration: underline; }

@media (max-width: 1100px) {
  .explorer { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .history { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  header { height: 76px; }
  nav { gap: 16px; }
  nav a { font-size: 11px; }
  .edition, .eyebrow span:last-child, .axis { display: none; }
  .title-line { margin-top: 30px; }
  .intro { width: 230px; }
  .intro p { font-size: 14px; }
  .intro .muted { font-size: 12px; }
  .drawing-top, .drawing-bottom { font-size: 9px; }
  .metrics > div { padding: 20px 14px; }
  .metrics > div > span { font-size: 9px; }
  .metrics strong { font-size: 52px; }
  .metrics p { font-size: 11px; }
  .section { padding: 65px 4%; }
  .two { grid-template-columns: 1fr; }
  .panel { padding: 25px; }
  .panel + .panel { border-left: 0; border-top: 1px solid var(--line); }
  .specification { gap: 25px; }
  footer { flex-wrap: wrap; }
  #markers text { font-size: 26px; }
  #markers g > circle:not(.pulse) { r: 30px; }
  #markers .pulse { r: 40px; }
  #exploded .v { font-size: 17px; }
  #exploded .n { font-size: 13px; }
}
@media (max-width: 560px) {
  header { height: auto; padding-top: 20px; padding-bottom: 18px; display: block; }
  .brand { font-size: 20px; }
  nav { margin-top: 20px; justify-content: space-between; gap: 8px; }
  nav a { font-size: 10px; }
  .hero { padding-top: 23px; }
  .title-line { display: block; }
  h1 { font-size: 100px; }
  .intro { width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
  .cross { display: none; }
  .intro p { margin: 8px 0; }
  .intro .outline { grid-column: 1 / -1; margin-top: 0; }
  .topic { padding: 20px 16px 24px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { display: block; }
  .section-heading p { margin-top: 24px; }
  .history { grid-template-columns: 1fr; gap: 28px; }
  .year { font-size: 55px; }
  .specification { display: block; }
  .specification dl { margin-top: 30px; }
  .specification dl div { font-size: 12px; }
  .panel table { font-size: 11.5px; }
  footer { display: block; }
  footer > .mono { display: block; margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Integra Type R decal lockup ---------- */
.decal { display: flex; align-items: center; gap: .3em; font-family: Syncopate, 'Arial Black', sans-serif; font-weight: 700; line-height: 1; letter-spacing: 0; }
.decal .w { display: block; margin: 0; }
.decal b { display: block; font-weight: 700; color: var(--text); }
.decal .type { font-size: 1.69em; line-height: .92; color: #4d7499; letter-spacing: -.01em; }
.decal i { display: block; margin: 0; font-family: Knewave, 'Arial Black', sans-serif; font-style: normal; font-weight: 400; font-size: 3.5em; line-height: .72; color: #e01212; transform: skew(-10deg) translateY(.04em); }
h1.decal { font-size: clamp(26px, 6vw, 92px); }
.brand.decal { font-size: 11px; }
@media (max-width: 560px) { h1.decal { font-size: 9.2vw; } }

/* ---------- nav: six tabs ---------- */
nav a[aria-current="page"] { color: var(--red); }
@media (max-width: 1280px) { nav .num { display: none; } nav { gap: 22px; } }
@media (max-width: 1000px) { header .edition { display: none; } }
@media (max-width: 560px) { nav { flex-wrap: wrap; justify-content: flex-start; gap: 10px 16px; } }

/* ---------- media ---------- */
.page-head { padding-bottom: 50px; }
.page-head .section-heading { margin-bottom: 36px; }
.subnav { display: flex; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.subnav a { padding: 12px 18px; color: #b9c0bc; }
.subnav a + a { border-left: 1px solid var(--line); }
.subnav a:hover { color: var(--red); }
.subnav span { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.ph { position: relative; margin: 0; cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #141a1b; border: 1px solid var(--line); pointer-events: none; transition: filter .25s; }
.ph .shield { position: absolute; inset: 0; z-index: 1; }
.gallery .ph .shield { bottom: 34px; }
.ph:hover img { border-color: #67716d; }
.ph figcaption { display: flex; gap: 12px; padding-top: 12px; color: #b9c0bc; }
.ph:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.rights { color: var(--muted); line-height: 1.8; margin: 40px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.rights a { text-decoration: underline; }

/* veiled: window out of focus / screenshot shortcut */
body.veiled .ph img { filter: blur(26px) grayscale(.6); }
body.veiled .ph .shield { display: grid; place-items: center; }
body.veiled .ph .shield::after { content: '© THEINTEGRATYPER.COM'; font: 12px var(--mono); letter-spacing: .1em; color: var(--text); background: rgba(9, 13, 14, .7); padding: 8px 12px; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 7, 8, .96); display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; grid-template-rows: 64px minmax(0, 1fr) 64px; align-items: center; justify-items: center; }
.lightbox[hidden] { display: none; }
.lb-figure { grid-column: 2; grid-row: 2; cursor: default; max-width: 100%; max-height: 100%; display: flex; justify-content: center; }
.lb-figure img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); aspect-ratio: auto; object-fit: contain; }
.lb-close { grid-column: 2 / 4; grid-row: 1; justify-self: end; margin-right: 20px; white-space: nowrap; background: none; border: 1px solid #67716d; color: var(--text); padding: 9px 12px; font-size: 11px; }
.lb-nav { grid-row: 2; background: none; border: 1px solid #67716d; color: var(--text); width: 46px; height: 46px; font-size: 18px; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
.lb-close:hover, .lb-nav:hover { background: var(--text); color: var(--bg); }
.lb-caption { grid-column: 2; grid-row: 3; display: flex; gap: 14px; color: #b9c0bc; margin: 0; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 22px; }
.video p { display: flex; gap: 12px; margin: 12px 0 0; color: #b9c0bc; }
.yt, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; padding: 0; position: relative; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 1.5px solid var(--text); background: rgba(9, 13, 14, .55); }
.yt .play::after { content: ''; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--text); }
.yt:hover .play { background: var(--red); border-color: var(--red); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--bg); border: 1px solid var(--line); border-left: 2px solid var(--red); color: var(--text); padding: 12px 16px; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }

@media print {
  .ph img, .lightbox { display: none !important; }
  .ph::before { content: 'Photographs © theintegratyper.com are not available for printing.'; font: 12px var(--mono); }
}

/* ---------- shop: coming soon ---------- */
.soon { min-height: 62vh; background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px); background-size: 42px 42px; }
.soon-kicker { color: var(--muted); margin: 0 0 20px; }
.soon-title { font-size: clamp(80px, 13vw, 190px); line-height: .85; }
.soon-text { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 30px 0 0; }
.soon-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.soon-links .outline { margin: 0; min-width: 260px; }

/* ---------- submit ---------- */
.submit { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: start; }
.submit-intro .muted { font-size: 15px; margin: 28px 0 0; max-width: 460px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #b9c0bc; line-height: 1.5; }

.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--text); }
.form label .muted { line-height: 1; font-size: 12px; }
.form input:not([type="checkbox"]):not([type="file"]), .form textarea { width: 100%; background: #0d1213; border: 1px solid var(--line); color: var(--text); font: 15px Inter, Arial, sans-serif; padding: 13px 14px; border-radius: 0; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drop { position: relative; display: grid !important; place-items: center; min-height: 240px; border: 1px dashed #67716d; background: #0d1213; cursor: pointer; overflow: hidden; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--red); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-empty { display: grid; gap: 8px; text-align: center; pointer-events: none; }
.drop-empty b { font-weight: 500; letter-spacing: .08em; }
.drop img { max-width: 100%; max-height: 420px; display: block; pointer-events: none; }
.drop.has-file .drop-empty { display: none; }

.consent { grid-template-columns: auto 1fr; align-items: start; color: #b9c0bc !important; line-height: 1.6; }
.consent input { margin: 4px 0 0; accent-color: var(--red); width: 16px; height: 16px; }
.send { display: flex; align-items: center; justify-content: space-between; background: var(--text); color: var(--bg); border: 0; padding: 17px 18px; font-size: 13px; letter-spacing: .08em; }
.send span { color: var(--red); font-size: 18px; }
.send:hover { background: var(--red); color: #fff; }
.send:hover span { color: #fff; }
.send:disabled { opacity: .5; cursor: wait; }
.status { margin: 0; min-height: 1.5em; font-size: 14px; line-height: 1.6; color: var(--muted); }
.status.ok { color: #8fd19e; }
.status.err { color: var(--red); }

@media (max-width: 900px) {
  .submit { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 0 minmax(0, 1fr) 0; grid-template-rows: 56px minmax(0, 1fr) 90px; }
  .lb-nav { display: none; }
  .lb-close { grid-column: 2; }
  .lb-caption { flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .subnav { width: 100%; }
  .subnav a { flex: 1; padding: 12px 10px; }
  .soon-links .outline { min-width: 0; flex: 1 1 100%; }
}

/* ---------- market ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.seg { display: flex; border: 1px solid var(--line); }
.seg button { background: none; border: 0; color: var(--muted); font: 12px var(--mono); padding: 11px 15px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--red); background: #171d1c; box-shadow: inset 0 2px 0 var(--red); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.tiles > div { padding: 24px 24px 22px; border-right: 1px solid var(--line); min-width: 0; }
.tiles > div:last-child { border-right: 0; }
.tiles span { font: 11px var(--mono); letter-spacing: .04em; color: var(--muted); }
.tiles strong { display: block; font: 600 52px/1.1 var(--cond); margin-top: 8px; }
.tiles small { font-size: 22px; color: var(--muted); margin-left: 4px; }
.tiles p { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.tiles p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); }
.tiles .up { color: #8fd19e; font-weight: 500; }
.tiles .down { color: var(--red); font-weight: 500; }

.chart-panel { position: relative; margin: 22px 0 0; border: 1px solid var(--line); padding: 18px 18px 8px; }
.chart-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; color: #899490; margin-bottom: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #b9c0bc; }
.legend span, .results td i { display: inline-flex; align-items: center; gap: 7px; }
.k-sold, .k-bid, .k-med { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.k-sold { background: var(--red); }
.k-bid { border: 2px solid #4f8fd6; }
.k-med { width: 18px; height: 2px; border-radius: 1px; background: var(--text); }
.chart { position: relative; min-height: 280px; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: #1d2425; stroke-width: 1; }
.chart .base { stroke: #4a5452; stroke-width: 1; }
.chart .tick { stroke: #4a5452; }
.chart .ax { font: 11px var(--mono); fill: #899490; }
.chart .ax.over { fill: var(--text); }
.chart .sold { fill: var(--red); stroke: var(--bg); stroke-width: 1.5; }
.chart .bid { fill: var(--bg); stroke: #4f8fd6; stroke-width: 2; }
.chart .med { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.chart .med-dot { fill: var(--text); stroke: var(--bg); stroke-width: 2; }
.chart .hover { fill: none; stroke: var(--text); stroke-width: 1.5; pointer-events: none; }
.chart .empty { padding: 100px 0; text-align: center; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--bg); border: 1px solid var(--line); border-left: 2px solid var(--red); padding: 9px 12px; font-size: 12px; line-height: 1.55; max-width: 290px; margin: 18px 0 0 18px; }
.tip b { display: block; font-weight: 500; color: var(--text); }
.tip span { display: block; color: var(--muted); font-size: 11px; }
.tip[hidden] { display: none; }

.table-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 50px 0 14px; }
.table-head h3 { font-size: 12px; font-weight: 400; letter-spacing: .04em; margin: 0; color: var(--red); }
.check { display: inline-flex; align-items: center; gap: 8px; color: #b9c0bc; cursor: pointer; }
.check input { accent-color: var(--red); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.results { width: 100%; border-collapse: collapse; font-size: 14px; }
.results th { text-align: left; border-bottom: 1px solid var(--line); padding: 0; }
.results th button { background: none; border: 0; color: var(--muted); font: 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 12px 12px 12px 0; }
.results th button:hover, .results th[aria-sort="ascending"] button, .results th[aria-sort="descending"] button { color: var(--text); }
.results th[aria-sort="ascending"] button::after { content: ' ↑'; color: var(--red); }
.results th[aria-sort="descending"] button::after { content: ' ↓'; color: var(--red); }
.results td { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; vertical-align: top; }
.results td.mono { font-size: 12px; color: #b9c0bc; white-space: nowrap; }
.results td a:hover { color: var(--red); }
.results .num-col { text-align: right; padding-right: 0; }
.results th.num-col button { padding-right: 0; }
.results td.num-col { color: var(--text); font-size: 13px; }
.more { margin-top: 20px; width: 100%; max-width: 320px; background: none; color: var(--text); }
.credit { color: var(--muted); line-height: 1.8; margin: 40px 0 0; border-top: 1px solid var(--line); padding-top: 16px; max-width: 900px; }
.credit a { text-decoration: underline; color: var(--text); }

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles > div:nth-child(2) { border-right: 0; }
  .tiles > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tiles strong { font-size: 42px; }
}
@media (max-width: 560px) {
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 11px 6px; font-size: 11px; }
  .tiles > div { padding: 16px 14px; }
  .tiles strong { font-size: 32px; }
  .tiles span { font-size: 9.5px; }
  .chart-panel { padding: 14px 10px 6px; }
  .results td:first-child { white-space: normal; }
}
.results td i { margin-right: 7px; vertical-align: -1px; }

/* ---------- shop (Shopify Storefront API) ---------- */
.filters { display: flex; flex-wrap: wrap; border: 1px solid var(--line); margin-bottom: 28px; width: fit-content; max-width: 100%; }
.filters:empty { display: none; }
.filters button { background: transparent; color: var(--muted); border: 0; border-right: 1px solid var(--line); padding: 11px 16px; font: 12px var(--mono); text-transform: uppercase; }
.filters button:last-child { border-right: 0; }
.filters button.on { color: var(--red); background: #171d1c; box-shadow: inset 0 2px 0 var(--red); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.pimg { aspect-ratio: 1; background: #0e1314; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.product:hover .pimg img { transform: scale(1.03); }
.pbody { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pbody .mono { font-size: 11px; text-transform: uppercase; }
.pbody h3 { font-weight: 500; font-size: 20px; margin: 10px 0 8px; }
.pdesc { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; flex: 1; }
.pbuy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pbuy strong { font: 600 30px var(--cond); margin-right: auto; }
.pbuy select { background: var(--bg); color: var(--text); border: 1px solid #67716d; padding: 9px 8px; font: 12px var(--mono); }
.add, .checkout { background: transparent; color: var(--text); border: 1px solid #67716d; padding: 10px 14px; font-size: 11px; letter-spacing: .04em; }
.add:hover:not(:disabled), .checkout:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.add:disabled, .checkout:disabled { opacity: .45; cursor: default; }
.shop-msg { grid-column: 1 / -1; color: var(--muted); padding: 40px 22px; margin: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.store .credit { color: var(--muted); font-size: 11px; margin-top: 22px; }

.cart-open { position: fixed; right: 22px; bottom: 22px; z-index: 40; background: var(--bg); color: var(--text); border: 1px solid #67716d; padding: 13px 16px; font-size: 12px; }
.cart-open b { color: var(--red); margin-left: 8px; }
.cart-open:hover { background: var(--text); color: var(--bg); }
.cart { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0); transition: background .25s; }
.cart.in { background: rgba(0, 0, 0, .6); }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s; }
.cart.in .cart-panel { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-head .mono { font-size: 12px; }
.cart-head button { background: none; border: 0; color: var(--muted); font-size: 12px; }
#cart-lines { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
#cart-lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
#cart-lines li.empty { display: block; color: var(--muted); }
#cart-lines li > div:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
#cart-lines .mono { font-size: 11px; color: var(--muted); }
.limg { width: 64px; height: 64px; background: #0e1314; }
.limg img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); }
.qty button { background: none; border: 0; color: var(--text); width: 30px; height: 30px; }
.qty span { min-width: 22px; text-align: center; font: 12px var(--mono); }
.cart-foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; }
.cart-total .mono { font-size: 12px; color: var(--muted); }
.cart-total strong { font: 600 32px var(--cond); }
.cart-foot p { font-size: 11px; color: var(--muted); }
.checkout { width: 100%; display: flex; justify-content: space-between; padding: 16px 17px; font-size: 13px; }
.checkout span { color: var(--red); }
body:has(#cart-open:not([hidden])) footer { padding-bottom: 90px; }
