:root {
  --black: #000;
  --ink: #111;
  --muted: #5d5d5d;
  --line: #dcdcdc;
  --line-strong: #9a9a9a;
  --bg: #fff;
  --panel: #fff;
  --soft: #f4f4f2;
  --chip: #f1f1ef;
  --accent: #000;
  --accent-ink: #fff;
  --accent-hover: #2a2a2a;
  --radius: 3px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bar-h: 58px;
  --util-h: 0px;
}
/* Optional all-dark look: set theme: 'dark' in js/config.js */
:root[data-theme="dark"] {
  --ink: #f2f2f2;
  --muted: #a6a6a6;
  --line: #333;
  --line-strong: #555;
  --bg: #000;
  --panel: #141414;
  --soft: #0b0b0b;
  --chip: #1f1f1f;
  --accent: #fff;
  --accent-ink: #000;
  --accent-hover: #d9d9d9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main { min-height: 60vh; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; font: 600 16px var(--font); border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-dark { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-dark:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-line { background: var(--panel); color: var(--ink); border-color: var(--accent); }
.btn-line:hover { background: var(--accent); color: var(--accent-ink); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e9e9e9; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-danger { background: #fff; color: #b00020; border-color: #b00020; }
.btn-danger:hover { background: #b00020; color: #fff; }

/* header: thin utility strip + black bar */
#header { position: sticky; top: calc(-1 * var(--util-h)); z-index: 50; }
.util { background: #1c1c1c; color: #e6e6e6; font-size: 13px; height: var(--util-h); }
.util .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 22px; height: 100%; }
.util a { text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; }
.top { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; }
.top-in { display: flex; align-items: center; gap: 28px; height: var(--bar-h); }
.brand img { width: 165px; height: 52px; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 30px; flex: 1; }
.nav a { color: #cfcfcf; text-decoration: none; font-size: 17px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: #fff; border-bottom-color: #fff; }
.top-phone { color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; white-space: nowrap; padding-left: 24px; border-left: 1px solid #3a3a3a; }
.menu-btn { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 12px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 5px 0; }

/* form controls */
select, input, textarea { font: 400 16px var(--font); color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 12px; min-height: 46px; width: 100%; }
textarea { padding: 10px 12px; resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--accent); flex: none; }
select:focus, input:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font: 500 16px var(--font); color: var(--ink); background: var(--chip); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 500; padding: 3px 9px; background: var(--chip); border: 1px solid var(--line); border-radius: 2px; white-space: nowrap; }

/* hero */
.hero { color: #fff; text-align: center; padding: 64px 0 28px;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.7)),
    var(--hero-img, radial-gradient(ellipse at 50% 120%, #77726b 0%, #33312e 45%, #101010 100%)) center / cover no-repeat;
  background-color: #1a1a1a; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 600; max-width: 820px; margin: 0 auto; }
.hero-sub { font-size: clamp(18px, 2vw, 22px); margin: 14px auto 30px; font-weight: 300; max-width: 620px; }
.search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; padding: 10px; background: rgba(0,0,0,.88); border: 1px solid #444; border-radius: var(--radius); }
.search input { background: transparent; border: 0; color: #fff; font-size: 17px; }
.search input::placeholder { color: #a9a9a9; }
.search input:focus { outline: 0; }
.search:focus-within { border-color: #fff; }
.search .btn { min-height: 46px; padding: 0 26px; }
.hero .chips { justify-content: center; max-width: 720px; margin: 18px auto 0; }
.hero .chip { background: rgba(0,0,0,.82); color: #fff; border-color: #555; }
.hero .chip:hover { border-color: #fff; }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.hero-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 26px; background: rgba(12,12,12,.92); border: 1px solid #3a3a3a; border-radius: var(--radius); color: #fff; text-decoration: none; font-size: 22px; font-weight: 600; text-align: left; }
.hero-tile small { display: block; font-size: 15px; font-weight: 300; color: #c9c9c9; margin-top: 2px; }
.hero-tile span.arrow { font-size: 28px; line-height: 1; }
.hero-tile:hover { border-color: #fff; }

/* sections */
.section { padding: 52px 0 64px; }
.section-soft { background: var(--soft); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.head h1, .head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; }
.head .sub { color: var(--muted); margin: 6px 0 0; }
.center { text-align: center; margin-top: 36px; }

/* vehicle cards: 3 across on desktop */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.card-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: #e6e6e4; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center; color: #5d5d5d; font-size: 15px; background: #e6e6e4; }
.badge { position: absolute; top: 12px; left: 12px; background: #000; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 2px; }
.pcount { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 13px; padding: 2px 8px; border-radius: 2px; }
.is-sold img { filter: grayscale(1); opacity: .75; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 20px; font-weight: 600; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prices { margin: auto 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prices dt { color: var(--muted); font-size: 15px; }
.prices dd { margin: 0; font-size: 22px; font-weight: 700; }
.fine { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.card-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-btns .btn { padding: 0 8px; min-height: 42px; font-size: 15px; text-align: center; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); }
.empty h1 { color: var(--ink); font-size: 30px; margin-bottom: 20px; }

/* numbered reasons */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.why .num { font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.why h3 { font-size: 22px; font-weight: 600; margin: 10px 0 8px; }
.why p { margin: 0; color: var(--muted); font-size: 16px; }

/* inventory page: filter sidebar + results */
.inv { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); overflow-y: auto; padding: 8px 14px 24px; background: var(--panel); border-right: 1px solid var(--line); }
.side-head { display: none; }
.side details { border-bottom: 1px solid var(--line); }
.side summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; padding: 15px 6px; }
.side summary::-webkit-details-marker { display: none; }
.side summary::after { content: '›'; font-size: 24px; line-height: 1; font-weight: 400; transition: transform .15s; }
.side details[open] summary::after { transform: rotate(90deg); }
.side .opts { padding: 0 6px 14px; display: grid; gap: 2px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 16px; }
.opt span { color: var(--muted); margin-left: auto; font-size: 14px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 6px 16px; }
.range input { min-height: 42px; }
.side-clear { margin: 16px 6px 0; }
.side-done { display: none; }
.inv-main { padding: 14px 20px 64px; min-width: 0; }
.inv-main h1 { font-size: 26px; font-weight: 600; margin: 4px 0 14px; }
.chips-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.inv-tools { display: flex; gap: 10px; align-items: center; margin: 12px 0 14px; }
.inv-tools input { max-width: 340px; }
.inv-tools select { width: auto; min-width: 190px; margin-left: auto; }
.filt-btn { display: none; }
.scrim { display: none; }

/* vehicle detail */
.vd-bar { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.vd-bar .grow { flex: 1; }
.vd-stock { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; font-size: 15px; background: var(--chip); }
.vd { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr); gap: 14px; align-items: start; padding-bottom: 64px; }
.vd-main { display: grid; gap: 14px; min-width: 0; }
.vd-side { display: grid; gap: 14px; position: sticky; top: calc(var(--bar-h) + 12px); grid-column: 2; grid-row: 1 / span 2; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--panel); }
.box h2 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: #e6e6e4; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 56px; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.g-prev { left: 0; } .g-next { right: 0; }
.g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.7); color: #fff; font-size: 14px; padding: 3px 10px; border-radius: 2px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; }
.thumb { flex: 0 0 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: none; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: .65; }
.thumb.on { border-color: var(--accent); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.actions a { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 8px; text-decoration: none; font-weight: 500; text-align: center; }
.actions a + a { border-left: 1px solid var(--line); }
.actions a:hover { background: var(--accent); color: var(--accent-ink); }
.vd-title { text-align: center; }
.vd-title h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; }
.vd-title .sub { margin: 8px 0 16px; font-size: 18px; color: var(--muted); }
.price-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; text-align: left; }
.price-box span { font-size: 17px; }
.price-box strong { font-size: 28px; font-weight: 700; }
.vd-title .fine { text-align: left; margin-top: 8px; }
.vd-title .tags { justify-content: center; margin-top: 14px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.info-grid div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-grid dt { color: var(--muted); }
.info-grid dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.box p { margin: 0 0 6px; }
.mobile-cta { display: none; }

/* forms */
.lead { display: grid; gap: 14px; }
.lead label, .field label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead .btn { justify-self: start; }
.vd-side .lead .btn { justify-self: stretch; }
.vd-side .two { grid-template-columns: 1fr; }
.form-msg { margin: 0; min-height: 1.4em; color: var(--muted); }
.form-msg.err, .err { color: #b00020; }
.form-done { font-size: 19px; font-weight: 500; padding: 20px; background: var(--soft); border-left: 4px solid var(--accent); }

/* content pages */
.page-title { background: #000; color: #fff; padding: 44px 0; }
.page-title h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 600; }
.page-title p { margin: 8px 0 0; color: #c9c9c9; font-size: 19px; }
.prose { max-width: 720px; font-size: 19px; }
.prose h2 { font-size: 28px; margin: 36px 0 12px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info h2 { font-size: 22px; margin: 26px 0 8px; }
.info h2:first-child { margin-top: 0; }
.info p { margin: 0 0 4px; }
.info .big { font-size: 26px; font-weight: 700; text-decoration: none; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; max-width: 280px; }
.map { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; }
.cols .map { margin-top: 0; height: 100%; min-height: 340px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.tile { border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 22px; border-radius: var(--radius); background: var(--panel); }
.tile h3 { font-size: 20px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

/* footer */
.foot { background: var(--black); color: #cfcfcf; margin-top: 0; font-size: 16px; border-top: 1px solid #2a2a2a; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; padding-top: 44px; padding-bottom: 28px; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.foot p { margin: 0 0 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-logo { width: 190px; height: 60px; object-fit: cover; margin: -8px 0 6px -10px; }
.foot-legal { border-top: 1px solid #2a2a2a; padding-top: 18px; padding-bottom: 24px; font-size: 14px; color: #9a9a9a; }

/* filters become a slide-in drawer */
@media (max-width: 1100px) {
  .inv { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(330px, 88vw); height: auto; transform: translateX(-100%); border-right: 1px solid var(--line); padding-bottom: 90px; }
  .filters-open .side { transform: none; }
  .side-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px; font-size: 20px; font-weight: 600; }
  .side-head button { background: none; border: 0; color: var(--ink); font-size: 30px; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
  .side-done { display: flex; position: fixed; left: 14px; bottom: 14px; width: calc(min(330px, 88vw) - 28px); }
  .filters-open .scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); }
  .filt-btn { display: inline-flex; flex: none; }
}

/* tablet */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; gap: 26px; }
  .cols .map { height: 340px; }
  .vd { display: flex; flex-direction: column; align-items: stretch; }
  .vd-side { display: contents; }
  .vd-gallery { order: 1; } .vd-title { order: 2; } .vd-main { order: 3; } .vd-ask { order: 4; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .tiles, .why { grid-template-columns: 1fr; }
  .nav { gap: 22px; }
}

/* phone */
@media (max-width: 720px) {
  :root { --bar-h: 54px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .util { display: none; }
  .top-in { gap: 8px; }
  .brand { margin-right: auto; }
  .brand img { width: 146px; height: 46px; }
  .top-phone { font-size: 15px; padding-left: 0; border-left: 0; }
  .menu-btn { display: block; margin-right: -12px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: 4px 16px 16px; border-top: 1px solid #2a2a2a; }
  .nav-open .nav { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid #2a2a2a; font-size: 19px; color: #fff; }
  .hero { padding: 40px 0 20px; }
  .hero-tiles { grid-template-columns: 1fr; margin-top: 32px; }
  .hero-tile { padding: 18px 20px; font-size: 20px; }
  .search .btn { padding: 0 18px; }
  .hero .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; }
  .section { padding: 34px 0 44px; }
  .grid { grid-template-columns: 1fr; }
  .inv-main { padding: 12px 16px 48px; }
  .inv-tools { flex-wrap: wrap; }
  .inv-tools input { max-width: none; flex: 1 1 100%; order: -1; }
  .inv-tools select { flex: 1; min-width: 0; margin-left: 0; }
  .two { grid-template-columns: 1fr; }
  .lead .btn { justify-self: stretch; }
  .vd-gallery { margin: 0 -16px; }
  .gallery-main { border-radius: 0; border-left: 0; border-right: 0; }
  .thumbs { padding-left: 16px; padding-right: 16px; }
  .thumb { flex-basis: 76px; }
  .info-grid { grid-template-columns: 1fr; }
  .box { padding: 16px; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--line); }
  .has-mobile-cta .foot { padding-bottom: 80px; }
  .foot-in { grid-template-columns: 1fr; gap: 24px; }
  .page-title { padding: 30px 0; }
}

/* touch-ups */
.chips-row, .hero .chips { scrollbar-width: none; }
.chips-row::-webkit-scrollbar, .hero .chips::-webkit-scrollbar { display: none; }
.filt-btn { min-height: 46px; }
.card-btns .btn { line-height: 1.15; }

/* home: photo banner + search block */
.banner { background: #000; }
.banner img { width: 100%; height: auto; }
.find { text-align: center; padding: 40px 0 48px; }
.find h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; }
.find-sub { font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); margin: 10px auto 24px; }
.find .search { background: var(--panel); border-color: var(--line-strong); }
.find .search input { color: var(--ink); }
.find .search input::placeholder { color: var(--muted); }
.find .search:focus-within { border-color: var(--accent); }
.find .chips { justify-content: center; margin-top: 16px; }
.find-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.find-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; background: var(--black); color: #fff; border-radius: var(--radius); text-decoration: none; font-size: 21px; font-weight: 600; text-align: left; }
.find-tile small { display: block; font-size: 15px; font-weight: 300; color: #c9c9c9; margin-top: 2px; }
.find-tile .arrow { font-size: 28px; line-height: 1; }
.find-tile:hover { background: #2a2a2a; }
@media (max-width: 720px) {
  .find { padding: 28px 0 36px; }
  .find .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-left: -16px; margin-right: -16px; padding: 0 16px; scrollbar-width: none; }
  .find-tiles { grid-template-columns: 1fr; margin-top: 24px; }
}

/* ===== motion ===== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --intro: 0s; }
:root.intro-on { --intro: 1.45s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes intro-logo { from { opacity: 0; transform: scale(.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-out { to { transform: translateY(-100%); } }
@keyframes intro-lift { to { opacity: 0; transform: translateY(40px) scale(.97); } }
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(560%) skewX(-18deg); } }

/* intro splash (home, once per visit) */
.intro { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; animation: intro-out .95s cubic-bezier(.76, 0, .24, 1) 1.3s forwards; will-change: transform; }
.intro-in { display: grid; justify-items: center; gap: 14px; animation: intro-lift .6s ease-in 1.2s forwards; }
.intro img { width: min(72vw, 380px); height: auto; aspect-ratio: 19 / 6; object-fit: cover; animation: intro-logo .9s var(--ease) both; }
.intro-line { width: min(50vw, 240px); height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); transform-origin: center; animation: intro-line .9s var(--ease) .25s both; }

/* gentle page entrance */
main { animation: fade-in .5s ease both; }

/* hero */
.hero2 { position: relative; background: #000; color: #fff; overflow: hidden; }
.hero2-pic { display: block; overflow: hidden; }
.hero2-pic img { width: 100%; height: auto; animation: hero-zoom 2.8s var(--ease) var(--intro) both; will-change: transform; }
.hero2-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.85) 100%); }
.hero2::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); animation: sheen 1.8s ease-out calc(var(--intro) + .5s) both; }
.hero2-copy { position: relative; z-index: 2; text-align: center; padding: 0 0 92px; margin-top: -34px; }
.hero2 h1 { font-size: clamp(34px, 4vw, 54px); font-weight: 600; animation: fade-up .9s var(--ease) calc(var(--intro) + .25s) both; }
.hero2-sub { font-size: clamp(17px, 1.6vw, 21px); font-weight: 300; color: #dcdcdc; margin: 10px 0 22px; animation: fade-up .9s var(--ease) calc(var(--intro) + .4s) both; }
.hero2-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: fade-up .9s var(--ease) calc(var(--intro) + .55s) both; }
.btn-glass { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: #000; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* search card floats over the hero edge */
.find { padding: 0 0 48px; }
.find-card { position: relative; z-index: 3; max-width: 760px; margin: -52px auto 0; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.22); animation: fade-up 1s var(--ease) calc(var(--intro) + .7s) both; }
.find .search { max-width: none; }
.find .chips { margin-top: 12px; }

.hero2-shade { bottom: auto; height: 0; }
.hero2-pic { position: relative; }
.hero2-pic::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0), #000); }

/* scroll reveal */
.rv.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.rv.in { opacity: 1; transform: none; }

/* hover life */
.card { transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.card-photo img { transition: transform .7s var(--ease); }
.card:hover .card-photo img { transform: scale(1.06); }
.btn { transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: scale(.97); }
.chip { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.find-tile { transition: background .2s, transform .3s var(--ease); }
.find-tile:hover { transform: translateY(-3px); }
.find-tile .arrow { transition: transform .3s var(--ease); }
.find-tile:hover .arrow { transform: translateX(6px); }
.why > div, .tile { transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.why > div:hover, .tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.nav a { position: relative; border-bottom: 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.top { transition: box-shadow .3s; }
.scrolled .top { box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.gallery-main img { transition: opacity .3s ease; }
.thumb { transition: opacity .2s, border-color .2s; }
.thumb:hover { opacity: 1; }
.actions a { transition: background .2s, color .2s; }

@media (max-width: 720px) {
  .hero2-copy { padding: 4px 0 70px; }
  .find-card { margin-top: -44px; padding: 12px; }
  .find .chips { margin-left: -12px; margin-right: -12px; padding: 0 12px; }
  .nav a::after { display: none; }
  .nav a { border-bottom: 1px solid #2a2a2a; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .intro { display: none; }
}
