: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; transition: opacity .5s; }
.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 img { opacity: .16; }
.stage.exploded #markers, .stage.exploded .tint { opacity: 0 !important; pointer-events: none; }

/* exploded engine */
/* grows out of the hood of the car artwork */
#exploded { pointer-events: none; opacity: 0; transform-origin: 29% 43%; 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(4, 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; }
}
