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

:root {
  --void: #0e100f;
  --cream: #fffce1;
  --stone: #42433d;
  --ash: #7c7c6f;
  /* Scotland blue — Saltire / Pantone 300. --scot-lift is the bright partner:
     #0065bd alone only clears ~3.3:1 on --void, fine for display type but too
     dim for small labels, rules and focus rings, which use the lift instead. */
  --scot: #0065bd;
  --scot-lift: #6cc4ff;
  --pink: #fec5fb;
  --orange: #ff8709;
  --violet: #9d95ff;
  --blue: #00bae2;
  --pulse: linear-gradient(114.41deg, #0065bd 20.74%, #6cc4ff 65.5%);
  --font: "Inter Tight", "Arial Narrow", Arial, system-ui, sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 3vw, 40px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --nav-top-h: 78px;
  --nav-h: 126px;
  --radius: 8px;
  --pill: 100px;
  --ease: cubic-bezier(.76, 0, .24, 1);
}

html {
  background: var(--void);
  color-scheme: dark;
  overflow-x: clip;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth } }

body {
  background: var(--void);
  color: var(--cream);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.38;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden }
a { color: inherit; text-decoration: none }
button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit }
img, svg { display: block; max-width: 100% }
ul, ol { list-style: none }
h1, h2, h3, p { text-wrap: pretty }
:focus-visible { outline: 2px solid var(--scot-lift); outline-offset: 4px }
::selection { background: var(--scot-lift); color: var(--void) }

.wrap { margin-inline: auto; max-width: var(--max); padding-inline: var(--gutter); width: 100% }
.sr-only {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip {
  background: var(--scot-lift);
  color: var(--void);
  font-size: 13px;
  font-weight: 600;
  left: 16px;
  padding: 12px 18px;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  z-index: 300;
}
.skip:focus { transform: translateY(16px) }

.bracket {
  color: var(--cream);
  display: inline-block;
  font-size: 14px;
  letter-spacing: -.01em;
  line-height: 1.38;
}
.bracket::before { content: "{ " }
.bracket::after { content: " }" }

.pill {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: var(--pill);
  color: var(--cream);
  display: inline-flex;
  font-size: 16px;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  min-height: 46px;
  padding: 10px 16px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.pill:hover { background: var(--cream); color: var(--void) }
.pill__arrow {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  font-size: 12px;
  height: 23px;
  justify-content: center;
  transition: transform .3s var(--ease);
  width: 23px;
}
.pill:hover .pill__arrow { transform: rotate(45deg) }

.gradient-text {
  background: var(--pulse);
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav {
  border-bottom: 1px solid transparent;
  color: var(--cream);
  inset: 0 0 auto;
  position: fixed;
  /* backdrop-filter is deliberately NOT transitioned — animating it stalls
     compositing on iOS. The blur snaps; background and border still fade. */
  transition: background .45s var(--ease), border-color .45s var(--ease);
  z-index: 50;
}
.nav.is-scrolled:not(.is-collapsed) {
  backdrop-filter: blur(18px);
  background: rgba(14, 16, 15, .78);
  border-color: rgba(255, 252, 225, .12);
}
.nav__inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  height: var(--nav-top-h);
  margin-inline: auto;
  max-width: var(--max);
  padding-inline: var(--gutter);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.nav.is-collapsed .nav__inner,
.nav.is-collapsed .nav__links { opacity: 0; pointer-events: none; transform: translateY(-8px) }
.nav__brand { align-items: center; display: inline-flex; gap: 12px; justify-self: start; min-height: 48px }
.nav__logo { background: var(--cream); border-radius: 50%; clip-path: circle(50%); height: 38px; object-fit: cover; width: 38px }
.nav__brand-copy { display: flex; flex-direction: column; line-height: 1.05 }
.nav__word { font-size: 15px; font-weight: 600; letter-spacing: -.02em }
.nav__descriptor { color: var(--ash); font-size: 10px; letter-spacing: .16em; margin-top: 4px; text-transform: uppercase }
.nav__location {
  align-items: center;
  color: rgba(255, 252, 225, .68);
  display: flex;
  font-size: 11px;
  gap: 10px;
  justify-self: center;
  letter-spacing: .02em;
  line-height: 1.25;
  transition: color .25s var(--ease);
}
.nav__location:hover { color: var(--cream) }
.nav__location strong { color: var(--cream); display: block; font-size: 10px; letter-spacing: .13em; margin-bottom: 3px; text-transform: uppercase }
.nav__location-icon { color: var(--scot-lift); font-size: 21px }
.nav__links {
  align-items: center;
  border-top: 1px solid rgba(255, 252, 225, .1);
  display: flex;
  gap: 4px;
  height: calc(var(--nav-h) - var(--nav-top-h));
  justify-content: center;
  margin-inline: auto;
  max-width: var(--max);
  padding-inline: var(--gutter);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.nav__link {
  color: rgba(255, 252, 225, .7);
  font-size: 12px;
  letter-spacing: .1em;
  padding: 12px 14px;
  position: relative;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.nav__link::after {
  background: var(--scot-lift);
  bottom: 5px;
  content: "";
  height: 1px;
  left: 14px;
  position: absolute;
  right: 14px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--cream) }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1) }
.nav__admin { border: 1px solid rgba(255, 252, 225, .35); border-radius: var(--pill); margin-left: 6px; padding-block: 9px }
.nav__admin::after { display: none }
.nav__admin:hover { background: var(--cream); color: var(--void) }
.nav__cta { font-size: 14px; justify-self: end; min-height: 42px; padding-block: 8px }

.menu-toggle {
  align-items: center;
  background: var(--void);
  border: 1px solid rgba(255, 252, 225, .35);
  border-radius: 50%;
  display: flex;
  height: 48px;
  justify-content: center;
  position: fixed;
  right: var(--edge);
  top: calc((var(--nav-top-h) - 48px) / 2);
  transition: opacity .45s var(--ease), transform .45s var(--ease), background .25s var(--ease), color .25s var(--ease);
  width: 48px;
  z-index: 70;
}
.menu-toggle:hover { background: var(--cream); color: var(--void); transform: scale(1.05) }
.menu-toggle--open { opacity: 0; pointer-events: none; transform: scale(.88) }
.nav.is-collapsed ~ .menu-toggle--open { opacity: 1; pointer-events: auto; transform: scale(1) }
.menu-toggle__icon { height: 14px; position: relative; width: 20px }
.menu-toggle__icon span {
  background: currentColor;
  border-radius: 2px;
  height: 1.5px;
  left: 0;
  position: absolute;
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
  width: 100%;
}
.menu-toggle__icon span:nth-child(1) { top: 0 }
.menu-toggle__icon span:nth-child(2) { top: 6px }
.menu-toggle__icon span:nth-child(3) { top: 12px }
.menu-toggle--close .menu-toggle__icon span:nth-child(1) { top: 6px; transform: rotate(45deg) }
.menu-toggle--close .menu-toggle__icon span:nth-child(2) { opacity: 0 }
.menu-toggle--close .menu-toggle__icon span:nth-child(3) { top: 6px; transform: rotate(-45deg) }

.menu {
  background: var(--void);
  border: 0;
  clip-path: circle(0 at calc(100% - var(--edge) - 24px) calc(var(--nav-top-h) / 2));
  color: var(--cream);
  height: 100vh;
  height: 100dvh;
  inset: 0;
  margin: 0;
  max-height: none;
  max-width: none;
  opacity: 0;
  overflow-y: auto;
  padding: 0;
  transition: clip-path .7s var(--ease), opacity .15s linear;
  width: 100vw;
}
.menu::backdrop { background: transparent }
.menu.is-open { clip-path: circle(150% at 100% 0); opacity: 1 }
.menu .menu-toggle--close { position: fixed }
.menu__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-inline: auto;
  max-width: var(--max);
  min-height: 100%;
  padding: calc(var(--nav-top-h) + 24px) var(--gutter) 34px;
}
.menu__label { border-bottom: 1px solid var(--stone); display: block; padding-bottom: 16px }
.menu__nav { margin-top: 26px }
.menu__link {
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 252, 225, .1);
  display: flex;
  font-size: clamp(34px, 5.6vw, 70px);
  font-weight: 400;
  justify-content: space-between;
  letter-spacing: -.035em;
  line-height: 1;
  padding: 10px 0 14px;
  transition: color .25s var(--ease), padding .35s var(--ease);
}
.menu__link span { color: var(--ash); font-size: 12px; letter-spacing: .12em }
.menu__link:hover { color: var(--scot-lift); padding-left: 12px }
.menu__bottom { color: var(--ash); display: flex; flex-wrap: wrap; font-size: 14px; gap: 20px 36px; justify-content: space-between; margin-top: 48px }
.menu__bottom a:hover { color: var(--cream) }
html:not(.js) .menu-toggle { display: none }

.footer {
  background: #0a0e17;
  color: #eae5ec;
  padding: clamp(72px, 10vw, 120px) 0 clamp(46px, 7vw, 84px);
  position: relative;
  z-index: 2;
}
.footer__title {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
  text-transform: uppercase;
}
.footer__grid { display: grid; gap: 48px; grid-template-columns: 1.15fr .8fr 1fr; justify-content: space-between; margin-top: 40px }
.footer__box { align-items: flex-start; display: flex; flex-direction: column }
.footer__heading { color: rgba(234, 229, 236, .56); font-size: 15px; font-weight: 500; margin-bottom: 10px }
.footer__copy { max-width: 36ch }
.footer__link {
  align-items: center;
  border-bottom: 1px solid #ccc;
  display: flex;
  font-size: clamp(20px, 2vw, 25px);
  justify-content: space-between;
  padding: 3px 0;
  transition: color .2s ease;
  width: min(100%, 240px);
}
.footer__link:hover { color: #5eead4 }
.footer__statement { font-size: clamp(18px, 2vw, 23px); line-height: 1.2 }
.footer__statement span { color: #5eead4 }
.footer__meta { color: rgba(234, 229, 236, .5); font-size: 14px; margin-top: 30px }

[data-reveal] { transition: opacity .8s cubic-bezier(.33, 1, .68, 1), transform .8s cubic-bezier(.33, 1, .68, 1) }
html.js [data-reveal] { opacity: 0; transform: translateY(42px) }
html.js [data-reveal].is-in { opacity: 1; transform: none }

@media (max-width: 1023px) {
  :root { --nav-top-h: 76px; --nav-h: 76px }
  .nav__inner { display: flex; justify-content: space-between }
  .nav__location, .nav__links, .nav__cta { display: none }
  .menu-toggle--open { opacity: 1; pointer-events: auto; transform: scale(1) }
  html:not(.js) .nav__inner { flex-wrap: wrap; height: auto; min-height: var(--nav-h); padding-block: 10px }
  html:not(.js) .nav__links { display: flex; order: 3; width: 100% }
}

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: 1fr; gap: 40px }
  .footer__link { width: 100% }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --nav-top-h: 72px; --nav-h: 72px }
  body { font-size: 16px }
  .nav__logo { height: 34px; width: 34px }
  .nav__descriptor { display: none }
  .menu-toggle { height: 44px; right: var(--gutter); top: 14px; width: 44px }
  .menu { clip-path: circle(0 at calc(100% - 42px) 36px) }
  .menu__body { padding-bottom: 30px }
  .menu__link { font-size: clamp(32px, 10.5vw, 50px) }
  .menu__bottom { flex-direction: column }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important }
  /* Keep a gentle opacity-only reveal: no translate, and the duration must out-important the kill above. */
  html.js [data-reveal] { transform: none; transition-duration: .6s !important }
}

@media print {
  .nav, .menu-toggle, .menu, .footer, .skip { display: none }
  body { background: #fff; color: #000 }
}

/* ---------------------------------------------------------- server-rendered SEO sections */

.crumbs { border-bottom: 1px solid var(--stone); font-size: 13px; padding-block: 18px; padding-top: calc(var(--nav-h) + 18px) }
.crumbs .wrap { align-items: center; color: var(--ash); display: flex; flex-wrap: wrap; gap: 8px }
.crumbs a { color: var(--ash); text-decoration: none; transition: color .2s ease }
.crumbs a:hover { color: var(--cream) }
.crumbs [aria-current] { color: var(--cream) }
.crumbs__sep { color: var(--stone) }

.seo-faq { padding-block: clamp(72px, 9vw, 120px) }
.seo-faq__title { font-size: clamp(36px, 5vw, 64px); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin-top: 16px }
.seo-faq__list { border-top: 1px solid var(--stone); margin-top: clamp(36px, 5vw, 56px) }
.seo-faq__item { border-bottom: 1px solid var(--stone) }
.seo-faq__q {
  cursor: pointer;
  font-size: clamp(17px, 1.8vw, 21px);
  list-style: none;
  padding: 24px 44px 24px 0;
  position: relative;
  transition: color .2s ease;
}
.seo-faq__q::-webkit-details-marker { display: none }
.seo-faq__q::after {
  content: "+";
  color: var(--scot-lift);
  font-size: 24px;
  line-height: 1;
  position: absolute;
  right: 6px;
  top: 24px;
  transition: transform .25s ease;
}
.seo-faq__item[open] .seo-faq__q::after { transform: rotate(45deg) }
.seo-faq__q:hover { color: var(--scot-lift) }
.seo-faq__a { color: var(--ash); font-size: 16px; line-height: 1.6; max-width: 68ch; padding: 0 44px 26px 0 }

.seo-links { border-top: 1px solid var(--stone); padding-block: clamp(64px, 8vw, 104px) }
.seo-links__title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; letter-spacing: -.03em; line-height: 1.02; margin-top: 14px }
.seo-links__grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); margin-top: 34px }
.seo-links__link {
  align-items: center;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  color: var(--cream);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 16px 18px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.seo-links__link:hover { background: rgba(0, 101, 189, .12); border-color: var(--scot-lift) }

/* ---------------------------------------------------------- vehicle detail */

.veh { padding-block: clamp(40px, 5vw, 64px) 0 }
.veh__grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1.25fr 1fr }
.veh__media { display: flex; flex-direction: column; gap: 10px }
.veh__shot { border: 1px solid var(--stone); border-radius: var(--radius); height: auto; object-fit: cover; width: 100% }
.veh__shot--empty { aspect-ratio: 3 / 2; background: #1a1d1b }
.veh__media .veh__shot:not(:first-child) { aspect-ratio: 3 / 2 }
.veh__title { font-size: clamp(34px, 4vw, 54px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; margin-top: 14px }
.veh__price { color: var(--scot-lift); font-size: clamp(26px, 2.6vw, 34px); margin-top: 18px }
.veh__sold { background: var(--stone); border-radius: var(--pill); color: var(--cream); font-size: 12px; padding: 5px 12px; vertical-align: middle }
.veh__lede { color: var(--ash); font-size: 16px; line-height: 1.6; margin-top: 18px; max-width: 52ch }
.veh__specs { border-top: 1px solid var(--stone); display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px }
.veh__spec { border-bottom: 1px solid var(--stone); padding: 14px 0 }
.veh__spec:nth-child(odd) { padding-right: 16px }
.veh__spec dt { color: var(--ash); font-size: 11px; letter-spacing: .12em; text-transform: uppercase }
.veh__spec dd { font-size: 16px; margin-top: 6px }
.veh__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px }
.veh__cta { background: var(--scot-lift); border-color: var(--scot-lift); color: var(--void) }
.veh__cta:hover { background: var(--cream); color: var(--void) }
.veh__carfax { color: var(--scot-lift); display: inline-block; font-size: 14px; margin-top: 20px }
.veh__body { padding-block: clamp(56px, 7vw, 96px) }
.veh__block + .veh__block { margin-top: clamp(44px, 5vw, 68px) }
.veh__block h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; letter-spacing: -.03em }
.veh__block p { color: var(--ash); font-size: 16px; line-height: 1.65; margin-top: 16px; max-width: 70ch }
.veh__features { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); list-style: none; margin-top: 20px }
.veh__features li { border-bottom: 1px solid var(--stone); font-size: 15px; padding-bottom: 10px }
.veh__related { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px }
.veh__related-card {
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.veh__related-card:hover { border-color: var(--scot-lift); transform: translateY(-3px) }
.veh__related-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100% }
.veh__related-name { font-size: 15px; padding: 14px 16px 0 }
.veh__related-price { color: var(--ash); font-size: 14px; padding: 6px 16px 16px }

/* ---------------------------------------------------------- city landing + hub */

.loc__head { padding-block: clamp(44px, 6vw, 76px) }
.loc__title { font-size: clamp(40px, 5.6vw, 76px); font-weight: 400; letter-spacing: -.04em; line-height: .98; margin-top: 16px; max-width: 18ch }
.loc__answer { border-left: 2px solid var(--scot-lift); font-size: clamp(18px, 1.9vw, 23px); line-height: 1.45; margin-top: 30px; max-width: 60ch; padding-left: 20px }
.loc__intro { color: var(--ash); font-size: 17px; line-height: 1.65; margin-top: 24px; max-width: 66ch }
.loc__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px }
.loc__cta { background: var(--scot-lift); border-color: var(--scot-lift); color: var(--void) }
.loc__cta:hover { background: var(--cream); color: var(--void) }
.loc__body { border-top: 1px solid var(--stone); padding-block: clamp(52px, 6vw, 84px) }
.loc__section + .loc__section { margin-top: clamp(44px, 5vw, 68px) }
.loc__section h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; max-width: 22ch }
.loc__section p { color: var(--ash); font-size: 16px; line-height: 1.7; margin-top: 18px; max-width: 72ch }
.loc__list { color: var(--ash); display: grid; gap: 10px; list-style: none; margin-top: 20px }
.loc__list li { border-left: 1px solid var(--stone); font-size: 15px; line-height: 1.5; padding-left: 16px }
.loc__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 22px }
.loc__chips li { border: 1px solid var(--stone); border-radius: var(--pill); font-size: 13px; padding: 8px 16px }

.hub__head { padding-block: clamp(44px, 6vw, 76px) }
.hub__title { font-size: clamp(40px, 5.4vw, 72px); font-weight: 400; letter-spacing: -.04em; line-height: .98; margin-top: 16px; max-width: 17ch }
.hub__group { border-top: 1px solid var(--stone); padding-block: clamp(36px, 4vw, 56px) }
.hub__region { color: var(--scot-lift); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase }
.hub__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 26px }
.hub__card {
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  position: relative;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.hub__card:hover { background: rgba(0, 101, 189, .1); border-color: var(--scot-lift) }
.hub__city { font-size: 21px; letter-spacing: -.02em }
.hub__blurb { color: var(--ash); font-size: 14px; line-height: 1.5 }
.hub__go { color: var(--scot-lift); position: absolute; right: 20px; top: 20px }

@media (max-width: 900px) {
  .veh__grid { grid-template-columns: 1fr }
  .veh__related { grid-template-columns: 1fr }
}
@media (max-width: 720px) {
  .crumbs { padding-top: calc(var(--nav-h) + 14px) }
  .veh__specs { grid-template-columns: 1fr }
  .veh__spec:nth-child(odd) { padding-right: 0 }
}
