/* Emir Motor — editorial model showroom */
.emir-showroom {
  /* Primitive tokens */
  --showroom-ink-950: #08090a;
  --showroom-ink-900: #0e1012;
  --showroom-ink-800: #15181b;
  --showroom-stone-50: #f4f1eb;
  --showroom-stone-300: #b8b5ae;
  --showroom-stone-600: #6d6c68;
  --showroom-signal-500: #f13a2e;
  --showroom-signal-600: #d82920;
  --showroom-line: rgba(244, 241, 235, .14);
  --showroom-space-xs: 8px;
  --showroom-space-sm: 16px;
  --showroom-space-md: 28px;
  --showroom-space-lg: 48px;
  --showroom-space-xl: 84px;
  --showroom-radius-sm: 14px;
  --showroom-radius-lg: 34px;

  /* Semantic tokens */
  --showroom-bg: var(--showroom-ink-950);
  --showroom-surface: var(--showroom-ink-900);
  --showroom-surface-raised: var(--showroom-ink-800);
  --showroom-copy: var(--showroom-stone-50);
  --showroom-copy-muted: var(--showroom-stone-300);
  --showroom-accent: var(--showroom-signal-500);

  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 0 120px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--showroom-bg);
  color: var(--showroom-copy);
}

.emir-showroom-glow {
  position: absolute;
  z-index: -1;
  top: -280px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--showroom-accent) 20%, transparent);
  filter: blur(150px);
  opacity: .58;
  pointer-events: none;
}

.emir-showroom-shell {
  position: relative;
}

.emir-showroom-hero {
  position: relative;
  min-height: 680px;
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--showroom-line);
}

.emir-showroom-kicker,
.emir-category-rail-head,
.emir-collection-label,
.emir-machine-type,
.emir-featured-price > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.emir-showroom-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--showroom-line);
  color: var(--showroom-copy-muted);
}

.emir-showroom-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 60px;
  align-items: end;
  padding-top: 78px;
}

.emir-showroom-heading h1 {
  max-width: 980px;
  margin: 0;
  color: var(--showroom-copy);
  font-size: clamp(62px, 8.4vw, 132px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.emir-showroom-heading h1 em {
  color: transparent;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.065em;
  -webkit-text-stroke: 1.5px var(--showroom-accent);
}

.emir-showroom-intro {
  padding: 0 0 14px 26px;
  border-left: 1px solid var(--showroom-line);
}

.emir-showroom-intro p {
  margin: 0 0 28px;
  color: var(--showroom-copy-muted);
  font-size: 15px;
  line-height: 1.7;
}

.emir-showroom-jump {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 16px;
  color: var(--showroom-copy) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.emir-showroom-jump span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--showroom-line);
  border-radius: 50%;
  transition: background .2s ease, border-color .2s ease;
}

.emir-showroom-jump:hover span {
  border-color: var(--showroom-accent);
  background: var(--showroom-accent);
}

.emir-showroom-word {
  position: absolute;
  right: 0;
  bottom: -25px;
  color: rgba(244, 241, 235, .025);
  font-size: clamp(100px, 18vw, 290px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.085em;
  white-space: nowrap;
  pointer-events: none;
}

.emir-collection-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 92px);
  padding-top: 88px;
}

.emir-brand-filter {
  padding-top: 70px;
  border-bottom: 1px solid var(--showroom-line);
}

.emir-brand-filter-label {
  display: block;
  margin-bottom: 18px;
  color: var(--showroom-stone-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.emir-brand-filter-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 22px;
  scrollbar-width: none;
}

.emir-brand-filter-options::-webkit-scrollbar { display: none; }

.emir-brand-filter-options button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
  padding: 13px 18px;
  border: 1px solid var(--showroom-line);
  border-radius: 999px;
  background: transparent;
  color: var(--showroom-copy-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.emir-brand-filter-options button span {
  color: var(--showroom-stone-600);
  font-size: 10px;
}

.emir-brand-filter-options button:hover,
.emir-brand-filter-options button:focus-visible,
.emir-brand-filter-options button.active {
  border-color: var(--showroom-accent);
  background: var(--showroom-accent);
  color: #fff;
}

.emir-brand-filter-options button.active span { color: rgba(255, 255, 255, .68); }
.emir-brand-filter-options button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.emir-category-rail {
  align-self: start;
  position: sticky;
  top: 100px;
}

.emir-category-rail-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--showroom-line);
  color: var(--showroom-stone-600);
}

.emir-category-list {
  display: flex;
  flex-direction: column;
}

.emir-category-list button {
  display: grid;
  min-height: 64px;
  grid-template-columns: 1fr 24px;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--showroom-line);
  background: transparent;
  color: var(--showroom-copy-muted);
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, padding .2s ease;
}

.emir-category-list button:hover,
.emir-category-list button:focus-visible {
  color: var(--showroom-copy);
}

.emir-category-list button:focus-visible {
  outline: 2px solid var(--showroom-accent);
  outline-offset: 4px;
}

.emir-category-list button.active {
  padding-left: 8px;
  color: var(--showroom-copy);
}

.emir-category-list button.active::before {
  content: '';
  position: absolute;
  left: 0;
  width: 2px;
  height: 26px;
  background: var(--showroom-accent);
}

.emir-category-arrow {
  justify-self: end;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .2s ease, transform .2s ease;
}

.emir-category-list button.active .emir-category-arrow,
.emir-category-list button:hover .emir-category-arrow {
  opacity: 1;
  transform: translate(0);
}

.emir-collection-stage {
  min-width: 0;
}

.emir-collection-header {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(260px, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.emir-collection-label,
.emir-machine-type,
.emir-featured-price > span {
  display: block;
  margin-bottom: 10px;
  color: var(--showroom-accent);
}

.emir-collection-header h2 {
  margin: 0;
  color: var(--showroom-copy);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.06em;
}

.emir-collection-header p {
  max-width: 430px;
  margin: 0;
  color: var(--showroom-copy-muted);
  font-size: 15px;
  line-height: 1.65;
}

.emir-collection-count {
  padding-bottom: 3px;
  color: var(--showroom-stone-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.emir-featured-machine {
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--showroom-line);
  border-radius: var(--showroom-radius-lg);
  background: var(--showroom-surface);
}

.emir-featured-visual {
  position: relative;
  display: block;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 54%, rgba(255, 255, 255, .12), transparent 31%),
    linear-gradient(145deg, #e5e3de, #bdbcb8);
}

.emir-machine-image {
  z-index: 2;
  padding: clamp(22px, 4vw, 58px);
  object-fit: contain;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .28));
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.emir-featured-visual:hover .emir-machine-image,
.emir-machine-visual:hover .emir-machine-image {
  transform: scale(1.045) translateY(-4px);
}

.emir-featured-watermark {
  position: absolute;
  z-index: 1;
  inset: auto 0 -4%;
  overflow: hidden;
  color: rgba(8, 9, 10, .08);
  font-size: clamp(100px, 15vw, 220px);
  font-weight: 900;
  line-height: .76;
  letter-spacing: -.08em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.emir-featured-open {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 28px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--showroom-bg);
  color: var(--showroom-copy);
  font-size: 19px;
}

.emir-featured-copy {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.2fr) auto;
  gap: 34px;
  align-items: end;
  padding: 30px 34px 34px;
}

.emir-featured-copy h3,
.emir-machine-copy h3 {
  margin: 0;
  color: var(--showroom-copy);
  font-weight: 750;
  letter-spacing: -.045em;
}

.emir-featured-copy h3 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: .94;
}

.emir-featured-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.emir-featured-specs div {
  padding-left: 14px;
  border-left: 1px solid var(--showroom-line);
}

.emir-featured-specs span,
.emir-featured-specs strong {
  display: block;
}

.emir-featured-specs span {
  margin-bottom: 6px;
  color: var(--showroom-stone-600);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.emir-featured-specs strong {
  color: var(--showroom-copy-muted);
  font-size: 12px;
  font-weight: 650;
}

.emir-featured-price {
  text-align: right;
}

.emir-featured-price strong {
  color: var(--showroom-copy);
  font-size: 20px;
  white-space: nowrap;
}

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

.emir-machine-card {
  overflow: hidden;
  border: 1px solid var(--showroom-line);
  border-radius: var(--showroom-radius-lg);
  background: var(--showroom-surface);
}

.emir-machine-card-3:nth-child(3n) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
}

.emir-machine-card-3:nth-child(3n) .emir-machine-visual {
  min-height: 430px;
}

.emir-machine-visual {
  position: relative;
  display: block;
  min-height: 350px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.06)),
    #b9b9b6;
}

.emir-machine-card:nth-child(even) .emir-machine-visual {
  background:
    radial-gradient(circle at 68% 35%, rgba(241, 58, 46, .22), transparent 34%),
    #b7b5b0;
}

.emir-machine-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 18px;
  align-items: end;
  padding: 26px 28px 28px;
}

.emir-machine-copy h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.emir-machine-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.emir-machine-meta span {
  color: var(--showroom-stone-600);
  font-size: 11px;
}

.emir-machine-meta strong {
  color: var(--showroom-copy);
  font-size: 16px;
}

.emir-machine-link {
  grid-column: 1 / -1;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--showroom-line);
  color: var(--showroom-copy) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.emir-machine-link span {
  color: var(--showroom-accent);
  font-size: 20px;
  transition: transform .2s ease;
}

.emir-machine-link:hover span {
  transform: translateX(5px);
}

@media (max-width: 1199px) {
  .emir-showroom-hero { min-height: 600px; }
  .emir-showroom-heading { grid-template-columns: minmax(0, 1fr) 230px; }
  .emir-collection-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 44px; }
  .emir-featured-visual { min-height: 450px; }
  .emir-featured-copy { grid-template-columns: 1fr 1.3fr; }
  .emir-featured-price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--showroom-line); text-align: left; }
  .emir-featured-price > span { margin: 0; }
}

@media (max-width: 991px) {
  .emir-showroom { padding-bottom: 80px; }
  .emir-showroom-hero { min-height: auto; padding: 54px 0 90px; }
  .emir-showroom-heading { grid-template-columns: 1fr; gap: 48px; padding-top: 60px; }
  .emir-showroom-intro { max-width: 520px; }
  .emir-collection-layout { display: block; padding-top: 60px; }
  .emir-category-rail { position: static; margin-bottom: 56px; }
  .emir-category-rail-head { display: none; }
  .emir-category-list { flex-direction: row; gap: 9px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .emir-category-list::-webkit-scrollbar { display: none; }
  .emir-category-list button { min-width: max-content; min-height: 48px; display: flex; gap: 10px; padding: 0 18px; border: 1px solid var(--showroom-line); border-radius: 999px; scroll-snap-align: start; }
  .emir-category-list button.active { padding: 0 18px; border-color: var(--showroom-accent); background: var(--showroom-accent); }
  .emir-category-list button.active::before,
  .emir-category-arrow { display: none; }
  .emir-featured-copy { grid-template-columns: 1fr; }
  .emir-featured-price { grid-column: auto; }
}

@media (max-width: 767px) {
  .emir-showroom {
    --showroom-radius-lg: 24px;
    padding-bottom: 64px;
  }
  .emir-showroom-hero { padding: 36px 0 70px; }
  .emir-showroom-kicker span:first-child { display: none; }
  .emir-showroom-kicker { justify-content: flex-end; }
  .emir-showroom-heading { gap: 40px; padding-top: 48px; }
  .emir-showroom-heading h1 { font-size: clamp(48px, 15vw, 68px); line-height: .87; }
  .emir-showroom-intro { padding-left: 18px; }
  .emir-showroom-word { bottom: -8px; font-size: 92px; }
  .emir-collection-layout { padding-top: 42px; }
  .emir-brand-filter { margin: 0 -15px; padding: 44px 15px 0; }
  .emir-category-rail { margin: 0 -15px 42px; }
  .emir-category-list { padding-left: 15px; padding-right: 15px; }
  .emir-collection-header { grid-template-columns: 1fr auto; gap: 18px; margin-bottom: 24px; }
  .emir-collection-header p { grid-column: 1 / -1; grid-row: 2; }
  .emir-collection-header h2 { font-size: 48px; }
  .emir-featured-visual { min-height: 350px; }
  .emir-featured-open { top: 18px; right: 18px; width: 46px; height: 46px; }
  .emir-featured-copy { gap: 24px; padding: 24px; }
  .emir-featured-specs { grid-template-columns: 1fr; gap: 14px; }
  .emir-featured-specs div { display: flex; align-items: center; justify-content: space-between; }
  .emir-featured-specs span { margin: 0; }
  .emir-featured-price { align-items: flex-start; flex-direction: column; gap: 7px; }
  .emir-machine-grid { grid-template-columns: 1fr; gap: 18px; }
  .emir-machine-card-3:nth-child(3n) { grid-column: auto; display: block; }
  .emir-machine-card-3:nth-child(3n) .emir-machine-visual,
  .emir-machine-visual { min-height: 300px; }
  .emir-machine-copy { padding: 22px; }
  .emir-machine-copy h3 { font-size: 30px; }
  .emir-machine-meta { text-align: right; }
}

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