
/* ════ Northline Motors ════════════════════════════════════════════════ */
.rd-automotive { background: #0a0e12; }
.nx { --a: var(--bespoke-accent, #b6f362); --ink: #f3f5f1; --mute: #9ba6b0; --line: #ffffff1a; --card: #121820; --e: cubic-bezier(.16, 1, .3, 1); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; background: #0a0e12; overflow: clip; }
.nx * { box-sizing: border-box; }
.nx :is(h1, h2, h3, p, dl, dd, ul, figure) { margin: 0; }
.nx a { color: inherit; text-decoration: none; }
.nx-kicker { font: 600 .72rem/1.2 "DM Sans", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.nx-kicker--accent { color: var(--a); }
.nx h2 { font: 800 clamp(2rem, 3.6vw, 3.6rem)/1 Impact, sans-serif; letter-spacing: -.03em; text-transform: uppercase; letter-spacing: .005em; }
.nx-lead { font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6; color: #c9d1d8; max-width: 34em; }
.nx-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.nx .nx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--a); color: #0a0e12; font: 700 .95rem/1 "DM Sans", sans-serif; cursor: pointer; transition: transform .35s var(--e), box-shadow .35s var(--e), background-color .3s; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--a) 70%, transparent); }
.nx-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--a) 85%, transparent); }
.nx .nx-btn--glass { background: #ffffff14; color: var(--ink); box-shadow: inset 0 0 0 1px #ffffff40; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nx-btn--glass:hover { background: #ffffff24; box-shadow: inset 0 0 0 1px #ffffff70; }
.nx .nx-btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #ffffff40; }
.nx-btn--line:hover { box-shadow: inset 0 0 0 1px var(--a); color: var(--a); }
.nx .nx-btn--dark { background: #0a0e12; color: var(--ink); box-shadow: none; }
.nx .nx-btn--line-dark { background: transparent; color: #0a0e12; box-shadow: inset 0 0 0 1.5px #0a0e12; }
.nx-arrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .95rem; color: var(--a); white-space: nowrap; }
.nx-arrow span { transition: transform .35s var(--e); }
.nx-arrow:hover span { transform: translateX(4px); }

/* Hero */
.nx-hero { position: relative; min-height: min(92vh, 900px); display: grid; align-content: end; padding: 0 5vw; isolation: isolate; }
.nx-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; z-index: -2; transform: scale(1.06); animation: nx-zoom 2.4s var(--e) both; }
@keyframes nx-zoom { to { transform: scale(1); } }
.nx-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0a0e12f2 0%, #0a0e12b3 38%, #0a0e1200 70%), linear-gradient(0deg, #0a0e12 2%, #0a0e1200 45%); }
.nx-hero-inner { display: grid; gap: 22px; max-width: 980px; padding-bottom: 36px; }
.nx-hero h1 { display: grid; font: 800 clamp(3rem, 6.4vw, 6.6rem)/.95 Impact, sans-serif; letter-spacing: -.035em; text-transform: uppercase; letter-spacing: .005em; }
.nx-hero h1 span { display: block; overflow: hidden; }
.nx-hero h1 span:last-child { color: var(--a); }
.nx-hero-inner > * { animation: nx-rise 1.1s var(--e) both; }
.nx-hero-inner > :nth-child(2) { animation-delay: .12s; } .nx-hero-inner > :nth-child(3) { animation-delay: .24s; } .nx-hero-inner > :nth-child(4) { animation-delay: .34s; }
@keyframes nx-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.nx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 0; animation: nx-rise 1.1s var(--e) .45s both; }
.nx-stats div { padding: 22px 0 26px; border-right: 1px solid var(--line); padding-left: 22px; }
.nx-stats div:first-child { padding-left: 0; }
.nx-stats div:last-child { border-right: 0; }
.nx-stats dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.nx-stats dd { margin-top: 6px; font: 800 clamp(1.8rem, 2.6vw, 2.6rem)/1 Impact, sans-serif; letter-spacing: -.025em; letter-spacing: .02em; }

/* Search: the original stock finder, restyled */
.nx-search { padding: 0 5vw; margin-top: 8px; position: relative; z-index: 2; }
.rd-automotive .nx-search .motor-finder { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 18px; margin: 0; padding: 26px 28px; border-radius: 22px; background: linear-gradient(135deg, #1a222c, #121820); box-shadow: 0 30px 60px -30px #000, inset 0 0 0 1px var(--line); color: var(--ink); max-width: none; }
.rd-automotive .nx-search .motor-finder .eyebrow { color: var(--a); font-size: .7rem; letter-spacing: .2em; }
.rd-automotive .nx-search .motor-finder h2 { font: 800 2rem/1 Impact, sans-serif; letter-spacing: -.025em; text-transform: uppercase; color: var(--ink); margin: 6px 0 0; }
.rd-automotive .nx-search .motor-finder label { display: grid; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.rd-automotive .nx-search .motor-finder select { min-height: 52px; border-radius: 14px; border: 1px solid #ffffff26; background-color: #0a0e12; color: var(--ink); padding: 0 16px; font: 500 1rem "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; }
.rd-automotive .nx-search .motor-finder button { min-height: 52px; border-radius: 999px; padding: 0 28px; background: var(--a); color: #0a0e12; border: 0; font: 700 .95rem "DM Sans", sans-serif; cursor: pointer; }

/* Stock grid */
.nx-stock, .nx-services { padding: clamp(80px, 10vw, 140px) 5vw 0; }
.nx-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.nx-head > div { display: grid; gap: 14px; max-width: 900px; }
.nx-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.nx-car { display: flex; flex-direction: column; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--e), box-shadow .5s var(--e); }
.nx-car:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 45%, transparent), 0 30px 60px -30px #000; }
.nx-car--lead { grid-row: span 2; }
/* A fourth car runs across the two right-hand columns as a wide card */
.nx-grid > .nx-car:nth-child(4):last-child { grid-column: span 2; flex-direction: row; }
.nx-grid > .nx-car:nth-child(4):last-child .nx-car-media { aspect-ratio: auto; flex: 0 0 48%; }
.nx-grid > .nx-car:nth-child(4):last-child .nx-car-body { flex: 1; align-content: center; }
.nx-car-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.nx-car--lead .nx-car-media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.nx-car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e); }
.nx-car:hover .nx-car-media img { transform: scale(1.05); }
.nx-pill { position: absolute; top: 16px; left: 16px; padding: 7px 12px; border-radius: 999px; font: 700 .7rem/1 "DM Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase; background: #0a0e12cc; color: var(--ink); backdrop-filter: blur(8px); }
.nx-pill::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: #9ba6b0; vertical-align: 1px; }
.nx-pill--available::before { background: var(--a); box-shadow: 0 0 10px var(--a); }
.nx-pill--reserved::before { background: #f2b544; }
.nx-car-body { display: grid; gap: 12px; padding: 22px 24px 24px; }
.nx-car h3 { font: 600 1.35rem/1.15 "DM Sans", sans-serif; letter-spacing: -.01em; }
.nx-car--lead h3 { font-size: 1.8rem; }
.nx-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.nx-chips li { padding: 6px 10px; border-radius: 999px; background: #ffffff0d; font-size: .8rem; color: #c9d1d8; }
.nx-car-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nx-car-foot strong { font: 800 1.9rem/1 Impact, sans-serif; letter-spacing: -.025em; letter-spacing: .02em; }
.nx-car-foot > div { display: flex; align-items: center; gap: 14px; }
.nx-ghost { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #ffffff33; background: transparent; color: var(--ink); font: 600 .82rem "DM Sans", sans-serif; cursor: pointer; transition: border-color .3s, color .3s; }
.nx-ghost:hover, .nx-ghost[aria-pressed="true"] { border-color: var(--a); color: var(--a); }
.rd-automotive .nx-stock .motor-comparison { margin-top: 24px; border-radius: 22px; }

/* Spotlight */
.nx-spot { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(80px, 10vw, 140px) 5vw 0; }
.nx-spot-media { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px #000; }
.nx-spot-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.nx-spot-copy { display: grid; gap: 22px; }
.nx-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.nx-specs div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.nx-specs div:nth-child(odd) { padding-right: 20px; }
.nx-specs dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.nx-specs dd { margin-top: 6px; font-size: 1.15rem; font-weight: 600; }
.nx-spot-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.nx-spot-price strong { font: 800 clamp(2.6rem, 4vw, 3.6rem)/1 Impact, sans-serif; letter-spacing: -.025em; color: var(--a); letter-spacing: .02em; }

/* Services: three photographic panels; the hovered one opens wider */
.nx-panels { display: flex; gap: 14px; height: clamp(420px, 52vw, 600px); }
.nx-panel { position: relative; flex: 1 1 0; display: flex; align-items: end; border-radius: 26px; overflow: hidden; isolation: isolate; transition: flex-grow .9s var(--e); }
.nx-panel:hover, .nx-panel:focus-visible { flex-grow: 1.9; }
.nx-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 1.4s var(--e), filter .9s; filter: saturate(.85) brightness(.78); }
.nx-panel:hover img { transform: scale(1); filter: saturate(1) brightness(.9); }
.nx-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0a0e12f0 6%, #0a0e1266 48%, #0a0e1200 75%); }
.nx-panel-no { position: absolute; top: 26px; left: 28px; font: 800 clamp(3rem, 5vw, 4.6rem)/1 Impact, sans-serif; letter-spacing: -.025em; color: transparent; -webkit-text-stroke: 1px #ffffffb3; }
.nx-panel > div { display: grid; gap: 10px; padding: 30px; max-width: 460px; }
.nx-panel h3 { font: 800 clamp(1.5rem, 2vw, 2rem)/1.05 Impact, sans-serif; text-transform: uppercase; letter-spacing: -.02em; }
.nx-panel p { color: #d3d9de; line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .8s var(--e), opacity .6s; }
.nx-panel:hover p, .nx-panel:focus-visible p { max-height: 6em; opacity: 1; }

/* Closing band */
.nx-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin: clamp(80px, 10vw, 140px) 5vw clamp(60px, 8vw, 100px); padding: clamp(36px, 5vw, 64px); border-radius: 28px; background: var(--a); color: #0a0e12; }
.nx-band .nx-kicker { color: #0a0e12b3; }
.nx-band h2 { margin-top: 10px; font-size: clamp(2.4rem, 4.4vw, 4.4rem); }

@media (max-width: 1000px) {
  .nx-grid { grid-template-columns: 1fr 1fr; }
  .nx-car--lead { grid-column: span 2; grid-row: auto; }
  .nx-grid > .nx-car:nth-child(4):last-child { grid-column: auto; flex-direction: column; }
  .nx-grid > .nx-car:nth-child(4):last-child .nx-car-media { aspect-ratio: 16 / 10; flex: none; }
  .nx-car--lead .nx-car-media { aspect-ratio: 16 / 9; min-height: 0; }
  .rd-automotive .nx-search .motor-finder { grid-template-columns: 1fr 1fr; }
  .rd-automotive .nx-search .motor-finder > div:first-child { grid-column: span 2; }
  .nx-spot { grid-template-columns: 1fr; }
  .nx-spot-media { aspect-ratio: 16 / 11; }
  .nx-panels { flex-direction: column; height: auto; }
  .nx-panel { min-height: 300px; }
  .nx-panel p { max-height: none; opacity: 1; }
}
@media (max-width: 640px) {
  .nx-hero { min-height: 88vh; padding: 0 20px; }
  .nx-hero-shade { background: linear-gradient(0deg, #0a0e12 8%, #0a0e12b8 55%, #0a0e1240); }
  .nx-stats { grid-template-columns: 1fr 1fr; }
  .nx-stats div { padding: 16px 0 16px 16px; border-bottom: 1px solid var(--line); }
  .nx-stats div:nth-child(odd) { padding-left: 0; }
  .nx-stats div:nth-child(2) { border-right: 0; }
  .nx-search, .nx-stock, .nx-services, .nx-spot { padding-left: 20px; padding-right: 20px; }
  .nx-band { margin-left: 20px; margin-right: 20px; }
  .rd-automotive .nx-search .motor-finder { grid-template-columns: 1fr; padding: 22px; }
  .rd-automotive .nx-search .motor-finder > div:first-child { grid-column: auto; }
  .nx-grid { grid-template-columns: 1fr; }
  .nx-car--lead { grid-column: auto; }
  .nx-head { flex-direction: column; align-items: start; }
  .nx-specs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .nx *, .nx { animation: none !important; transition: none !important; } }
