/* =========================================================
   Mercedes On Rent — quiet luxury redesign
   Ivory ground · Ink type · Champagne accent
   ========================================================= */

:root {
  /* Ivory-base tokens */
  --ivory: #f4ede0;          /* page ground */
  --ivory-2: #ebe2cf;        /* slightly deeper */
  --ivory-3: #e0d4ba;        /* deepest neutral */
  --ink: #0d0d0d;            /* primary type */
  --ink-2: #1a1a1a;
  --ink-dim: #6a6357;        /* secondary type */
  --champagne: #8a6d3a;      /* sparing accent */
  --hairline: rgba(13, 13, 13, 0.14);
  --hairline-strong: rgba(13, 13, 13, 0.32);

  /* Dark surface tokens — for hero & cinematic fleet */
  --dark: #0a0a0a;
  --dark-2: #141414;
  --on-dark: #f5f1e8;
  --on-dark-dim: #a8a297;
  --on-dark-hairline: rgba(245, 241, 232, 0.16);
  --on-dark-hairline-strong: rgba(245, 241, 232, 0.32);

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

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  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(--on-dark); }

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-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;
}

.h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

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

.rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* Anchor targets sit below the sticky nav */
#top, #fleet, #why, #testimonials, #contact {
  scroll-margin-top: 88px;
}
@media (max-width: 720px) {
  #top, #fleet, #why, #testimonials, #contact {
    scroll-margin-top: 72px;
  }
}
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px var(--pad);
  color: var(--on-dark);
  background: rgba(10, 10, 10, 0.55);
  border-bottom: 1px solid rgba(245, 241, 232, 0.06);
  transition:
    background 0.5s cubic-bezier(0.2, 0.6, 0.2, 1),
    padding 0.5s cubic-bezier(0.2, 0.6, 0.2, 1),
    border-color 0.5s ease;
}

.nav.scrolled {
  background: #0a0a0a;
  border-bottom: 1px solid var(--on-dark-hairline);
  padding: 14px var(--pad);
}

.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(--on-dark);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.nav__brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--on-dark-dim);
  font-weight: 300;
}

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

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding: 11px 20px;
  border: 1px solid var(--on-dark-hairline-strong);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  position: relative;
}
.nav__cta:hover {
  border-color: var(--champagne);
  color: var(--champagne);
  background: rgba(138, 109, 58, 0.06);
}
.nav__cta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--champagne);
  flex-shrink: 0;
  position: relative;
}
.nav__cta .dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--champagne);
  transform: translate(-50%, -50%);
  opacity: 0.5;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(2.4); }
}

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

/* ---------- Hero ---------- */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}

/* All sections AFTER the hero rise over it as the user scrolls */
main > .fleet,
main > .section,
main > .clients,
main > .contact {
  position: relative;
  z-index: 1;
  background: var(--ivory);
}
main > .clients { background: var(--ivory-2); }

.hero__video,
.hero__image,
.hero__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Slight starting scale so the parallax has room to ease back to 1 */
  will-change: transform, opacity;
  transform: scale(1.08);
}

.hero__video,
.hero__image { object-fit: cover; }

.hero__placeholder {
  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(--on-dark-dim);
}

.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.50) 0%,
    rgba(10,10,10,0.10) 30%,
    rgba(10,10,10,0.15) 60%,
    rgba(10,10,10,0.70) 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;
  will-change: transform, opacity;
}

.hero__title {
  align-self: end;
  max-width: 1200px;
}
.hero__title .eyebrow { color: var(--on-dark-dim); }
.hero__title .display { display: block; }
.hero__title .display .roman {
  font-style: normal;
  letter-spacing: -0.015em;
}

.hero__cta-row {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__cta {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--on-dark);
  position: relative;
  padding: 6px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
  transition: color 0.3s ease, gap 0.3s ease;
}
.hero__cta::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--on-dark);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}
.hero__cta:hover { color: var(--champagne); gap: 18px; }
.hero__cta:hover::after {
  background: var(--champagne);
  transform-origin: left;
}
.hero__cta .arrow {
  font-style: normal;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  transform: translateY(-1px);
}

.hero__cta--ghost {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  padding: 6px 0 8px;
  transition: color 0.3s ease;
}
.hero__cta--ghost::after { background: var(--on-dark-hairline-strong); }
.hero__cta--ghost:hover { color: var(--on-dark); }

.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(--on-dark-hairline);
  will-change: transform, opacity;
}
.hero__meta-left, .hero__meta-right {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-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(--on-dark-dim);
  text-transform: uppercase;
}
.hero__scroll .line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--on-dark-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; }
}

@media (max-width: 760px) {
  .hero__content { padding: 90px var(--pad) 32px; }
  .hero__title { align-self: end; }
  .hero__cta-row { gap: 22px; margin-top: 28px; }
  .hero__cta { font-size: 18px; }
  .hero__meta {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "left right" "scroll scroll";
    gap: 14px 16px;
    padding-top: 20px;
    margin-top: 20px;
  }
  .hero__meta-left { grid-area: left; font-size: 9px; letter-spacing: 0.24em; }
  .hero__meta-right { grid-area: right; font-size: 9px; letter-spacing: 0.24em; }
  .hero__scroll { grid-area: scroll; flex-direction: row; gap: 14px; justify-content: center; }
  .hero__scroll .line { width: 28px; height: 1px; animation: scrollLineH 2.2s ease-in-out infinite; }
  .display { font-size: clamp(44px, 12vw, 96px); }
}
@keyframes scrollLineH {
  0% { transform: scaleX(0); transform-origin: left; opacity: 0; }
  40% { transform: scaleX(1); transform-origin: left; opacity: 1; }
  60% { transform: scaleX(1); transform-origin: right; opacity: 1; }
  100% { transform: scaleX(0); transform-origin: right; 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; }
  .section { padding: clamp(64px, 10vh, 120px) var(--pad); }
}

/* ---------- Fleet — desktop cinematic (pinned) ---------- */
.fleet {
  background: var(--ivory);
  color: var(--ink);
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}
.fleet .eyebrow { color: var(--ink-dim); }
.fleet .body-dim { color: var(--ink-dim); }

/* Editorial seam between dark hero and ivory fleet */
.fleet__seam {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 36px var(--pad);
  border-bottom: 1px solid var(--hairline);
}
.fleet__seam .l, .fleet__seam .r {
  height: 1px;
  background: var(--hairline);
}
.fleet__seam .mark {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.fleet__seam .mark .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--champagne);
  display: inline-block;
}
.fleet__seam .mark .roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
}
@media (max-width: 720px) {
  .fleet__seam { padding: 24px 20px; gap: 14px; }
  .fleet__seam .mark { font-size: 9px; letter-spacing: 0.3em; gap: 8px; }
  .fleet__seam .mark .roman { font-size: 12px; }
}

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

/* Pinned stage */
.fleet__stage {
  position: relative;
  height: 400vh; /* drives scroll length */
}
.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(--ink-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(--ink); }
.fleet__progress button.active .dash { width: 64px; background: var(--ink); }

.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; }

.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(--ink-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;
  color: var(--ink);
}
.fleet__copy .name .roman {
  font-style: normal;
  letter-spacing: -0.015em;
}
.fleet__copy .desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  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;
}
.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(--ink-dim);
}
.fleet__copy .specs .val {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.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%;
}

/* ---------- Fleet — mobile cinematic (horizontal snap) ---------- */
.fleet-h {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

/* Right-edge fade hint — disappears when at last card */
.fleet-h__edge {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 44px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(244, 237, 224, 0) 0%,
    rgba(244, 237, 224, 0.55) 65%,
    var(--ivory) 100%);
  transition: opacity 0.45s ease;
}
.fleet-h[data-at-end="1"] .fleet-h__edge { opacity: 0; }

/* Persistent "More" chevron stamp on the right edge */
.fleet-h__more {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 5;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.fleet-h__more .label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.fleet-h__more .chev {
  width: 8px; height: 8px;
  border-right: 1px solid var(--ink-dim);
  border-top: 1px solid var(--ink-dim);
  transform: rotate(45deg);
  animation: chevNudge 1.8s ease-in-out infinite;
}
@keyframes chevNudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50%      { transform: rotate(45deg) translate(3px, -3px); opacity: 1; }
}
.fleet-h[data-at-end="1"] .fleet-h__more { opacity: 0; }

.fleet-h__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fleet-h__track::-webkit-scrollbar { display: none; }

.fleet-h__slide {
  flex: 0 0 calc(100% - 36px);
  width: calc(100% - 36px);
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  padding: 80px 24px 96px;
  position: relative;
}
.fleet-h__slide:last-child {
  flex-basis: 100%;
  width: 100%;
}

.fleet-h__slide .fleet-h__media {
  height: 100%;
  min-height: 0;
  position: relative;
}
.fleet-h__slide .fleet-h__media image-slot {
  width: 100%;
  height: 100%;
}

.fleet-h__copy {
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.fleet-h__copy .index {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.fleet-h__copy .name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 11vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  color: var(--ink);
}
.fleet-h__copy .name .roman { font-style: normal; }
.fleet-h__copy .desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 38ch;
}
.fleet-h__copy .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid var(--hairline);
}
.fleet-h__copy .specs .lbl {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 2px;
}
.fleet-h__copy .specs .val {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}

.fleet-h__rail {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.fleet-h__rail button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  flex: 1;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
}
.fleet-h__rail button::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
  transition: background 0.4s ease, height 0.3s ease;
}
.fleet-h__rail button.active::after { background: var(--ink); height: 2px; }

.fleet-h__counter {
  position: absolute;
  top: 84px;
  right: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  z-index: 5;
}
.fleet-h__counter .now {
  color: var(--ink);
  font-size: 22px;
  margin-right: 2px;
}

.fleet-h__hint {
  position: absolute;
  top: 84px;
  left: 24px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fleet-h__hint .arr {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ink-dim);
  position: relative;
  animation: hintArrow 2.4s ease-in-out infinite;
}
.fleet-h__hint .arr::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--ink-dim);
  border-top: 1px solid var(--ink-dim);
  transform: translateY(-50%) rotate(45deg);
}
@keyframes hintArrow {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
}

/* ---------- 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(--ivory);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background 0.4s ease;
}
.why__cell:hover { background: var(--ivory-2); }
@media (max-width: 760px) {
  .why__cell { padding: 32px 24px; min-height: 180px; }
}
.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;
  color: var(--ink);
}
@media (max-width: 760px) { .why__title { font-size: 22px; } }
.why__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-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(26px, 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;
  color: var(--ink);
}
.testi__attr {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: opacity 0.5s ease;
}
@media (max-width: 760px) {
  .testi__attr { font-size: 10px; letter-spacing: 0.24em; margin-top: 28px; }
}
.testi__dots {
  margin-top: 56px;
  display: inline-flex;
  gap: 14px;
}
.testi__dots button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 28px; height: 1px;
  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(--ink); }

/* ---------- Clients marquee ---------- */
.clients {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 32px 0;
  overflow: hidden;
  background: var(--ivory-2);
}
.clients__track {
  display: flex;
  gap: 64px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}
.clients__track span { flex-shrink: 0; }
.clients__track .sep {
  color: var(--champagne);
  font-style: normal;
}
@media (max-width: 760px) {
  .clients__track { gap: 36px; font-size: 18px; }
  .clients { padding: 24px 0; }
}
@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;
    gap: 36px;
    padding-bottom: clamp(56px, 10vh, 96px);
  }
}
.contact__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.contact__lede .roman { font-style: normal; }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact__row .lbl {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.contact__row a, .contact__row span {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
  color: var(--ink);
}
.contact__row a:hover { color: var(--champagne); }
.contact__actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font: inherit;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 15px 24px;
  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(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.btn--solid:hover { background: var(--champagne); border-color: var(--champagne); color: var(--ivory); }
.btn .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--champagne);
}
@media (max-width: 480px) {
  .btn { padding: 14px 18px; font-size: 10px; letter-spacing: 0.24em; gap: 9px; flex: 1 1 auto; justify-content: center; }
}

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

/* ---------- Sticky mobile CTA bar ---------- */
.m-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  gap: 10px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--on-dark-hairline);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.m-cta-bar.in { transform: translateY(0); }
.m-cta-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding: 13px 10px;
  border: 1px solid var(--on-dark-hairline-strong);
}
.m-cta-bar a.solid {
  background: var(--on-dark);
  color: var(--dark);
  border-color: var(--on-dark);
}
.m-cta-bar a .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--champagne);
}
@media (max-width: 760px) {
  .m-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  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 tuning — light by default to match ivory surfaces ---------- */
image-slot {
  --is-bg: var(--ivory-2);
  --is-border: var(--hairline);
  --is-fg: var(--ink-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;
}

/* Override for any dark surface (kept for future variants) */
.on-dark image-slot {
  --is-bg: #141210;
  --is-border: rgba(245, 241, 232, 0.10);
  --is-fg: var(--on-dark-dim);
}

/* ---------- Palette variants (Tweaks) ---------- */
body.palette-ink {
  --ivory: #0a0a0a;
  --ivory-2: #141414;
  --ivory-3: #1c1c1c;
  --ink: #f5f1e8;
  --ink-2: #ece6d7;
  --ink-dim: #a8a297;
  --hairline: rgba(245, 241, 232, 0.14);
  --hairline-strong: rgba(245, 241, 232, 0.28);
  background: #0a0a0a;
}
body.palette-warm-ink {
  --ivory: #16110c;
  --ivory-2: #1c1812;
  --ivory-3: #251f17;
  --ink: #e8dcc4;
  --ink-2: #d8caaf;
  --ink-dim: #9a8d72;
  --champagne: #c9a96e;
  --hairline: rgba(232, 220, 196, 0.14);
  --hairline-strong: rgba(232, 220, 196, 0.32);
  background: #16110c;
}
