:root {
  color-scheme: dark;
  --surface: #0d1114;
  --panel: #151b20;
  --line: #2c373e;
  --text: #f5f7f7;
  --muted: #bac4c8;
  --accent: #40d4dc;
  font-family: "Open Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--surface); color: var(--text); line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
p + p { margin-top: 1rem; }
h1, h2, h3 { font-weight: 850; line-height: 1.05; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.1vw, 6.15rem); }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -.035em; }
p, address { color: var(--muted); }
address { font-style: normal; }
.wrap { width: min(1200px, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-130%); z-index: 10; padding: .5rem 1rem; background: var(--accent); color: #071013; }
.skip:focus { transform: translateY(0); }
.header { position: relative; z-index: 3; background: #080b0d; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 1.55rem; justify-content: space-between; }
.brand { display: inline-block; width: min(230px,100%); flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.primary-nav { display: flex; gap: clamp(.8rem, 2vw, 1.8rem); align-items: center; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .91rem; font-weight: 650; color: var(--muted); text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--accent); }
.button, .menu-toggle {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; text-align: center;
  padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 4px; font: inherit;
  font-weight: 750; font-size: .93rem; text-decoration: none; background: var(--accent); color: #061115; cursor: pointer;
}
.button:hover { background: #80e8ed; }
.secondary, .menu-toggle { background: #0a1014bf; border-color: #627078; color: var(--text); }
.secondary:hover, .menu-toggle:hover { background: #202a31; border-color: var(--accent); }
.header-cta { min-height: 44px; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.hero { position: relative; isolation: isolate; display: grid; min-height: min(650px, 74vh); align-items: center; background: #0a0e12; overflow: hidden; }
.hero-image { position: absolute; z-index: -1; inset: 0 0 0 37%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#0a0e12 0%,#0a0e12bf 20%,#0a0e1230 54%,#0a0e1210 100%),linear-gradient(0deg,#0a0e1266,transparent 65%); }
.hero-content { padding-block: 5.4rem; }
.eyebrow { color: var(--accent); margin: 0 0 .9rem; font-size: .875rem; font-weight: 750; letter-spacing: .15em; }
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; margin-right: .65rem; vertical-align: .22em; border-top: 2px solid currentColor; }
.hero h1 em { color: var(--accent); font-style: italic; }
.lead { max-width: 50ch; margin-top: 1.35rem; font-size: clamp(1.07rem, 2vw, 1.28rem); line-height: 1.55; }
.spec-strip { border-block: 1px solid var(--line); background: #10171c; }
.spec-strip .wrap { display: grid; grid-template-columns: repeat(3,1fr); }
.spec-strip a { padding: 1.08rem .8rem; text-align: center; text-decoration: none; color: #dbe2e4; font-weight: 700; }
.spec-strip a + a { border-left: 1px solid var(--line); }
.spec-strip a:hover { color: var(--accent); background: #162127; }
.section { padding-block: clamp(2.8rem, 7vw, 6rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; margin-bottom: 1.7rem; }
.text-link { color: var(--accent); font-weight: 700; text-underline-offset: .25em; }
.text-link:hover { color: #b3f6f8; }
.grid { display: grid; gap: 1.15rem; }
.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.15rem,3vw,2rem); }
.panel p, .panel .text-link { display: block; margin-top: .85rem; }
.gallery-section { background: #11181d; border-block: 1px solid var(--line); }
.tile { min-width: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #11181d; }
.tile-photo { display: block; aspect-ratio: 5/4; cursor: zoom-in; }
.tile img, .split > img { object-fit: cover; object-position: center 53%; }
.tile img { width: 100%; height: 100%; }
.tile img[src*="blue-audi"], .tile img[src*="paddock"],
.split > img[src*="paddock"] { object-position: center 59%; }
.tile img[src*="workshop-cars"], .split > img[src*="workshop-cars"] { object-position: center 59%; }
.tile figcaption { padding: 1rem 1.15rem; }
.tile figcaption p { margin-top: .25rem; }
.tile img[src*="brands-hatch"] { object-position: 50% 36%; }
.tile img[src*="vehicle-lift"], .split > img[src*="vehicle-lift"] { object-position: center 29%; }
.gallery-actions { margin-top: 2rem; }
.callout { background: #131c22; border-top: 1px solid var(--line); }
.callout-inner { padding-block: clamp(2.6rem, 5vw, 4.5rem); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.callout-inner p:not(.eyebrow) { margin-top: .75rem; }
.callout-inner .actions { margin-top: 0; }
.intro { background: linear-gradient(112deg,#121c22,#0a1014); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 6.5rem); }
.intro h1 { font-size: clamp(2.55rem, 6vw, 5.35rem); max-width: 18ch; }
.split, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.7rem, 5vw, 4rem); align-items: start; }
.split > img { width: 100%; height: auto; aspect-ratio: 5/4; border-radius: 6px; border: 1px solid var(--line); }
.split h2, .contact-grid h2, .review-panel h2 { font-size: clamp(1.55rem, 3vw, 2.55rem); }
.split p:not(.eyebrow), .prose address, .prose h2:not(:first-child), .split .button, .contact-info .button, .review-panel .button { margin-top: 1.05rem; }
.contact-info .actions .button { margin-top: 0; }
.prose h2:not(:first-child) { margin-top: 1.85rem; }
.review-panel { max-width: 650px; }
.contact-grid { grid-template-columns: minmax(230px,.75fr) minmax(0,1.25fr); }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.fields label { display: grid; align-content: start; gap: .35rem; font-weight: 650; }
.fields label span { display: inline; color: var(--muted); font-weight: 400; }
.fields label:has(span) { display: block; }
.fields label:has(span) input { display: block; margin-top: .35rem; }
.wide { grid-column: 1/-1; }
input, select, textarea { width: 100%; min-height: 47px; padding: .55rem .65rem; font: inherit; border: 1px solid #59676e; border-radius: 4px; background: #0c1115; color: var(--text); }
textarea { resize: vertical; }
.message-preview { margin-top: .6rem; min-height: 8rem; }
.status { color: var(--text); }
.handle { overflow-wrap: anywhere; }
.footer { background: #080b0d; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .75fr .75fr; gap: 1.5rem; padding-block: 3rem 2rem; }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: .5rem; }
.footer-grid a:not(.brand) { display: block; width: fit-content; color: var(--muted); padding-block: .23rem; text-underline-offset: .2em; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { margin-top: .55rem; }
.footer-end { border-top: 1px solid var(--line); padding-block: 1rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 980px) {
  .wrap { width: min(100% - 3rem,1200px); }
  .header-inner { gap: 1rem; }
  .brand { width: min(185px,100%); }
  .header-cta { display: none; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 66px; flex-wrap: wrap; padding-block: .55rem; }
  .menu-toggle { min-height: 44px; padding: .4rem .8rem; }
  .primary-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: .15rem .9rem; padding: .3rem 0 .65rem; }
  .primary-nav a { border-bottom: 1px solid var(--line); }
  .js .primary-nav:not(.open) { display: none; }
  .hero { min-height: 0; align-items: end; }
  .hero-image { inset: 0 0 auto; height: 300px; }
  .hero-image img { object-position: center 57%; }
  .hero-image::after { background: linear-gradient(0deg,#0a0e12 0%,#0a0e12ad 24%,#0a0e1210 66%); }
  .hero-content { padding-block: 225px 2.5rem; }
  .hero h1 { font-size: clamp(2.55rem, 8.7vw, 4.35rem); }
  .spec-strip a { font-size: .875rem; padding: .7rem .3rem; display: grid; place-items: center; line-height: 1.28; }
  .three, .split, .contact-grid { grid-template-columns: minmax(0,1fr); }
  .section-head, .callout-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 390px) {
  .hero h1 { font-size: clamp(2rem, 8.7vw, 2.7rem); }
  .fields { grid-template-columns: minmax(0,1fr); }
}

.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-photo:focus-visible { outline-offset: -4px; position: relative; }
.photo-viewer { width: fit-content; max-width: calc(100% - 2rem); max-height: calc(100% - 2rem); padding: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.photo-viewer::backdrop { background: #05080be8; }
.photo-viewer form { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.photo-viewer img { width: auto; height: auto; max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); object-fit: contain; margin-inline: auto; }
@media (max-width: 730px) {
  .two { grid-template-columns: minmax(0, 1fr); }
}

.tuning-enquiry { border-bottom: 1px solid var(--line); background: #131c22; }
.tuning-enquiry-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(1.75rem, 4vw, 3.5rem); }
.tuning-enquiry-inner p { margin-top: .65rem; max-width: 58ch; }
.tuning-enquiry-inner .actions { margin: 0; flex-shrink: 0; }
@media (max-width: 850px) {
  .tuning-enquiry-inner { flex-direction: column; align-items: flex-start; }
}
