/* ==========================================================================
   APRILIYA TOYOTA — Editorial Automotive Showroom Stylesheet
   ========================================================================== */

:root {
  --bg-page: #FAFAFA;
  --bg-soft: #F4F4F5;
  --surface: #FFFFFF;
  --surface-dark: #111111;
  --border: #E4E4E7;
  --border-strong: #D4D4D8;

  --text-primary: #111111;
  --text-secondary: #52525B;
  --text-muted: #71717A;

  --toyota-red: #EB0A1E;
  --toyota-red-deep: #C80417;

  --emerald-bg: #ECFDF5;
  --emerald-text: #047857;
  --emerald-border: #A7F3D0;

  --amber-bg: #FFFBEB;
  --amber-text: #B45309;
  --amber-border: #FDE68A;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-page);
  overflow-x: clip;
}

main, section {
  overflow-x: clip;
}

/* Prevent CSS Grid tracks from expanding beyond viewport width due to long select options or tables */
.showcase-grid > *,
.assistant-panel > *,
.assistant-form > *,
.compare-selectors-3 > *,
.dealer-box > *,
.profile-grid > *,
.footer-grid > *,
.field,
.compare-selector-card,
.compare-table-wrap {
  min-width: 0;
  max-width: 100%;
}

select, input {
  max-width: 100%;
  min-width: 0;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: 24px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), color 220ms var(--ease-out);
  will-change: transform;
}

.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  background: var(--toyota-red);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--toyota-red-deep);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--text-primary);
  color: #FFFFFF;
}

.btn--dark:hover {
  background: #27272A;
  transform: translateY(-1px);
}

.btn--light {
  background: #FFFFFF;
  color: var(--text-primary);
}

.btn--light:hover {
  background: #F4F4F5;
  transform: translateY(-1px);
}

.btn--outline-white {
  background: rgba(17, 17, 17, 0.28);
  border-color: rgba(255, 255, 255, 0.72);
  color: #FFFFFF;
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #FFFFFF;
}

.btn--outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--text-primary);
  background: var(--bg-soft);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn--full {
  width: 100%;
}

/* ---------- Badges & Spec Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.badge--emerald {
  background: var(--emerald-bg);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

.badge--emerald::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.badge--amber {
  background: var(--amber-bg);
  color: var(--amber-text);
  border: 1px solid var(--amber-border);
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  transition: background-color 260ms var(--ease-out), border-color 260ms var(--ease-out);
}

.site-header--hero {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.site-header--hero.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.brand-logo--white {
  display: none;
}

.site-header--hero:not(.is-scrolled) .brand-logo--dark {
  display: none;
}

.site-header--hero:not(.is-scrolled) .brand-logo--white {
  display: block;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: var(--border-strong);
}

.site-header--hero:not(.is-scrolled) .brand-divider {
  background: rgba(255, 255, 255, 0.35);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-meta strong {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-meta small {
  font-size: 11px;
  color: var(--text-secondary);
}

.site-header--hero:not(.is-scrolled) .brand-meta strong,
.site-header--hero:not(.is-scrolled) .brand-meta small {
  color: #FFFFFF;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 200ms var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--toyota-red);
}

.site-header--hero:not(.is-scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.86);
}

.site-header--hero:not(.is-scrolled) .nav-link:hover,
.site-header--hero:not(.is-scrolled) .nav-link.is-active {
  color: #FFFFFF;
}

.site-header--hero:not(.is-scrolled) .nav-link.is-active::after {
  background: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header--hero:not(.is-scrolled) .header-wa {
  background: #FFFFFF;
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
}

.site-header--hero:not(.is-scrolled) .nav-toggle {
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header--hero:not(.is-scrolled) .nav-toggle span {
  background: #FFFFFF;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(17, 17, 17, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translate3d(100%, 0, 0);
  transition: transform 280ms var(--ease-out);
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translate3d(0, 0, 0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.mobile-drawer__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-block: 24px auto;
}

.mobile-drawer__nav a {
  padding: 14px 12px;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mobile-drawer__nav a.is-active {
  background: var(--bg-soft);
  color: var(--toyota-red);
}

.mobile-drawer__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-drawer__cta .text-muted {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

/* ==========================================================================
   HERO — Orang di Tengah, Biru -> Merah Smooth 60fps, Animasi Masuk & Gulir
   ========================================================================== */
.hero-stage {
  --hx: 0;
  --hy: 0;
  position: relative;
  min-height: 94svh;
  background: radial-gradient(ellipse 90% 85% at 50% 40%, #16449E 0%, #091E4A 100%);
  /* Awalnya biru elegan */
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  perspective: 1150px;
}

/* Layer merah Toyota yang masuk smooth (GPU opacity only = 60fps) */
.hero-bg-red {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 85% 80% at 50% 42%, #EB0A1E 0%, #B80415 100%);
  opacity: 0;
  animation: heroBlueToRed 1.65s var(--ease-out) 0.55s forwards;
  will-change: opacity;
  pointer-events: none;
}

@keyframes heroBlueToRed {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 80% at 50% 45%, rgba(0, 0, 0, 0) 0%, rgba(16, 4, 10, 0.44) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.36) 100%);
  pointer-events: none;
}

.hero-studio-halo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle 420px at calc(50% + var(--hx) * 18%) calc(36% + var(--hy) * 14%), rgba(255, 255, 255, 0.22) 0%, rgba(255, 210, 215, 0.08) 42%, transparent 72%);
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-stage.is-spotlight .hero-studio-halo {
  background: radial-gradient(circle 480px at calc(50% + var(--hx) * 18%) calc(34% + var(--hy) * 14%), rgba(255, 255, 255, 0.36) 0%, rgba(255, 232, 234, 0.14) 46%, transparent 74%);
}

.hero-wordmark-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 10vh;
  pointer-events: none;
  user-select: none;
  padding-inline: 24px;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.hero-wordmark-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.6rem, 15.5vw, 15.5rem);
  line-height: 0.85;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  animation: heroWordIn 0.85s var(--ease-out) both;
}

.hero-wordmark-line--outline {
  color: rgba(255, 255, 255, 0.24);
  animation-delay: 0.12s;
}

@keyframes heroWordIn {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Subjek di TENGAH tepat di depan tipografi besar (3D interaktif + rambut gerak halus) */
.hero-subject-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.hero-subject-figure {
  position: relative;
  height: min(86svh, 820px);
  aspect-ratio: 672 / 1920;
  width: auto;
  max-width: none;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--hy) * -4.2deg)) rotateY(calc(var(--hx) * 5.8deg)) translateZ(24px);
  filter: drop-shadow(0 22px 42px rgba(24, 2, 8, 0.38)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.08));
  animation: heroPortraitIn 0.8s var(--ease-out) 0.08s both;
  transition: transform 0.2s var(--ease-out), filter 0.35s ease;
}

.hero-stage.is-spotlight .hero-subject-figure {
  filter: drop-shadow(0 26px 48px rgba(18, 2, 8, 0.48)) drop-shadow(0 0 32px rgba(255, 255, 255, 0.22));
}

.hero-stage.is-gust .hero-portrait-hair.profile-3d-hair--left {
  animation-duration: 1.35s;
}

.hero-stage.is-gust .hero-portrait-hair.profile-3d-hair--right {
  animation-duration: 1.6s;
}

.hero-portrait-img,
.hero-portrait-hair {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
}

.hero-portrait-hair {
  pointer-events: none;
}

@keyframes heroPortraitIn {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero-text-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  z-index: 4;
  background: linear-gradient(0deg, rgba(24, 4, 10, 0.82) 0%, rgba(24, 4, 10, 0.34) 52%, rgba(24, 4, 10, 0) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-block: 48px 52px;
  will-change: transform, opacity;
}

.hero-copy {
  max-width: 520px;
}

.hero-copy>* {
  animation: heroCopyIn 0.65s var(--ease-out) both;
}

.hero-copy>*:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-copy>*:nth-child(2) {
  animation-delay: 0.12s;
}

.hero-copy>*:nth-child(3) {
  animation-delay: 0.18s;
}

.hero-copy>*:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy>*:nth-child(5) {
  animation-delay: 0.30s;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0 0 8px;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
}

.hero-tagline {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   DEDICATED VIDEO SHOWCASE SECTION (Dark Navy + Portrait 9:16 Reel)
   ========================================================================== */
.showcase-section {
  background: #070E1A;
  color: #FFFFFF;
  padding-block: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.showcase-reel-wrap {
  display: flex;
  justify-content: center;
}

.showcase-frame {
  position: relative;
  width: min(100%, 340px);
  border-radius: 18px;
  overflow: hidden;
  background: #02060D;
  border: 1px solid rgba(255, 255, 255, 0.16);
  aspect-ratio: 9 / 16;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.showcase-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #02060D;
}

.showcase-sound-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 14, 26, 0.72);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.showcase-sound-btn:hover {
  background: rgba(7, 14, 26, 0.9);
}

.showcase-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60A5FA;
  margin-bottom: 10px;
}

.showcase-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.showcase-desc {
  margin: 0 0 26px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

/* ==========================================================================
   SECTIONS & EDITORIAL TYPOGRAPHY
   ========================================================================== */
.section {
  padding-block: 72px;
}

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Transisi smooth Biru Malam -> Putih saat bagian Pilihan Mobil Toyota masuk layar */
.section--night-to-white {
  position: relative;
  background-color: #070E1A;
  color: #FFFFFF;
  transition: background-color 950ms var(--ease-out), color 850ms var(--ease-out);
}

.section--night-to-white .section-title {
  color: #FFFFFF;
  transition: color 850ms var(--ease-out);
}

.section--night-to-white .section-desc {
  color: rgba(255, 255, 255, 0.78);
  transition: color 850ms var(--ease-out);
}

.section--night-to-white .section-head .btn--outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transition: background-color 850ms var(--ease-out), border-color 850ms var(--ease-out), color 850ms var(--ease-out);
}

.section--night-to-white.is-lit {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

.section--night-to-white.is-lit .section-title {
  color: var(--text-primary);
}

.section--night-to-white.is-lit .section-desc {
  color: var(--text-secondary);
}

.section--night-to-white.is-lit .section-head .btn--outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--toyota-red);
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-desc {
  margin: 10px 0 0;
  max-width: 660px;
  color: var(--text-secondary);
  font-size: 15px;
}

.page-banner {
  padding-block: 44px 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   MODEL CARDS (4-Column Home Grid + 3-Column Catalog Grid + Keunggulan)
   ========================================================================== */
.models-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.model-card {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out);
  will-change: transform;
}

.model-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: var(--border-strong);
}

.model-card.is-compare-selected {
  border-color: var(--toyota-red);
  box-shadow: 0 0 0 1px var(--toyota-red);
}

.model-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 340ms var(--ease-out);
}

.model-card:hover .model-card__media img {
  transform: scale(1.03);
}

.model-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

.model-card__placeholder span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--toyota-red);
}

.model-card__placeholder strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  color: var(--text-primary);
}

.model-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.model-card__region {
  font-size: 12px;
  color: var(--text-muted);
}

.model-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
}

.model-card__sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.model-highlights-list {
  margin: 2px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.model-highlights-list li::marker {
  color: var(--text-primary);
}

.model-card__consult {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
}

.model-card__consult strong {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
}

.model-card__consult span {
  color: var(--text-muted);
}

.model-card__actions-stack {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

/* ==========================================================================
   CATALOG SIDEBAR CHECKBOX FILTERS (Referensi Foto 2)
   ========================================================================== */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 460px;
}

.search-box .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-consult-box {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.sidebar-consult-box p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.filter-group+.filter-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.filter-group h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.filter-check-list {
  display: grid;
  gap: 8px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  min-height: 28px;
}

.filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--toyota-red);
  cursor: pointer;
}

.filter-check span.cnt {
  color: var(--text-muted);
  font-size: 12px;
}

/* Detail Model Sidebar & Mobile Pills */
.catalog-sidebar__title {
  margin: 0 0 12px;
  padding-inline: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.model-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.model-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.model-nav-item:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.model-nav-item.is-active {
  background: var(--text-primary);
  color: #FFFFFF;
  font-weight: 600;
}

.model-nav-item span.count {
  font-size: 12px;
  opacity: 0.72;
}

.mobile-model-pills {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.mobile-model-pills::-webkit-scrollbar {
  display: none;
}

.model-pill {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
}

.model-pill.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
}

/* Keunggulan Utama Box on Model Detail Page */
.highlights-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.highlights-banner h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  text-transform: uppercase;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.highlight-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--text-primary);
}

.highlight-item svg {
  color: var(--toyota-red);
  margin-top: 2px;
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.variant-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

.variant-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: var(--border-strong);
}

.variant-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.variant-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.illustrative-tag {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 6px;
  border-radius: 4px;
}

.variant-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.variant-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.12;
}

.spec-list {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.spec-row span {
  color: var(--text-muted);
}

.spec-row strong {
  color: var(--text-primary);
  text-align: right;
  font-weight: 600;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

/* ==========================================================================
   3-UNIT COMPARISON TABLE (2 Wajib + Unit Ketiga Opsional)
   ========================================================================== */
.compare-selectors-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.compare-selector-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.compare-selector-card label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.compare-selector-card select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: 0;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table .row-label {
  width: 210px;
  background: var(--bg-page);
  font-weight: 700;
  color: var(--text-primary);
}

.compare-head-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-head-img {
  aspect-ratio: 16 / 10;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-head-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-head-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.compare-col {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 95;
  transform: translate3d(-50%, 150%, 0);
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  transition: transform 260ms var(--ease-out);
}

.compare-bar.is-visible {
  transform: translate3d(-50%, 0, 0);
}

.compare-bar__text {
  font-size: 13.5px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(17, 17, 17, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
}

/* ==========================================================================
   SERVICES, WHATSAPP ASSISTANT, DELIVERY, PROFILE, FOOTER
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--toyota-red);
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.service-promo-box {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 13px;
}

.service-card .btn {
  margin-top: auto;
}

.assistant-panel {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.assistant-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field select,
.field input {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  font-size: 14px;
}

.assistant-preview {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  font-size: 13.5px;
  color: var(--text-secondary);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.delivery-grid--full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.delivery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 240ms var(--ease-out);
}

.delivery-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: var(--text-primary);
}

.delivery-card__img-wrap {
  aspect-ratio: 10 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.delivery-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery-card__meta {
  padding: 14px;
}

.delivery-card__meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.delivery-card__meta span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111111;
  cursor: pointer;
}

.video-player-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: rgba(235, 10, 30, 0.92);
  color: #FFFFFF;
  display: grid;
  place-items: center;
}

.video-card__body {
  padding: 20px;
}

.video-card__body h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
}

.video-card__body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 12, 14, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
}

.lightbox__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-block: 16px;
}

.lightbox__img {
  max-height: 76vh;
  max-width: min(92vw, 1280px);
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}

.lightbox__caption {
  text-align: center;
  color: #FFFFFF;
}

.lightbox__caption strong {
  display: block;
  font-size: 16px;
}

.lightbox__caption span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.profile-grid {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.profile-photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(13, 16, 23, 0.08);
}

.profile-photo-card > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
}

.profile-3d-stage {
  --px: 0;
  --py: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  perspective: 960px;
  cursor: grab;
  touch-action: pan-y;
  background: radial-gradient(circle at 50% 24%, #2A3242 0%, #161B24 52%, #0B0E14 100%);
  isolation: isolate;
}

.profile-3d-stage.is-interacting {
  cursor: grabbing;
}

.profile-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--py) * -7deg)) rotateY(calc(var(--px) * 8.5deg));
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.profile-3d-backdrop {
  position: absolute;
  inset: -6%;
  transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -9px), -38px) scale(1.07);
  background:
    radial-gradient(ellipse 68% 48% at 50% 28%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 55%, transparent 78%),
    linear-gradient(180deg, rgba(22, 28, 39, 0.96) 0%, rgba(16, 20, 29, 0.98) 78%, #090C11 100%);
  transition: background 0.45s ease;
  pointer-events: none;
}

.profile-3d-stage[data-studio-mood="royal"] .profile-3d-backdrop {
  background:
    radial-gradient(ellipse 70% 52% at 50% 26%, rgba(102, 165, 255, 0.24) 0%, rgba(22, 68, 158, 0.18) 54%, transparent 78%),
    linear-gradient(180deg, #132C66 0%, #0B193C 78%, #070E24 100%);
}

.profile-3d-stage[data-studio-mood="red"] .profile-3d-backdrop {
  background:
    radial-gradient(ellipse 70% 52% at 50% 26%, rgba(255, 130, 140, 0.22) 0%, rgba(235, 10, 30, 0.18) 52%, transparent 78%),
    linear-gradient(180deg, #4B0A12 0%, #24080E 78%, #100508 100%);
}

.profile-3d-stage[data-studio-mood="royal"] .profile-3d-rim {
  background: radial-gradient(circle, rgba(64, 132, 255, 0.34) 0%, rgba(18, 60, 148, 0.18) 50%, transparent 76%);
}

.profile-3d-stage[data-studio-mood="red"] .profile-3d-rim {
  background: radial-gradient(circle, rgba(235, 10, 30, 0.34) 0%, rgba(180, 12, 28, 0.18) 50%, transparent 76%);
}

.profile-3d-stage.is-gust .profile-3d-hair--left {
  animation-duration: 1.4s;
}

.profile-3d-stage.is-gust .profile-3d-hair--right {
  animation-duration: 1.65s;
}

.profile-3d-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}

.profile-3d-swatches {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.studio-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.studio-dot[data-mood="charcoal"] { background: linear-gradient(135deg, #4B5568, #141923); }
.studio-dot[data-mood="royal"] { background: linear-gradient(135deg, #3A78E8, #0D2664); }
.studio-dot[data-mood="red"] { background: linear-gradient(135deg, #EB0A1E, #630812); }

.studio-dot.is-active {
  transform: scale(1.18);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.profile-3d-backdrop::before {
  content: "";
  position: absolute;
  inset: 10% 10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.profile-3d-kicker {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translate3d(-50%, 0, 8px);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  text-transform: uppercase;
}

.profile-3d-rim {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 68%;
  height: 52%;
  transform: translate3d(-50%, 0, 0);
  background: radial-gradient(circle, rgba(235, 10, 30, 0.16) 0%, rgba(30, 74, 158, 0.14) 48%, transparent 74%);
  filter: blur(22px);
}

.profile-3d-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(19, 24, 34, 0) 0%, rgba(13, 17, 24, 0.72) 28%, #090C12 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-3d-shadow {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 36%;
  height: 22px;
  transform: translate3d(calc(-50% + var(--px) * 4px), 0, 4px);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 54%, transparent 78%);
  filter: blur(4px);
  pointer-events: none;
}

.profile-3d-figure {
  position: absolute;
  left: 50%;
  bottom: 5.5%;
  height: 85%;
  aspect-ratio: 672 / 1920;
  transform-style: preserve-3d;
  transform: translate3d(calc(-50% + var(--px) * 9px), calc(var(--py) * 5px), 26px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.profile-3d-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
}

.profile-3d-hair {
  will-change: transform;
  opacity: 0.96;
}

.profile-3d-hair--left {
  clip-path: inset(0 49.5% 0 0);
  transform-origin: 42% 9%;
  animation: profileHairBreezeLeft 4.4s ease-in-out infinite;
}

.profile-3d-hair--right {
  clip-path: inset(0 0 0 49.5%);
  transform-origin: 58% 9%;
  animation: profileHairBreezeRight 5.1s ease-in-out -1.6s infinite;
}

.profile-3d-sheen {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 38px);
  background: radial-gradient(circle at calc(50% + var(--px) * 28%) calc(30% + var(--py) * 24%), rgba(255, 255, 255, 0.14) 0%, transparent 56%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes profileHairBreezeLeft {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  45% {
    transform: translate3d(-1.5px, 0.6px, 0) rotate(0.75deg) scale(1.008, 0.996);
  }
  75% {
    transform: translate3d(0.6px, -0.3px, 0) rotate(-0.35deg) scale(0.998, 1.002);
  }
}

@keyframes profileHairBreezeRight {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(1.6px, 0.5px, 0) rotate(-0.7deg) scale(1.008, 0.996);
  }
  80% {
    transform: translate3d(-0.5px, -0.2px, 0) rotate(0.3deg) scale(0.998, 1.002);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-3d-hair--left,
  .profile-3d-hair--right {
    animation: none;
  }
  .profile-3d-scene {
    transform: none;
    transition: none;
  }
}

.profile-photo-card__caption {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.profile-photo-card__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
}

.profile-photo-card__caption span {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.profile-block+.profile-block {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.profile-block h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
}

.profile-block p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.commitment-quote {
  margin-top: 16px;
  padding: 18px 22px;
  border-left: 3px solid var(--toyota-red);
  background: var(--bg-soft);
  font-weight: 600;
}

.dealer-box {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: center;
}

.dealer-box__media {
  height: 100%;
  min-height: 320px;
}

.dealer-box__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dealer-box__body {
  padding: 36px;
}

.site-footer {
  background: #111111;
  color: #FAFAFA;
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  margin: 18px 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.05em;
}

.footer-role {
  margin: 0 0 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.footer-tagline {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.footer-col a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contacts {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-note {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.56);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom-links {
  display: flex;
  gap: 10px;
}

/* Floating Quick Contact Pills (Bottom-Right, Desktop & Tablet) */
.floating-pills {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 88;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.16);
  transition: transform 200ms var(--ease-out);
}

.floating-pill:hover {
  transform: translateY(-2px);
}

.floating-pill--ig {
  background: #111111;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-pill--wa {
  background: #16A34A;
  color: #FFFFFF;
}

.mobile-sticky-bar {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg-red {
    animation: none;
    opacity: 1;
  }

  .hero-wordmark-line,
  .hero-portrait-img,
  .hero-copy>* {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-wordmark-layer,
  .hero-subject-layer,
  .hero-content {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1180px) {
  .models-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .models-grid,
  .variants-grid,
  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .delivery-grid--full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-grid {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {

  .main-nav,
  .header-wa,
  .floating-pills {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .mobile-model-pills {
    display: flex;
  }

  .showcase-grid,
  .assistant-panel,
  .dealer-box,
  .profile-grid,
  .videos-grid,
  .footer-grid,
  .compare-selectors-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-subject-layer {
    justify-content: center;
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 12px);
  }

  .hero-portrait-img,
  .hero-subject-figure {
    height: min(60svh, 520px);
  }

  .hero-wordmark-layer {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 38px);
  }

  .hero-content {
    padding-block: 24px 36px;
  }

  .hero-scroll-hint {
    display: none;
  }
}

.compare-mobile-hint {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .section {
    padding-block: 48px;
  }

  .brand-logo { height: 28px; }
  .brand-divider { height: 18px; }
  .brand-meta strong { font-size: 15px; }
  .brand-meta small { font-size: 10px; }

  .hero-stage { min-height: 92svh; }
  .hero-wordmark-layer { padding-top: calc(var(--header-h) + 28px); padding-bottom: 0; }
  .hero-wordmark-line { font-size: clamp(3.6rem, 20vw, 5.8rem); }
  .hero-subject-layer { padding-top: calc(var(--header-h) + 10px); }
  .hero-portrait-img,
  .hero-subject-figure { height: min(54svh, 430px); }
  .hero-text-scrim { height: 60%; }
  .hero-content { padding-block: 20px 28px; }
  .hero-title { font-size: 2.5rem; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; }

  .showcase-section { padding-block: 48px; }
  .showcase-frame { width: min(100%, 290px); }

  .models-grid-4,
  .models-grid,
  .variants-grid,
  .services-grid,
  .compare-grid,
  .highlights-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-mobile-hint { display: block; }
  .compare-table { min-width: 600px; font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px; }
  .compare-table .row-label {
    width: 126px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-page);
    box-shadow: 2px 0 8px rgba(17, 17, 17, 0.05);
  }
  .compare-head-title { font-size: 19px; }

  .delivery-grid,
  .delivery-grid--full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .assistant-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .assistant-panel {
    padding: 20px;
  }

  .dealer-box__body { padding: 22px; }

  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 94;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-sticky-bar__info strong {
    display: block;
    font-size: 13.5px;
    line-height: 1.25;
  }

  body {
    padding-bottom: 68px;
  }
}