/* =====================================================================
   Value Motors 韋迪車行 — 前台樣式
   Brand: Navy #0B2545 · Electric Blue #0066FF · Black #111 · Silver #9CA3AF · Light Grey #F5F7FA
   ===================================================================== */

:root {
  /* colour */
  --ink: oklch(0.155 0.022 258);          /* showroom black, navy-tinted */
  --ink-2: oklch(0.2 0.03 258);
  --ink-3: oklch(0.255 0.04 258);
  --navy: oklch(0.275 0.075 256);         /* #0B2545 */
  --navy-2: oklch(0.32 0.085 257);
  --blue: oklch(0.557 0.239 262);         /* #0066FF */
  --blue-deep: oklch(0.47 0.22 263);
  --blue-hi: oklch(0.7 0.17 258);         /* small text on dark */
  --silver: oklch(0.71 0.02 262);         /* #9CA3AF */
  --mist: oklch(0.974 0.005 255);         /* #F5F7FA */
  --white: oklch(1 0 0);
  --text: oklch(0.21 0.03 258);
  --text-2: oklch(0.43 0.025 258);
  --line: oklch(0.89 0.01 258);
  --on-dark: oklch(0.97 0.004 255);
  --on-dark-2: oklch(0.79 0.015 258);
  --line-dark: oklch(1 0 0 / 0.13);
  --ok: oklch(0.62 0.15 155);
  --warn: oklch(0.75 0.15 75);
  --danger: oklch(0.58 0.2 25);

  /* type */
  --sans: "Archivo", "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --zh: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;

  /* space & shape */
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1440px;
  --header-h: 76px;
  --section: clamp(80px, 11vw, 168px);

  /* motion */
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --quart: cubic-bezier(0.25, 1, 0.5, 1);
  --inout: cubic-bezier(0.76, 0, 0.24, 1);

  /* z-index scale */
  --z-rail: 2;
  --z-fab: 40;
  --z-header: 50;
  --z-menu: 60;
  --z-dialog: 70;
  --z-toast: 80;
  --z-intro: 90;
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* 避免手機連撳兩下時放大網頁 */
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.dark :focus-visible, .navy :focus-visible { outline-color: var(--blue-hi); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: var(--z-toast); background: var(--blue); color: #fff; padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.dark { background: var(--ink); color: var(--on-dark); }
.navy { background: var(--navy); color: var(--on-dark); }
.light { background: var(--mist); color: var(--text); }
.white { background: var(--white); color: var(--text); }
.dark, .navy { line-height: 1.8; }

/* ------------------------------------------------------------- typography */
.en {
  font-family: "Archivo", sans-serif;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
}
.display {
  font-family: var(--zh);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  letter-spacing: 0.06em;
  line-height: 1.16;
}
.display--xl { font-size: clamp(2.6rem, 7.2vw, 6rem); letter-spacing: 0.05em; line-height: 1.08; }
.display--sm { font-size: clamp(1.7rem, 3.2vw, 2.75rem); }
.display b, .display strong { font-weight: 500; }
.title-pair { display: grid; gap: 14px; }
.title-pair .en { color: var(--silver); }
.dark .title-pair .en, .navy .title-pair .en { color: var(--on-dark-2); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.85; max-width: 38em; color: var(--text-2); }
.dark .lead, .navy .lead { color: var(--on-dark-2); }
.num { font-family: "Archivo", sans-serif; font-stretch: 125%; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-family: var(--zh); font-size: 1.5rem; font-weight: 500; letter-spacing: 0.04em; margin: 2.4em 0 0.8em; }
.prose h3 { font-size: 1.12rem; font-weight: 600; margin: 1.8em 0 0.6em; }
.prose ul { padding-left: 1.2em; margin: 0.8em 0; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* the brand slash — taken from the A in VALUE */
.slash { display: inline-block; width: 14px; height: 22px; background: var(--blue); transform: skewX(-24deg); vertical-align: -3px; }

/* ------------------------------------------------------------- buttons & links */
.btn {
  --bg: var(--blue); --fg: #fff; --sweep: var(--blue-deep);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 30px;
  background: var(--bg); color: var(--fg);
  font-family: var(--zh); font-size: 0.98rem; font-weight: 500; letter-spacing: 0.12em;
  border: 1px solid var(--bg);
  transition: color .5s var(--expo), border-color .5s var(--expo);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: -2px -30%; z-index: -1;
  background: var(--sweep);
  transform: translateX(-102%) skewX(-24deg);
  transition: transform .7s var(--expo);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0) skewX(-24deg); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { width: 18px; height: auto; transition: transform .6s var(--expo); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--ghost { --bg: transparent; --fg: currentColor; --sweep: var(--white); border-color: currentColor; }
.dark .btn--ghost:hover, .navy .btn--ghost:hover, .hero .btn--ghost:hover { color: var(--ink); }
.light .btn--ghost, .white .btn--ghost { --sweep: var(--ink); }
.light .btn--ghost:hover, .white .btn--ghost:hover { color: #fff; border-color: var(--ink); }
.btn--wa { --bg: oklch(0.63 0.17 150); --sweep: oklch(0.55 0.16 150); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--zh); font-weight: 500; letter-spacing: 0.1em; padding-bottom: 6px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .6s var(--expo);
}
.link-arrow:hover::after { transform: scaleX(0); }
.link-arrow svg { width: 18px; transition: transform .6s var(--expo); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .5s var(--expo), transform .6s var(--expo);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, oklch(0.12 0.02 258 / .6), transparent);
  transition: opacity .5s;
}
.site-header.is-solid { background: oklch(0.155 0.022 258 / .9); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.site-header.is-solid::after { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand svg { height: 26px; width: auto; }
.brand svg { transform-origin: left center; transition: transform .5s var(--expo); }
.site-header.is-solid .brand svg { transform: scale(.86); }
.logo .lg-v { fill: currentColor; }
.logo .lg-s { fill: var(--blue); }
.logo .lg-m { stroke: var(--silver); }
.logo .lg-u1 { fill: var(--blue); }
.logo .lg-u2 { fill: var(--silver); }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav a {
  position: relative; font-family: var(--zh); font-size: 0.92rem; letter-spacing: 0.12em; padding: 8px 0; white-space: nowrap;
  color: var(--on-dark);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue);
  transform: scaleX(0) skewX(-24deg); transform-origin: left; transition: transform .5s var(--expo);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1) skewX(-24deg); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 42px; padding: 0 20px; font-size: 0.88rem; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 4px 0 10px;
  font-family: "Archivo", sans-serif; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.7rem;
}
.menu-btn .bars { position: relative; width: 26px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--expo), right .5s var(--expo);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { bottom: 0; right: 8px; }
.menu-btn:hover .bars::after { right: 0; }
@media (max-width: 1180px) { .nav { display: none; } .header-cta { margin-left: auto; } }
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-cta .btn { display: none; }
  .menu-btn .label { display: none; }
  .site-header .container { gap: 12px; }
  .brand svg { height: 18px; }
  .demo-pill { padding: 2px 6px; font-size: 0.66rem; letter-spacing: 0.04em; }
  .hero__kicker .en { letter-spacing: 0.14em; font-size: 0.66rem; }
  .menu__close > span:first-child { display: none; }
  .filters .field input, .filters .field select { font-size: 16px; }
  .menu__top .brand svg { height: 18px; }
}

/* ------------------------------------------------------------- full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
}
.menu:not([open]) { display: none; }
.menu::backdrop { background: transparent; }
.menu[open] { animation: menu-in .9s var(--expo) both; }
.menu.is-closing { animation: menu-out .55s var(--inout) both; }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes menu-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
.menu__main { display: flex; flex-direction: column; padding: calc(var(--header-h) + 2vh) var(--gutter) clamp(16px, 3vh, 40px); overflow-y: auto; }
.menu__top { position: absolute; top: 0; left: 0; right: 0; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); z-index: 2; }
.menu__top .brand svg { height: 24px; }
.menu__close { display: inline-flex; align-items: center; gap: 12px; height: 42px; font-family: "Archivo", sans-serif; font-stretch: 125%; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.7rem; }
.menu__close .x { position: relative; width: 22px; height: 22px; }
.menu__close .x::before, .menu__close .x::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transform: rotate(45deg); }
.menu__close .x::after { transform: rotate(-45deg); }
.menu__list { list-style: none; margin-block: auto; display: grid; gap: 0; }
.menu__list a {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 22px;
  padding: clamp(3px, 0.9vh, 10px) 0;
  font-family: var(--zh); font-weight: 300; font-size: clamp(1.3rem, min(3vw, 5.2vh), 2.6rem); letter-spacing: 0.06em; line-height: 1.2;
  color: var(--on-dark-2);
  transition: color .4s var(--expo), transform .6s var(--expo);
}
.menu__list a .en { color: var(--silver); opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .6s var(--expo); }
.menu__list a:hover, .menu__list a:focus-visible, .menu__list a[aria-current="page"] { color: var(--white); transform: translateX(10px); }
.menu__list a:hover .en, .menu__list a:focus-visible .en { opacity: 1; transform: none; }
.menu[open] .menu__list li { animation: rise .9s var(--expo) both; animation-delay: calc(.18s + var(--i, 0) * .05s); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px 40px; padding-top: clamp(14px, 3vh, 32px); border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: 0.92rem; }
.menu__foot a { color: var(--on-dark); }
.menu__visual { position: relative; overflow: hidden; background: var(--ink-2); }
.menu__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--expo), transform 1.6s var(--expo); }
.menu__visual img.is-on { opacity: .82; transform: scale(1); }
.menu__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), transparent 45%); }
@media (max-width: 860px) { .menu { grid-template-columns: 1fr; } .menu__visual { display: none; } }

/* ------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.hero--full { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero--page { min-height: clamp(460px, 68vh, 700px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero--short { min-height: clamp(360px, 46vh, 480px); }
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 2.8s var(--expo) both; animation-delay: var(--intro-delay, 0s); }
@keyframes hero-zoom { from { transform: scale(1.16); filter: brightness(.4); } to { transform: scale(1.02); filter: none; } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to top, oklch(0.13 0.025 258 / .96) 0%, oklch(0.13 0.025 258 / .55) 38%, oklch(0.13 0.025 258 / .1) 70%),
  linear-gradient(to right, oklch(0.13 0.025 258 / .7), transparent 62%); }
.hero__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 7vh, 88px); display: grid; gap: clamp(20px, 3vh, 30px); }
.hero__kicker { display: flex; align-items: center; gap: 14px; color: var(--on-dark-2); }
.hero__title { font-family: var(--zh); font-weight: 300; letter-spacing: 0.06em; font-size: clamp(2.5rem, 7vw, 5.75rem); line-height: 1.1; }
.hero--page .hero__title { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: line-up 1.3s var(--expo) both; animation-delay: calc(var(--intro-delay, 0s) + .25s + var(--i, 0) * .12s); }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
.hero__lead { max-width: 34em; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--on-dark-2); animation: fade-up 1.2s var(--expo) both; animation-delay: calc(var(--intro-delay, 0s) + .6s); }
.hero .btn-row { animation: fade-up 1.2s var(--expo) both; animation-delay: calc(var(--intro-delay, 0s) + .75s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__bar { border-top: 1px solid var(--line-dark); }
.hero__bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 56px; min-height: 64px; color: var(--on-dark-2); font-size: 0.9rem; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue .track { position: relative; width: 1px; height: 36px; background: var(--line-dark); overflow: hidden; }
.scroll-cue .track::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--white); animation: cue 2.2s var(--inout) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--on-dark-2); }
.crumbs a:hover { color: var(--white); }
.crumbs li { list-style: none; display: flex; gap: 10px; }
.crumbs li + li::before { content: "/"; opacity: .5; }

/* homepage hero: bright, naturally graded photo (assets/img/home-hero.webp, floor already fades into --ink) */
.hero--home .hero__media img { object-position: 50% 66%; }
.hero--home .hero__shade { background:
  linear-gradient(to top, oklch(0.13 0.025 258 / .8) 0%, oklch(0.13 0.025 258 / .3) 30%, transparent 55%),
  linear-gradient(to right, oklch(0.13 0.025 258 / .22), transparent 40%),
  linear-gradient(to bottom, oklch(0.13 0.025 258 / .42), transparent 16%); }
.hero--full .hero__title { font-size: clamp(2.5rem, min(7vw, 10.5vh), 5.75rem); }
@media (max-width: 640px) { .hero--home .hero__media img { object-position: 50% 50%; } .hero--home .hero__kicker { display: none; } .hero--home .hero__title { font-size: clamp(1.6rem, 8.6vw, 2.2rem); letter-spacing: 0.04em; } }

/* intro (first visit per session, home only) */
.intro { display: none; }
html.intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: var(--z-intro); background: var(--ink);
  animation: intro-lift 1s var(--inout) 1.05s both;
}
html.intro { --intro-delay: 1.15s; }
.intro svg { width: min(220px, 46vw); }
.intro .p1, .intro .p2, .intro .p3 { animation: intro-draw .7s var(--expo) both; }
.intro .p1 { clip-path: inset(0 0 100% 0); animation-name: intro-down; }
.intro .p2 { animation-delay: .18s; clip-path: inset(100% 0 0 0); }
.intro .p3 { animation-delay: .34s; clip-path: inset(0 100% 0 0); animation-name: intro-right; }
@keyframes intro-down { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-right { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }

/* ------------------------------------------------------------- sections */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lead { margin-top: 18px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 112px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- car cards & rail */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 34vw, 520px); gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); padding-bottom: 8px;
  scrollbar-width: none; overscroll-behavior-x: contain;
  max-width: calc(var(--maxw) + (100vw - var(--maxw)) / 2); margin-left: auto;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rail.is-dragging a { pointer-events: none; }
.rail-controls { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.rail-progress { flex: 1; height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.rail-progress span { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(.2); transition: transform .4s var(--expo); }
.rail-btn { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: background .4s, border-color .4s; }
.rail-btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.rail-btn svg { width: 18px; }

.car-card { position: relative; display: flex; flex-direction: column; color: inherit; }
.car-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.light .car-card__media, .white .car-card__media { background: oklch(0.92 0.008 258); }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--expo), filter 1s; }
.car-card:hover .car-card__media img { transform: scale(1.06); }
.car-card__badge {
  position: absolute; left: 0; top: 18px; padding: 6px 14px 6px 16px;
  background: var(--white); color: var(--ink); font-size: 0.78rem; letter-spacing: 0.14em; font-weight: 500;
}
.car-card__badge--reserved { background: var(--warn); }
.car-card__badge--sold { background: var(--ink); color: var(--white); }
.car-card.is-sold .car-card__media img { filter: grayscale(.85) brightness(.75); }
.car-card__body { padding-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: end; }
.car-card__make { grid-column: 1 / -1; color: var(--silver); }
.car-card__model { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 500; letter-spacing: 0.01em; line-height: 1.3; }
.car-card__price { font-size: clamp(1.05rem, 1.4vw, 1.3rem); white-space: nowrap; }
.car-card__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.88rem; color: var(--on-dark-2); }
.light .car-card__meta, .white .car-card__meta { color: var(--text-2); }
.car-card__line { position: relative; height: 1px; background: var(--line-dark); margin-top: 20px; overflow: hidden; }
.light .car-card__line, .white .car-card__line { background: var(--line); }
.car-card__line::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--expo); }
.car-card:hover .car-card__line::after { transform: scaleX(1); }
.car-card--lg .car-card__media { aspect-ratio: 4 / 3; }
.car-skel { aspect-ratio: 4 / 3; background: linear-gradient(100deg, var(--ink-2) 40%, var(--ink-3) 50%, var(--ink-2) 60%) 0 0 / 300% 100%; animation: skel 1.6s linear infinite; }
.light .car-skel { background-image: linear-gradient(100deg, oklch(0.93 0.006 258) 40%, oklch(0.96 0.004 258) 50%, oklch(0.93 0.006 258) 60%); }
@keyframes skel { to { background-position: -150% 0; } }

/* ------------------------------------------------------------- services index */
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 56px; align-items: center; gap: 24px;
  padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.svc::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--expo); }
.svc:hover::before, .svc:focus-visible::before { transform: scaleY(1); }
.svc__name { display: grid; gap: 8px; }
.svc__zh { font-family: var(--zh); font-weight: 300; font-size: clamp(1.6rem, 3.2vw, 2.7rem); letter-spacing: 0.06em; line-height: 1.2; transition: color .5s, transform .7s var(--expo); }
.svc__en { color: var(--text-2); transition: color .5s; }
.svc__desc { color: var(--text-2); max-width: 30em; transition: color .5s; }
.svc__arrow { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .5s, border-color .5s, color .5s; }
.svc__arrow svg { width: 18px; transition: transform .6s var(--expo); }
.svc:hover .svc__zh, .svc:focus-visible .svc__zh { color: var(--white); transform: translateX(14px); }
.svc:hover .svc__en, .svc:hover .svc__desc, .svc:focus-visible .svc__en, .svc:focus-visible .svc__desc { color: var(--on-dark-2); }
.svc:hover .svc__arrow, .svc:focus-visible .svc__arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
.svc:hover .svc__arrow svg { transform: translateX(4px); }
@media (hover: none), (max-width: 900px) {
  .svc { grid-template-columns: 1fr 48px; }
  .svc__desc { grid-column: 1; }
  .svc__arrow { grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; }
}

/* ------------------------------------------------------------- steps (real sequences only) */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line-dark); }
.light .steps li, .white .steps li { border-color: var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: "Archivo", sans-serif; font-stretch: 125%; font-size: 1.05rem; color: var(--blue-hi); padding-top: 2px; }
.light .steps li::before, .white .steps li::before { color: var(--blue); }
.steps h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 6px; }
.steps p { color: var(--on-dark-2); }
.light .steps p, .white .steps p { color: var(--text-2); }

/* ------------------------------------------------------------- statements (brand traits) */
.statements { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); min-height: 88vh; }
.statements__media { position: relative; overflow: hidden; min-height: 420px; }
.statements__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: center 78%; }
.statements__list { list-style: none; display: flex; flex-direction: column; justify-content: center; padding: var(--section) var(--gutter); gap: 0; }
.statements__list li { padding: clamp(24px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 10px; }
.statements__list li:first-child { border-top: 1px solid var(--line-dark); }
.statements__list .en { color: var(--blue-hi); }
.statements__list h3 { font-family: var(--zh); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: 0.08em; }
.statements__list p { color: var(--on-dark-2); max-width: 30em; }
@media (max-width: 900px) { .statements { grid-template-columns: 1fr; } .statements__media { min-height: 56vh; } }

/* ------------------------------------------------------------- calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--white); }
.calc__inputs { padding: clamp(28px, 4vw, 56px); display: grid; gap: 30px; align-content: start; }
.calc__out { padding: clamp(28px, 4vw, 56px); background: var(--navy); color: var(--on-dark); display: grid; gap: 28px; align-content: space-between; }
.calc__big { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -0.01em; font-weight: 300; }
.calc__big small { font-size: 0.32em; letter-spacing: 0.12em; margin-right: 10px; vertical-align: 0.9em; font-weight: 500; }
.calc__rows { display: grid; gap: 0; }
.calc__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); }
.calc__rows dd { margin: 0; color: var(--on-dark); }
.calc__rows dt { margin: 0; }
.calc__note { font-size: 0.82rem; color: var(--on-dark-2); }
.range-field { display: grid; gap: 12px; }
.range-field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-field label { font-weight: 500; letter-spacing: 0.06em; }
.range-field output, .range-field .val { font-size: 1.12rem; }
.range-field input[type="number"] { width: 9.5em; text-align: right; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 4px 0; font-family: "Archivo", sans-serif; font-stretch: 125%; font-size: 1.05rem; }
.range-field input[type="number"]:focus { outline: none; border-color: var(--blue); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--blue), var(--blue)) 0 / var(--p) 100% no-repeat, var(--line); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--white); border: 2px solid var(--blue); transform: rotate(45deg); transition: transform .3s var(--expo); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; background: var(--white); border: 2px solid var(--blue); border-radius: 0; transform: rotate(45deg); }
input[type="range"]:active::-webkit-slider-thumb { transform: rotate(45deg) scale(1.2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; min-width: 64px; justify-content: center; padding: 10px 16px; border: 1px solid var(--line); font-family: "Archivo", sans-serif; font-stretch: 112%; font-size: 0.92rem; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- FAQ */
@media (min-width: 901px) { .faq-heading { position: sticky; top: 120px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 20px; align-items: center;
  padding: 26px 0; font-size: clamp(1.05rem, 1.4vw, 1.22rem); font-weight: 500; letter-spacing: 0.03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 18px; height: 18px; justify-self: end; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--expo); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq details > div { padding: 0 48px 30px 0; color: var(--text-2); max-width: 72ch; }
.faq details[open] > div { animation: fade-up .6s var(--expo) both; }
.dark .faq, .dark .faq details { border-color: var(--line-dark); }
.dark .faq details > div { color: var(--on-dark-2); }

/* ------------------------------------------------------------- forms */
.form { display: grid; gap: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 26px; }
.form legend { font-family: var(--zh); font-size: 1.25rem; font-weight: 500; letter-spacing: 0.06em; margin-bottom: 4px; padding: 0; display: flex; align-items: center; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-size: 0.86rem; letter-spacing: 0.08em; color: var(--text-2); font-weight: 500; }
.field .req { color: var(--blue); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 0; border: 0; border-radius: 0;
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 0 2px no-repeat, linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat;
  background-color: transparent;
  font-size: 1.02rem; color: var(--text);
  transition: background-size .6s var(--expo);
}
.field input::placeholder, .field textarea::placeholder { color: oklch(0.55 0.02 258); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-size: 100% 2px, 100% 1px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A5260' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center / 12px no-repeat,
    linear-gradient(var(--blue), var(--blue)) left bottom / 0 2px no-repeat, linear-gradient(var(--line), var(--line)) left bottom / 100% 1px no-repeat;
}
.field select:focus { background-size: 12px, 100% 2px, 100% 1px; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { background-image: linear-gradient(var(--danger), var(--danger)), linear-gradient(var(--danger), var(--danger)); background-size: 100% 2px, 100% 1px; }
.field .err { font-size: 0.84rem; color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dropzone {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center; padding: 30px 20px;
  border: 1px dashed oklch(0.75 0.02 258); color: var(--text-2); transition: border-color .3s, background .3s; cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: oklch(0.557 0.239 262 / .04); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { color: var(--text); font-weight: 500; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs figure { position: relative; margin: 0; width: 84px; height: 64px; overflow: hidden; background: var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; background: oklch(0 0 0 / .65); color: #fff; font-size: 14px; line-height: 1; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.9rem; color: var(--text-2); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.form-msg { font-size: 0.95rem; }
.form-msg.is-error { color: var(--danger); }
.form-panel { background: var(--white); padding: clamp(28px, 4.5vw, 64px); border: 1px solid var(--line); }
.form-done { display: grid; gap: 20px; justify-items: start; padding: clamp(28px, 4.5vw, 64px); background: var(--white); border: 1px solid var(--line); animation: fade-up .8s var(--expo) both; }
.form-done .tick { width: 56px; height: 56px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.form-done .tick svg { width: 26px; }
.form-done h3 { font-family: var(--zh); font-size: 1.6rem; font-weight: 400; letter-spacing: 0.06em; }
.form-done p { color: var(--text-2); }

/* forms on dark/navy */
.navy .field > span:first-child, .dark .field > span:first-child { color: var(--on-dark-2); }
.navy .field input, .navy .field select, .navy .field textarea, .dark .field input, .dark .field select, .dark .field textarea {
  color: var(--on-dark);
  background-image: linear-gradient(var(--blue-hi), var(--blue-hi)), linear-gradient(oklch(1 0 0 / .28), oklch(1 0 0 / .28));
}
.navy .field input::placeholder, .dark .field input::placeholder { color: oklch(0.75 0.02 258); }
.navy .field select option, .dark .field select option { color: var(--text); }
.navy .field select, .dark .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C8CDD6' stroke-width='1.5'/%3E%3C/svg%3E"), linear-gradient(var(--blue-hi), var(--blue-hi)), linear-gradient(oklch(1 0 0 / .28), oklch(1 0 0 / .28));
}
.navy .consent, .dark .consent { color: var(--on-dark-2); }
.navy .consent a, .dark .consent a { color: var(--blue-hi); }

/* ------------------------------------------------------------- comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 500; letter-spacing: 0.06em; border-bottom: 1px solid var(--text); }
.compare tbody th { font-weight: 500; color: var(--text-2); width: 22%; }
.compare .is-hl { background: oklch(0.557 0.239 262 / .05); }
.table-scroll { overflow-x: auto; }
@media (max-width: 720px) { .compare { min-width: 620px; } }

/* ------------------------------------------------------------- inventory */
.filters {
  position: sticky; top: var(--header-h); z-index: 5; background: oklch(0.974 0.005 255 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filters .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-block: 14px; }
.filters .field { gap: 0; min-width: 130px; }
.filters .field > span:first-child { font-size: 0.74rem; }
.filters .field input, .filters .field select { min-height: 40px; font-size: 0.96rem; padding-block: 6px; }
.filters .grow { flex: 1 1 200px; }
.filters .count { margin-left: auto; color: var(--text-2); font-size: 0.9rem; white-space: nowrap; }
/* filters: one row on desktop; on phones a compact bar (search + 篩選) with the rest in a bottom sheet */
.filters__toggle, .filters__head, .filters__actions, .filters__scrim { display: none; }
@media (min-width: 900px) { .filters__panel { display: contents; } }
@media (max-width: 899px) {
  .filters { background: var(--mist); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .filters.is-open { z-index: var(--z-dialog); }
  .filters .filters__inner { flex-wrap: nowrap; gap: 10px; padding-block: 10px; }
  .filters__search { flex: 1 1 auto; min-width: 0; }
  .filters__search > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .filters .filters__search input { min-height: 44px; font-size: 16px; }
  .filters .count { display: none; }
  .filters__toggle { position: relative; display: inline-flex; flex: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--white); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.06em; }
  .filters__toggle svg { width: 18px; height: 18px; }
  .filters__badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--blue); color: #fff; font-size: 0.72rem; letter-spacing: 0; }
  .filters__panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 18px; max-height: 85svh; overflow-y: auto;
    padding: 0 20px calc(20px + env(safe-area-inset-bottom)); background: var(--mist); box-shadow: 0 -20px 60px oklch(0 0 0 / .25);
    transform: translateY(102%); visibility: hidden; transition: transform .45s var(--expo), visibility 0s .45s;
  }
  .filters.is-open .filters__panel { transform: none; visibility: visible; transition: transform .45s var(--expo); }
  .filters__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 16px 0 10px; background: var(--mist); border-bottom: 1px solid var(--line); }
  .filters__head b { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.06em; }
  .filters__close { width: 40px; height: 40px; display: grid; place-items: center; font-size: 26px; line-height: 1; }
  .filters__panel .field select { min-height: 48px; font-size: 16px; }
  .filters__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding-top: 6px; }
  .filters__actions .btn { min-height: 50px; padding: 0 12px; }
  .filters__scrim { display: block; position: fixed; inset: 0; z-index: 1; background: oklch(0.12 0.02 258 / .55); }
  .filters__scrim[hidden] { display: none; }
}
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.make-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.make-pills a { padding: 8px 16px; border: 1px solid var(--line-dark); font-size: 0.86rem; color: var(--on-dark-2); transition: background .3s, color .3s, border-color .3s; }
.make-pills a:hover, .make-pills a.is-on { background: var(--white); color: var(--ink); border-color: var(--white); }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
.empty { padding: 80px 0; text-align: center; color: var(--text-2); display: grid; gap: 18px; justify-items: center; }

/* ------------------------------------------------------------- car detail */
/* car gallery: desktop mosaic (one large + four), mobile full-bleed swipe; every tile opens the viewer */
.gallery { position: relative; padding: calc(var(--header-h) + clamp(16px, 2.4vw, 32px)) 0 clamp(20px, 3vw, 40px); background: var(--ink); color: var(--on-dark); }
.gallery.is-empty { padding-bottom: 0; }
.gallery__wrap { position: relative; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.gallery__tile { position: relative; display: block; width: 100%; overflow: hidden; background: var(--ink-2); cursor: zoom-in; }
.gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--expo); -webkit-user-drag: none; }
.gallery__tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px oklch(1 0 0 / .06); pointer-events: none; }
.gallery__more { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; background: oklch(0.12 0.02 258 / .64); color: #fff; font-size: 0.9rem; letter-spacing: 0.12em; transition: background .5s var(--expo); }
.gallery__more b { font-size: 2rem; font-weight: 300; letter-spacing: 0; line-height: 1.1; }
.gallery__all { position: absolute; left: calc(var(--gutter) + 16px); bottom: 16px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; background: oklch(1 0 0 / .94); color: var(--ink); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.06em; box-shadow: 0 10px 30px oklch(0 0 0 / .3); transition: background .3s, color .3s; }
.gallery__all:hover { background: var(--blue); color: #fff; }
.gallery__all svg { width: 16px; height: 16px; }
.gallery__count { display: none; }
@media (hover: hover) {
  .gallery__tile:hover img { transform: scale(1.04); }
  .gallery__tile:hover .gallery__more { background: oklch(0.12 0.02 258 / .46); }
}
@media (min-width: 900px) {
  .gallery__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
  .gallery__tile { aspect-ratio: 4 / 3; }
  .gallery__tile:first-child { grid-row: span 2; aspect-ratio: auto; }
  .gallery__tile:nth-child(n+6) { display: none; }
  .gallery__grid[data-n="1"] { grid-template-columns: minmax(0, min(960px, calc((100svh - var(--header-h) - 120px) * 4 / 3))); justify-content: center; }
  .gallery__grid[data-n="2"] { grid-template-columns: 1fr 1fr; }
  .gallery__grid[data-n="1"] .gallery__tile:first-child, .gallery__grid[data-n="2"] .gallery__tile:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__grid[data-n="3"], .gallery__grid[data-n="4"] { grid-template-columns: 2fr 1fr; }
  .gallery__grid[data-n="3"] .gallery__tile:nth-child(n+4), .gallery__grid[data-n="4"] .gallery__tile:nth-child(n+4) { display: none; }
}
@media (max-width: 899px) {
  .gallery { padding-bottom: 0; }
  .gallery__wrap { padding-inline: 0; }
  .gallery__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .gallery__tile { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; scroll-snap-stop: always; }
  .gallery__more, .gallery__all { display: none; }
  .gallery__count { display: inline-flex; position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; background: oklch(0.12 0.02 258 / .72); color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; pointer-events: none; }
}
.car-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.car-head { display: grid; gap: 14px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.car-head .en { color: var(--text-2); }
.car-head h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 300; letter-spacing: 0.01em; line-height: 1.1; }
.car-head h1 .yr { color: var(--text-2); }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.specs div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.82rem; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 1.08rem; font-weight: 500; }
@media (max-width: 720px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.features li { display: flex; gap: 14px; align-items: baseline; }
.features li::before { content: ""; flex: 0 0 auto; width: 7px; height: 12px; background: var(--blue); transform: skewX(-24deg); }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.buy-panel { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; padding: 34px; background: var(--white); border: 1px solid var(--line); }
.buy-panel__price { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 300; line-height: 1; }
.buy-panel__monthly { padding: 16px 0; border-block: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--text-2); font-size: 0.92rem; }
.buy-panel__monthly strong { color: var(--text); font-size: 1.15rem; font-weight: 500; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; letter-spacing: 0.1em; }
.status-pill::before { content: ""; width: 8px; height: 8px; background: var(--ok); transform: rotate(45deg); }
.status-pill--reserved::before { background: var(--warn); }
.status-pill--sold::before { background: var(--text-2); }
.mobile-buy { display: none; }
@media (max-width: 980px) {
  .car-layout { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
  .mobile-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-fab); gap: 10px; align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: oklch(0.155 0.022 258 / .94); backdrop-filter: blur(12px); color: var(--on-dark);
    transform: translateY(110%); transition: transform .6s var(--expo);
  }
  .mobile-buy.is-on { transform: none; }
  .mobile-buy .p { margin-right: auto; font-size: 1.1rem; }
  .mobile-buy .btn { min-height: 46px; padding: 0 18px; }
  body.has-mobile-buy .fab { bottom: 86px; }
}


/* lightbox & sheets */
.lightbox, .sheet { border: 0; padding: 0; max-width: none; max-height: none; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; background: oklch(0.1 0.02 258 / .98); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: oklch(0.1 0.02 258 / .98); }
/* minmax(0, 1fr): the photo row may never grow past the screen, so the whole car is always visible */
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade .4s var(--expo); }
.lightbox__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top)); }
.lightbox__title { font-size: 0.95rem; color: var(--on-dark-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__count { font-size: 0.95rem; letter-spacing: 0.1em; }
.lightbox__close { justify-self: end; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid oklch(1 0 0 / .2); transition: background .3s, color .3s; }
.lightbox__close:hover { background: #fff; color: var(--ink); }
.lightbox__stage { --side: clamp(0px, 7vw, 104px); position: relative; min-height: 0; overflow: hidden; touch-action: pan-y; user-select: none; }
.lightbox__stage img { position: absolute; top: 0; left: var(--side); width: calc(100% - var(--side) * 2); height: 100%; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .35s ease-out, transform .6s var(--expo); -webkit-user-drag: none; }
.lightbox__stage img.is-on { opacity: 1; transform: none; }
.lightbox__arrow { position: absolute; top: 50%; z-index: 1; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; border: 1px solid oklch(1 0 0 / .22); background: oklch(0.1 0.02 258 / .35); transition: background .3s, color .3s; }
.lightbox__arrow:hover { background: #fff; color: var(--ink); }
.lightbox__arrow--prev { left: clamp(8px, 2vw, 32px); }
.lightbox__arrow--next { right: clamp(8px, 2vw, 32px); }
.lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gutter); padding-bottom: calc(12px + env(safe-area-inset-bottom)); scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs > :first-child { margin-left: auto; }
.lightbox__thumbs > :last-child { margin-right: auto; }
.lightbox__thumbs button { flex: 0 0 auto; width: 84px; aspect-ratio: 4 / 3; overflow: hidden; opacity: .4; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .3s, outline-color .3s; }
.lightbox__thumbs button.is-on { opacity: 1; outline-color: #fff; }
.lightbox__thumbs button:hover { opacity: .85; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox svg { width: 18px; }
@media (max-width: 700px) {
  .lightbox__stage { --side: 0px; }
  .lightbox__arrow { top: auto; bottom: 16px; margin-top: 0; width: 48px; height: 48px; background: oklch(0.1 0.02 258 / .55); border-color: oklch(1 0 0 / .18); }
  .lightbox__arrow--prev { left: 16px; }
  .lightbox__arrow--next { right: 16px; }
  .lightbox__thumbs button { width: 64px; }
}
.sheet { width: min(620px, 100%); margin: auto; background: var(--mist); color: var(--text); box-shadow: 0 30px 80px oklch(0 0 0 / .35); }
.sheet::backdrop { background: oklch(0.12 0.02 258 / .7); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .7s var(--expo); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(40px); } }
@keyframes fade { from { opacity: 0; } }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-family: var(--zh); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.06em; }
.sheet__body { padding: 28px; max-height: calc(100dvh - 120px); overflow-y: auto; }
.sheet__close { width: 40px; height: 40px; display: grid; place-items: center; font-size: 26px; line-height: 1; }
@media (max-width: 640px) { .sheet { margin: auto 0 0; width: 100%; } }

/* ------------------------------------------------------------- visit / contact block */
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: end; }
.visit__addr { font-family: var(--zh); font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.6rem); letter-spacing: 0.06em; line-height: 1.25; }
.visit__list { display: grid; gap: 0; margin: 0; }
.visit__list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.visit__list dt { color: var(--on-dark-2); margin: 0; }
.visit__list dd { margin: 0; }
.visit__list a:hover { color: var(--blue-hi); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }
.watermark { position: absolute; right: -4vw; bottom: -6vw; width: min(60vw, 820px); opacity: .05; pointer-events: none; }

/* ------------------------------------------------------------- notice / callout */
.notice { padding: 20px 24px; background: var(--white); border: 1px solid var(--line); font-size: 0.92rem; color: var(--text-2); display: grid; gap: 6px; }
.notice strong { color: var(--text); }
.warn-line { font-family: var(--zh); font-weight: 500; letter-spacing: 0.06em; color: var(--text); }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding-top: clamp(72px, 9vw, 128px); position: relative; overflow: hidden; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-bottom: clamp(56px, 7vw, 96px); }
.footer-top h2 { color: var(--on-dark); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.12em; margin-bottom: 18px; }
.footer-top ul { list-style: none; display: grid; gap: 10px; }
.footer-brand { display: grid; gap: 22px; align-content: start; color: var(--on-dark); }
.footer-brand svg { width: min(320px, 100%); }
.footer-brand p { color: var(--on-dark-2); max-width: 26em; }
.footer-word { font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 8.3vw; line-height: .8; letter-spacing: -0.02em; color: oklch(1 0 0 / .05); white-space: nowrap; user-select: none; margin-bottom: -0.08em; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 26px; font-size: 0.84rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- floating WhatsApp, demo ribbon, toast */
.fab {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: var(--z-fab);
  display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px;
  background: oklch(0.63 0.17 150); color: #fff; box-shadow: 0 12px 30px oklch(0.2 0.05 150 / .35);
  font-size: 0.95rem; letter-spacing: 0.08em; font-weight: 500;
  transition: transform .5s var(--expo), bottom .5s var(--expo), box-shadow .5s;
}
.fab:hover { transform: translateY(-3px); box-shadow: 0 18px 40px oklch(0.2 0.05 150 / .45); }
.fab svg { width: 26px; height: 26px; }
@media (max-width: 640px) { .fab { padding: 0; width: 56px; justify-content: center; } .fab span { display: none; } }
.demo-pill { flex: none; padding: 3px 10px; background: var(--warn); color: var(--ink); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; white-space: nowrap; }
.toast { position: fixed; left: 50%; top: 24px; z-index: var(--z-toast); transform: translate(-50%, calc(-100% - 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 14px 22px; transition: transform .6s var(--expo); max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ------------------------------------------------------------- reveal (enhances an already-visible default) */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--expo), transform 1.3s var(--expo); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.rv--clip { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--expo); }
.rv.rv--clip img { transform: scale(1.2); transition: transform 2s var(--expo); }
.rv.rv--fade { transform: none; }
.rv.is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.rv.is-in img { transform: none; }

@supports (animation-timeline: view()) {
  .parallax img { animation: parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes parallax { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
}

/* ------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv, .rv.rv--clip { opacity: 1; transform: none; clip-path: none; }
  html.intro .intro { display: none; }
  .parallax img { animation: none !important; transform: none !important; }
}
