/* =========================================================
   Mercedes On Rent — quiet luxury
   Palette: ink black · ivory · champagne
   ========================================================= */

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1f1f1f;
  --ivory: #f5f1e8;
  --ivory-2: #ece6d7;
  --ivory-dim: #a8a297;
  --champagne: #a88a52;
  --hairline: rgba(245, 241, 232, 0.14);
  --hairline-strong: rgba(245, 241, 232, 0.28);

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --pad: clamp(24px, 4vw, 72px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--champagne); color: var(--ink); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -0.005em; }
.italic { font-style: italic; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--ivory);
  max-width: 56ch;
}

.body { font-size: 15px; line-height: 1.65; color: var(--ivory); }
.body-dim { color: var(--ivory-dim); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--pad);
  background: linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0));
  transition: background 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav__brand {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ivory);
}
.nav__brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--ivory-dim);
  margin-top: 2px;
}

.nav__center {
  display: flex;
  gap: 36px;
  justify-content: center;
}
.nav__center a {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.25s ease;
}
.nav__center a:hover { color: var(--ivory); }

.nav__right {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  align-items: center;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  padding: 10px 18px;
  border: 1px solid var(--hairline-strong);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav__cta:hover { border-color: var(--champagne); color: var(--champagne); }
.nav__cta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--champagne);
}

@media (max-width: 520px) {
  .nav { padding: 16px 20px; }
  .nav__cta { padding: 8px 12px; font-size: 10px; letter-spacing: 0.22em; }
  .nav__cta .full { display: none; }
  .nav__cta .short { display: inline !important; }
  .nav__brand { font-size: 10px; letter-spacing: 0.28em; }
  .nav__brand small { font-size: 8px; letter-spacing: 0.4em; }
}

@media (max-width: 860px) {
  .nav__center { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #000;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, #2a2622 0%, #0a0a0a 65%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 6px);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ivory-dim);
}

.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.35) 0%,
    rgba(10,10,10,0.05) 30%,
    rgba(10,10,10,0.10) 65%,
    rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px var(--pad) 56px;
}

@media (max-width: 760px) {
  .hero__content { padding: 100px var(--pad) 36px; }
  .hero__meta { grid-template-columns: 1fr; gap: 18px; text-align: center; padding-top: 22px; margin-top: 22px; }
  .hero__meta-right { text-align: center; }
  .hero__scroll { display: none; }
  .display { font-size: clamp(48px, 13vw, 96px); }
}

.hero__title { align-self: end; }
.hero__title .display { display: block; }
.hero__title .display .roman { font-style: normal; letter-spacing: -0.015em; }

.hero__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--hairline);
}
.hero__meta-left, .hero__meta-right {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.hero__meta-right { text-align: right; }
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ivory-dim);
  text-transform: uppercase;
}
.hero__scroll .line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--ivory-dim), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Generic section ---------- */
.section {
  padding: clamp(80px, 12vh, 160px) var(--pad);
  position: relative;
}

.section__head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: baseline;
  margin-bottom: clamp(48px, 8vh, 96px);
}
.section__head .eyebrow { padding-top: 6px; }
@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Fleet (scroll-pinned cinematic) ---------- */
.fleet { padding-top: clamp(80px, 12vh, 160px); padding-bottom: 0; }

.fleet__intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 5vw, 80px);
  padding: 0 var(--pad);
  margin-bottom: clamp(48px, 8vh, 96px);
}
@media (max-width: 760px) {
  .fleet__intro { grid-template-columns: 1fr; gap: 16px; }
}

.fleet__stage {
  position: relative;
  height: 400vh;
}
.fleet__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.fleet__progress {
  position: absolute;
  top: 50%;
  right: var(--pad);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 5;
}
.fleet__progress button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ivory-dim);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}
.fleet__progress button .dash {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--hairline);
  transition: width 0.5s cubic-bezier(0.6, 0, 0.2, 1), background 0.3s ease;
}
.fleet__progress button.active { color: var(--ivory); }
.fleet__progress button.active .dash { width: 64px; background: var(--ivory); }

.fleet__slides { position: absolute; inset: 0; }
.fleet__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  padding: 0 var(--pad);
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.6,0,0.2,1);
  pointer-events: none;
}
.fleet__slide.active { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .fleet__slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px var(--pad) 100px;
    align-content: start;
    align-items: start;
  }
  .fleet__copy { order: 2; max-width: 100%; padding-right: 56px; }
  .fleet__media { order: 1; height: 42vh; max-height: 360px; min-height: 240px; }
  .fleet__copy .name { font-size: clamp(40px, 11vw, 64px); }
  .fleet__copy .desc { font-size: 14px; }
  .fleet__progress {
    top: auto; bottom: 20px;
    right: 50%; transform: translateX(50%);
    flex-direction: row; gap: 10px;
  }
  .fleet__progress button { gap: 6px; font-size: 9px; letter-spacing: 0.22em; }
  .fleet__progress button .dash { width: 18px; }
  .fleet__progress button.active .dash { width: 28px; }
}

.fleet__copy { max-width: 460px; position: relative; z-index: 2; }
.fleet__copy .index {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--ivory-dim);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.fleet__copy .name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.fleet__copy .name .roman { font-style: normal; letter-spacing: -0.015em; }
.fleet__copy .desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ivory);
  max-width: 42ch;
  margin-bottom: 32px;
}
.fleet__copy .specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  max-width: 380px;
}
@media (max-width: 520px) {
  .fleet__copy .specs { gap: 14px 20px; padding-top: 18px; }
  .fleet__copy .specs .val { font-size: 16px; }
}
.fleet__copy .specs div { display: flex; flex-direction: column; gap: 4px; }
.fleet__copy .specs .lbl {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.fleet__copy .specs .val {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.005em;
}

.fleet__media {
  position: relative;
  height: 70vh;
  max-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fleet__media image-slot {
  width: 100%;
  height: 100%;
}

/* ---------- Vertical fleet ---------- */
.fleet-v { padding: 0 var(--pad) clamp(80px, 12vh, 160px); }
.fleet-v__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(60px, 10vh, 120px) 0;
  border-top: 1px solid var(--hairline);
}
.fleet-v__row:last-child { border-bottom: 1px solid var(--hairline); }
.fleet-v__row.flip { grid-template-columns: 1.2fr 1fr; }
.fleet-v__row.flip .fleet-v__copy { order: 2; }
.fleet-v__row.flip .fleet-v__media { order: 1; }
@media (max-width: 860px) {
  .fleet-v__row, .fleet-v__row.flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .fleet-v__row .fleet-v__copy { order: 2; }
  .fleet-v__row .fleet-v__media { order: 1; }
  .fleet-v__row.flip .fleet-v__copy { order: 2; }
  .fleet-v__row.flip .fleet-v__media { order: 1; }
}
.fleet-v__media {
  height: 56vh;
  max-height: 540px;
  min-height: 360px;
}
@media (max-width: 860px) {
  .fleet-v__media { height: 46vh; min-height: 280px; max-height: 420px; }
  .fleet-v__copy .name { font-size: clamp(36px, 10vw, 56px); }
  .fleet-v__row { padding: 56px 0; }
}
.fleet-v__media image-slot { width: 100%; height: 100%; }
.fleet-v__copy .name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
}
.fleet-v__copy .name .roman { font-style: normal; }
.fleet-v__copy .desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ivory);
  max-width: 46ch;
  margin-bottom: 24px;
}
.fleet-v__copy .index {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--ivory-dim);
  text-transform: uppercase;
}
.fleet-v__copy .specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  max-width: 380px;
}
.fleet-v__copy .specs .lbl {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  display: block;
}
.fleet-v__copy .specs .val { font-family: var(--serif); font-size: 18px; }

/* ---------- Why us ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 760px) { .why__grid { grid-template-columns: 1fr; } }
.why__cell {
  background: var(--ink);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background 0.4s ease;
}
.why__cell:hover { background: var(--ink-2); }
@media (max-width: 760px) {
  .why__cell { padding: 36px 28px; min-height: 200px; }
  .why__title { font-size: 24px; }
}
.why__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--champagne);
  letter-spacing: 0.05em;
}
.why__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.why__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ivory-dim);
  margin-top: auto;
  max-width: 36ch;
}

/* ---------- Testimonials ---------- */
.testi {
  text-align: center;
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(120px, 18vh, 200px);
}
.testi__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  max-width: 22ch;
  margin: 0 auto;
  transition: opacity 0.5s ease;
  min-height: 4em;
}
.testi__attr {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: opacity 0.5s ease;
}
.testi__dots {
  margin-top: 56px;
  display: inline-flex;
  gap: 14px;
}
.testi__dots button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 28px;
  padding: 12px 0;
  position: relative;
}
.testi__dots button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--hairline-strong);
  transition: background 0.3s ease;
}
.testi__dots button.active::after { background: var(--ivory); }

/* ---------- Marquee / clients ---------- */
.clients {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 36px 0;
  overflow: hidden;
}
.clients__track {
  display: flex;
  gap: 72px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--ivory-dim);
}
@media (max-width: 760px) { .clients__track { gap: 40px; font-size: 20px; } }
.clients__track span { flex-shrink: 0; }
.clients__track .sep { color: var(--champagne); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Contact / footer ---------- */
.contact { padding: clamp(120px, 18vh, 200px) var(--pad) 0; }
.contact__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  padding-bottom: clamp(80px, 14vh, 160px);
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 760px) { .contact__top { grid-template-columns: 1fr; } }
.contact__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
@media (max-width: 760px) { .contact__lede { font-size: clamp(36px, 9vw, 56px); } }
.contact__lede .roman { font-style: normal; }
.contact__details { display: flex; flex-direction: column; gap: 28px; }
.contact__row { display: flex; flex-direction: column; gap: 6px; }
.contact__row .lbl {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.contact__row a, .contact__row span {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}
.contact__row a:hover { color: var(--champagne); }
.contact__actions { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }

.btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ivory);
  font: inherit;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 16px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.btn:hover { border-color: var(--champagne); color: var(--champagne); }
.btn--solid { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn--solid:hover { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.btn .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); }

.foot {
  padding: 48px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.foot__center {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ivory-dim);
}
.foot__right { text-align: right; }
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; text-align: center; }
  .foot__right { text-align: center; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.2, 0.6, 0.2, 1), transform 1s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Image slot styling ---------- */
image-slot {
  --is-bg: #141210;
  --is-border: rgba(245,241,232,0.12);
  --is-fg: var(--ivory-dim);
  background: var(--is-bg);
  color: var(--is-fg);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}
