/* DustinMade — design tokens and styles (see dustinmade-design-document.md) */
:root {
  --ink: #0A0C0F; --surface: #14171C; --raised: #1C2027; --line: #2A2F38;
  --white: #FFFFFF; --silver: #B4BBC6; --muted: #7D8592;
  --cyan: #2BD9E8; --cyan-dim: rgb(43 217 232 / .12);
  --red: #E63946; --red-text: #FF5C66;
  --font-script: "Yellowtail", cursive;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 10px; --radius-btn: 8px;
  --dur-fast: 150ms; --dur-base: 250ms; --dur-slow: 600ms;
  --ease: cubic-bezier(.4, 0, .2, 1); --ease-emph: cubic-bezier(.77, 0, .18, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--silver); font: 400 17px/1.6 var(--font-body); font-feature-settings: "tnum" 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--white); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.02; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.spec { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.eyebrow-red { color: var(--red-text); }
.lead { font-size: 18px; max-width: 560px; }
.text-link { color: var(--cyan); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.taillight { display: block; width: 48px; height: 2px; background: var(--red); margin: 16px 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius-btn); font: 600 15px/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { background: #E6E9ED; }
.btn-accent { background: var(--cyan); color: var(--ink); }
.btn-accent:hover { background: #5BE3EE; }
.btn-secondary { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .4); }
.btn-secondary:hover { border-color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--raised); color: var(--muted); cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.site-header.is-solid, body:not(.page-home) .site-header { background: rgb(20 23 28 / .92); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { color: var(--white); display: flex; }
.logo { color: var(--white); }
.logo-header { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--silver); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--white); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--white); cursor: pointer; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
  .logo-header { width: 140px; }
}

/* Hero */
.page-home .site-header { margin-bottom: -80px; }
.hero { padding: 140px 0 72px; min-height: 86vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.logo-hero { width: 100%; max-width: 620px; margin-left: auto; height: auto; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } .logo-hero { max-width: 420px; margin: 0; } .hero { min-height: 0; padding-top: 112px; } }

/* Chips */
.chips-section { padding-bottom: 24px; }
.chips { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--white); text-decoration: none; font-weight: 500; font-size: 15px; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.chip:hover { border-color: var(--cyan); background: var(--cyan-dim); }

/* Sections */
.section { padding: 96px 24px 0; }
.section-head { margin-bottom: 40px; display: grid; gap: 12px; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head-row > div { display: grid; gap: 12px; }
.page-head { padding: 64px 24px 40px; display: grid; gap: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.step-num { font: 500 14px var(--font-mono); color: var(--cyan); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Part cards */
.part-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.part-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--dur-base) var(--ease); }
.part-card:hover { border-color: rgb(43 217 232 / .4); }
.part-card-link { display: block; text-decoration: none; color: inherit; }
.part-card-top { position: relative; }
.card-media, .product-image { aspect-ratio: 4 / 3; background: var(--raised); overflow: hidden; }
.card-media img, .product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.part-card:hover .card-media img { transform: scale(1.04); }
.media-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-badges.static { position: static; margin: 4px 0; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font: 600 12px/1 var(--font-body); }
.badge-print-ready { background: var(--cyan-dim); color: var(--cyan); }
.badge-fit-tested { border: 1px solid rgb(255 255 255 / .6); color: var(--white); }
.badge-new { background: var(--white); color: var(--ink); }
.price-pill { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgb(10 12 15 / .82); color: var(--white); font-size: 13px; font-weight: 500; }
.part-card-body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.fit { font-size: 15px; }

/* Catalog */
.toolbar { position: sticky; top: 80px; z-index: 10; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
@media (max-width: 760px) { .toolbar { grid-template-columns: 1fr; position: static; } }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--silver); }
.field input, .field select, .field textarea { font: 400 16px var(--font-body); color: var(--white); background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-btn); min-height: 44px; padding: 10px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.result-count { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.empty { text-align: center; padding: 64px 24px; display: grid; gap: 12px; justify-items: center; }

/* Product page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding: 32px 0 24px; }
.crumbs a { color: var(--silver); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-size: 15px; margin-bottom: 24px; }
.notice a { color: var(--cyan); }
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.product-image { border-radius: var(--radius); border: 1px solid var(--line); }
.product-info { display: grid; gap: 12px; }
.fit-lg { font-size: 18px; color: var(--white); }
.offer { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--raised); border-radius: 999px; padding: 4px; }
.segmented button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--silver); font: 600 14px var(--font-body); cursor: pointer; transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.segmented button[aria-checked="true"] { background: var(--white); color: var(--ink); }
.offer-panel { display: grid; gap: 6px; }
.price { font: 700 32px var(--font-display); color: var(--white); }
.product-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 64px 0 0; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th { text-align: left; font-weight: 500; color: var(--silver); padding: 10px 0; border-bottom: 1px solid var(--line); width: 45%; }
.spec-table td { font-family: var(--font-mono); font-size: 14px; color: var(--white); padding: 10px 0; border-bottom: 1px solid var(--line); }
.fit-list { margin: 0; padding-left: 18px; }
@media (max-width: 900px) { .product, .product-details { grid-template-columns: 1fr; gap: 24px; } }

/* Request band, forms, prose */
.request-band { margin-top: 120px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.request-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.request-inner > div { display: grid; gap: 8px; }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; padding-bottom: 32px; }
.prose h2 { margin-top: 32px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.panel h2 { margin-top: 0; font-size: 24px; }
@media (max-width: 600px) { .two-up { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.logo-footer { width: 180px; height: auto; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col h2 { font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.footer-col a { color: var(--silver); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 700ms cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in-view { opacity: 1; transform: none; }
.logo-hero .car-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1400ms var(--ease-emph) 200ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .logo-hero .car-line { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
