:root {
  --paper: #f5f0e7;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #6e6a63;
  --line: #e4ddd1;
  --brand: #4e5b50;
  --clay: #a76d47;
  --gold: #b8925b;
  --logo: #a49384;
  --field: #f0ebe2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.42) 1px, transparent 1px) 0 0 / min(14vw, 168px) 100%,
    var(--paper);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.site-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 52px);
  background: rgba(245,240,231,.88);
  border-bottom: 1px solid rgba(228,221,209,.7);
  backdrop-filter: blur(18px);
}
.brand-mark {
  display: block;
  flex: 0 0 auto;
  min-width: 220px;
  line-height: 1;
}
.logo-wordmark,
.logo-stacked {
  display: block;
  height: auto;
  object-fit: contain;
}
.logo-wordmark {
  width: 220px;
}
.logo-stacked {
  width: 210px;
}
.logo-stacked.light {
  width: 138px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-left: auto;
  color: #3d3a35;
  font-size: 13px;
}
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--clay); }
.top-cta {
  min-height: 38px;
  padding: 8px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.menu-btn {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: min(690px, calc(100vh - 116px));
  display: grid;
  align-items: end;
  background: #171717;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12,12,12,.78), rgba(12,12,12,.28) 48%, rgba(12,12,12,.08)),
    linear-gradient(180deg, rgba(12,12,12,.06), rgba(12,12,12,.58));
  pointer-events: none;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  background: center/cover no-repeat #171717;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity .75s ease, transform 5.2s ease;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(0,0,0,.46);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.hero-video-loader i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
  border-top-color: #fff;
  animation: heroSpin .85s linear infinite;
}
.hero-slide.video-ready .hero-video-loader {
  opacity: 0;
  transform: translate(-50%, -48%);
}
.hero-slide.video-error .hero-video-loader i {
  display: none;
}
@keyframes heroSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-audio-toggle {
  position: absolute;
  top: 24px;
  right: clamp(18px, 5vw, 70px);
  z-index: 3;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  color: #fff;
  backdrop-filter: blur(14px);
  transition: transform .16s ease, background .18s ease, border-color .18s ease;
}
.hero-audio-toggle[hidden] {
  display: none;
}
.hero-audio-toggle.is-on {
  background: rgba(255,255,255,.18);
}
.hero-audio-toggle.is-off {
  color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.58);
}
.hero-audio-toggle:active {
  transform: scale(.94);
}
.hero-audio-icon {
  position: relative;
  width: 20px;
  height: 20px;
}
.hero-audio-core {
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 2px 0 0 2px;
}
.hero-audio-core::after {
  content: "";
  position: absolute;
  left: 6px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 9px solid #fff;
}
.hero-audio-wave {
  position: absolute;
  right: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-left: none;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0 999px 999px 0;
  transform-origin: left center;
}
.hero-audio-wave.wave-two {
  right: -3px;
  top: 1px;
  width: 18px;
  height: 18px;
  opacity: .56;
}
.hero-audio-toggle.is-on .wave-one {
  animation: heroSoundPulse 1.15s ease-in-out infinite;
}
.hero-audio-toggle.is-on .wave-two {
  animation: heroSoundPulse 1.15s ease-in-out .16s infinite;
}
.hero-audio-slash {
  position: absolute;
  left: 10px;
  top: -2px;
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  transform: rotate(-42deg) scaleY(.68);
  transition: opacity .18s ease, transform .18s ease;
}
.hero-audio-toggle.is-off .hero-audio-wave {
  opacity: 0;
  transform: scaleX(.2);
}
.hero-audio-toggle.is-off .hero-audio-slash {
  opacity: 1;
  transform: rotate(-42deg) scaleY(1);
}
@keyframes heroSoundPulse {
  0%, 100% { opacity: .42; transform: scaleX(.82); }
  50% { opacity: 1; transform: scaleX(1.08); }
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide-caption {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(92px, 12vh, 142px);
  width: min(280px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  padding: 16px 0 0 18px;
  border-left: 1px solid rgba(255,255,255,.34);
  color: rgba(255,255,255,.82);
}
.hero-slide-caption small {
  color: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: 3px;
}
.hero-slide-caption b {
  font-size: 22px;
  line-height: 1.2;
}
.hero-slide-caption em {
  color: rgba(255,255,255,.66);
  font-style: normal;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(220px, 1fr);
  column-gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: 82px 0 54px;
}
.eyebrow {
  margin-bottom: 14px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  letter-spacing: 4px;
}
.hero h1 {
  width: min(640px, 100%);
  margin: 0;
  font-size: clamp(44px, 6.9vw, 86px);
  line-height: .96;
  font-weight: 700;
}
.hero p {
  width: min(430px, 100%);
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.8vw, 18px);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-controls {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: clamp(48px, 10vh, 92px);
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.26);
}
.hero-dots,
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-dots button {
  width: 30px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  transition: width .18s ease, background .18s ease;
}
.hero-dots button.active {
  width: 54px;
  background: #fff;
}
.hero-arrows button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 25px;
  line-height: 1;
}
.hero-arrows button:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.7);
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.btn.alt {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.62);
  color: #fff;
}
.btn.light {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn.full { width: 100%; }

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.label {
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  font-size: clamp(31px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 700;
}
.section-head p, .lead {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: stretch;
}
.media {
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  background: center/cover no-repeat var(--field);
}
.media.craft { background-image: url("/site-assets/yiju-model-c-showroom.jpg"); }
.media.service { background-image: url("/site-assets/yiju-model-c-coast.jpg"); }
.panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}
.panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.checks {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #36332e;
}
.check::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 8px;
}

.grid,
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.card {
  min-width: 0;
  grid-column: span 4;
  border: 1px solid rgba(228,221,209,.86);
  border-radius: 0;
  overflow: hidden;
  background: rgba(255,255,255,.76);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(167,109,71,.55);
  background: #fff;
}
.card-featured {
  grid-column: span 7;
  grid-row: span 2;
}
.model-grid .card:nth-child(2),
.used-grid .card:nth-child(2) {
  grid-column: span 5;
}
.model-grid .card:nth-child(3),
.used-grid .card:nth-child(3) {
  grid-column: 8 / span 5;
}
.model-grid .card:nth-child(n+4) {
  grid-column: span 4;
}
.card-img {
  aspect-ratio: 16 / 10;
  background: center/cover no-repeat var(--field);
}
.card-featured .card-img { aspect-ratio: 16 / 11.5; }
.card-body { padding: 18px; }
.card-featured .card-body { padding: 24px; }
.card-issue {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 11px;
  letter-spacing: 2px;
}
.card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}
.card-featured h3 { font-size: clamp(25px, 3vw, 36px); }
.card p {
  margin: 9px 0 0;
  color: var(--muted);
}
.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.price {
  color: var(--clay);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.68);
}
.feature:nth-child(2) { margin-top: 28px; }
.feature:nth-child(3) { margin-top: 56px; }
.feature b { display: block; font-size: 17px; }
.feature span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.detail-hero {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 0;
}
.detail-media {
  min-height: 540px;
  border-radius: 0;
  background: center/cover no-repeat var(--field);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.gallery-img {
  min-height: 160px;
  border-radius: 0;
  background: center/cover no-repeat var(--field);
}
.detail-layout {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 34px 0 80px;
}
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.spec {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.spec b { display: block; margin-top: 3px; }

.form {
  display: grid;
  gap: 12px;
}
.form label {
  display: grid;
  gap: 6px;
  color: #34312d;
  font-size: 13px;
}
.form input, .form textarea, .form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(167,109,71,.14);
}
.form-msg {
  min-height: 20px;
  color: var(--brand);
  font-size: 13px;
}
.form-msg.err { color: #a33b2f; }

.footer {
  padding: 34px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  background: #1e1b18;
  color: #eee8dc;
}
.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer small { color: #a9a094; }
.footer-brand {
  display: grid;
  gap: 10px;
}

.section-opener {
  width: min(1240px, calc(100% - 36px));
}
.magazine-opener {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: end;
}
.opener-copy {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  padding: clamp(16px, 3vw, 34px) 0;
}
.opener-media {
  background: center/cover no-repeat var(--field);
  min-height: 420px;
}
.opener-media.primary {
  grid-column: 6 / span 7;
  grid-row: 1;
  background-image: url("/site-assets/yiju-model-c-coast.jpg");
}
.opener-media.secondary {
  grid-column: 8 / span 4;
  grid-row: 2;
  min-height: 260px;
  background-image: url("/site-assets/yiju-model-b-green.jpg");
}
.opener-caption {
  grid-column: 6 / span 2;
  grid-row: 2;
  align-self: stretch;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.opener-caption b {
  color: var(--clay);
  font-size: 11px;
  letter-spacing: 2px;
}
.opener-caption span { color: var(--muted); }

.story-board {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr);
  gap: 20px;
}
.story-feature {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 46px);
  color: #fff;
  background: linear-gradient(180deg, rgba(16,16,16,.04), rgba(16,16,16,.72)), center/cover no-repeat var(--field);
}
.story-feature span {
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.72);
}
.story-feature h3 {
  width: min(620px, 100%);
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.06;
}
.story-feature p {
  width: min(520px, 100%);
  margin: 12px 0 0;
  color: rgba(255,255,255,.78);
}
.story-list {
  display: grid;
  gap: 18px;
  align-content: start;
}
.story-list .card {
  grid-column: auto;
}
.story-list .card-img {
  aspect-ratio: 16 / 8.5;
}

@media (max-width: 860px) {
  body { background: var(--paper); }
  .top { min-height: 64px; padding: 10px 16px; }
  .brand-mark { min-width: 176px; }
  .logo-wordmark { width: 176px; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: rgba(247,244,238,.98);
    border-bottom: 1px solid var(--line);
  }
  .top.open .nav { display: flex; }
  .nav a, .nav .top-cta { width: 100%; padding: 12px 0; border-radius: 0; background: transparent; color: var(--ink); border: none; text-align: left; }
  .hero { min-height: min(640px, calc(100vh - 86px)); align-items: end; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(12,12,12,.8), rgba(12,12,12,.34)),
      linear-gradient(180deg, rgba(12,12,12,.04), rgba(12,12,12,.64));
  }
  .hero-slide { background-position: 60% center; }
  .hero-slide-caption { display: none; }
  .hero-inner { width: min(100% - 28px, 620px); padding: 56px 0 34px; }
  .hero-inner { display: block; }
  .hero h1 { font-size: 42px; }
  .hero p { max-width: 330px; font-size: 15px; }
  .hero-controls { margin-top: 46px; }
  .section { width: min(100% - 28px, 720px); padding: 52px 0; }
  .section-head { display: block; }
  .split, .detail-layout { grid-template-columns: 1fr; }
  .magazine-opener,
  .story-board,
  .grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .opener-copy,
  .opener-media.primary,
  .opener-media.secondary,
  .opener-caption,
  .card,
  .card-featured,
  .model-grid .card:nth-child(2),
  .used-grid .card:nth-child(2),
  .model-grid .card:nth-child(3),
  .used-grid .card:nth-child(3),
  .model-grid .card:nth-child(n+4) {
    grid-column: auto;
    grid-row: auto;
  }
  .opener-copy { padding: 0; }
  .opener-caption { padding: 16px 0; }
  .opener-media,
  .story-feature { min-height: 360px; }
  .media { min-height: 280px; }
  .feature-grid, .gallery { grid-template-columns: 1fr; }
  .feature:nth-child(2),
  .feature:nth-child(3) { margin-top: 0; }
  .detail-hero { width: min(100% - 28px, 720px); }
  .detail-media { min-height: 360px; }
  .gallery-img { min-height: 220px; }
  .specs { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 14px; }
  .hero-dots button { width: 24px; }
  .hero-dots button.active { width: 42px; }
  .hero-arrows button { width: 38px; height: 38px; }
  .btn { width: 100%; }
  .panel { padding: 20px; }
  .card-body { padding: 16px; }
}
