/* Display family: change this one variable if Formula1 must be replaced. */
:root {
  --font-display: "Formula1", "Titillium Web", sans-serif;
  --font-body: "Titillium Web", sans-serif;
  --bg: #07080a;
  --bg-raise: #101114;
  --text: #f4f1ea;
  --muted: #a39e94;
  --line: rgba(244, 241, 234, 0.16);
  --line-strong: rgba(244, 241, 234, 0.42);
  --accent: #c6b59a;
  --danger: #e7b2a8;
  --ink: #14120e;
  --page: 72rem;
  --header: 1480px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  color-scheme: dark;
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/titillium-300.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/titillium-400.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/titillium-600.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/titillium-700.woff2") format("woff2");
}

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

html {
  background: var(--bg);
}

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
.logo,
.site-menu a,
.menu-button,
.button,
.kicker,
.idx,
.facts dt,
.card time,
label,
legend,
.req-note {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.2;
}

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--accent);
}

:focus:not(:focus-visible) {
  outline: none;
}

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

::selection {
  background: var(--accent);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: 1rem;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.wrap {
  width: min(var(--page), calc(100% - (2 * var(--pad))));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  background: rgba(7, 8, 10, 0.9);
  border-bottom: 1px solid var(--line);
}

main:not(.panorama) {
  padding-top: 4.25rem;
}

.header-inner {
  width: min(var(--header), calc(100% - (2 * var(--pad))));
  margin-inline: auto;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-inner > * {
  flex-shrink: 0;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.logo:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.menu-button {
  min-height: 48px;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: 0.75rem;
}

.site-menu {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
}

.site-header:not(.is-wide) .site-menu {
  position: fixed;
  inset: 4.5rem 1rem auto auto;
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 5.75rem);
  overflow: auto;
  margin: 0;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.site-header:not(.is-wide) .site-menu a,
.site-header:not(.is-wide) .lang a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 0.85rem;
}

.site-header.is-wide .menu-button {
  display: none;
}

.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  width: auto;
  max-height: none;
  overflow: visible;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

.site-header.is-wide .site-menu a {
  white-space: nowrap;
}

.site-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--text);
}

.site-menu a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--accent);
}

.lang {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.site-header.is-wide .lang {
  margin-inline-start: 0.35rem;
  padding-inline-start: 0.9rem;
  border-inline-start: 1px solid var(--line);
}

.lang a[aria-current="true"] {
  color: var(--text);
  box-shadow: inset 0 -1px 0 var(--accent);
}

@supports not selector(:popover-open) {
  .site-header:not(.is-wide) .site-menu:not(.is-open) {
    display: none;
  }
}

.site-header.is-measuring,
.site-header.is-measuring * {
  transition: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header:not(.is-wide) .site-menu {
    transition:
      opacity 160ms ease,
      translate 160ms ease,
      display 160ms,
      overlay 160ms;
    transition-behavior: allow-discrete;
  }

  @starting-style {
    .site-header:not(.is-wide) .site-menu:popover-open {
      opacity: 0;
      translate: 0 -0.25rem;
    }
  }
}

.site-menu::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad) clamp(3rem, 7vw, 5rem);
}

.hero-copy {
  max-width: 40rem;
}

.kicker {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(1.7rem, 2.7vw, 2.55rem);
  letter-spacing: 0.035em;
  max-width: 18em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: calc(var(--hero-w) * 1px);
  aspect-ratio: var(--hero-w) / var(--hero-h);
  justify-self: end;
  background: var(--bg);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 42%),
    linear-gradient(to right, transparent 0%, transparent 90%, var(--bg));
}

@media (max-width: 959px) {
  .hero-media {
    width: calc(100% + (2 * var(--pad)));
    max-width: none;
    margin-inline: calc(var(--pad) * -1);
    justify-self: stretch;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: calc(100svh - 4.25rem);
    padding-inline: max(var(--pad), calc((100% - var(--header)) / 2));
  }

  .hero:not(:has(.hero-media)) {
    grid-template-columns: minmax(0, 46rem);
    min-height: auto;
    padding-block: clamp(4.5rem, 12vw, 8rem);
  }

  .hero-copy {
    order: -1;
  }

  .hero-media {
    width: min(46vw, calc(var(--hero-w) * 1px));
  }

  .hero-media::after {
    background:
      linear-gradient(to right, var(--bg) 0%, transparent 24%, transparent 86%, var(--bg) 100%),
      linear-gradient(to bottom, var(--bg) 0%, transparent 14%, transparent 76%, var(--bg) 100%);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: background-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--accent);
  color: var(--ink);
}

.button-quiet {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.button-quiet:hover {
  background: transparent;
  color: var(--accent);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-bottom: 1.25rem;
}

.intro {
  max-width: 40rem;
  color: var(--muted);
}

.service {
  display: grid;
  gap: 0.65rem;
  padding-block: 1.7rem;
  border-top: 1px solid var(--line);
}

.service p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
}

.service h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.service h3 a {
  color: inherit;
  text-decoration: none;
}

.service h3 a:hover {
  color: var(--accent);
}

.services {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .service {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.idx {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}

.process h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.process p {
  margin: 0;
  color: var(--muted);
}

.conf {
  max-width: 40rem;
  border-inline-start: 1px solid var(--accent);
  padding-inline-start: 1.25rem;
}

.conf p:last-child {
  margin-bottom: 0;
}

.page-intro {
  padding-block: clamp(2.75rem, 7vw, 5rem) 0.5rem;
  max-width: 44rem;
}

.page-intro h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 40rem;
}

.muted {
  color: var(--muted);
}

.empty {
  padding-block: 2.5rem 5.5rem;
  max-width: 28rem;
  font-size: 1.35rem;
  line-height: 1.4;
}

.stack {
  display: grid;
  gap: 0.35rem;
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.prose a {
  text-underline-offset: 0.18em;
}

.faq {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.faq h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.faq p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.contact-meta {
  display: grid;
  gap: 0.25rem;
  margin: 1.5rem 0 2rem;
}

.contact-meta a {
  text-underline-offset: 0.18em;
}

form {
  max-width: 36rem;
  padding-bottom: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-block-end: 1.35rem;
}

label,
legend {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
}

.req,
.opt {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hint,
.error {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.hint {
  color: var(--muted);
}

.error {
  display: none;
  color: var(--danger);
  margin: 0;
}

input,
textarea {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: max(1rem, 1em);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  min-height: 48px;
  padding: 0.55rem 0;
  width: 100%;
}

textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-bottom-color: var(--accent);
}

:is(:user-invalid, .show-errors :invalid) {
  border-bottom-color: var(--danger);
}

:is(:user-invalid, .show-errors :invalid) + .error {
  display: block;
}

fieldset {
  border: 0;
  margin: 0 0 1.35rem;
  padding: 0;
  min-inline-size: 0;
}

.choices {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.45rem;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  cursor: pointer;
}

.choices input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: transparent;
}

.choices input:checked {
  background: radial-gradient(circle, var(--accent) 0 42%, transparent 46%);
}

.choices input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.text-action {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-underline-offset: 0.22em;
}

#enquiry,
form,
.field {
  scroll-margin-top: 5.5rem;
}

.show-errors fieldset:has(:invalid) .error,
fieldset:has(:user-invalid) .error {
  display: block;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  align-items: center;
}

.form-status:not(:empty) {
  max-width: 36rem;
  margin-bottom: 1.25rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--accent);
}

.fine {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 36rem;
}

.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cards {
  display: grid;
  gap: 2.75rem;
  padding-block: 1.5rem 4rem;
}

@media (min-width: 800px) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-raise);
  margin-bottom: 0.9rem;
}

.card time {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.card h2 {
  font-size: 1.15rem;
}

.card-link:hover h2 {
  color: var(--accent);
}

.card .excerpt {
  color: var(--muted);
  margin: 0.65rem 0 0;
}

.standfirst {
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.45;
  max-width: 40rem;
}

.article-hero {
  margin: 1.5rem 0 0;
}

.article-hero img {
  width: 100%;
  max-height: 82svh;
  object-fit: cover;
  background: var(--bg-raise);
}

.article-hero figcaption,
.credit {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.article-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 1rem;
}

@media (min-width: 900px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 18.5rem;
    align-items: start;
  }
}

.facts h2 {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.facts dl {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 42%) minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--accent);
}

.facts dd {
  margin: 0;
}

.sources {
  padding-bottom: 3rem;
  max-width: 40rem;
}

.sources h2 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.sources ul,
.footer-nav,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources li + li {
  margin-top: 0.4rem;
}

.sources a {
  overflow-wrap: anywhere;
}

.car-list {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.car-list article {
  display: grid;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 800px) {
  .car-list article {
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.car-list h2 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.car-list h2 a {
  text-decoration: none;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.75rem 1.75rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand p,
.footer-meta p {
  margin: 0 0 0.35rem;
}

.footer-nav {
  display: grid;
  gap: 0.35rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--text);
}

.legal {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (forced-colors: active) {
  .button,
  .menu-button,
  .hero-media {
    border: 1px solid ButtonText;
  }

  .hero-media::after {
    display: none;
  }
}


.panorama {
  position: relative;
  background: #07080a;
}

.panorama-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #07080a;
}

.panorama-stage {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform-origin: center top;
  will-change: transform;
}

.panorama-reel {
  position: relative;
  height: 100%;
  will-change: transform;
}

.panorama-photo {
  display: block;
  height: 100%;
  transform-origin: left top;
  will-change: transform;
}

.panorama-photo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

.panorama-captions {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.panorama-caption {
  position: absolute;
  top: 0;
  bottom: 4.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(20rem, 28vw);
  padding: 6.25rem 1.25rem 1.5rem;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  background: linear-gradient(to right, rgba(7, 8, 10, 0.94) 0%, rgba(7, 8, 10, 0.82) 46%, rgba(7, 8, 10, 0.28) 78%, rgba(7, 8, 10, 0) 100%);
  overflow: auto;
  opacity: 0;
}

.panorama-caption h1,
.panorama-caption h2,
.panorama-caption h3 {
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.panorama-caption h1 {
  font-size: clamp(1.15rem, 1.7vw + 0.45rem, 1.85rem);
  max-width: 100%;
}

.panorama-caption h2 {
  margin-bottom: 0.8rem;
}

.panorama-caption h2.later {
  margin-top: 1.6rem;
}

.panorama-caption .lede,
.panorama-caption .service p,
.panorama-caption .process p,
.panorama-caption .intro,
.panorama-caption .conf p {
  color: #e4dfd6;
}

.gallery-progress {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.gallery-progress ol {
  display: flex;
  gap: 0.85rem;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: auto;
}

.gallery-progress a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.5rem;
  color: rgba(244, 241, 234, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.gallery-progress a::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.gallery-progress a[aria-current="true"] {
  color: #f4f1ea;
}

.gallery-progress a[aria-current="true"]::before {
  width: 2.4rem;
}

@media (max-width: 800px) {
  .panorama-photo {
    transform: translateY(-22svh);
  }

  .panorama-captions {
    top: auto;
    height: 42svh;
  }

  .panorama-caption {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto;
    max-height: none;
    padding: 1.4rem var(--pad) 4.4rem;
    background: linear-gradient(to top, #07080a 0%, rgba(7, 8, 10, 0.94) 58%, rgba(7, 8, 10, 0) 100%);
  }

  .gallery-progress a {
    min-width: 1.6rem;
    font-size: 0;
  }

  .gallery-progress a[aria-current="true"] {
    font-size: 0.62rem;
    min-width: 4.5rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .form-actions {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
