/* Meridian — car dealership. Archivo (variable width) + JetBrains Mono. Graphite, chalk, signal lime. */
:root {
  --bg: #0a0b0d;
  --panel: #121418;
  --line: rgba(240, 242, 245, 0.12);
  --text: #f0f2f5;
  --muted: #8b9099;
  --accent: #d6f54a;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 350; font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1520px; margin: 0 auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-weight: 300; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.tag { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.tag i { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.h2 { font-stretch: 122%; font-weight: 600; font-size: clamp(34px, 5.2vw, 84px); line-height: 0.98; letter-spacing: -0.035em; text-transform: uppercase; max-width: 14ch; }
.outline { color: transparent; -webkit-text-stroke: 1px var(--text); }

/* Motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; background: none; }
.js [data-reveal="clip"] > img { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w-i { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease); }
.is-in .w-i { transform: none; }
[hidden] { display: none !important; }
.is-shown { animation: rise 0.8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { position: absolute; left: 0; top: -9%; height: 118%; will-change: transform; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 22px; border: 1px solid var(--line); border-radius: 2px; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--bg); padding: 19px 28px; font-weight: 400; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
  border-bottom: 1px solid transparent;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.header.is-scrolled { padding-block: 12px; background: rgba(10, 11, 13, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-stretch: 125%; font-weight: 600; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; }
.brand svg { width: 26px; height: 19px; fill: var(--accent); }
.nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.4s var(--ease); }
.nav a:hover { color: var(--text); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 116%; object-fit: cover; will-change: transform; animation: heroIn 2.2s var(--ease) both; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,0.7) 0%, rgba(10,11,13,0.1) 38%, rgba(10,11,13,0.95) 100%); }
@keyframes heroIn { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
.hero__inner { position: relative; width: 100%; padding: 150px var(--pad) clamp(24px, 4vh, 44px); }
.hero__title { font-stretch: 125%; font-weight: 700; font-size: clamp(44px, 9.6vw, 168px); line-height: 0.9; letter-spacing: -0.045em; text-transform: uppercase; }
.hero__bar {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(20px, 5vw, 80px);
  margin-top: clamp(32px, 6vh, 64px); padding-top: 22px; border-top: 1px solid var(--line);
}
.hero__feature .mono { color: var(--accent); }
.hero__car { font-stretch: 115%; font-weight: 500; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.01em; margin-top: 2px; }
.spec { display: flex; gap: clamp(20px, 3.4vw, 56px); }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-stretch: 115%; font-weight: 500; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -0.02em; }
.spec small { font-family: var(--mono); font-size: 12px; font-weight: 300; color: var(--muted); letter-spacing: 0.04em; }
.round { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.round:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding: 22px 0; }
.ticker__track { display: flex; gap: clamp(40px, 6vw, 96px); width: max-content; animation: ticker 48s linear infinite; padding-left: clamp(40px, 6vw, 96px); }
.ticker span { font-stretch: 125%; font-weight: 600; font-size: 15px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Inventory */
.inventory { padding-block: clamp(88px, 12vw, 180px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 18px; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: all 0.45s var(--ease); }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 28px); }
.car__media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s var(--ease); filter: saturate(0.82) brightness(0.92); }
.car:hover .car__media img { transform: scale(1.045); filter: saturate(1) brightness(1); }
.car__lot { position: absolute; left: 14px; top: 14px; padding: 5px 10px; background: rgba(10, 11, 13, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 11px; }
.car__media::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
.car:hover .car__media::after { transform: scaleX(1); }
.car__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.car h3 { font-stretch: 115%; font-weight: 500; font-size: clamp(18px, 1.5vw, 23px); letter-spacing: -0.015em; line-height: 1.25; }
.car__price { font-family: var(--mono); font-size: 14px; color: var(--accent); white-space: nowrap; }
.car__spec { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 10px; color: var(--muted); font-size: 11px; }
.car__spec li + li::before { content: '/'; margin: 0 10px; opacity: 0.5; }
.inventory__note { margin-top: clamp(40px, 5vw, 64px); color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }

/* Standard */
.standard { position: relative; overflow: hidden; padding-block: clamp(100px, 14vw, 210px); }
.standard__media { position: absolute; inset: 0; }
.standard__media img { width: 100%; height: 118%; object-fit: cover; opacity: 0.3; will-change: transform; }
.standard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,11,13,0.55) 50%, var(--bg) 100%); }
.standard__inner { position: relative; }
.statement { font-stretch: 108%; font-weight: 400; font-size: clamp(26px, 3.6vw, 58px); line-height: 1.12; letter-spacing: -0.03em; max-width: 24ch; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line); }
.numbers > div { padding: 28px 24px 0 0; }
.numbers > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.numbers dt { font-stretch: 125%; font-weight: 600; font-size: clamp(38px, 5vw, 80px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.numbers dt small { font-size: 0.45em; color: var(--accent); margin-left: 4px; }
.numbers dd { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 24ch; }

/* Services */
.services { padding-block: clamp(88px, 12vw, 180px); }
.service-list li {
  display: grid; grid-template-columns: 70px 72px 1fr 1.1fr; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: clamp(26px, 3vw, 44px) 0; border-top: 1px solid var(--line); position: relative;
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list li::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
.service-list li:hover::before { transform: scaleX(1); }
.service-list .mono { color: var(--muted); }
.service-list svg { width: 44px; height: 44px; fill: none; stroke: var(--text); stroke-width: 1.2; transition: stroke 0.5s var(--ease), transform 0.8s var(--ease); }
.service-list li:hover svg { stroke: var(--accent); transform: translateX(6px); }
.service-list h3 { font-stretch: 118%; font-weight: 500; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.1; }
.service-list p { color: var(--muted); max-width: 44ch; }

/* Showroom */
.showroom { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 110px); align-items: center; padding-bottom: clamp(88px, 12vw, 180px); }
.showroom > * { min-width: 0; }
.showroom__media { aspect-ratio: 5 / 4; }
.showroom__copy .h2 { font-size: clamp(30px, 3.7vw, 60px); max-width: none; }
.lede { margin-top: 28px; color: var(--muted); max-width: 44ch; font-size: 17px; }
.details { margin-top: 40px; border-top: 1px solid var(--line); text-transform: none; font-size: 13px; }
.details > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; padding-top: 2px; }
.details a { transition: color 0.4s var(--ease); }
.details a:hover { color: var(--accent); }

/* Contact */
.contact { background: var(--panel); border-top: 1px solid var(--line); padding-block: clamp(88px, 11vw, 160px); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__title { font-stretch: 125%; font-weight: 700; font-size: clamp(38px, 5.6vw, 92px); line-height: 0.94; letter-spacing: -0.045em; text-transform: uppercase; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.form label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form input, .form select {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--sans); font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text);
  transition: border-color 0.4s var(--ease); color-scheme: dark;
}
.form input::placeholder { color: rgba(240, 242, 245, 0.28); }
.form input:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.btn--solid:hover { background: var(--text); border-color: var(--text); }
.form__note { color: var(--accent); text-transform: none; font-size: 13px; opacity: 0; transition: opacity 0.6s var(--ease); }
.form__note.is-shown { opacity: 1; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 40px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.4s var(--ease); }
.footer nav a:hover { color: var(--accent); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

/* Responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers > div { padding-bottom: 28px; }
  .numbers > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .numbers > div:nth-child(4) { border-top: 1px solid var(--line); }
  .service-list li { grid-template-columns: 44px 52px 1fr; }
  .service-list p { grid-column: 3; }
  .showroom, .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .brand { z-index: 2; position: relative; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 10px; padding: var(--pad);
    opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav a { font-family: var(--sans); font-stretch: 125%; font-weight: 600; font-size: 34px; letter-spacing: -0.03em; color: var(--text); }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .hero__bar { grid-template-columns: 1fr; }
  .round { display: none; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .service-list li { grid-template-columns: 36px 1fr; }
  .service-list svg { display: none; }
  .service-list p { grid-column: 2; }
  .details > div { grid-template-columns: 1fr; gap: 4px; }
  .spec { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
