/* =====================================================================
   S-TIER — design system
   Ink & paper, one signal colour, data set like an export document.
   ===================================================================== */

/* Fallback faces sized to match the web fonts, so text does not reflow when they swap in.
   Measured: Playfair Display is 3.3% wider than Georgia, Inter 7.7% wider than Segoe UI. */
@font-face { font-family: "Playfair Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 103.3%; }
@font-face { font-family: "Inter Fallback"; src: local("Segoe UI"), local("Helvetica Neue"), local("Arial"); size-adjust: 107.7%; }

:root {
  --ink: #0b0b0c;
  --carbon: #121214;
  --carbon-2: #18181b;
  --carbon-3: #202024;
  --line: #2a2a2e;
  --line-soft: #1f1f23;
  --paper: #f4f2ee;
  --paper-dim: #d9d6cf;
  --ash: #9a9aa0;
  --ash-dim: #8a8a92;         /* 5.7:1 on ink (was #6b6b72, 3.7:1) */

  --accent: #9b6bff;          /* Midnight Purple */
  --accent-strong: #b894ff;
  --accent-ink: #120a24;
  --accent-soft: rgba(155, 107, 255, .14);
  --accent-button: #6d3df2;   /* white text 5.8:1 (accent #9b6bff was 3.5:1) */

  --st-available: #3ddc97;
  --st-incoming: #f5b544;
  --st-reserved: #9b6bff;
  --st-sold: #6b6b72;

  /* one display serif site-wide; Libre Baskerville is reserved for the hero's italic accent */
  --f-display: "Playfair Display", "Playfair Fallback", "Noto Serif JP", Georgia, serif;
  --f-accent: "Libre Baskerville", "Noto Serif JP", Georgia, serif;
  --f-ui: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --f-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* type scale: every text size maps to one of these (12px is the floor) */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-20: 20px;
  --fs-28: 28px;
  --fs-44: clamp(34px, 3.4vw, 44px);
  --fs-64: clamp(40px, 5vw, 64px);
  --fs-104: clamp(52px, 8vw, 104px);
  --tap: 44px;

  /* line heights: display headings, UI text (labels, titles, tables), running text */
  --lh-display: 1.05;
  --lh-ui: 1.25;
  --lh-body: 1.6;
  /* the one uppercase label style */
  --label-track: .08em;

  --radius: 4px;
  --radius-lg: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.glitch), *:not(.glitch)::before, *:not(.glitch)::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/var(--lh-body) var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b, strong, h1, h2, h3, h4, h5, h6 { font-weight: 600; } /* 700 isn't loaded; avoid faux bold */
.display em { font-family: var(--f-accent); font-style: italic; font-weight: 400; font-size: .86em; color: var(--paper-dim); } /* real italic, same as the hero */
.jp { letter-spacing: 0 !important; text-transform: none; font-weight: 500; } /* 19: Japanese has no case and needs no tracking; 500 is the loaded weight */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 15: every small uppercase label shares one style */
.label { font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ash); }
/* 24: tabular figures only where numbers are data (on body text Inter's tnum also widens hyphens) */
.price, .card-specs, .stock, .count, .spec-table dd, .vd-quick b, .ledger .no, .ledger small, .result-count, .tab .n, .nav .count, .radio-vol-val, .gallery-index, .kv dd { font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- type */
.eyebrow {
  font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--ash);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .jp { font-family: var(--f-jp); font-weight: 500; color: var(--ash-dim); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.bare::before { display: none; }

.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: var(--lh-display);
  margin: 0;
}
.h1 { font-size: var(--fs-104); }
.h2 { font-size: var(--fs-64); }
.h3 { font-size: var(--fs-44); line-height: var(--lh-display); }
.lede { font-size: var(--fs-20); color: var(--paper-dim); max-width: 56ch; line-height: var(--lh-body); }
.muted { color: var(--ash); }
.mono { font-family: var(--f-mono); }
.caps { text-transform: uppercase; letter-spacing: var(--label-track); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b-bg: var(--paper); --b-fg: var(--ink); --b-bd: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--b-bg); color: var(--b-fg);
  border: 1px solid var(--b-bd); border-radius: var(--radius);
  font: 600 var(--fs-16)/1 var(--f-ui); letter-spacing: 0;
  cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { --b-bg: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { --b-bg: transparent; --b-fg: var(--paper); --b-bd: var(--line); }
.btn.ghost:hover { --b-bd: var(--paper); --b-bg: transparent; }
.btn.accent { --b-bg: var(--accent-button); --b-fg: #fff; --b-bd: var(--accent-button); }
.btn.accent:hover { --b-bg: #7c4dff; --b-bd: #7c4dff; }
.btn.sm { min-height: var(--tap); padding: 0 18px; font-size: var(--fs-14); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 var(--fs-14)/1 var(--f-ui);
  color: var(--paper); min-height: var(--tap); padding: 0; border-bottom: 1px solid var(--line);
  transition: border-color .2s, gap .2s;
}
.link-arrow:hover { border-color: var(--paper); gap: 12px; }

/* ---------------------------------------------------------------- header */
.announce {
  background: var(--accent); color: #fff; text-align: center;
  font: 500 var(--fs-14)/var(--lh-ui) var(--f-ui); padding: 10px var(--gutter);
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* Reserve the header's height before JS mounts it, so the page never jumps (CLS). */
#site-header { display: block; min-height: var(--header-h); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line-soft);
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 11, 12, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: var(--tap); }
.brand img { width: 46px; height: auto; }
.brand-word { font: 600 var(--fs-20)/1 var(--f-display); letter-spacing: .24em; padding-left: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px;
  font: 500 var(--fs-14)/1 var(--f-ui); color: var(--paper-dim);
  border-radius: var(--radius); transition: color .15s;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--accent);
}
.nav .count { font: 600 var(--fs-12)/1 var(--f-ui); color: var(--ash); margin-left: 5px; font-variant-numeric: tabular-nums; }
.header-cta { margin-left: 8px; }
.header-cta[aria-current="page"] { --b-bd: var(--paper); }
/* the Contact us button lives in the header on desktop and at the end of the phone menu */
.nav .nav-cta { display: none; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--paper); margin: 4px auto; transition: transform .2s; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .nav .nav-cta { display: flex; margin-top: 24px; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius); font: 600 var(--fs-16)/1 var(--f-ui); justify-content: center; }
  .nav .nav-cta::after { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    flex-direction: column; gap: 0; padding: 16px var(--gutter);
    background: var(--ink); transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s .3s;
  }
  .nav a { padding: 18px 0; font: 500 var(--fs-28)/1 var(--f-display); letter-spacing: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-strong); }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .nav-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
/* the first section sits close under the hero globe */
.hero + .section { padding-top: clamp(32px, 4vw, 56px); }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head .display { margin-top: 14px; }

section[id], [id]:target { scroll-margin-top: 88px; }  /* clear the sticky header when jumping to an anchor */

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; min-height: min(72vh, 700px); gap: 24px; padding-top: 32px; padding-bottom: 8px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .display { margin: 22px 0 26px; }
.hero-copy .display em { font-style: italic; color: var(--paper-dim); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.globe-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: end; }
.globe-stage canvas, .globe-stage img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.globe-stage .fallback { object-fit: contain; padding: 12%; opacity: .95; }
.globe-stage::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 62%);
  filter: blur(20px);
}
/* hero photo slideshow (from the original slideshow imagery) */
.hero-photos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  opacity: 0; transform: scale(1.06); transition: opacity .99s ease, transform 9s linear;
}
.hero-slide.is-on { opacity: 1; transform: scale(1); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,12,.9) 0%, rgba(8,8,9,.85) 34%, rgba(8,8,9,.65) 62%, rgba(8,8,9,.52) 100%),
    linear-gradient(180deg, rgba(8,8,9,.83) 0%, rgba(8,8,9,.32) 26%, rgba(8,8,9,.41) 72%, var(--ink) 100%);
}
.hero-dots { position: absolute; right: max(24px, calc((100vw - var(--max)) / 2 + var(--gutter))); bottom: 20px; z-index: 3; display: flex; gap: 4px; }
.hero-dot {
  display: grid; place-items: center; min-width: var(--tap); height: var(--tap); padding: 0 4px;
  border: 0; background: none; cursor: pointer; color: var(--ash-dim);
  font: 500 var(--fs-12)/1 var(--f-mono); letter-spacing: var(--label-track);
}
.hero-dot span { display: block; padding-bottom: 7px; border-bottom: 1px solid currentColor; opacity: .55; transition: opacity .2s, color .2s; }
.hero-dot:hover span, .hero-dot:focus-visible span { opacity: 1; color: var(--paper-dim); }
.hero-dot.is-on span { opacity: 1; color: var(--accent-strong); }
@media (max-width: 900px) {
  .hero-slide { object-position: 55% 45%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(8,8,9,.76) 0%, rgba(8,8,9,.65) 34%, rgba(8,8,9,.81) 62%, var(--ink) 100%); }
  .hero-dots { position: static; padding: 0 var(--gutter) 4px; }
  .hero-dot { min-width: 40px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  /* still cycles, but as a plain cross-fade with no zoom */
  .hero-slide { transition: opacity .81s ease !important; transform: none; }
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .globe-stage { order: -1; max-width: 360px; justify-self: center; margin: 0 auto -24px; }
}
@media (max-width: 520px) {
  .globe-stage { max-width: 250px; margin-bottom: -8px; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- status */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase;
  padding: 5px 9px 4px 8px; border-radius: var(--radius);
  background: rgba(11, 11, 12, .78); color: var(--paper);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--ash)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--ash)) 25%, transparent); }
.status .jp { font-family: var(--f-jp); font-weight: 500; color: var(--ash); }
.status[data-s="available"] { --dot: var(--st-available); }
.status[data-s="incoming"] { --dot: var(--st-incoming); }
.status[data-s="reserved"] { --dot: var(--st-reserved); }
.status[data-s="sold"] { --dot: var(--st-sold); }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }

.card { position: relative; display: flex; flex-direction: column; background: var(--carbon); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--carbon-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .status { position: absolute; left: 12px; top: 12px; }
.card-media .stock { position: absolute; right: 12px; top: 12px; font: 500 var(--fs-12)/1 var(--f-mono); padding: 6px 8px; background: rgba(11, 11, 12, .78); border-radius: var(--radius); }
.card-media .count { position: absolute; right: 12px; bottom: 12px; font: 500 var(--fs-12)/1 var(--f-ui); padding: 5px 7px; background: rgba(11, 11, 12, .7); border-radius: var(--radius); color: var(--paper-dim); }
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-kicker { font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ash); }
.card-title, .item-title { font: 600 var(--fs-20)/var(--lh-ui) var(--f-ui); letter-spacing: -.01em; margin: 2px 0 0; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 400 var(--fs-14)/var(--lh-ui) var(--f-mono); color: var(--paper-dim); margin-top: 6px; }
.card-specs span:not(:last-child)::after { content: "/"; color: var(--ash-dim); margin-left: 12px; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); margin-top: 14px; }
.price { font: 500 var(--fs-20)/1 var(--f-mono); letter-spacing: -.02em; }
.price.inquire { font: 600 var(--fs-14)/1 var(--f-ui); color: var(--paper-dim); }
.card-note { font: 400 var(--fs-12)/var(--lh-ui) var(--f-ui); color: var(--st-incoming); text-align: right; }
.card.is-sold .card-media img { filter: grayscale(.85) brightness(.8); }
.card.is-sold:hover .card-media img { filter: none; }
.card.is-sold .price { color: var(--ash); font-size: var(--fs-16); }

.card.compact .card-body { padding: 14px; }
.card.compact .card-title { font-size: var(--fs-16); }
.card.compact .card-specs { font-size: var(--fs-12); }

.skeleton { --sk-body: 167px; display: grid; grid-template-rows: auto var(--sk-body); overflow: hidden; background: linear-gradient(90deg, var(--carbon) 0%, var(--carbon-2) 50%, var(--carbon) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-lg); }
.skeleton::before { content: ""; display: block; aspect-ratio: 3 / 2; }
@media (max-width: 520px) { .skeleton { --sk-body: 158px; } }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--ash); }
.empty .display { color: var(--paper); margin-bottom: 8px; }

/* ---------------------------------------------------------------- toolbar / filters */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line-soft); }
.page-head .display { margin: 16px 0 16px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-soft); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; padding: 16px 16px 18px; background: none; border: 0; cursor: pointer;
  font: 500 var(--fs-14)/1 var(--f-ui); color: var(--ash); white-space: nowrap; min-height: var(--tap);
}
.tab .n { font: 600 var(--fs-12)/1 var(--f-ui); margin-left: 6px; color: var(--ash-dim); font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { color: var(--paper); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 20px 0 28px; }
.field-inline { position: relative; }
.select, .input {
  height: var(--tap); padding: 0 14px; background: var(--carbon); border: 1px solid var(--line); border-radius: var(--radius);
  font: 400 var(--fs-16)/1 var(--f-ui); color: var(--paper); transition: border-color .15s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%239a9aa0' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.select:hover, .input:hover { border-color: #3a3a40; }
.select:focus, .input:focus { outline: none; border-color: var(--accent); }
.input.search { padding-left: 38px; min-width: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239a9aa0' stroke-width='1.6'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 13px center; }
.toolbar .spacer { flex: 1; }
.result-count { font: 500 var(--fs-14)/1 var(--f-ui); color: var(--ash); font-variant-numeric: tabular-nums; }
.chip-reset { background: none; border: 0; color: var(--accent-strong); font: 500 var(--fs-14)/1 var(--f-ui); cursor: pointer; padding: 0 10px; min-height: var(--tap); }
@media (max-width: 640px) {
  .toolbar .select, .toolbar .input { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .toolbar .input.search { flex-basis: 100%; }
  .toolbar .spacer { display: none; }
}

/* ---------------------------------------------------------------- vehicle detail */
.crumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 0; font: 500 var(--fs-14)/1 var(--f-ui); color: var(--ash); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); }
.crumbs a:hover { color: var(--paper); }
.vd { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; padding-bottom: 80px; }
@media (max-width: 1000px) { .vd { grid-template-columns: 1fr; } }

.gallery-main { position: relative; aspect-ratio: 3 / 2; background: var(--carbon); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(11, 11, 12, .7); color: var(--paper); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.gallery-main:hover .gallery-nav, .gallery-nav:focus-visible { opacity: 1; }
@media (hover: none) { .gallery-nav { opacity: 1; } }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-index { position: absolute; right: 12px; bottom: 12px; font: 500 var(--fs-12)/1 var(--f-mono); padding: 6px 8px; background: rgba(11, 11, 12, .75); border-radius: var(--radius); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 1px solid transparent; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--carbon); cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.thumbs button:hover { opacity: .9; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--paper); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.vd-panel { position: sticky; top: calc(var(--header-h) + 20px); }
.vd-panel .status { background: var(--carbon-2); }
.vd-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vd-title { margin: 20px 0 6px; }
.vd-title small { display: block; font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ash); margin-bottom: 12px; }
.vd-headline { color: var(--st-incoming); font-size: var(--fs-14); margin: 10px 0 0; }
.vd-price { display: flex; align-items: baseline; gap: 12px; padding: 22px 0; margin: 20px 0 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.vd-price .price { font-size: var(--fs-44); }
.vd-actions { display: grid; gap: 10px; margin: 22px 0; }
.vd-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; margin-top: 20px; }
.vd-quick div { background: var(--carbon); padding: 14px; }
.vd-quick b { display: block; margin-top: 6px; font: 500 var(--fs-16)/var(--lh-ui) var(--f-mono); }
.vd-quick span { font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ash); }

.spec-sheet { margin-top: 48px; }
.spec-sheet h2 { font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ash); margin: 0 0 14px; display: flex; gap: 10px; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.spec-table div:nth-child(odd) { padding-right: 20px; }
.spec-table div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.spec-table dt { font: 400 var(--fs-14)/var(--lh-ui) var(--f-ui); color: var(--ash); }
.spec-table dd { margin: 0; font: 500 var(--fs-14)/var(--lh-ui) var(--f-mono); text-align: right; }
@media (max-width: 640px) {
  .spec-table { grid-template-columns: 1fr; }
  .spec-table div:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
}
.features { display: flex; flex-wrap: wrap; gap: 8px; }
.features li { list-style: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-14); color: var(--paper-dim); }
.features { padding: 0; margin: 0; }
.prose { color: var(--paper-dim); max-width: 36em; white-space: pre-line; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 5, 6, .96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--paper); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: var(--fs-20); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; }
.lightbox .lb-next { right: 20px; top: 50%; }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font: 500 var(--fs-12)/1 var(--f-mono); color: var(--ash); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font: 500 var(--fs-14)/var(--lh-ui) var(--f-ui); color: var(--paper-dim); }
.form .input, .form .select, .form textarea { width: 100%; height: 48px; }
.form textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; background: var(--carbon); border: 1px solid var(--line); border-radius: var(--radius); font: 400 var(--fs-16)/var(--lh-body) var(--f-ui); }
.form textarea:focus { outline: none; border-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: var(--fs-14); padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-msg.ok { display: block; background: rgba(61, 220, 151, .1); color: var(--st-available); border: 1px solid rgba(61, 220, 151, .3); }
.form-msg.err { display: block; background: rgba(255, 90, 90, .08); color: #ff8a8a; border: 1px solid rgba(255, 90, 90, .3); }

.dialog { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 5, 6, .72); backdrop-filter: blur(4px); }
.dialog.open { display: flex; }
.dialog-card { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: var(--carbon); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 32px); position: relative; }
.dialog-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--ash); font-size: var(--fs-28); cursor: pointer; width: var(--tap); height: var(--tap); }
.dialog-car { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--carbon-2); border-radius: var(--radius); margin: 18px 0; }
.dialog-car img { width: 84px; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); }

/* ---------------------------------------------------------------- home blocks */
.rail-note { display: flex; gap: 14px; align-items: center; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process li { list-style: none; padding: 28px 24px 8px 0; border-right: 1px solid var(--line-soft); }
.process li + li { padding-left: 24px; }
.process li:last-child { border-right: 0; }
.process .n { font: 500 var(--fs-14)/1 var(--f-mono); color: var(--accent-strong); }
.process h3 { font: 600 var(--fs-20)/var(--lh-ui) var(--f-ui); letter-spacing: -.01em; margin: 14px 0 8px; }
.process p { color: var(--ash); margin: 0; font-size: var(--fs-16); }
.process .jp { font: 400 12px/1 var(--f-jp); color: var(--ash-dim); margin-top: 18px; display: block; }
.process { padding: 0; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(2) { border-right: 0; }
  .process li:nth-child(3) { padding-left: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line-soft); }
}

.ledger { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--line); }
.ledger a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-soft); transition: background .15s; }
.ledger a:hover { background: var(--carbon); }
.ledger img { width: 56px; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); filter: grayscale(1); transition: filter .2s; }
.ledger a:hover img { filter: none; }
.ledger .no { font: 500 var(--fs-12)/1 var(--f-mono); color: var(--ash); }
.ledger .t { font-size: var(--fs-14); line-height: var(--lh-ui); }
.ledger .t small { display: block; font: 400 var(--fs-12)/var(--lh-ui) var(--f-mono); color: var(--ash); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.banner { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, rgba(155, 107, 255, .16), transparent 55%), var(--carbon); }
.banner .kk { position: absolute; right: -2%; bottom: -8%; width: min(58%, 620px); opacity: .07; pointer-events: none; }
.banner > *:not(.kk) { position: relative; }


/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 72px 0 32px; margin-top: 0; background: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-top .label { margin: 0 0 8px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.footer-top a { color: var(--paper-dim); font-size: var(--fs-14); display: inline-flex; align-items: center; min-height: var(--tap); }
.footer-top a:hover { color: #fff; }
.footer-brand img { width: 88px; margin-bottom: 18px; }
.footer-brand p { color: var(--ash); max-width: 34ch; font-size: var(--fs-14); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); font: 400 var(--fs-12)/var(--lh-ui) var(--f-ui); color: var(--ash-dim); }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- misc */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: var(--radius); font-size: var(--fs-14); z-index: 100; transition: all .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: var(--fs-16); }
.kv dt { padding-top: 6px; font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ash); }
.kv dd { margin: 0; }
.kv a { border-bottom: 1px solid var(--line); }
.kv a:hover { border-color: var(--paper); }
.hr { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

.buy-box { margin-top: 24px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 18px 18px 6px; background: var(--carbon); }
.buy-box h2 { font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ash); margin: 0 0 6px; }
.buy-box ul { list-style: none; margin: 0; padding: 0; }
.buy-box li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-14); color: var(--paper-dim); }
.buy-box li:first-child { border-top: 0; }
.buy-box li svg { width: 18px; height: 18px; color: var(--accent-strong); margin-top: 2px; }
.buy-box li b { color: var(--paper); font-weight: 600; display: block; }
.buy-box a { border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- hero title glitch (EN <-> 日本語) */
.hero-title { line-height: 1; }
.glitch { position: relative; display: inline-block; white-space: nowrap; overflow: visible; vertical-align: top; }
.g-ultimate { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; }
.g-machines { font-family: var(--f-accent); font-style: italic; font-weight: 400; font-size: .86em; color: var(--paper-dim); letter-spacing: -.02em; }
.glitch.is-jp { font-style: normal; letter-spacing: 0; font-weight: 600; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
}
.glitch.glitching { animation: glitch-jitter .16s steps(2) infinite; }
.glitch.glitching::before { opacity: .9; color: var(--accent); transform: translateX(-.04em); animation: glitch-slice-a .32s steps(3) infinite; mix-blend-mode: screen; }
.glitch.glitching::after { opacity: .8; color: #4be3ff; transform: translateX(.035em); animation: glitch-slice-b .28s steps(3) infinite; mix-blend-mode: screen; }
@keyframes glitch-jitter { 0% { transform: translate(0, 0); } 50% { transform: translate(.015em, -.01em); } 100% { transform: translate(-.012em, .008em); } }
@keyframes glitch-slice-a {
  0% { clip-path: inset(8% 0 72% 0); } 33% { clip-path: inset(46% 0 30% 0); } 66% { clip-path: inset(70% 0 6% 0); } 100% { clip-path: inset(22% 0 58% 0); }
}
@keyframes glitch-slice-b {
  0% { clip-path: inset(62% 0 18% 0); } 33% { clip-path: inset(12% 0 64% 0); } 66% { clip-path: inset(38% 0 40% 0); } 100% { clip-path: inset(80% 0 4% 0); }
}

/* ---------------------------------------------------------------- background radio */
.radio {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 8px 8px 8px 8px;
  background: rgba(18, 18, 20, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-family: var(--f-ui); color: var(--paper);
}
.radio button { background: none; border: 0; color: inherit; cursor: pointer; display: grid; place-items: center; }
.radio svg { width: 18px; height: 18px; }
.radio-play { position: relative; width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--paper) !important; color: var(--ink) !important; flex-shrink: 0; transition: transform .15s var(--ease); }
.radio-play:hover { transform: scale(1.06); }
.radio-play svg { width: 16px; height: 16px; }
.radio.is-loading .radio-play::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: radio-spin .9s linear infinite; }
@keyframes radio-spin { to { transform: rotate(360deg); } }
.radio-eq { position: absolute; right: -2px; bottom: -2px; display: none; gap: 1.5px; align-items: flex-end; height: 12px; padding: 2px 3px; background: var(--accent); border-radius: 6px; }
.radio-eq i { width: 2px; background: #fff; border-radius: 1px; animation: radio-eq 1s ease-in-out infinite; }
.radio-eq i:nth-child(2) { animation-delay: -.3s; } .radio-eq i:nth-child(3) { animation-delay: -.6s; } .radio-eq i:nth-child(4) { animation-delay: -.15s; }
.radio.is-playing .radio-eq { display: flex; }
@keyframes radio-eq { 0%, 100% { height: 3px; } 50% { height: 8px; } }
.radio-info { display: grid; gap: 2px; min-width: 0; width: 200px; }
.radio-label { font: 600 var(--fs-12)/var(--lh-ui) var(--f-ui); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ash); white-space: nowrap; }
.radio-label .jp { font-family: var(--f-jp); color: var(--ash-dim); }
.radio-live { color: var(--ash-dim); margin-right: 4px; }
.radio.is-playing .radio-live { color: #ff5c5c; }
.radio.is-playing .radio-live::before { content: "● "; }
.radio-marquee { overflow: hidden; white-space: nowrap; font-size: var(--fs-14); font-weight: 500; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding: 0 4px; }
.radio-now { display: inline-block; }
.radio-marquee.scroll .radio-now { padding-right: 40px; animation: radio-marquee 14s linear infinite; }
@keyframes radio-marquee { 0%, 12% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.radio-controls { display: flex; align-items: center; gap: 8px; }
.radio-controls button { width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--paper-dim); }
.radio-controls button:hover { background: var(--carbon-3); color: #fff; }
/* 44px-tall hit area; the visible 4px track is drawn by the track pseudo-elements */
.radio-volume { -webkit-appearance: none; appearance: none; width: 110px; height: var(--tap); background: transparent; cursor: pointer; margin: 0; }
.radio-volume::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--paper) var(--fill, 25%), var(--line) var(--fill, 25%)); }
.radio-volume::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--paper) var(--fill, 25%), var(--line) var(--fill, 25%)); }
.radio-volume::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: 0 0 0 3px rgba(11,11,12,.6); }
.radio-volume::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 0; }
.radio-volume:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.radio-vol-val { font: 500 var(--fs-12)/1 var(--f-mono); color: var(--ash); width: 48px; }
.radio-toggle { display: none !important; width: var(--tap); height: var(--tap); border-radius: 50%; color: var(--ash); }
.radio-toggle svg { transition: transform .2s var(--ease); }
@media (max-width: 720px) {
  .radio { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-wrap: wrap; border-radius: 20px; row-gap: 6px; }
  .radio-info { flex: 1; width: auto; }
  .radio-toggle { display: grid !important; }
  .radio-controls { order: 3; width: 100%; padding: 2px 6px 4px; }
  .radio-volume { flex: 1; width: auto; }
  .radio.is-collapsed .radio-controls { display: none; }
  .radio:not(.is-collapsed) .radio-toggle svg { transform: rotate(180deg); }
  .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .radio-marquee.scroll .radio-now { animation: none; } }

/* ---------------------------------------------------------------- spec key */
.spec-key { margin: 0 0 24px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--carbon); }
.spec-key summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 16px; font: 600 var(--fs-14)/var(--lh-ui) var(--f-ui); color: var(--paper-dim); }
.spec-key summary::-webkit-details-marker { display: none; }
.spec-key summary::before { content: "?"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font: 600 var(--fs-12)/1 var(--f-ui); color: var(--ash); }
.spec-key summary::after { content: "+"; margin-left: auto; font: 400 var(--fs-20)/1 var(--f-ui); color: var(--ash); transition: transform .2s; }
.spec-key[open] summary::after { transform: rotate(45deg); }
.spec-key dl { margin: 0; padding: 4px 16px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 32px; }
.spec-key dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.spec-key dt { font-size: var(--fs-14); color: var(--paper); }
.spec-key dd { margin: 0; font-size: var(--fs-14); line-height: var(--lh-body); color: var(--ash); max-width: 36em; }
.spec-key dd b { color: var(--paper-dim); font-weight: 600; }
.spec-key dd a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.spec-help { display: block; margin-top: 2px; font-size: var(--fs-12); color: var(--ash-dim); line-height: var(--lh-ui); }
.radio:hover .radio-marquee.scroll .radio-now, .radio:focus-within .radio-marquee.scroll .radio-now { animation-play-state: paused; }

@media (max-width: 520px) { .lede { font-size: var(--fs-16); } }

/* filters stack full width on small phones so labels like "Any transmission" are never cut off */
@media (max-width: 420px) { .toolbar .select { flex-basis: 100%; } }
