:root {
  --bg: #070a10;
  --surface: #0f1724;
  --surface-2: #17263a;
  --text: #f5f8fc;
  --muted: #b7c4d5;
  --line: #2a3d58;
  --accent: #1976e9;
  --accent-2: #55a5ff;
  --dark: #070a10;
  --light: #f4f7fb;
  --ink: #101827;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --max: 1240px;
  --narrow: 860px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, .96rem + .18vw, 1.125rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility
}

img,
video {
  display: block;
  max-width: 100%
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em
}

button,
input,
select,
textarea {
  font: inherit
}

.container-wide {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto
}

.container-narrow {
  width: min(calc(100% - 2rem), var(--narrow));
  margin-inline: auto
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  transform: translateY(-180%);
  background: #fff;
  color: #000;
  padding: .7rem 1rem;
  border-radius: 8px
}

.skip-link:focus {
  transform: none
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

:focus-visible {
  outline: 3px solid #b9d6ff;
  outline-offset: 4px
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem
}

.brand {
  display: inline-flex;
  align-items: center
}

.brand img {
  width: min(270px, 48vw);
  height: auto;
  max-height: 64px;
  object-fit: contain
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .3rem
}

.nav-link,
.header-contact {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .65rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--surface-2)
}

.header-contact {
  margin-left: .4rem;
  background: var(--accent);
  color: #fff
}

.header-contact:hover {
  background: var(--accent-2)
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 11px
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: .2s
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 14%, rgba(45, 127, 249, .18), transparent 32%), linear-gradient(135deg, rgba(255, 255, 255, .03), transparent 50%);
  pointer-events: none
}

.hero-grid,
.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center
}

.hero-grid {
  min-height: calc(100vh - 86px);
  padding-block: clamp(3.8rem, 8vw, 8rem)
}

.page-hero-grid {
  padding-block: clamp(4rem, 8vw, 7rem)
}

.page-hero-compact {
  padding-block: clamp(4rem, 8vw, 7rem)
}

.page-hero-compact .container-wide {
  position: relative;
  max-width: 950px;
  margin-left: max(1rem, calc((100% - var(--max))/2))
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -.035em
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.6rem);
  max-width: 16ch;
  margin-bottom: 1.4rem
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin-bottom: 1.2rem
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin-bottom: .7rem
}

.lead {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  color: #d4d6dc;
  max-width: 68ch
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s
}

.button:hover {
  transform: translateY(-2px)
}

.button-primary {
  background: var(--accent);
  color: #fff
}

.button-primary:hover {
  background: var(--accent-2)
}

.button-secondary {
  border-color: #565d6b;
  background: rgba(255, 255, 255, .03)
}

.button-secondary:hover {
  border-color: #fff
}

.button-dark {
  background: var(--dark);
  color: #fff
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 800
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 3rem 0 0
}

.hero-facts li {
  border-top: 1px solid var(--line);
  padding-top: 1rem
}

.hero-facts strong,
.hero-facts span {
  display: block
}

.hero-facts strong {
  font-size: 1.05rem
}

.hero-facts span {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.4;
  margin-top: .25rem
}

.media-stack {
  position: relative;
  min-height: 650px
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.media-frame-tall {
  aspect-ratio: 4/5
}

.media-frame-wide {
  aspect-ratio: 16/10
}

.media-frame-small {
  position: absolute;
  width: 58%;
  right: -2%;
  bottom: 2%;
  border: 8px solid var(--bg);
  aspect-ratio: 4/3
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--light);
  color: var(--ink)
}

.section-dark {
  background: var(--surface);
  color: var(--text)
}

.section-accent {
  background: linear-gradient(135deg, #0f3f87, #2d7ff9);
  color: #171717
}

.section-heading {
  max-width: 820px;
  margin-bottom: 3rem
}

.section-heading>p:last-child {
  color: inherit;
  opacity: .78
}

.card-grid {
  display: grid;
  gap: 1.2rem
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.service-card,
.metric-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025)
}

.service-card p,
.metric-card p {
  color: var(--muted)
}

.service-card a {
  color: var(--accent-2);
  font-weight: 800
}

.card-number {
  display: block;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 2.5rem
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(2.2rem, 7vw, 7rem);
  align-items: center
}

.split-layout-reverse>*:first-child {
  order: 2
}

.split-layout-reverse>*:last-child {
  order: 1
}

.service-center-logo {
  max-width: 360px;
  margin: 2rem 0 0
}

.service-center-logo img {
  width: 100%;
  height: auto;
  object-fit: contain
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.engine-grid figure {
  display: grid;
  grid-template-rows: clamp(190px, 18vw, 250px) auto;
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .1);
}

.engine-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
}

.engine-grid figcaption {
  padding: .8rem 1rem;
  background: #0b0d11;
  color: #fff;
  font-weight: 800;
}

.social-section {
  background: var(--bg);
  color: var(--text)
}

.social-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--surface), var(--surface-2))
}

.social-callout h2 {
  font-size: clamp(2rem, 4vw, 3.2rem)
}

.info-panel,
.notice {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow)
}

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

.check-list li {
  position: relative;
  padding: .75rem 0 .75rem 1.8rem;
  border-bottom: 1px solid var(--line)
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0
}

.process-grid li {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025)
}

.process-grid span {
  display: block;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 2rem
}

.process-grid p {
  color: var(--muted)
}

.dyno-collage {
  display: grid;
  gap: 1rem
}

.dyno-collage .media-frame:last-child {
  margin-left: 15%;
  margin-top: -12%;
  border: 8px solid var(--bg)
}

.gallery-stack {
  display: grid;
  gap: 1rem
}

.local-video {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16/9
}

.notice {
  background: rgba(9, 10, 12, .9)
}

.contact-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start
}

.contact-details {
  position: sticky;
  top: 120px
}

.contact-details address {
  font-style: normal
}

.contact-details dl {
  margin-top: 2rem
}

.contact-details dl div {
  padding: 1rem 0;
  border-top: 1px solid #d7d7d2
}

.contact-details dt {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
  color: #696d75
}

.contact-details dd {
  margin: .3rem 0 0;
  font-weight: 800
}

.small-note {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: #eee
}

.form-panel {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .13)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.field {
  margin-bottom: 1.2rem
}

.field label {
  display: block;
  font-weight: 800;
  margin-bottom: .45rem
}

.field label span,
.field-help {
  color: #70747c;
  font-weight: 400;
  font-size: .86rem
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #b8bcc4;
  border-radius: 10px;
  background: #fff;
  color: #111;
  padding: .85rem 1rem
}

.field textarea {
  resize: vertical
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 127, 249, .16);
  outline: none
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  margin: 1.2rem 0
}

.consent input {
  width: 22px;
  height: 22px;
  margin-top: .18rem
}

.consent label {
  font-size: .9rem
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.form-status {
  min-height: 1.5rem;
  color: #134b9a;
  font-weight: 700;
  margin: .4rem 0
}

.legal-section {
  min-height: 50vh
}

.legal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 4.5rem);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .12)
}

.legal-card h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: 2.5rem
}

.legal-card h2:first-child {
  margin-top: 0
}

.legal-card address {
  font-style: normal
}

.placeholder-box {
  margin: 1.4rem 0;
  padding: 1rem;
  border: 2px dashed #2d7ff9;
  border-radius: 12px;
  background: #eef5ff
}

.form-template {
  padding: 1.4rem;
  border: 1px solid #bbb;
  border-radius: 12px;
  background: #f6f6f3
}

.site-footer {
  padding: 4rem 0 1.5rem;
  background: #08090b;
  border-top: 1px solid var(--line);
  color: var(--text)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2.5rem
}

.site-footer h2 {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 1rem
}

.site-footer p,
.site-footer address {
  color: var(--muted);
  font-style: normal
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.site-footer li {
  margin: .55rem 0
}

.site-footer a {
  text-decoration: none
}

.site-footer a:hover {
  text-decoration: underline
}

.footer-brand {
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted)
}

@media(max-width:980px) {
  .menu-toggle {
    display: block
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow)
  }

  .main-nav.is-open {
    display: flex
  }

  .nav-link,
  .header-contact {
    width: 100%;
    justify-content: flex-start
  }

  .header-contact {
    margin-left: 0
  }

  .hero-grid,
  .page-hero-grid,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr
  }

  .hero-grid {
    min-height: auto
  }

  .hero-copy {
    padding-top: 1rem
  }

  .media-stack {
    min-height: 560px;
    max-width: 680px
  }

  .split-layout-reverse>*:first-child,
  .split-layout-reverse>*:last-child {
    order: initial
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .contact-details {
    position: static
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:700px) {

  .container-wide,
  .container-narrow {
    width: min(calc(100% - 1.25rem), var(--max))
  }

  .header-inner {
    min-height: 72px
  }

  .brand img {
    max-height: 52px
  }

  .main-nav {
    top: 68px
  }

  .hero-grid,
  .page-hero-grid {
    padding-block: 3.5rem;
    gap: 2.5rem
  }

  .hero-facts {
    grid-template-columns: 1fr
  }

  .media-stack {
    min-height: 430px
  }

  .media-frame-small {
    width: 62%;
    border-width: 5px
  }

  .card-grid-3,
  .card-grid-4,
  .process-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr
  }

  .engine-grid {
    gap: .6rem
  }

  .social-callout,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start
  }

  .section {
    padding-block: 4rem
  }

  .page-hero-compact {
    padding-block: 3.5rem
  }

  .legal-card {
    border-radius: 12px
  }

  .dyno-collage .media-frame:last-child {
    margin-left: 8%;
    margin-top: -8%
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

/* Final blue theme and stable hero layouts */
:root {
  --bg: #070a10;
  --surface: #0f1724;
  --surface-2: #17263a;
  --text: #f5f8fc;
  --muted: #b7c4d5;
  --line: #2a3d58;
  --accent: #1976e9;
  --accent-2: #55a5ff;
}

.hero::before,
.page-hero::before {
  background: radial-gradient(circle at 76% 14%, rgba(25, 118, 233, .22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 52%);
}

.eyebrow {
  color: var(--accent-2);
}

.header-contact,
.button-primary {
  background: var(--accent);
  color: #fff;
}

.header-contact:hover,
.button-primary:hover {
  background: var(--accent-2);
}

.text-link,
.card-number,
.process-grid span,
.check-list li::before {
  color: var(--accent);
}

.service-card a {
  color: var(--accent-2);
}

.section-accent {
  background: linear-gradient(135deg, #0b3976, #1976e9);
  color: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25, 118, 233, .18);
}

.hero-grid>*,
.page-hero-grid>*,
.split-layout>* {
  min-width: 0;
}

.hero-grid,
.page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
  gap: clamp(2.25rem, 4vw, 4.5rem);
}

.hero-copy,
.page-hero-grid>div:first-child {
  position: relative;
  z-index: 2;
}

.hero-title,
.page-title {
  max-width: 100%;
  margin-bottom: 1.4rem;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.75rem);
  line-height: 1.01;
}

.hero-title span {
  display: block;
  margin-top: .12em;
  font-size: .70em;
  line-height: 1.06;
  letter-spacing: -.025em;
}

.page-title {
  font-size: clamp(2.75rem, 4.15vw, 4rem);
  line-height: 1.02;
}

.page-title span {
  display: block;
  margin-top: .14em;
  font-size: .70em;
  line-height: 1.10;
  letter-spacing: -.02em;
}

.hero-home .hero-media-single {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-home .hero-media-single .media-frame {
  width: min(100%, 560px);
  aspect-ratio: 10 / 11;
  margin: 0;
}

.hero-home .hero-media-single img {
  object-position: center 50%;
}

.page-hero-motor .media-frame-wide {
  aspect-ratio: 1.295 / 1;
}

.page-hero-motor .media-frame-wide img {
  object-position: center;
}

.page-hero-dyno .page-hero-grid {
  align-items: center;
}

.page-hero-dyno .dyno-collage {
  position: relative;
  display: block;
  min-height: 630px;
}

.page-hero-dyno .media-frame-dyno-main {
  width: 82%;
  margin-left: auto;
  aspect-ratio: 3 / 4;
}

.page-hero-dyno .media-frame-dyno-main img {
  object-position: center;
}

.page-hero-dyno .media-frame-dyno-detail {
  position: absolute;
  width: 64%;
  right: 0;
  bottom: 0;
  margin: 0;
  border: 8px solid var(--bg);
  aspect-ratio: 1 / 1;
}

.page-hero-dyno .media-frame-dyno-detail img {
  object-position: center;
}

@media (max-width: 1120px) and (min-width: 981px) {
  .hero-title {
    font-size: clamp(2.75rem, 4.55vw, 4rem);
  }

  .page-title {
    font-size: clamp(2.6rem, 4vw, 3.65rem);
  }

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
    gap: 2.5rem;
  }
}

@media (max-width: 980px) {

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .page-title {
    max-width: 15ch;
  }

  .hero-home .hero-media-single {
    justify-content: flex-start;
  }

  .hero-home .hero-media-single .media-frame {
    width: min(100%, 680px);
  }

  .page-hero-motor .media-frame-wide {
    max-width: 760px;
  }

  .page-hero-dyno .dyno-collage {
    min-height: 650px;
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .hero-title {
    font-size: clamp(2.55rem, 11.5vw, 3.85rem);
  }

  .hero-title span {
    font-size: .68em;
  }

  .page-title {
    font-size: clamp(2.4rem, 10.7vw, 3.4rem);
  }

  .page-title span {
    font-size: .68em;
  }

  .page-hero-dyno .dyno-collage {
    min-height: 470px;
  }

  .page-hero-dyno .media-frame-dyno-main {
    width: 88%;
  }

  .page-hero-dyno .media-frame-dyno-detail {
    width: 62%;
    border-width: 5px;
  }
    .engine-grid {
    gap: .65rem;
  }

  .engine-grid figure {
    grid-template-rows: 170px auto;
  }

  .engine-grid img {
    padding: .6rem;
  }

  .engine-grid figcaption {
    padding: .65rem .75rem;
    font-size: .9rem;
  }
}

@media (max-width: 430px) {
  .hero-title {
    font-size: clamp(2.25rem, 10.5vw, 2.9rem);
  }

  .page-title {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

  .eyebrow {
    letter-spacing: .12em;
  }

  .page-hero-dyno .dyno-collage {
    min-height: 410px;
  }
}

/* --- Larger header and navigation (2026-08-05) --- */
.site-header {
  background: rgba(7, 10, 16, .94);
}

.header-inner {
  min-height: 100px;
  gap: 2.25rem;
}

.brand img {
  width: min(315px, 47vw);
  max-height: 100px;
}

.main-nav {
  gap: .42rem;
}

.nav-link,
.header-contact {
  min-height: 52px;
  padding: .76rem 1.05rem;
  font-size: 1.2rem;
}

.header-contact {
  margin-left: .55rem;
  padding-inline: 1.25rem;
}

.hero-grid {
  min-height: calc(100vh - 100px);
}

/* Switch to the mobile menu a little earlier so the larger navigation never collides with the logo. */
@media (max-width: 1120px) {
  .menu-toggle {
    display: block;
    width: 52px;
    height: 52px;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 92px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link,
  .header-contact {
    width: 100%;
    justify-content: flex-start;
  }

  .header-contact {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 82px;
  }

  .brand img {
    width: min(255px, 68vw);
    max-height: 60px;
  }

  .main-nav {
    top: 76px;
  }

  .nav-link,
  .header-contact {
    min-height: 50px;
    font-size: 1rem;
  }
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.6rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.card-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* Falls die Zahlen dann nicht mehr gebraucht werden */
.card-number {
  display: none;
}

/* Revisionsseite */
.page-hero-revision .revision-hero-image {
  aspect-ratio: 16 / 10;
}

.page-hero-revision .revision-hero-image img {
  object-position: center;
}

.revision-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.revision-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.revision-step > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
}

.revision-step-copy {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.revision-step-copy > span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--accent-2);
  font-weight: 900;
}

.revision-step-copy p {
  color: var(--muted);
}

.revision-step-copy small {
  display: block;
  margin-top: 1.1rem;
  color: #8fa3be;
  font-size: 0.78rem;
}

.revision-step-copy code {
  color: #c9ddf7;
  font-size: 0.78rem;
}

.revision-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 3.3rem);
  border: 1px solid #c9d8ea;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 55px rgba(16, 24, 39, 0.1);
}

.revision-contact-panel > div:first-child {
  max-width: 760px;
}

.process-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .process-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .revision-gallery {
    grid-template-columns: 1fr;
  }

  .revision-contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .process-grid-4 {
    grid-template-columns: 1fr;
  }

  .revision-step-copy small {
    font-size: 0.73rem;
  }
}