/* ==========================================================================
   MSC / Mirai Star Corporation
   Design tokens
   ========================================================================== */

:root {
  --ink:      #060607;
  --carbon:   #0d0e12;
  --steel:    #16181f;
  --line:     #262a33;
  --chrome:   #e8ecf2;
  --mute:     #8b93a2;
  --gold:     #ffb020;
  --ember:    #f2761b;

  --grad-chrome: linear-gradient(180deg, #ffffff 0%, #cfd6e0 46%, #8d95a3 52%, #eef2f7 100%);
  --grad-star:   linear-gradient(105deg, var(--gold) 0%, var(--ember) 100%);

  --f-display: "Archivo", "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-body: "Zen Kaku Gothic New", "Archivo", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 56px);
  --sect: clamp(72px, 9vw, 132px);
  --r: 4px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--chrome);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sect); position: relative; }
.section--tint { background: var(--carbon); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #000; padding: 10px 18px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Type helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grad-star);
  flex: none;
}

.h-sect {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108, "wght" 800;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.22;
  letter-spacing: -.01em;
  margin: 0 0 20px;
}
.h-sect .en {
  display: block;
  font-style: italic;
  font-variation-settings: "wdth" 118, "wght" 900;
  font-size: clamp(13px, 1.5vw, 16px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 10px;
}
.chrome-text {
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--mute); max-width: 62ch; font-size: 15.5px; }

/* Comet rule — echoes the swoosh in the logo */
.comet {
  height: 2px;
  border: 0;
  margin: 0 0 40px;
  background: linear-gradient(90deg, var(--ember), var(--gold) 42%, rgba(255,176,32,0));
  width: min(340px, 62%);
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 106, "wght" 700;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 14px 26px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--gold {
  background: var(--grad-star);
  color: #140c00;
  box-shadow: 0 0 0 rgba(255,176,32,0);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(242,118,27,.32); }
.btn--ghost { border-color: var(--line); color: var(--chrome); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--wide { width: 100%; justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(6,6,7,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.hdr.is-stuck { background: rgba(6,6,7,.96); border-bottom-color: var(--line); }
.hdr__in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.hdr__logo img { height: 34px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 13.5px;
  color: var(--chrome);
  opacity: .82;
  transition: opacity .18s ease, color .18s ease;
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { opacity: 1; color: var(--gold); }
.nav__tel {
  font-family: var(--f-mono);
  font-size: 13px !important;
  letter-spacing: .04em;
  color: var(--gold) !important;
  opacity: 1 !important;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--r);
}
.nav__tel:hover { border-color: var(--gold); }
.lang {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 7px 12px;
  opacity: 1 !important;
}
.lang:hover { border-color: var(--gold); }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: var(--chrome);
  transition: transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6,6,7,.985);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 26px;
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__tel, .lang { text-align: center; margin-top: 16px; border-bottom: 1px solid var(--line) !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(120px, 17vw, 190px);
  padding-bottom: clamp(64px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
  background: url("../img/storefront.jpg") center 62% / cover no-repeat;
  opacity: .28;
  filter: grayscale(.35) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 78% at 78% 8%, rgba(242,118,27,.16), transparent 58%),
    linear-gradient(180deg, rgba(6,6,7,.86) 0%, rgba(6,6,7,.72) 42%, var(--ink) 96%);
}
.hero__in { position: relative; }

.hero h1 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 104, "wght" 800;
  font-size: clamp(34px, 6.6vw, 74px);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  max-width: 17ch;
}
.hero__sub {
  font-family: var(--f-display);
  font-style: italic;
  font-variation-settings: "wdth" 116, "wght" 800;
  font-size: clamp(12px, 1.8vw, 17px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 26px;
}
.hero__copy { max-width: 56ch; color: #b9c0cc; font-size: 16px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Signature: the route line drawn from Japan outward */
.route {
  position: absolute;
  right: -6%;
  top: 8%;
  width: min(560px, 52vw);
  pointer-events: none;
  opacity: 1;
  z-index: 0;
}
.route path, .route circle { vector-effect: non-scaling-stroke; }
.route .trail {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s cubic-bezier(.5,0,.15,1) .35s forwards;
}
.route .pin { opacity: 0; animation: pop .6s ease 1.9s forwards; }
.route .pin--2 { animation-delay: 2.25s; }
.route .pin--3 { animation-delay: 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) { .route { display: none; } }

/* Lighter hero and band artwork on small screens */
@media (max-width: 820px) {
  .hero__bg { background-image: url("../img/storefront-sm.jpg"); }
  .band { background-image:
    linear-gradient(180deg, rgba(6,6,7,.9) 30%, rgba(6,6,7,.72) 100%),
    url("../img/showroom-sm.jpg"); }
}

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(44px, 6vw, 76px);
}
.stat { padding: 26px 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112, "wght" 900;
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--gold);
  margin-bottom: 8px;
}
.stat span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); line-height: 1.5; display: block; }
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.grid-svc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--ink);
  padding: 34px 28px 32px;
  transition: background .25s ease;
}
.section--tint .svc { background: var(--carbon); }
.svc:hover { background: var(--steel); }
.svc__no {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ember);
  display: block;
  margin-bottom: 20px;
}
.svc h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-size: 18px;
  margin: 0 0 6px;
  line-height: 1.5;
}
.svc h3 small {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 7px;
}
.svc p { font-size: 14px; color: var(--mute); line-height: 1.85; margin-top: 16px; }

/* ==========================================================================
   Split feature (why us)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.figure { position: relative; }
.figure img { border: 1px solid var(--line); border-radius: var(--r); }
.figure figcaption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 12px;
}

.checks { list-style: none; margin: 30px 0 0; padding: 0; }
.checks li {
  position: relative;
  padding: 15px 0 15px 34px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 24px;
  width: 12px; height: 12px;
  background: var(--grad-star);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.checks b { color: var(--chrome); font-weight: 700; }
.checks span { color: var(--mute); }

/* ==========================================================================
   Process — the shipping route
   ========================================================================== */

.flow { position: relative; margin-top: 8px; }
.flow::before {
  content: "";
  position: absolute;
  left: 19px; top: 12px; bottom: 12px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px);
}
.step {
  position: relative;
  padding: 0 0 34px 62px;
}
.step:last-child { padding-bottom: 0; }
.step__dot {
  position: absolute;
  left: 0; top: 2px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gold);
}
.section--tint .step__dot { background: var(--carbon); }
.step.is-in .step__dot { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,176,32,.09); }
.step h3 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 700;
  font-size: 17px;
  margin: 6px 0 8px;
}
.step p { font-size: 14.5px; color: var(--mute); max-width: 66ch; }

/* ==========================================================================
   Dealer band
   ========================================================================== */

.band {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(6,6,7,.94) 34%, rgba(6,6,7,.55) 100%),
    url("../img/showroom.jpg") center / cover no-repeat;
}
.band__in { padding: clamp(34px, 5.6vw, 66px); max-width: 720px; }
.band ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.band li { font-size: 14.5px; color: #b9c0cc; padding-left: 20px; position: relative; }
.band li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gal figure { margin: 0; }
.gal img { border: 1px solid var(--line); border-radius: var(--r); width: 100%; }
@media (max-width: 760px) { .gal { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after {
  content: "";
  position: absolute; right: 8px; top: 31px;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 10px 24px 0; color: var(--mute); font-size: 14.5px; max-width: 78ch; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

.info { list-style: none; padding: 0; margin: 0; }
.info li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.info li:first-child { border-top: 1px solid var(--line); }
.info dt, .info .k {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.info .v { font-size: 16px; }
.info a.v:hover { color: var(--gold); }
.info .v--tel {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108, "wght" 800;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: .01em;
  color: var(--gold);
  display: inline-block;
}

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input, .field textarea, .field select {
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--chrome);
  font-family: var(--f-body);
  font-size: 15px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .18s ease, background .18s ease;
}
.section--tint .field input, .section--tint .field textarea, .section--tint .field select { background: var(--ink); }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field--2 { grid-template-columns: 1fr; } }
.form__note { font-size: 12.5px; color: var(--mute); margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.ftr { border-top: 1px solid var(--line); padding-block: 56px 34px; background: var(--carbon); }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .ftr__grid { grid-template-columns: 1fr; gap: 30px; } }
.ftr img { height: 40px; width: auto; margin-bottom: 18px; }
.ftr p { font-size: 13.5px; color: var(--mute); }
.ftr h4 {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--chrome);
  margin: 0 0 16px;
  font-weight: 500;
}
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr ul a { font-size: 13.5px; color: var(--mute); }
.ftr ul a:hover { color: var(--gold); }
.ftr__bar {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mute);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .route .trail { stroke-dashoffset: 0; }
  .route .pin { opacity: 1; }
}
