:root {
  --bg: #0a0b0c;
  --panel: #101214;
  --line: rgba(236, 231, 221, .12);
  --ivory: #ece7dd;
  --mute: #a8a399;
  --gold: #c6a56c;      /* brand gold #8e6b3a, lifted for contrast on graphite */
  --gold-deep: #8e6b3a;
  --pad: clamp(20px, 4.4vw, 72px);
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ivory); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: italic; color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.2s; }
.loaded #stage { opacity: 1; }

/* ---------- type ---------- */
.eyebrow, .nav-links a, .nav-tel, .nav-toggle, .btn, .lights, .facts span, .services span, .cars a, .foot {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--gold); }
.display { font: 500 clamp(44px, 7.8vw, 136px)/.95 var(--serif); letter-spacing: -.02em; margin-top: 24px; }
.h2 { font: 500 clamp(34px, 4.4vw, 72px)/1.05 var(--serif); letter-spacing: -.015em; margin-top: 24px; }
.lead { color: #d8d3c8; font-size: 17px; max-width: 34ch; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; height: 88px; padding: 0 var(--pad); display: flex; align-items: center; gap: 40px;
  transition: background .4s, height .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { height: 64px; background: rgba(10, 11, 12, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.logo { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.logo b { font: 500 27px/1 var(--serif); letter-spacing: .01em; color: var(--ivory); }
.logo span { font-size: 9px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); padding-left: 2px; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 40px); margin-left: auto; }
.nav-links a { position: relative; padding: 8px 0; color: #e2ddd2; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-tel { padding: 12px 20px; border: 1px solid var(--line); color: var(--gold); transition: border-color .3s; }
.nav-tel:hover { border-color: var(--gold); }
.nav-toggle { display: none; margin-left: auto; padding: 12px 0; }

/* ---------- hero ---------- */
main { position: relative; z-index: 1; }
.hero { min-height: 100svh; padding: 120px var(--pad) 72px; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 11, 12, .9), transparent 50%), linear-gradient(to right, rgba(10, 11, 12, .82) 0, rgba(10, 11, 12, .5) 38%, transparent 62%); }
.hero > * { pointer-events: auto; }
.display .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.display .line > span { display: inline-block; transform: translateY(110%); }
.ready .display .line > span { animation: up 1.1s cubic-bezier(.2, .7, .2, 1) var(--d) forwards; }
.rise { opacity: 0; }
.ready .rise { animation: fade 1s ease var(--d) forwards; }
@keyframes up { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-foot { display: flex; align-items: flex-end; gap: 48px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; gap: 16px; padding: 18px 28px; border: 1px solid var(--line); transition: border-color .3s, background .3s, color .3s; }
.btn i { font-style: normal; transition: transform .3s; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn:hover i { transform: translateX(6px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #14110b; font-weight: 600; }
.btn-gold:hover { background: transparent; }
.toggles { margin-left: auto; display: flex; gap: 32px; }
.lights { display: inline-flex; align-items: center; gap: 12px; padding: 18px 0; color: var(--mute); }
.lights .dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--mute); transition: .3s; }
.lights[aria-pressed="true"] { color: var(--ivory); }
.lights[aria-pressed="true"] .dot { background: #fff3d6; border-color: #fff3d6; box-shadow: 0 0 14px 3px rgba(255, 233, 180, .7); }

/* ---------- about ---------- */
.about { min-height: 120svh; padding: 160px var(--pad) 120px; display: flex; align-items: center; pointer-events: none;
  background: linear-gradient(to right, rgba(10, 11, 12, .92) 0, rgba(10, 11, 12, .55) 42%, transparent 62%); }
.about-text { width: min(560px, 100%); pointer-events: auto; }
.facts { display: flex; gap: 56px; margin-top: 48px; }
.facts div { display: flex; align-items: center; gap: 16px; }
.facts b { font: 400 72px/1 var(--serif); color: var(--gold); }
.facts span { color: var(--mute); line-height: 1.7; }
.services { margin-top: 48px; border-top: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: 48px 1fr; column-gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.services span { color: var(--gold); padding-top: 7px; }
.services h3 { font: 500 24px/1.2 var(--serif); }
.services p { grid-column: 2; color: #bdb8ad; font-size: 15px; margin-top: 4px; }

/* ---------- offer ---------- */
.offer { position: relative; background: var(--panel); padding: 144px var(--pad) 48px; border-top: 1px solid var(--line); }
.cars { margin: 64px 0 56px; border-top: 1px solid var(--line); }
.cars a { display: grid; grid-template-columns: 56px minmax(0, 1fr) 96px 136px 136px 168px 24px; align-items: baseline; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--mute); transition: color .3s, padding .45s cubic-bezier(.2, .7, .2, 1); }
.cars .n { color: var(--gold); }
.cars .m { font: 500 clamp(24px, 2.7vw, 40px)/1.1 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--ivory); transition: color .3s; }
.cars .p { color: var(--ivory); text-align: right; }
.cars i { font-style: normal; text-align: right; opacity: 0; transform: translateX(-8px); transition: .3s; color: var(--gold); }
.cars a:hover { padding-left: 16px; }
.cars a:hover .m, .cars a:hover .p { color: var(--gold); }
.cars a:hover i { opacity: 1; transform: none; }
.cars .sold .m { color: #8a867e; }
.cars .sold .p { color: var(--mute); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 120px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); }
.foot a { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 960px) {
  .nav-tel { display: none; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 0; z-index: -1; margin: 0; padding: 120px var(--pad) 48px; flex-direction: column; gap: 8px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a { font: 400 40px/1.2 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--ivory); }
  .hero { background: linear-gradient(to top, rgba(10, 11, 12, .92) 40%, transparent 68%); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .toggles { margin-left: 0; }
  .lights { padding: 0; }
  .about { align-items: flex-end; padding-top: 70svh; background: linear-gradient(to top, rgba(10, 11, 12, .96) 55%, transparent 85%); }
  .facts { gap: 32px; }
  .facts b { font-size: 56px; }
  .offer { padding-top: 96px; }
  .cars a { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 20px 0; }
  .cars .n, .cars i { display: none; }
  .cars .m { grid-column: 1 / -1; }
  .cars a span:nth-child(5) { display: none; }
  .cars .p { grid-column: 2; grid-row: 2; }
  .cars a span:nth-child(3) { grid-row: 2; }
  .cars a span:nth-child(4) { grid-column: 1; grid-row: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}

/* screenshot mode (?t=): skip entrance animations */
.still .display .line > span { transform: none; animation: none !important; }
.still .rise, .still .reveal { opacity: 1; transform: none; animation: none !important; }

/* ---------- WeTrio Dev back badge (same on every demo) ---------- */
.demo-badge { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(10, 11, 12, .72); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; opacity: .45; transition: opacity .35s, transform .35s; }
.demo-badge:hover { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.demo-badge b { font-weight: 600; }
.versions { position: fixed; left: var(--pad); bottom: 18px; z-index: 45; display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: rgba(10, 11, 12, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.versions a { padding: 9px 14px; color: var(--mute); }
.versions a[aria-current] { background: var(--ivory); color: #0b0b0b; }
@media (max-width: 960px) { .versions { left: auto; right: var(--pad); } .demo-badge { left: var(--pad); transform: none; } }
.demo-badge i { font-style: normal; opacity: .55; }

.credit { margin-top: 16px; padding-bottom: 40px; font-size: 12px; color: #7d7a73; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

/* Bodoni at a low optical size: the hairlines stay thick enough to read on a dark ground.
   Kept last because the `font` shorthand above resets font-variation-settings. */
.display, .h2, .facts b, .services h3, .cars .m, .logo b, .nav.open .nav-links a { font-optical-sizing: none; font-variation-settings: "opsz" 16; }

/* three version pills fill a phone's width: the badge sits above them */
@media (max-width: 960px) { .demo-badge { bottom: 62px; } }
