/* ============================================================
   MARSHALL MOTORS — onyx & brass
   Display: Italiana · Body: Manrope · Data: IBM Plex Mono
   ============================================================ */

:root {
  --onyx: #0a0b0d;
  --carbon: #101216;
  --porcelain: #eceae4;
  --smoke: rgba(236, 234, 228, 0.55);
  --faint: rgba(236, 234, 228, 0.28);
  --brass: #c6a15b;
  --brass-soft: rgba(198, 161, 91, 0.35);
  --rosso: #b3232a;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(16, 18, 22, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--onyx);
  color: var(--porcelain);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; }
  .cursor-dot {
    position: absolute; width: 5px; height: 5px; border-radius: 50%;
    background: var(--brass); transform: translate(-50%, -50%);
  }
  .cursor-ring {
    position: absolute; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--brass-soft); transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
  }
  .cursor.is-active .cursor-ring { width: 56px; height: 56px; border-color: var(--brass); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3.2rem);
  background: linear-gradient(rgba(10, 11, 13, 0.75), transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-mark { display: flex; align-items: center; gap: 0.85rem; }
.mark-mm {
  font-family: "Italiana", serif; font-size: 1.5rem; letter-spacing: 0.12em;
  color: var(--brass);
}
.mark-rule { width: 1px; height: 1.4rem; background: var(--glass-border); }
.mark-word {
  font-family: "IBM Plex Mono", monospace; font-size: 0.62rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--smoke);
}
.nav-links { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav-links a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--smoke); transition: color 0.3s;
  position: relative; padding: 0.3rem 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--porcelain); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-note { font-size: 0.6rem; color: var(--faint); }
@media (max-width: 720px) {
  .nav-note, .mark-word, .mark-rule { display: none; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.64rem; letter-spacing: 0.1em; }
}

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass);
}
.eyebrow-rule { display: inline-block; width: 3.2rem; height: 1px; background: var(--brass-soft); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { transform-origin: center; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(10, 11, 13, 0.92) 20%, transparent 60%),
    linear-gradient(rgba(10, 11, 13, 0.5), rgba(10, 11, 13, 0.25) 40%, rgba(10, 11, 13, 0.85));
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: clamp(4rem, 12vh, 8rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 1.5rem;
}
.hero-eyebrow { justify-content: center; margin-bottom: 2.8rem; }
.wordmark {
  font-family: "Italiana", serif; font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 11rem);
  line-height: 0.92; letter-spacing: 0.08em;
  display: flex; flex-direction: column; align-items: center;
}
.wordmark-sub {
  font-size: 0.42em; letter-spacing: 0.62em; margin-top: 0.32em;
  color: var(--brass); text-indent: 0.62em;
}
.wordmark .char { display: inline-block; }
.hero-line {
  margin-top: 2.1rem; font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  color: var(--smoke); font-weight: 300; letter-spacing: 0.04em; max-width: 34rem;
}
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.58rem; color: var(--faint);
}
.scroll-cue-line {
  width: 1px; height: 3rem; background: linear-gradient(var(--brass), transparent);
  animation: cue 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(1.2rem); opacity: 0; }
}

/* ---------- ethos ---------- */
.ethos { padding: clamp(7rem, 16vh, 12rem) clamp(1.5rem, 8vw, 10rem); }
.ethos-inner { max-width: 60rem; margin: 0 auto; display: flex; flex-direction: column; gap: 2.8rem; }
.ethos-line {
  font-family: "Manrope", sans-serif; font-weight: 300;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  line-height: 1.55; letter-spacing: 0.005em; color: var(--porcelain);
  max-width: 46rem;
}
.ethos-line-accent {
  font-family: "Italiana", serif; font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.25; letter-spacing: 0.02em;
  color: var(--brass);
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 0; background: var(--carbon);
}
.ticker-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: ticker 36s linear infinite;
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--smoke);
  white-space: nowrap;
}
.ticker-track i { font-style: normal; color: var(--brass-soft); }
.ticker-wanted { color: var(--brass); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.section-head {
  padding: clamp(6rem, 14vh, 10rem) clamp(1.5rem, 6vw, 6rem) clamp(3rem, 6vh, 5rem);
  max-width: 80rem; margin: 0 auto;
}
.section-title {
  font-family: "Italiana", serif; font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: 0.02em;
  margin-top: 1.4rem;
}
.section-sub { margin-top: 1.6rem; max-width: 38rem; color: var(--smoke); font-size: 0.95rem; }

/* ---------- collection chapters ---------- */
.collection { padding-bottom: clamp(4rem, 10vh, 8rem); }
.chapter {
  position: relative;
  max-width: 90rem; margin: 0 auto clamp(6rem, 14vh, 11rem);
  padding: 0 clamp(1rem, 4vw, 4rem);
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 0;
  align-items: end;
}
.chapter-alt { grid-template-columns: 1fr 1.55fr; }
.chapter-alt .chapter-media { order: 2; }
.chapter-alt .plate { order: 1; justify-self: end; margin-right: -6rem; }

.chapter-media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10.5;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.chapter-media img { transform: scale(1.16); }

/* headlight sweep */
.sweep {
  position: absolute; top: -20%; bottom: -20%; left: -35%;
  width: 26%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32) 45%, rgba(198, 161, 91, 0.22) 55%, transparent);
  transform: skewX(-14deg) translateX(-140%);
  filter: blur(6px);
  pointer-events: none;
}

/* provenance plate — the signature */
.plate {
  position: relative; z-index: 5;
  margin-left: -6rem; margin-bottom: clamp(1.5rem, 4vh, 3rem);
  padding: 2rem 2.2rem 1.9rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028) 55%), var(--glass-strong);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-top-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.plate-screw {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0e6cf, #8a713f 70%);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.6);
}
.plate-screw::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 1px;
  background: rgba(0, 0, 0, 0.55); transform: translate(-50%, -50%) rotate(38deg);
}
.ps-tl { top: 9px; left: 9px; } .ps-tr { top: 9px; right: 9px; }
.ps-bl { bottom: 9px; left: 9px; } .ps-br { bottom: 9px; right: 9px; }

.plate-head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.6rem; }
.plate-no { font-size: 0.64rem; color: var(--brass); letter-spacing: 0.34em; }
.plate-name {
  font-family: "Italiana", serif; font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: 0.03em;
}
.plate-data { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.09); padding-top: 1.4rem; }
.plate-data div { display: flex; flex-direction: column; gap: 0.18rem; }
.plate-data dt { font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.plate-data dd { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--porcelain); }
.plate-kept { color: var(--brass); }

/* ---------- the hunt ---------- */
.hunt { background: var(--carbon); border-top: 1px solid var(--glass-border); }
.hunt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  max-width: 80rem; margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 6rem);
}
.hunt-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--onyx);
  min-height: 26rem;
  display: flex; align-items: flex-end;
  transition: border-color 0.4s;
  will-change: transform;
}
.hunt-card:hover { border-color: var(--brass-soft); }
.hunt-media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: grayscale(1) brightness(0.34) contrast(1.12);
  transform: scale(1.06);
  transition: filter 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.hunt-card:hover .hunt-media { filter: grayscale(0.25) brightness(0.6) contrast(1.05); transform: scale(1.01); }
.hunt-body {
  position: relative; z-index: 2; width: 100%;
  padding: 1.8rem;
  background: linear-gradient(transparent, rgba(10, 11, 13, 0.88) 40%);
}
.hunt-flag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.6rem; color: var(--brass); }
.hunt-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--rosso);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 35, 42, 0.55); }
  55% { box-shadow: 0 0 0 7px rgba(179, 35, 42, 0); }
}
.hunt-name {
  font-family: "Italiana", serif; font-weight: 400;
  font-size: 1.7rem; line-height: 1.08; letter-spacing: 0.03em;
  margin: 0.8rem 0 1rem;
}
.hunt-params { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.hunt-params li {
  font-size: 0.66rem; letter-spacing: 0.14em; color: var(--smoke);
  padding-left: 1rem; position: relative;
}
.hunt-params li::before { content: "—"; position: absolute; left: 0; color: var(--brass-soft); }
.hunt-cta-line {
  text-align: center; padding: clamp(3rem, 7vh, 5rem) 1.5rem clamp(6rem, 12vh, 9rem);
  color: var(--smoke); font-size: 0.95rem;
}
.text-link {
  color: var(--brass); border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 0.1rem; transition: border-color 0.3s, color 0.3s;
}
.text-link:hover { color: var(--porcelain); border-color: var(--porcelain); }

/* ---------- consignment ---------- */
.consign {
  position: relative; overflow: hidden;
  min-height: 92svh;
  display: flex; align-items: center;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.5rem, 6vw, 6rem);
}
.consign-media { position: absolute; inset: 0; }
.consign-media img { filter: brightness(0.32) saturate(0.85); transform: scale(1.1); }
.consign-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 100% at 25% 50%, rgba(10, 11, 13, 0.25), rgba(10, 11, 13, 0.85));
}
.consign-panel {
  position: relative; z-index: 2;
  max-width: 34rem;
  padding: clamp(2.2rem, 4vw, 3.2rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 55%), rgba(10, 11, 13, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-top-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.consign-title {
  font-family: "Italiana", serif; font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: 0.02em;
  margin: 1.4rem 0 1.6rem;
}
.consign-copy { color: var(--smoke); font-size: 0.95rem; margin-bottom: 1.2rem; }
.consign-cta {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: 1.2rem; padding: 1rem 1.7rem;
  border: 1px solid var(--brass-soft);
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.consign-cta:hover, .consign-cta:focus-visible {
  background: var(--brass); color: var(--onyx); border-color: var(--brass);
}
.cta-arrow { transition: transform 0.4s var(--ease-out); }
.consign-cta:hover .cta-arrow { transform: translateX(5px); }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid var(--glass-border);
  font-size: 0.6rem; color: var(--faint);
}
.footer-note { text-align: center; }

/* ---------- reveal defaults (JS toggles) ---------- */
.js .ethos-line, .js .section-head > *, .js .hunt-card, .js .consign-panel { opacity: 0; }
.js .plate { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .chapter, .chapter-alt { grid-template-columns: 1fr; align-items: start; }
  .chapter-alt .chapter-media { order: 1; }
  .chapter-alt .plate { order: 2; justify-self: start; margin-right: 0; }
  .plate { margin: -3.5rem 1rem 0; }
  .hunt-grid { grid-template-columns: 1fr; }
  .hunt-card { min-height: 20rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue-line, .hunt-dot { animation: none !important; }
  .ticker-track { animation-duration: 120s; }
  .js .ethos-line, .js .section-head > *, .js .hunt-card, .js .consign-panel, .js .plate { opacity: 1; }
}

/* ---------- focus ---------- */
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.footer-editions a { color: var(--faint); transition: color 0.3s; }
.footer-editions a:hover, .footer-editions .ed-on { color: var(--brass); }
