/* Grand Touring Collection, public site. Dark, photo-first, restrained. */
:root {
  --bg: #0d0e10; --bg2: #141518; --bg3: #1b1d21; --line: #26292e; --line2: #34383f;
  --text: #ece8df; --text2: #c9c4b8; --muted: #8f8a80; --faint: #5f5b54;
  --gold: #c9a962; --gold2: #dcc07f; --green: #3f8a55;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 6px; --wrap: 1280px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(30px, 4.2vw, 48px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head a { font-size: 14px; color: var(--text2); }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--text2); max-width: 62ch; font-family: var(--serif); }
.sr { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--line2); border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .01em; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--bg3); border-color: var(--text2); text-decoration: none; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #17140c; font-weight: 600; }
.btn.primary:hover { background: var(--gold2); border-color: var(--gold2); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(13,14,16,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--serif); font-size: 15px; line-height: 1.15; letter-spacing: .02em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 39px; border-radius: 4px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a, .nav button { color: var(--text2); font: inherit; font-size: 14.5px; padding: 8px 12px; border-radius: 4px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav a:hover, .nav button:hover { color: var(--text); text-decoration: none; background: var(--bg3); }
.nav a.active, .menu.active > button { color: var(--gold2); }
.menu { position: relative; }
.menu > button::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.menu-list { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.5); flex-direction: column; }
.menu:hover .menu-list, .menu.open .menu-list { display: flex; }
.menu-list a { padding: 10px 12px; }
.reach { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; line-height: 1.3; }
.reach a { color: var(--text2); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; margin-left: auto; }
.burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.burger span { top: 21px; }
.burger span::before { top: -8px; left: 0; }
.burger span::after { top: 8px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
.drawer { display: none; }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; background: var(--bg2); overflow: hidden; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: var(--hero) center / cover no-repeat; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,16,.15) 0%, rgba(13,14,16,.45) 50%, rgba(13,14,16,.96) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 80px 20px 64px; }
.hero h1 { max-width: 20ch; font-size: clamp(32px, 5vw, 60px); text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero p { font-size: clamp(17px, 2vw, 21px); color: var(--text2); margin: 18px 0 28px; max-width: 50ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.about .lede { margin: 0 auto; text-align: center; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 20px; text-align: center; }
.band h2 { max-width: 30ch; margin: 0 auto 10px; }
.band p { color: var(--text2); margin-bottom: 22px; }

/* Tiles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 24px; }
.tile { display: block; color: var(--text); }
.tile:hover { text-decoration: none; }
.tile-photo { position: relative; aspect-ratio: 4 / 3; background: var(--bg3); border-radius: var(--radius); overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .6s ease; }
.tile-photo img.hover { position: absolute; inset: 0; opacity: 0; }
.tile:hover .tile-photo img.hover { opacity: 1; }
.tile:hover .tile-photo img:first-child { transform: scale(1.03); }
.tile.sold .tile-photo img:first-child { filter: saturate(.6) brightness(.85); }
.tile .nophoto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 14px; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(13,14,16,.8); color: var(--text); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.badge.sale_pending { color: #f0c27a; }
.badge.coming_soon { color: #9fc4ff; }
.badge.sold { color: var(--muted); }
.badge.race { color: #ff8b8b; }
.tile-text { padding: 12px 2px 0; }
.tile-text h3 { font-size: 19px; }
.tile-text p { margin: 4px 0 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter select { min-height: 38px; padding: 0 32px 0 12px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; color: var(--muted); font-size: 14px; }
.foot-link { margin-top: 36px; color: var(--muted); }

/* Forms */
input, select, textarea, button { font: inherit; }
input[type=text], input[type=email], input[type=tel], input[type=file], select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); color: var(--text); }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,98,.18); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.form.narrow { max-width: 440px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text2); }
.form label small { color: var(--muted); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.form legend { padding: 0 6px; font-size: 14px; color: var(--text2); }
.form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.form input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--gold); }
.form button[type=submit] { align-self: flex-start; min-width: 160px; }
.form .about { color: var(--text2); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #ff9b9b; }
.cf-turnstile { min-height: 65px; }
.photo-note { font-size: 13px; color: var(--muted); }

/* Content pages */
.page h1 { margin-bottom: 18px; }
.page h2 { margin: 36px 0 12px; }
.page .form { margin-top: 32px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain.spaced li { line-height: 1.55; }
.closing { margin-top: 18px; font-family: var(--serif); font-size: 20px; color: var(--text2); }
.contact-lines { display: flex; flex-direction: column; gap: 4px; font-size: 18px; margin-bottom: 8px; }
.contact-lines .address { color: var(--text2); white-space: pre-line; font-size: 16px; margin-top: 6px; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 32px; }
.step { max-width: 72ch; padding-top: 32px; border-top: 1px solid var(--line); }
.step .num { font-family: var(--serif); color: var(--gold); font-size: 14px; letter-spacing: .2em; margin-bottom: 8px; }
.step h2 { margin: 0 0 8px; }
.step p { color: var(--text2); }
.step ul { margin: 0; padding-left: 18px; color: var(--text2); }
.step li { margin: 4px 0; }
.step .follow { margin-top: 12px; font-size: 14px; }
.cta { margin-top: 48px; }
.thanks .lede { margin-bottom: 24px; }
.gate .lede { margin-bottom: 24px; }

/* Car page */
.car .sold-banner { background: var(--bg3); color: var(--text2); text-align: center; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; padding: 10px; border-bottom: 1px solid var(--line); }
.gallery { background: #000; }
.hero-photo { display: block; width: 100%; max-height: 82vh; aspect-ratio: 3 / 2; position: relative; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; }
.hero-photo.nophoto { display: flex; align-items: center; justify-content: center; color: var(--faint); aspect-ratio: 3 / 1; }
.hero-photo .count { position: absolute; right: 14px; bottom: 14px; background: rgba(13,14,16,.8); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--text); }
.thumbs { display: flex; gap: 6px; padding: 8px 20px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: 0 0 auto; width: 96px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--bg3); cursor: pointer; opacity: .7; }
.thumbs button.current, .thumbs button:hover { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car-body { padding-top: 32px; padding-bottom: 64px; }
.car-head .stock { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.car-head .stock .badge { text-transform: none; letter-spacing: .02em; }
.car-head h1 { margin: 8px 0 6px; }
.car-head .headline { font-family: var(--serif); font-size: 20px; color: var(--text2); max-width: 60ch; }
.car-actions { display: flex; gap: 10px; margin: 18px 0 8px; }
.car-columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; margin-top: 24px; }
.car-main section { margin-bottom: 36px; }
.car-main h2 { margin-bottom: 12px; }
.highlights { margin: 0; padding-left: 20px; }
.highlights li { margin: 6px 0; }
.narrative p { color: var(--text2); max-width: 70ch; }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.docs small { color: var(--muted); margin-left: 8px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.specs { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
.price-block { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.price-block .price { font-family: var(--serif); font-size: 22px; }
.price-block .stock { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.price-block .standing { margin: 12px 0 0; color: var(--text2); font-size: 14px; }
.inquire { margin-top: 24px; padding-top: 36px; border-top: 1px solid var(--line); }
.inquire h2 { margin-bottom: 16px; }
.pin-inquire { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.96); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--text2); font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 14px; background: var(--bg2); }
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.site-footer a { color: var(--text2); display: block; margin: 4px 0; }
.foot-brand { font-family: var(--serif); font-size: 18px; color: var(--text); margin-bottom: 8px; }
.legal { max-width: 90ch; font-size: 13px; color: var(--muted); margin: 6px 0 0; }

@media (max-width: 900px) {
  .nav, .reach { display: none; }
  .burger { display: block; }
  .drawer { display: flex; flex-direction: column; padding: 6px 12px 16px; border-top: 1px solid var(--line); }
  .drawer a { padding: 12px 8px; color: var(--text2); border-bottom: 1px solid var(--line); font-size: 16px; }
  .drawer a.active { color: var(--gold2); }
  .car-columns { grid-template-columns: 1fr; gap: 28px; }
  .car-side { order: -1; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header .bar { height: 60px; padding: 0 14px; }
  .logo span { display: none; }
  .section { padding: 40px 14px; }
  .wrap { padding: 0 14px; }
  .hero { min-height: 70vh; }
  .hero-inner { padding: 60px 14px 44px; }
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .form .row2 { grid-template-columns: 1fr; }
  .thumbs { padding: 8px 14px; }
  .thumbs button { width: 72px; height: 54px; }
  .pin-inquire { display: flex; position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20; justify-content: center; min-height: 50px; align-items: center; background: var(--gold); color: #17140c; font-weight: 600; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
  .pin-inquire:hover { text-decoration: none; }
  .car-body { padding-bottom: 110px; }
  .band { padding: 48px 14px; }
}
