/* ECU Code responsive editorial pass — viewport rhythm, media framing and diagnosis wayfinding. */

:root {
  --ecu-header: 84px;
  --ecu-page: calc(100svh - var(--ecu-header));
  --ecu-pages-2: calc(var(--ecu-page) + var(--ecu-page));
  --ecu-pages-3: calc(var(--ecu-pages-2) + var(--ecu-page));
  --ecu-pages-4: calc(var(--ecu-pages-2) + var(--ecu-pages-2));
  --ecu-pages-5: calc(var(--ecu-pages-4) + var(--ecu-page));
  --ecu-pages-6: calc(var(--ecu-pages-3) + var(--ecu-pages-3));
  --ecu-pages-8: calc(var(--ecu-pages-4) + var(--ecu-pages-4));
}

html {
  scroll-padding-top: var(--ecu-header);
}

/* The locality is semantic supporting copy inside the SEO heading, not a
   fourth display line. Without this override it inherits the giant H1 size
   and clips during the hero entrance animation. */
.hero h1.hero-seo {
  font-size: clamp(44px, 6.1vw, 112px);
  max-width: min(71vw, 1360px);
}

.hero-seo .hero__locality {
  display: block;
  max-width: none;
  margin-top: clamp(18px, 3vh, 34px);
  color: var(--signal);
  font: 500 clamp(9px, 0.68vw, 12px) / 1.25 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

main > section {
  min-block-size: var(--ecu-page);
  box-sizing: border-box;
}

/* A strict viewport rhythm without scroll snapping. */
.hero {
  block-size: var(--ecu-pages-4);
  min-block-size: var(--ecu-pages-4);
}

.story {
  block-size: var(--ecu-pages-5);
  min-block-size: var(--ecu-pages-5);
}

.diagnosis {
  block-size: var(--ecu-pages-8);
  min-block-size: var(--ecu-pages-8);
}

/* Give the main editorial sections a consistent, page-like rhythm. */
.manifesto,
.story__intro,
.diagnosis__heading,
.audience,
.process {
  block-size: var(--ecu-page);
  min-height: var(--ecu-page);
  box-sizing: border-box;
}

.manifesto,
.story__intro,
.diagnosis__heading,
.process {
  padding-top: clamp(88px, 12vh, 132px);
  padding-bottom: clamp(72px, 10vh, 112px);
}

/* Service story: every generated visual now sits inside a real frame. */
.story__visual {
  padding: clamp(24px, 3.2vw, 52px);
}

.visual__frame {
  aspect-ratio: 43 / 24;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 2 * clamp(24px, 3.2vw, 52px));
  margin: auto;
  border: 1px solid rgba(232, 239, 234, 0.18);
  background: #080b0b;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.visual__frame::before {
  inset: 14px;
}

.story__visual .visual__frame .visual__image,
.story__visual .visual__frame .visual__image--1,
.story__visual .visual__frame .visual__image--3,
.story__visual .visual__frame .visual__image--4 {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  filter: saturate(0.78) contrast(1.05) brightness(0.74);
  transform: none !important;
}

.visual__frame .visual__image.is-module {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual__wash {
  background:
    linear-gradient(90deg, rgba(8, 11, 11, 0.52), transparent 24% 76%, rgba(8, 11, 11, 0.52)),
    linear-gradient(transparent 66%, rgba(8, 11, 11, 0.72));
}

.story__meter {
  bottom: clamp(12px, 2.5vh, 26px);
  left: clamp(28px, 7%, 72px);
  right: clamp(28px, 7%, 72px);
}

.story__chapters article {
  block-size: var(--ecu-page);
  min-height: var(--ecu-page);
  box-sizing: border-box;
}

/* Diagnosis: one readable phase per scroll chapter with persistent progress. */
.diagnosis__heading {
  align-content: center;
}

.diagnosis__body {
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: clamp(42px, 5vw, 88px);
  block-size: var(--ecu-pages-6);
  min-block-size: var(--ecu-pages-6);
  padding-bottom: 0;
  box-sizing: border-box;
}

.diagnosis__steps {
  block-size: 100%;
  margin-block: 0;
}

.diagnosis__visual {
  top: calc(var(--ecu-header) + 5vh);
  aspect-ratio: 43 / 24;
  width: 100%;
  height: auto;
  border: 1px solid rgba(12, 15, 15, 0.18);
  box-shadow: 0 24px 60px rgba(8, 10, 10, 0.14);
}

.diagnosis-sequence img {
  object-fit: cover;
  object-position: center;
  background: #090c0c;
}

.diagnosis__steps li {
  position: relative;
  block-size: var(--ecu-page);
  min-height: var(--ecu-page);
  grid-template-rows: auto auto;
  row-gap: 10px;
  padding: clamp(30px, 5vh, 52px) clamp(16px, 2vw, 28px);
  opacity: 0.2;
  transform: translateX(8px) !important;
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.35s ease;
}

.diagnosis__steps li > span:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.diagnosis__steps li > p {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.diagnosis__steps li > i {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.diagnosis-step__description {
  color: rgba(12, 15, 15, 0.58);
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  max-width: 48ch;
  font-size: clamp(10px, 0.82vw, 12px);
  font-weight: 450;
  line-height: 1.55;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.diagnosis__steps li.is-diagnosis-active .diagnosis-step__description {
  color: rgba(12, 15, 15, 0.72);
}

.statement {
  block-size: var(--ecu-page);
  min-block-size: var(--ecu-page);
  box-sizing: border-box;
  transform: none !important;
}

.air-system,
.air-system__content {
  block-size: var(--ecu-pages-4);
  min-block-size: var(--ecu-pages-4);
  box-sizing: border-box;
}

.diagnosis__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--signal-dark);
  transform: translateY(-50%);
  transition: height 0.35s ease;
}

.diagnosis__steps li.is-diagnosis-active {
  opacity: 1 !important;
  transform: none !important;
  background: linear-gradient(90deg, rgba(22, 79, 58, 0.11), transparent 78%);
}

.diagnosis__steps li.is-diagnosis-active::before {
  height: 72%;
}

.diagnosis__steps li.is-diagnosis-active span {
  color: var(--signal-dark);
  font-size: 12px;
}

.diagnosis__steps li.is-diagnosis-active p {
  color: var(--black);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 650;
}

.diagnosis-sequence__progress {
  position: absolute;
  z-index: 5;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  display: grid;
  grid-template-columns: auto minmax(72px, 9vw) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(104, 244, 187, 0.32);
  background: rgba(4, 8, 7, 0.78);
  color: #dce6df;
  backdrop-filter: blur(12px);
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.diagnosis-sequence__current {
  color: var(--signal);
}

.diagnosis-sequence__progress i {
  position: relative;
  display: block;
  height: 2px;
  background: rgba(232, 239, 234, 0.2);
  overflow: hidden;
}

.diagnosis-sequence__progress b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--diagnosis-progress, 16.666%);
  background: var(--signal);
  transition: width 0.35s ease;
}

/* Keep dense lower-page sections clear without arbitrary oversized whitespace. */
.parts {
  padding-top: clamp(78px, 10vh, 112px);
  padding-bottom: clamp(78px, 10vh, 112px);
}

.parts__rail {
  margin-top: clamp(48px, 7vh, 72px);
  overflow-y: hidden;
}

.parts__request {
  margin-top: clamp(42px, 6vh, 64px);
}

.parts__rail .part__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 721px) {
  .parts {
    block-size: var(--ecu-page);
    min-height: var(--ecu-page);
    padding-top: clamp(42px, 5.5vh, 58px);
    padding-bottom: clamp(42px, 5.5vh, 58px);
  }

  .parts__heading h2 {
    font-size: clamp(48px, 5.2vw, 78px);
    line-height: 0.92;
  }

  .parts__rail {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: clamp(26px, 3.8vh, 38px);
  }

  .parts__rail article {
    min-height: 0;
    height: 380px;
    padding: 14px;
  }

  .parts__rail .part__object {
    height: 190px;
    margin: 16px 0 20px;
  }

  .parts__rail h3 {
    font-size: clamp(17px, 1.35vw, 23px);
  }

  .parts__rail p {
    font-size: clamp(8px, 0.7vw, 10px);
    line-height: 1.45;
  }

  .parts__request {
    margin-top: clamp(22px, 3vh, 30px);
  }

  .contact {
    block-size: var(--ecu-page);
    min-height: var(--ecu-page);
    overflow: clip;
  }

  .contact__intro {
    align-content: center;
    min-height: 0;
    height: 100%;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .contact__intro .micro {
    margin-top: 0;
  }

  .contact__form {
    min-height: 0;
    height: 100%;
    gap: 6px 16px;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .contact__form .field {
    gap: 3px;
  }

  .contact__form .field input,
  .contact__form .field select,
  .contact__form .field textarea {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .contact__form .field textarea {
    min-height: 70px;
    height: 70px;
  }

  .contact__form .submit-button {
    min-height: 44px;
    margin-top: 2px;
    padding: 13px 18px;
  }
}

@media (max-width: 1100px) {
  .diagnosis__body {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
    gap: 38px;
  }

  .diagnosis__steps li {
    min-height: var(--ecu-page);
  }
}

@media (max-width: 720px) {
  :root {
    --ecu-header: 70px;
    --diagnosis-mobile-media: min(46svh, calc((100vw - 36px) * 24 / 43));
    --story-mobile-media: calc((100vw - 24px) * 24 / 43);
    --story-mobile-block: calc(var(--story-mobile-media) + 24px);
  }

  .hero h1.hero-seo {
    font-size: clamp(34px, 10vw, 44px);
    max-width: 100%;
  }

  /* The longest display line otherwise exceeds the padded mobile stage and
     is clipped by the line's entrance-animation mask. */
  .hero-seo .hero__line:first-child > span {
    font-size: 0.86em;
  }

  .hero-seo .hero__locality {
    margin-top: 16px;
    font-size: 9px;
  }

  .hero {
    block-size: var(--ecu-pages-3);
    min-block-size: var(--ecu-pages-3);
  }

  .manifesto,
  .story__intro,
  .diagnosis__heading,
  .process {
    min-height: var(--ecu-page);
    padding-top: clamp(84px, 12vh, 110px);
    padding-bottom: clamp(64px, 9vh, 84px);
  }

  .manifesto {
    padding-top: 76px;
    padding-bottom: 48px;
  }

  .manifesto__lead {
    margin-top: 32px;
    font-size: 38px;
  }

  .manifesto__side {
    margin-top: 32px;
  }

  .manifesto__side > p {
    margin-bottom: 24px;
  }

  .manifesto__facts span {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .manifesto,
  .story__intro,
  .diagnosis__heading,
  .process,
  .parts__heading,
  .contact__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .story__intro .micro,
  .diagnosis__heading .micro,
  .manifesto__lead,
  .process__heading {
    margin-top: clamp(34px, 6vh, 54px);
  }

  .story__visual {
    height: var(--story-mobile-block);
    top: var(--ecu-header);
    padding: 12px;
  }

  .visual__frame {
    aspect-ratio: 43 / 24;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .visual__frame::before {
    inset: 8px;
  }

  .story__visual .visual__frame .visual__image,
  .story__visual .visual__frame .visual__image--1,
  .story__visual .visual__frame .visual__image--3,
  .story__visual .visual__frame .visual__image--4 {
    object-fit: cover;
  }

  .story__chapters {
    padding: 0 22px;
    margin-top: calc(-1 * var(--story-mobile-block));
  }

  .story__chapters article {
    min-height: var(--ecu-page);
    padding-top: calc(var(--story-mobile-block) + 20px);
    padding-bottom: 28px;
    justify-content: flex-end;
  }

  .story__chapters .chapter__head {
    margin-bottom: 24px;
  }

  .story__chapters .chapter__copy {
    margin-top: 18px;
  }

  .story__chapters ul {
    margin-top: 22px;
  }

  .story__chapters .chapter__note {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .story__chapters h3 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .diagnosis__body {
    display: block;
    padding: 0 18px;
  }

  .diagnosis__visual {
    z-index: 4;
    top: var(--ecu-header);
    width: 100%;
    height: var(--diagnosis-mobile-media);
    aspect-ratio: 43 / 24;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  }

  .diagnosis__steps {
    margin: calc(-1 * var(--diagnosis-mobile-media)) 0 0;
  }

  .diagnosis__steps li {
    min-height: var(--ecu-page);
    padding: calc(var(--diagnosis-mobile-media) + 28px) 14px 34px;
    align-content: end;
    background: var(--paper);
    transform: none !important;
  }

  .diagnosis-step__description {
    max-width: 34ch;
    font-size: 10px;
    line-height: 1.45;
  }

  .diagnosis__steps li.is-diagnosis-active {
    background: linear-gradient(180deg, transparent 52%, rgba(22, 79, 58, 0.1));
  }

  .diagnosis__steps li::before {
    top: auto;
    bottom: 0;
    width: 0;
    height: 2px;
    transform: none;
    transition: width 0.35s ease;
  }

  .diagnosis__steps li.is-diagnosis-active::before {
    width: 100%;
    height: 2px;
  }

  .diagnosis-sequence__progress {
    right: 12px;
    bottom: 12px;
    grid-template-columns: auto minmax(54px, 18vw) auto;
  }

  .parts {
    display: flex;
    flex-direction: column;
    block-size: var(--ecu-page);
    min-block-size: var(--ecu-page);
    padding-top: 42px;
    padding-bottom: 36px;
  }

  .parts__heading {
    flex: 0 0 auto;
    min-height: auto;
    padding-bottom: 12px;
    justify-content: flex-start;
    align-items: stretch;
  }

  .parts__heading .section-code {
    align-self: flex-end;
  }

  .parts__heading h2 {
    margin-top: 12px;
    max-width: 16ch;
    font-size: clamp(27px, 7.6vw, 32px);
    line-height: 0.96;
  }

  .parts__heading > p {
    margin-top: 10px;
    margin-left: 0;
    max-width: 38ch;
    font-size: 10px;
    line-height: 1.4;
  }

  .parts__heading::after {
    content: "7 Kategorien  ·  seitlich wischen  →";
    margin-top: 10px;
    color: var(--signal);
    font: 500 8px/1 var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
  }

  .parts__rail {
    flex: 0 0 246px;
    grid-auto-columns: min(72vw, 280px);
    gap: 10px;
    margin: 0 0 0 20px;
    padding-right: 20px;
    scrollbar-width: thin;
    overflow-y: hidden;
  }

  .parts__rail article {
    min-height: 0;
    height: 230px;
    padding: 10px;
  }

  .parts__rail .part__object {
    height: 118px;
    margin: 8px 0 9px;
  }

  .parts__rail h3 {
    font-size: 18px;
    line-height: 1;
  }

  .parts__rail p {
    margin-top: 5px;
    font-size: 8.5px;
    line-height: 1.35;
  }

  .parts__request {
    flex: 0 0 auto;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .parts__request > div {
    gap: 6px 12px;
    margin: 8px 0 10px;
  }

  .parts__request > p {
    max-width: 34ch;
    font-size: 9px;
    line-height: 1.4;
  }

  .parts__request span,
  .parts__request .quiet-link {
    font-size: 8px;
  }

  .audience {
    block-size: var(--ecu-pages-2);
    min-height: var(--ecu-pages-2);
  }

  .audience article {
    min-height: var(--ecu-page);
    justify-content: center;
    padding: 72px 22px 56px;
  }

  .audience h3 {
    max-width: 100%;
    font-size: clamp(34px, 9.6vw, 39px);
    line-height: 0.98;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .process {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .process__heading {
    margin-top: 30px;
  }

  .process__heading h2 {
    margin-top: 20px;
    font-size: clamp(38px, 10.5vw, 44px);
    line-height: 0.94;
  }

  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
    margin-top: 28px;
  }

  .process__steps li {
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 8px;
    min-width: 0;
    min-height: 152px;
    padding: 18px 12px 16px 0;
  }

  .process__steps li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .process__steps li:nth-child(even) {
    padding-right: 0;
    padding-left: 14px;
  }

  .process__steps li > span {
    grid-area: 1 / 1;
  }

  .process__steps li > i {
    grid-area: 1 / 2;
  }

  .process__steps li > div {
    grid-area: 2 / 1 / 3 / -1;
    min-width: 0;
  }

  .process__steps h3 {
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 1.08;
  }

  .process__steps p {
    font-size: 9px;
    line-height: 1.5;
  }

  .contact__intro {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 72px;
  }

  .contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    block-size: var(--ecu-pages-2);
    min-block-size: var(--ecu-pages-2);
  }

  .contact__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    padding: 52px 20px 60px;
  }

  .contact__form .field--wide,
  .contact__form .consent,
  .contact__form .submit-button {
    grid-column: 1 / -1;
  }

  .contact__form .field {
    gap: 5px;
    min-width: 0;
  }

  .contact__form .field input,
  .contact__form .field select,
  .contact__form .field textarea {
    min-width: 0;
    padding: 10px 0;
  }

  .contact__form .field textarea {
    min-height: 96px;
  }

  .contact__form .consent {
    margin-top: 4px;
  }

  .contact__form .submit-button {
    min-height: 52px;
    margin-top: 4px;
    padding: 17px 16px;
  }

  footer {
    padding-top: 64px;
    padding-bottom: 34px;
  }

  .footer__brand {
    padding-bottom: 46px;
  }
}

/* Native select popups use a light OS surface in Chromium on Windows. */
.contact__form select option {
  color: #0b0e0e;
  background: #f4f7f4;
}

.contact__form select option:checked {
  color: #080a0a;
  background: #68f4bb;
}

@media (prefers-reduced-motion: reduce) {
  .diagnosis__steps li,
  .diagnosis__steps li::before,
  .diagnosis-sequence__progress b {
    transition: none;
  }
}

/* Supplied ECU Code brand artwork and legal navigation. */
.topbar .logo,
.footer__brand .logo {
  background: url("/assets/brand/ecu-code-logo.png") center / contain no-repeat;
  flex: 0 0 auto;
  overflow: hidden;
}

.topbar .logo {
  width: 164px;
  height: 54px;
}

.footer__brand .logo {
  width: min(360px, 54vw);
  height: 120px;
}

.topbar .logo__signet,
.topbar .logo__word,
.footer__brand .logo__signet,
.footer__brand .logo__word {
  visibility: hidden;
}

.footer__legal {
  display: inline-flex;
  gap: 18px;
}

.footer__meta {
  flex-wrap: wrap;
  gap: 16px 28px;
}

.footer__legal a,
.footer__credit a,
.contact__form .consent a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(104, 244, 187, 0.5);
  text-underline-offset: 4px;
}

.contact__form .consent a:hover,
.footer__credit a:hover,
.footer__legal a:hover {
  color: var(--signal);
}

@media (max-width: 720px) {
  .topbar .logo {
    background-image: url("/assets/brand/ecu-code-logo.png");
    width: 138px;
    height: 48px;
  }

  .footer__brand .logo {
    width: min(310px, 86vw);
    height: 120px;
    background-position: center;
    background-size: calc(100% - 18px) auto;
  }

  .footer__legal {
    flex-wrap: wrap;
  }
}

/* GSAP-driven air-suspension telemetry. The existing sticky section remains native. */
.air-telemetry {
  --telemetry-line: rgba(104, 244, 187, 0.82);
  z-index: 7;
  width: min(42vw, 800px);
  color: var(--paper);
  background: linear-gradient(110deg, rgba(6, 9, 8, 0.94), rgba(9, 17, 14, 0.72));
  border: 1px solid rgba(104, 244, 187, 0.28);
  padding: 15px 17px 13px;
  flex-direction: column;
  display: flex;
  position: absolute;
  left: clamp(90px, 8vw, 150px);
  bottom: clamp(28px, 5vh, 48px);
  contain: layout paint style;
  pointer-events: none;
  will-change: transform, opacity;
}

.air-telemetry::before,
.air-telemetry::after {
  content: "";
  width: 22px;
  height: 22px;
  border-color: var(--signal);
  position: absolute;
}

.air-telemetry::before {
  border-top: 1px solid;
  border-left: 1px solid;
  top: -1px;
  left: -1px;
}

.air-telemetry::after {
  border-right: 1px solid;
  border-bottom: 1px solid;
  right: -1px;
  bottom: -1px;
}

.air-telemetry__head {
  color: #9aa69f;
  font: 500 8px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.air-telemetry__head span {
  align-items: center;
  gap: 8px;
  display: flex;
}

.air-telemetry__head span i {
  width: 5px;
  height: 5px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(104, 244, 187, 0.82);
}

.air-telemetry__head strong {
  color: var(--signal);
  font-size: 9px;
  font-weight: 500;
}

.air-telemetry__plot {
  flex: 1 1 auto;
  min-height: 86px;
  height: clamp(86px, 12vh, 126px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}

.air-telemetry__plot svg {
  width: 100%;
  height: 100%;
}

.air-telemetry__grid {
  fill: none;
  stroke: rgba(232, 239, 234, 0.075);
  stroke-width: 1;
}

.air-telemetry__trace-base,
.air-telemetry__trace-live {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.air-telemetry__trace-base {
  stroke: rgba(232, 239, 234, 0.14);
  stroke-width: 1;
}

.air-telemetry__trace-live {
  stroke: var(--telemetry-line);
  stroke-width: 1.5;
}

.air-telemetry__node {
  width: 7px;
  height: 7px;
  background: #07110d;
  border: 1px solid var(--signal);
  border-radius: 50%;
  position: absolute;
  top: var(--node-y);
  left: var(--node-x);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(104, 244, 187, 0.32);
}

.air-telemetry__scanner {
  width: 1px;
  background: linear-gradient(transparent, var(--signal) 20% 80%, transparent);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  box-shadow: 0 0 20px rgba(104, 244, 187, 0.65);
}

.air-telemetry__metric {
  color: var(--signal);
  background: rgba(4, 8, 7, 0.82);
  font: 500 7px/1 var(--font-mono);
  letter-spacing: 0.09em;
  padding: 6px 7px;
  position: absolute;
  top: 8px;
  right: 8px;
}

.air-telemetry__phases {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 11px;
  display: grid;
}

.air-telemetry__phases > span {
  color: #849089;
  border-top: 1px solid rgba(232, 239, 234, 0.13);
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding-top: 9px;
  display: grid;
}

.air-telemetry__phases i,
.air-telemetry__phases strong {
  font: 500 7px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.air-telemetry__phases i {
  color: var(--signal);
  font-style: normal;
}

.air-telemetry__phases strong {
  font-weight: 500;
}

.air-telemetry__phases > span.is-current {
  color: var(--paper);
  border-color: var(--signal);
}

.air-telemetry__phases > span.is-complete {
  color: #a5b0aa;
}

.air-telemetry.is-static .air-telemetry__trace-live {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.air-telemetry.is-static .air-telemetry__scanner {
  display: none;
}

@media (max-width: 1050px) {
  .air-telemetry {
    width: min(46vw, 610px);
    left: 5vw;
  }
}

@media (max-width: 720px) {
  .air-telemetry {
    width: auto;
    height: 64px;
    padding: 6px 9px 5px;
    right: 18px;
    bottom: 0;
    left: 18px;
  }

  .air-telemetry__head,
  .air-telemetry__head strong {
    font-size: 7px;
  }

  .air-telemetry__plot {
    min-height: 26px;
    height: 26px;
    margin-top: 3px;
  }

  .air-telemetry__metric {
    top: 3px;
    right: 3px;
    padding: 3px 4px;
    font-size: 6px;
  }

  .air-telemetry__node {
    width: 5px;
    height: 5px;
  }

  .air-telemetry__phases {
    gap: 5px;
    margin-top: 3px;
  }

  .air-telemetry__phases > span {
    gap: 5px;
    padding-top: 3px;
  }

  .air-telemetry__phases i,
  .air-telemetry__phases strong {
    font-size: 5.7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .air-telemetry {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Scroll-built network statement: typography replaces the former media cards. */
.hero__chapter--systems {
  --systems-progress: 0%;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-bottom: clamp(90px, 12vh, 150px);
}

.hero__chapter--systems .hero__chapter-card {
  display: none !important;
}

.hero__chapter--systems h2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.19em;
  row-gap: 0.02em;
  width: min(1180px, 88vw);
  overflow: visible;
}

.hero-system-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.hero-system-word:last-child {
  flex-basis: 100%;
}

.hero-system-word.is-signal {
  color: var(--paper);
}

.hero__chapter--systems::after {
  content: "";
  z-index: -1;
  width: min(920px, 74vw);
  height: 1px;
  margin-top: clamp(42px, 7vh, 76px);
  background: linear-gradient(
    90deg,
    var(--signal) 0 var(--systems-progress),
    rgba(104, 244, 187, 0.15) var(--systems-progress) 100%
  );
  box-shadow: 0 0 26px rgba(104, 244, 187, 0.18);
}

.hero-system-network {
  z-index: -1;
  pointer-events: none;
  position: absolute;
  left: 12vw;
  right: 12vw;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 244, 187, 0.45) 15% 85%, transparent);
}

.hero-system-network::before,
.hero-system-network::after {
  content: "";
  position: absolute;
  top: -18vh;
  bottom: -18vh;
  width: 1px;
  background: linear-gradient(transparent, rgba(104, 244, 187, 0.28), transparent);
}

.hero-system-network::before {
  left: 28%;
}

.hero-system-network::after {
  right: 28%;
}

.hero-system-network i {
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  background: #080a0a;
  box-shadow: 0 0 18px rgba(104, 244, 187, 0.45);
}

.hero-system-network i:nth-child(1) { left: 10%; }
.hero-system-network i:nth-child(2) { left: 30%; }
.hero-system-network i:nth-child(3) { left: 50%; }
.hero-system-network i:nth-child(4) { left: 70%; }
.hero-system-network i:nth-child(5) { left: 90%; }

@media (max-width: 720px) {
  .hero__chapter--systems {
    align-content: center;
    padding-bottom: 86px;
  }

  .hero__chapter--systems h2 {
    column-gap: 0.14em;
    width: 100%;
  }

  .hero__chapter--systems::after {
    width: 78vw;
    margin-top: 42px;
  }

  .hero-system-network {
    left: 8vw;
    right: 8vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__chapter--systems {
    --systems-progress: 100%;
  }

  .hero-system-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}
/* Detailed service stories live on their dedicated service pages. */
body > main > #diagnose,
body > main > #luftfahrwerk {
  display: none !important;
}
