:root,
.sw-root {
  --sw-bg: #0d1114;
  --sw-ink: #f2efe9;
  --sw-ink-soft: #b5bdc4;
  --sw-accent: #c9362b;
  --sw-font-display: "Arial Narrow", "Helvetica Neue Condensed", "PingFang SC", sans-serif;
  --sw-font-body: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: #0d1114;
}

body {
  margin: 0;
  background: #0d1114;
  color: #f2efe9;
}

body.sheet-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 2000;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #0d1114;
  background: #f2efe9;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sw-stage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 125;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 17, 20, 0.9) 0%, rgba(13, 17, 20, 0.65) 27%, rgba(13, 17, 20, 0.08) 57%, transparent 75%),
    linear-gradient(180deg, rgba(13, 17, 20, 0.32) 0%, transparent 24%, transparent 72%, rgba(13, 17, 20, 0.28) 100%);
}

.sw-copylayer::before {
  display: none;
}

.sw-topbar {
  padding: 28px clamp(24px, 5vw, 72px);
}

.sw-brand {
  gap: 12px;
}

.sw-brand__mark {
  width: 18px;
  height: 30px;
  border-radius: 2px;
  transform: skewX(-12deg);
  background: #c9362b;
  box-shadow: 8px 0 0 rgba(201, 54, 43, 0.34);
}

.sw-brand__name {
  max-width: 190px;
  font-family: var(--sw-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.14em;
}

.sw-nav {
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.sw-nav__item {
  position: relative;
  padding: 8px 0;
  color: rgba(242, 239, 233, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  border-radius: 0;
  background: transparent;
}

.sw-nav__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: var(--sw-accent);
  transition: right 220ms ease;
}

.sw-nav__item:hover,
.sw-nav__item.is-active {
  color: #f2efe9;
  background: transparent;
}

.sw-nav__item.is-active::after {
  right: 0;
}

.sw-topcta,
.sw-btn {
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.sw-topcta {
  padding: 11px 18px;
  color: #f2efe9;
  border: 1px solid rgba(242, 239, 233, 0.3);
  background: rgba(13, 17, 20, 0.62);
  backdrop-filter: blur(12px);
}

.sw-copy {
  left: clamp(24px, 6vw, 88px);
  width: min(40vw, 560px);
}

.sw-copy__num {
  color: var(--sw-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.sw-copy__title {
  max-width: 7.4em;
  margin-top: 22px;
  color: #f2efe9;
  font-family: var(--sw-font-display);
  font-size: clamp(2.8rem, 4.8vw, 5.6rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-shadow: none;
  text-wrap: balance;
}

.sw-copy__body {
  max-width: 34ch;
  margin-top: 28px;
  color: rgba(242, 239, 233, 0.7);
  font-size: clamp(0.98rem, 1.18vw, 1.16rem);
  line-height: 1.75;
  text-shadow: none;
}

.sw-copy__cta {
  margin-top: 34px;
}

.sw-btn {
  padding: 14px 22px;
}

.sw-btn--primary {
  color: #fff;
  background: #c9362b;
}

.sw-btn--ghost {
  color: #f2efe9;
  border-color: rgba(242, 239, 233, 0.34);
}

.sw-route {
  right: clamp(12px, 2vw, 28px);
}

.sw-route::before {
  width: 1px;
  background: rgba(242, 239, 233, 0.22);
}

.sw-route__dot i {
  width: 7px;
  height: 7px;
  background: rgba(242, 239, 233, 0.42);
}

.sw-route__dot.is-active i {
  background: var(--sw-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--sw-accent) 20%, transparent);
}

.sw-route__label {
  color: #f2efe9;
  border: 1px solid rgba(242, 239, 233, 0.14);
  background: rgba(13, 17, 20, 0.75);
}

.sw-hint {
  color: rgba(242, 239, 233, 0.5);
}

.sw-hint i {
  border-color: rgba(242, 239, 233, 0.34);
}

.sw-scene__video,
.sw-scene__still {
  object-position: center center;
}

.product-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms ease, visibility 0s linear 360ms;
}

.product-sheet.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.product-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(5, 7, 8, 0.76);
  backdrop-filter: blur(12px);
}

.product-sheet__panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(660px, 92vw);
  min-height: 100%;
  padding: clamp(28px, 5vw, 72px);
  border-left: 1px solid rgba(242, 239, 233, 0.13);
  background: #11171b;
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-sheet.is-open .product-sheet__panel {
  transform: translateX(0);
}

.product-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.product-sheet__header h2 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--sw-font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.product-sheet__close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(242, 239, 233, 0.18);
  border-radius: 50%;
  color: #f2efe9;
  background: transparent;
  cursor: pointer;
}

.product-sheet__close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.product-sheet__list {
  margin-top: clamp(48px, 8vh, 92px);
}

.product-sheet__list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(242, 239, 233, 0.12);
}

.product-sheet__list span {
  grid-row: 1 / 3;
  color: #c9362b;
  font: 700 0.72rem/1 var(--sw-font-body);
  letter-spacing: 0.12em;
}

.product-sheet__list h3,
.product-sheet__list p {
  margin: 0;
}

.product-sheet__list h3 {
  font-size: 1.05rem;
}

.product-sheet__list p {
  color: #929ca3;
  font-size: 0.88rem;
  line-height: 1.6;
}

.product-sheet__note {
  max-width: 38ch;
  margin: 34px 0 0 58px;
  color: #778188;
  font-size: 0.78rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .sw-stage::after {
    background:
      linear-gradient(
        180deg,
        #0d1114 0%,
        rgba(13, 17, 20, 0.14) 12%,
        rgba(13, 17, 20, 0.05) 39%,
        rgba(13, 17, 20, 0.76) 56%,
        #0d1114 74%,
        #0d1114 100%
      );
  }

  .sw-topbar {
    padding: 14px 16px;
  }

  .sw-brand__name {
    max-width: 122px;
    font-size: 0.66rem;
  }

  .sw-topcta {
    padding: 8px 11px;
    font-size: 0.7rem;
  }

  .sw-copy {
    left: 20px;
    right: 40px;
    bottom: calc(clamp(74px, 11dvh, 100px) + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
  }

  .sw-copy__title {
    max-width: 100%;
    margin-top: 11px;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.02;
  }

  .sw-copy__body {
    max-width: 100%;
    margin-top: 13px;
    font-size: clamp(0.86rem, 3.4vw, 0.98rem);
    line-height: 1.55;
  }

  .sw-copy__cta {
    margin-top: 16px;
  }

  .sw-btn {
    padding: 11px 15px;
    font-size: 0.78rem;
  }

  .sw-scene__video,
  .sw-scene__still {
    inset: auto 0;
    top: clamp(64px, 9dvh, 88px);
    height: clamp(210px, 40dvh, 340px);
    object-fit: cover;
    object-position: 64% center;
    background: #0d1114;
    border-top: 1px solid rgba(242, 239, 233, 0.04);
    border-bottom: 1px solid rgba(242, 239, 233, 0.06);
  }

  /* The opening is a whole-vehicle establishing shot. A portrait cover crop removes
     roughly 38% of a 16:9 frame, so phones must letterbox this scene to keep the
     complete car visible. Later macro/parts scenes intentionally remain full-bleed. */
  .sw-scene:first-child .sw-scene__video,
  .sw-scene:first-child .sw-scene__still {
    object-fit: contain;
    object-position: center center;
  }

  .sw-route {
    top: 76px;
    right: 12px;
    bottom: auto;
    flex-direction: row;
    gap: 7px;
    padding: 3px;
    transform: none;
  }

  .sw-route::before {
    left: 14px;
    right: 14px;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
    transform: none;
  }

  .product-sheet__panel {
    width: 100vw;
    max-height: 100dvh;
    padding: 24px 20px 40px;
    overflow-y: auto;
  }

  .product-sheet__header h2 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .product-sheet__list {
    margin-top: 34px;
  }

  .product-sheet__list article {
    padding: 16px 0;
  }

  .product-sheet__note {
    margin: 26px 0 0;
  }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 860px) {
  .sw-topbar {
    padding: 11px 14px;
  }

  .sw-brand__name {
    max-width: 108px;
    font-size: 0.6rem;
  }

  .sw-copy {
    left: 16px;
    right: 34px;
    bottom: calc(54px + env(safe-area-inset-bottom));
  }

  .sw-copy__title {
    font-size: clamp(1.82rem, 9vw, 2.2rem);
  }

  .sw-copy__body {
    margin-top: 10px;
    font-size: 0.8rem;
  }

  .sw-scene__video,
  .sw-scene__still {
    top: 58px;
    height: clamp(190px, 40dvh, 250px);
  }

  .sw-route {
    top: 60px;
  }

  .sw-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
