/* Baumann Automobile – components. Everything sits in @layer components (theme.css only holds tokens). */
@layer components {

  [hidden] { display: none !important; }
  body { font-feature-settings: "ss01", "cv11"; letter-spacing: -0.005em; overflow-x: clip; }
  a { color: var(--color-primary); }
  :focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
  ::selection { background: var(--color-primary); color: #fff; }
  .container { width: min(100% - 2rem, var(--container)); }
  @media (min-width: 48rem) { .container { width: min(100% - 4rem, var(--container)); } }
  h1, h2, h3 { color: inherit; }
  h2 { font-size: var(--step-3); }
  h3 { font-weight: 500; letter-spacing: -0.02em; }
  strong { font-weight: 600; }
  .sprite { display: none; }
  .gap-top { margin-top: 1.5rem; }
  .gap-top-l { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
  /* single-column grids must not grow to the widest word (long German compounds on phones) */
  .statement, .split, .car, .contact, .form-wrap, .promise, .tiles, .cta-band .container, .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

  /* dark context: redefine tokens, everything inside follows */
  .on-dark {
    --color-text: var(--color-dark-contrast);
    --color-muted: var(--color-dark-muted);
    --color-border: rgb(255 255 255 / 0.14);
    --color-surface: #16191d;
    --color-tint: #16191d;
    --color-bg: var(--color-dark);
    background: var(--color-dark);
    color: var(--color-text);
  }
  .on-dark a:not(.btn) { color: var(--color-text); }

  /* ---------- eyebrow with the logo's bracket ---------- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--color-muted);
  }
  .eyebrow::before {
    content: ""; width: 0.9rem; height: 0.9rem; flex: none;
    border-top: 3px solid var(--color-primary); border-left: 3px solid var(--color-primary); border-top-left-radius: 0.4rem;
  }
  .on-dark .eyebrow { color: var(--color-dark-muted); }
  .hero .eyebrow::before { display: none; }

  /* ---------- buttons ---------- */
  .btn {
    min-height: 3.25rem; padding: 0.9rem 1.6rem; gap: 0.75rem;
    font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    border-width: 1px; position: relative; overflow: hidden; isolation: isolate;
  }
  .btn .i { width: 1.15rem; height: 1.15rem; transition: transform .35s var(--ease-out); }
  .btn:hover .i-arrow { transform: translateX(4px); }
  .btn:hover { transform: none; }
  .btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
  .btn-primary:hover { background: #a50c25; border-color: #a50c25; color: #fff; }
  .btn-ghost { color: var(--color-text); border-color: color-mix(in srgb, var(--color-text) 35%, transparent); background: transparent; }
  .btn-ghost:hover { border-color: var(--color-text); background: color-mix(in srgb, var(--color-text) 6%, transparent); color: var(--color-text); }
  .btn-sm { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.75rem; }
  .link-arrow {
    display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; text-decoration: none; color: var(--color-text);
    font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .link-arrow .i { color: var(--color-primary); transition: transform .35s var(--ease-out); }
  .link-arrow:hover .i { transform: translateX(5px); }
  .link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); padding-bottom: 2px; }
  .link-arrow:hover span { background-size: 100% 1px; }

  /* ---------- top bar ---------- */
  .topbar { background: var(--color-dark); color: var(--color-dark-muted); font-size: 0.8125rem; position: relative; z-index: 52; }
  .topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
  .topbar p { margin: 0; letter-spacing: 0.02em; }
  .topbar ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; align-items: center; }
  .topbar li { display: flex; align-items: center; gap: 0.45rem; }
  .topbar a { color: var(--color-dark-contrast); text-decoration: none; }
  .topbar a:hover { color: #fff; text-decoration: underline; }
  .topbar .open-status { color: var(--color-dark-contrast); font-weight: 500; }
  @media (max-width: 61.99rem) { .topbar-claim, .topbar-mail { display: none !important; } .topbar-inner { justify-content: center; } }

  /* ---------- header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50; color: var(--color-text);
    background: color-mix(in srgb, var(--color-bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
  }
  .header-inner { min-height: var(--header-h); gap: 1.5rem; flex-wrap: nowrap; }
  /* start page: transparent over the hero video until scrolled (only with JS, else stays solid) */
  .js .page-start .site-header:not(.is-solid):not(.is-open) { background: rgb(13 15 18 / 0.88); border-bottom-color: rgb(255 255 255 / 0.1); color: #fff; }
  .js .page-start .hero { margin-top: calc(-1 * var(--header-h) - 1px); }

  .brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; flex: none; }
  .wordmark { display: block; width: 9.5rem; height: auto; overflow: visible; }
  .wordmark .wm-text { fill: currentColor; }
  .wordmark .wm-bracket { fill: none; stroke: var(--color-primary); stroke-width: 7; stroke-linecap: butt; }
  @media (min-width: 48rem) { .wordmark { width: 10.75rem; } }

  .site-nav ul { list-style: none; margin: 0; padding: 0; }
  .site-nav a:not(.btn) { color: inherit; }
  .nav-cta { display: none; }
  @media (min-width: 62rem) {
    .nav-toggle { display: none !important; }
    .site-nav { display: flex !important; align-items: center; gap: 2rem; }
    .site-nav > ul { display: flex; gap: 0.25rem; align-items: center; }
    .site-nav > ul > li { position: relative; display: flex; align-items: center; }
    .site-nav > ul > li > a:not(.btn) {
      font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; padding: 0.6rem 0.75rem; position: relative;
    }
    .site-nav > ul > li > a::after {
      content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.25rem; height: 1px; background: currentColor;
      transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
    }
    .site-nav > ul > li > a:hover::after, .site-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
    .site-nav > ul > li > a[aria-current="page"]::after { background: var(--color-primary); height: 2px; }
    .nav-cta { display: inline-flex; }
    .sub-toggle { width: 1.5rem; height: 2rem; margin-left: -0.5rem; display: grid; place-items: center; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
    .sub-toggle svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
    .sub-menu {
      position: absolute; top: calc(100% + 0.6rem); left: -0.5rem; min-width: 19rem; padding: 0.6rem;
      background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .35s var(--ease-out), visibility 0s .35s;
    }
    .sub-menu::before { content: ""; position: absolute; inset: -0.8rem 0 auto; height: 0.8rem; }
    .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .has-sub:hover .sub-toggle svg, .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
  }
  .sub-menu ul { display: grid; gap: 0.1rem; }
  .sub-menu a {
    display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; align-items: center; padding: 0.6rem 0.7rem; border-radius: var(--radius);
    color: var(--color-text) !important; text-decoration: none;
  }
  .sub-menu a:hover { background: var(--color-tint); }
  .sub-menu a .i { width: 2.25rem; height: 2.25rem; padding: 0.45rem; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-primary); stroke-width: 1.4; }
  .sub-menu strong { display: block; font-size: 0.9rem; font-weight: 600; }
  .sub-menu small { display: block; font-size: 0.78rem; color: var(--color-muted); line-height: 1.35; }

  /* mobile / tablet navigation: full-height panel */
  @media (max-width: 61.99rem) {
    .js .nav-toggle {
      display: inline-flex; align-items: center; gap: 0.6rem; width: auto; height: 2.75rem; padding: 0 0.25rem; border: 0; background: none; color: inherit; cursor: pointer;
      font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.5rem; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease), background-color .2s; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
    .header-inner { flex-wrap: wrap; }
    .site-nav { flex-basis: 100%; padding-block: 0.5rem 1.5rem; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
    .js .site-nav:not([data-open="true"]) { display: none; }
    .site-header.is-open { background: var(--color-bg); color: var(--color-text); }
    .site-nav > ul > li { border-bottom: 1px solid var(--color-border); display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .site-nav > ul > li > a:not(.btn) { display: block; padding: 0.95rem 0; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 300; letter-spacing: -0.02em; }
    .site-nav > ul > li > a[aria-current="page"] { color: var(--color-primary); }
    .sub-toggle { width: 3rem; height: 3rem; display: grid; place-items: center; border: 0; background: none; color: inherit; cursor: pointer; }
    .sub-toggle svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }
    .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
    .sub-menu { grid-column: 1 / -1; padding-block-end: 0.75rem; }
    .js .sub-menu:not(.is-open) { display: none; }
    .nav-cta { display: flex; margin-top: 1.25rem; width: 100%; }
  }

  /* ---------- breadcrumbs ---------- */
  .crumbs { font-size: 0.8125rem; color: var(--color-muted); }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
  .crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
  .crumbs a { color: inherit; text-decoration: none; }
  .crumbs a:hover { color: var(--color-text); text-decoration: underline; }

  /* ---------- home hero with video ---------- */
  .hero { position: relative; padding: 0; min-height: min(100svh, 60rem); display: grid; align-items: end; overflow: clip; background: var(--color-dark) url("/assets/img/hero-verkaeufer-1920.jpg") 62% 30% / cover no-repeat; color: #fff; }
  .hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 25%; transform-origin: 50% 40%; will-change: transform; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgb(13 15 18 / 0.55) 0%, rgb(13 15 18 / 0) 26%),
      linear-gradient(0deg, rgb(13 15 18 / 0.92) 0%, rgb(13 15 18 / 0.45) 42%, rgb(13 15 18 / 0.1) 70%),
      linear-gradient(90deg, rgb(13 15 18 / 0.86) 0%, rgb(13 15 18 / 0.6) 38%, rgb(13 15 18 / 0) 68%);
  }
  .hero .hero-inner { grid-template-columns: minmax(0, 1fr); }
  /* photo hero: the people stay visible next to the text, not under it */
  .hero { background-image: none; }
  .hero-media { inset: 0 0 auto 0; height: 58%; }
  .hero-media::after { background: linear-gradient(0deg, var(--color-dark) 0%, rgb(13 15 18 / 0.35) 40%, rgb(13 15 18 / 0.15) 100%); }
  .hero .hero-inner { padding-top: calc(min(100svh, 60rem) * 0.42); }
  @media (min-width: 62rem) {
    .hero-media { inset: 0 0 0 40%; height: auto; }
    .hero-media::after { background: linear-gradient(90deg, var(--color-dark) 0%, rgb(13 15 18 / 0.55) 22%, rgb(13 15 18 / 0) 50%), linear-gradient(0deg, rgb(13 15 18 / 0.75) 0%, rgb(13 15 18 / 0) 35%); }
    .hero .hero-inner { padding-top: calc(var(--header-h) + 3.5rem); }
  }
  .hero-inner { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 3.5rem) clamp(1.75rem, 1rem + 2.5vw, 3.5rem); display: grid; gap: 2.25rem; }
  .hero-copy { max-width: 50rem; width: fit-content; }
  .hero-copy > * + * { margin-top: 1.4rem; }
  .hero .eyebrow { color: rgb(255 255 255 / 0.78); }
  .hero h1 { font-size: clamp(2.9rem, 1.4rem + 5.2vw, 6.4rem); font-weight: 200; line-height: 0.98; letter-spacing: -0.045em; }
  @media (min-width: 62rem) {
    .hero { min-height: min(calc(100svh - 4.5rem), 56rem); }
    .hero .hero-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 4rem; }
    .hero .hero-proof { flex-direction: column; gap: 0.9rem; padding: 0 0 0 1.75rem; border-top: 0; border-left: 1px solid rgb(255 255 255 / 0.2); margin-bottom: 0.4rem; }
  }
  .hero h1 .line { display: block; }
  .hero h1 .line-silver > span { color: #d9dde2; -webkit-text-fill-color: transparent; background: linear-gradient(100deg, #f4f5f6 0%, #b7bcc3 40%, #eef0f2 62%, #8f959d 100%); -webkit-background-clip: text; background-clip: text; font-weight: 300; }
  .hero-lead { font-size: var(--step-1); line-height: 1.5; color: rgb(255 255 255 / 0.84); max-width: 40rem; font-weight: 300; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .hero .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.45); }
  .hero .btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); color: #fff; }
  .hero-proof { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgb(255 255 255 / 0.16); font-size: 0.875rem; color: rgb(255 255 255 / 0.78); }
  .hero-proof li { display: flex; align-items: center; gap: 0.55rem; }
  .hero-proof strong { color: #fff; font-weight: 600; }
  .hero-proof .stars { color: #f2b84b; letter-spacing: 0.08em; }
  .hero .open-status { color: #fff; font-weight: 500; }
  .hero-proof ul { display: contents; }
  .video-toggle {
    position: absolute; z-index: 2; right: clamp(1rem, 2vw, 2rem); top: calc(var(--header-h) + 1.25rem);
    width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.35); background: rgb(13 15 18 / 0.35);
    color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px);
  }
  .video-toggle:hover { border-color: #fff; }
  .video-toggle .i { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }
  .video-toggle .i-play { display: none; }
  .video-toggle[aria-pressed="true"] .i-pause { display: none; }
  .video-toggle[aria-pressed="true"] .i-play { display: block; }
  @media (max-width: 47.99rem) { .hero-proof { gap: 0.6rem 1.5rem; } }

  /* bracket frame (logo motif) around the hero copy */
  .bracket { position: relative; }
  .bracket::before, .bracket::after { content: ""; position: absolute; width: clamp(2.5rem, 2rem + 3vw, 5rem); height: clamp(2.5rem, 2rem + 3vw, 5rem); border: 0 solid var(--color-primary); pointer-events: none; }
  .bracket::before { top: -1.25rem; left: -1.25rem; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 1.1rem; }
  .bracket::after { bottom: -1.25rem; right: -1.25rem; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 1.1rem; }
  @media (max-width: 47.99rem) { .hero-copy.bracket::before { top: -1rem; left: -0.5rem; } .hero-copy.bracket::after { display: none; } }

  /* ---------- quick info card (overlaps the hero) ---------- */
  .quick { position: relative; z-index: 3; margin-top: -1px; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
  .quick-grid { display: grid; grid-template-columns: 1fr; }
  .quick-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.25rem 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; }
  .quick-item:last-child { border-bottom: 0; }
  .quick-item .i { grid-row: span 2; width: 2.5rem; height: 2.5rem; padding: 0.6rem; border-radius: 50%; background: var(--color-tint); color: var(--color-primary); stroke-width: 1.5; }
  .quick-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }
  .quick-value { font-weight: 500; }
  a.quick-item:hover .quick-value { color: var(--color-primary); }
  @media (min-width: 48rem) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-item { padding: 1.6rem 1.5rem; border-right: 1px solid var(--color-border); }
  }
  @media (min-width: 72rem) {
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
    .quick-item { border-bottom: 0; }
    .quick-item:last-child { border-right: 0; }
    .quick-item:first-child { padding-left: 0; }
  }

  /* ---------- sections ---------- */
  .section { padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
  .section-tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
  .section-tinted { background: var(--color-tint); }
  .section-head { max-width: 48rem; margin-block-end: clamp(2.5rem, 2rem + 2vw, 4rem); }
  .section-head > * + * { margin-top: 1.1rem; }
  .section-head p:not(.eyebrow) { font-size: var(--step-1); font-weight: 300; line-height: 1.55; color: var(--color-muted); }
  .head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-block-end: clamp(2.5rem, 2rem + 2vw, 4rem); }
  .head-row .section-head { margin: 0; }
  .prose { max-width: 42rem; }
  .prose > * + * { margin-top: 1.1rem; }
  .prose h2 { margin-top: 2.5rem; font-size: var(--step-2); }
  .prose h3 { margin-top: 1.75rem; font-size: var(--step-1); }
  .prose ul { padding-left: 1.1rem; }
  .prose li + li { margin-top: 0.4rem; }
  .lead { font-size: var(--step-1); font-weight: 300; line-height: 1.55; color: var(--color-muted); max-width: 44rem; }

  /* ---------- statement (KFZ) ---------- */
  .statement { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
  @media (min-width: 62rem) { .statement { grid-template-columns: 1.15fr 1fr; align-items: center; } }
  .statement-quote { font-family: var(--font-heading); font-weight: 200; font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.045em; }
  .statement-quote em { font-style: normal; color: var(--color-primary); font-weight: 400; }
  .statement-text > * + * { margin-top: 1.25rem; }
  .statement-text p { color: var(--color-muted); }
  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--color-border); }
  .facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); order: 2; }
  .facts dd { margin: 0; font-family: var(--font-heading); font-size: var(--step-3); font-weight: 200; letter-spacing: -0.04em; line-height: 1; order: 1; }
  .facts div { display: flex; flex-direction: column; gap: 0.5rem; }

  /* ---------- media frames ---------- */
  .frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-tint); }
  .frame img { width: 100%; height: 100%; object-fit: cover; }
  .frame-wide { aspect-ratio: 16 / 10; }
  .frame-43 { aspect-ratio: 4 / 3; }
  .frame-tall { aspect-ratio: 4 / 5; }
  .frame figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; max-width: calc(100% - 1.5rem); font-size: 0.75rem; letter-spacing: 0.06em; color: #fff; background: var(--color-dark); padding: 0.35rem 0.7rem; border-radius: 2px; }
  @media (max-width: 47.99rem) { .car-gallery .frame:not(:first-child) figcaption { display: none; } }
  .split { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: center; }
  @media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split-rev > :first-child { order: 2; } }
  .split-text > * + * { margin-top: 1.2rem; }
  .split-text p { color: var(--color-muted); }

  /* ---------- big tiles (Fahrzeuge / Werkstatt / eMobilität) ---------- */
  .tiles { display: grid; gap: 1rem; }
  @media (min-width: 56rem) { .tiles { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; } .tile-lg { grid-row: span 2; } }
  .tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); min-height: 22rem; color: #fff; text-decoration: none; background: var(--color-dark); isolation: isolate; }
  .tile-lg { min-height: 28rem; }
  @media (min-width: 56rem) { .tile-lg { min-height: 40rem; } }
  .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
  .tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(13 15 18 / 0.88) 0%, rgb(13 15 18 / 0.25) 55%, rgb(13 15 18 / 0.05) 100%); transition: opacity .6s var(--ease); }
  .tile:hover img { transform: scale(1.045); }
  .tile-body { position: absolute; inset: auto 0 0 0; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: 0.6rem; }
  .tile-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.75); }
  .tile h3 { font-family: var(--font-heading); font-size: var(--step-2); font-weight: 300; letter-spacing: -0.03em; }
  .tile p { color: rgb(255 255 255 / 0.82); max-width: 30rem; font-size: 0.95rem; }
  .tile-go { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
  .tile-go .i { color: #fff; width: 2.4rem; height: 2.4rem; padding: 0.6rem; border-radius: 50%; background: var(--color-primary); transition: transform .45s var(--ease-out); }
  .tile:hover .tile-go .i { transform: translateX(6px); }

  /* ---------- feature car (Fahrzeug des Monats) ---------- */
  .car { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: center; }
  @media (min-width: 62rem) { .car { grid-template-columns: 1.3fr 1fr; } }
  .car-gallery { display: grid; gap: 0.6rem; grid-template-columns: repeat(3, 1fr); }
  .car-gallery .frame:first-child { grid-column: 1 / -1; }
  .car-title { font-size: var(--step-3); }
  .car-title small { display: block; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.6rem; font-weight: 600; }
  .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 1.75rem 0; border-top: 1px solid var(--color-border); }
  .specs div { padding: 0.85rem 0; border-bottom: 1px solid var(--color-border); }
  .specs div:nth-child(odd) { padding-right: 1rem; }
  .specs dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); font-weight: 600; }
  .specs dd { margin: 0.2rem 0 0; font-weight: 500; }
  .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; }
  .price-value { font-family: var(--font-heading); font-size: var(--step-4); font-weight: 200; letter-spacing: -0.05em; line-height: 1; }
  .price-note { font-size: 0.85rem; color: var(--color-muted); }
  .fineprint { font-size: 0.8rem; color: var(--color-muted); line-height: 1.5; margin-top: 1.25rem; }

  /* ---------- services ---------- */
  .svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); border-top: 1px solid var(--color-border); border-left: 1px solid var(--color-border); }
  .svc { padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); display: grid; gap: 0.7rem; align-content: start; position: relative; background: var(--color-bg); transition: background-color .4s var(--ease); }
  .svc:hover { background: var(--color-surface); }
  .svc .i { width: 2.6rem; height: 2.6rem; color: var(--color-primary); stroke-width: 1.3; }
  .svc h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 400; }
  .svc p { font-size: 0.95rem; color: var(--color-muted); }
  .on-dark .svc { background: transparent; }
  .on-dark .svc:hover { background: rgb(255 255 255 / 0.03); }
  .brands { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
  .brands li { padding: 0.45rem 0.9rem; border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.85rem; font-weight: 500; }

  .catalogue { columns: 1; column-gap: 3rem; }
  @media (min-width: 40rem) { .catalogue { columns: 2; } }
  @media (min-width: 64rem) { .catalogue { columns: 3; } }
  .catalogue section { break-inside: avoid; margin-bottom: 2.25rem; }
  .catalogue h3 { font-size: 0.78rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-primary); padding-bottom: 0.75rem; border-bottom: 1px solid var(--color-text); margin-bottom: 0.25rem; }
  .catalogue ul { list-style: none; padding: 0; margin: 0; }
  .catalogue li { padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); display: flex; gap: 0.75rem; align-items: baseline; }
  .catalogue li::before { content: ""; width: 0.35rem; height: 0.35rem; background: var(--color-silver); border-radius: 50%; flex: none; transform: translateY(-0.15rem); }

  /* ---------- steps (main catch) ---------- */
  .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; counter-reset: step; }
  @media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
  .steps li { position: relative; padding: 2.25rem 1.5rem 2rem 0; counter-increment: step; }
  .steps li::before { content: "0" counter(step); display: block; font-family: var(--font-heading); font-weight: 200; font-size: var(--step-4); letter-spacing: -0.05em; line-height: 1; color: var(--color-silver); margin-bottom: 1rem; }
  .steps h3 { font-family: var(--font-heading); font-weight: 400; font-size: 1.25rem; margin-bottom: 0.5rem; }
  .steps p { color: var(--color-muted); font-size: 0.95rem; }
  .form-aside .steps, .split .steps { grid-template-columns: 1fr; border-top: 1px solid var(--color-border); }
  .form-aside .steps li, .split .steps li { padding: 1.1rem 0 1.1rem 3.25rem; border-bottom: 1px solid var(--color-border); }
  .form-aside .steps li::before, .split .steps li::before { position: absolute; left: 0; top: 1.05rem; font-size: 1.6rem; margin: 0; color: var(--color-primary); }
  .form-aside .steps h3, .split .steps h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
  .steps-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-border); overflow: hidden; }
  .steps li.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; padding: 0; border: 0; counter-increment: none; }
  .steps li.steps-line::before { content: none; }
  .steps-line span { position: absolute; inset: 0; background: var(--color-primary); transform-origin: left; transform: scaleX(var(--p, 1)); }

  /* ---------- promises (Baumann geprüft) ---------- */
  .promise { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: center; }
  @media (min-width: 62rem) { .promise { grid-template-columns: 0.8fr 1.6fr; } }
  .seal { width: min(16rem, 60%); height: auto; margin-inline: auto; filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.35)); }
  .promise-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); border-top: 1px solid var(--color-border); }
  .promise-grid div { padding: 1.4rem 1.5rem 1.4rem 0; border-bottom: 1px solid var(--color-border); display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.25rem 1rem; }
  .promise-grid .i { width: 2.25rem; height: 2.25rem; color: var(--color-primary); grid-row: span 2; stroke-width: 1.3; }
  .promise-grid dt { font-weight: 600; }
  .promise-grid dd { margin: 0; font-size: 0.9rem; color: var(--color-muted); }

  /* ---------- reviews ---------- */
  .rating { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
  .rating-score { font-family: var(--font-heading); font-size: var(--step-5); font-weight: 200; letter-spacing: -0.05em; line-height: 0.9; }
  .rating-stars { color: #d99a1c; font-size: 1.25rem; letter-spacing: 0.12em; }
  .rating small { display: block; color: var(--color-muted); font-size: 0.875rem; }
  .quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 2.5rem; }
  .quote { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2rem; gap: 1.5rem; }
  .quote blockquote { margin: 0; font-family: var(--font-heading); font-weight: 300; font-size: 1.2rem; line-height: 1.45; letter-spacing: -0.015em; }
  .quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: 0.6; color: var(--color-primary); font-weight: 400; margin-bottom: 0.5rem; }
  .quote figcaption { font-size: 0.85rem; }
  .review-note { font-size: 0.8rem; color: var(--color-muted); margin-top: 1.5rem; max-width: 52rem; }

  /* ---------- team ---------- */
  .team { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); border-top: 1px solid var(--color-border); }
  .member { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--color-border); display: grid; gap: 0.35rem; align-content: start; }
  .member h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 400; }
  .member .role { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; }
  .member p { font-size: 0.92rem; color: var(--color-muted); }
  .member q { font-size: 0.9rem; font-style: italic; color: var(--color-muted); }
  .timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 1px solid var(--color-border); }
  .timeline li { position: relative; padding: 0 0 2.25rem 2rem; }
  .timeline li::before { content: ""; position: absolute; left: -5px; top: 0.55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 5px var(--color-bg); }
  .timeline time { display: block; font-family: var(--font-heading); font-size: var(--step-2); font-weight: 200; letter-spacing: -0.04em; line-height: 1.1; }
  .timeline p { color: var(--color-muted); margin-top: 0.35rem; max-width: 36rem; }

  /* ---------- hours & contact ---------- */
  .contact { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); }
  @media (min-width: 62rem) { .contact { grid-template-columns: 1fr 1.15fr; } }
  .dept + .dept { margin-top: 2rem; }
  .dept h3 { font-size: 0.78rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.5rem; }
  .hours { max-width: 30rem; }
  .hours th, .hours td { padding: 0.65rem 0; }
  .hours tr.is-today { color: var(--color-primary); }
  .contact-lines { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
  .contact-lines li { display: flex; gap: 0.85rem; align-items: flex-start; }
  .contact-lines .i { color: var(--color-primary); margin-top: 0.2rem; }
  .contact-lines a { color: var(--color-text); }
  .map-facade { min-height: 26rem; border-radius: var(--radius-lg); border-color: var(--color-border); position: relative; overflow: hidden;
    background: linear-gradient(0deg, rgb(13 15 18 / 0.55), rgb(13 15 18 / 0.2)), url("/assets/img/autohaus-baumann-laatzen-800.jpg") center / cover; }
  .map-facade-inner { background: var(--color-surface); padding: 1.75rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); gap: 0.75rem; max-width: 22rem; margin: 1rem; }
  .map-facade-inner p { font-size: 0.85rem; color: var(--color-muted); }
  .map-facade iframe { min-height: 26rem; }

  /* ---------- FAQ ---------- */
  .faq { max-width: 56rem; border-top: 1px solid var(--color-border); }
  .faq summary { padding-block: 1.35rem; font-family: var(--font-heading); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.015em; }
  .faq summary::after { content: ""; width: 0.75rem; height: 0.75rem; flex: none; margin-top: 0.4rem; border-right: 1.5px solid var(--color-primary); border-bottom: 1.5px solid var(--color-primary); transform: rotate(45deg); transition: transform .35s var(--ease); }
  .faq details[open] summary::after { transform: rotate(-135deg); }
  .faq details p { padding-block-end: 1.35rem; max-width: 46rem; }

  /* ---------- sub page hero ---------- */
  .page-hero { position: relative; overflow: clip; padding-block: clamp(3.5rem, 2.5rem + 5vw, 7.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
  .page-hero.has-img { min-height: clamp(26rem, 20rem + 20vw, 40rem); display: grid; align-items: end; }
  .page-hero-bg { position: absolute; inset: 0; z-index: 0; }
  .page-hero-bg picture { display: block; height: 100%; }
  .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
  .page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(13 15 18 / 0.9) 0%, rgb(13 15 18 / 0.45) 55%, rgb(13 15 18 / 0.3) 100%), linear-gradient(90deg, rgb(13 15 18 / 0.6), transparent 70%); }
  .page-hero .container { position: relative; z-index: 1; }
  .page-hero .crumbs { margin-bottom: 2rem; }
  .page-hero h1 .line > span, .hero h1 .line > span { max-width: 100%; }
  .page-hero h1 { font-size: clamp(2.15rem, 1.4rem + 3.8vw, 5.25rem); font-weight: 200; letter-spacing: -0.045em; line-height: 1.02; max-width: 20ch; }
  .page-hero .lead { margin-top: 1.5rem; }
  .page-hero .hero-actions { margin-top: 2rem; }
  .page-hero.on-dark .lead { color: rgb(255 255 255 / 0.82); }

  .subnav { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--color-bg) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
  .subnav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .subnav a { display: block; white-space: nowrap; padding: 1rem 0.9rem; font-size: 0.875rem; font-weight: 500; color: var(--color-muted); text-decoration: none; border-bottom: 2px solid transparent; }
  .subnav a:hover { color: var(--color-text); border-bottom-color: var(--color-primary); }

  /* ---------- forms ---------- */
  .form-wrap { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); align-items: start; }
  @media (min-width: 62rem) { .form-wrap { grid-template-columns: 0.85fr 1.15fr; } .form-aside { position: sticky; top: calc(var(--header-h) + 2rem); } }
  @media (max-width: 61.99rem) { .form-first .booking-card { order: -1; } }
  .booking-card { max-width: none; border-radius: var(--radius-lg); box-shadow: var(--shadow); border-color: var(--color-border); }
  .bk-fields legend { font-weight: 300; font-size: var(--step-2); letter-spacing: -0.03em; }
  .bk-field input:not([type="checkbox"]):not([type="radio"]), .bk-field select, .bk-field textarea { border-radius: var(--radius); background: var(--color-bg); border-width: 1px; }
  .bk-chips span { border-radius: 2px; border-width: 1px; }
  .bk-group { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); margin-top: 0.5rem; }
  .bk-check-line { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
  .bk-check-line input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-primary); margin-top: 0.15rem; flex: none; }
  .checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.85rem; }
  .checklist li { display: flex; gap: 0.85rem; align-items: flex-start; }
  .checklist .i { color: var(--color-primary); margin-top: 0.2rem; stroke-width: 2; }

  /* ---------- notes / cards ---------- */
  .note { padding: 1.25rem 1.5rem; border-left: 3px solid var(--color-primary); background: var(--color-surface); font-size: 0.92rem; color: var(--color-muted); }
  .on-dark .note { background: rgb(255 255 255 / 0.04); }
  .cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
  .card { border-radius: var(--radius-lg); background: var(--color-surface); }
  .card-body { padding: 1.75rem; }
  .card-body h3 { font-family: var(--font-heading); font-weight: 400; font-size: 1.25rem; }
  .card .frame { border-radius: 0; }
  .model-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); border-top: 1px solid var(--color-border); }
  .model-list li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--color-border); font-family: var(--font-heading); font-weight: 300; font-size: 1.25rem; letter-spacing: -0.02em; }
  .model-list small { display: block; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0; color: var(--color-muted); }

  /* ---------- CTA band ---------- */
  .cta-band { position: relative; overflow: clip; padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem); }
  .cta-band .container { position: relative; z-index: 1; display: grid; gap: 2rem; }
  @media (min-width: 62rem) { .cta-band .container { grid-template-columns: 1.4fr 1fr; align-items: end; } }
  .cta-band h2 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 5.25rem); font-weight: 200; letter-spacing: -0.045em; line-height: 1.02; }
  .cta-band p { color: var(--color-dark-muted); margin-top: 1rem; max-width: 36rem; }
  .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  @media (min-width: 62rem) { .cta-actions { justify-content: flex-end; } }
  .cta-band .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.4); }
  .cta-band .btn-ghost:hover { color: #fff; border-color: #fff; background: rgb(255 255 255 / 0.06); }
  .cta-mark { position: absolute; right: -4rem; top: 50%; translate: 0 -50%; width: clamp(16rem, 30vw, 30rem); height: auto; opacity: 0.08; pointer-events: none; }
  .cta-mark path { fill: none; stroke: #fff; stroke-width: 6; }

  /* ---------- footer ---------- */
  .site-footer { background: var(--color-dark); color: var(--color-dark-muted); padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 0; border-top: 0; font-size: 0.92rem; }
  .footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
  @media (min-width: 48rem) { .footer-top { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 72rem) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
  .site-footer .wordmark { color: #fff; width: 11.5rem; margin-bottom: 1.5rem; }
  .footer-claim { color: var(--color-dark-contrast); font-family: var(--font-heading); font-weight: 300; font-size: 1.15rem; letter-spacing: -0.01em; max-width: 22rem; }
  .footer-h { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-dark-contrast); margin-bottom: 1rem; }
  .footer-links { gap: 0.55rem; }
  .footer-links a, .site-footer address a { color: var(--color-dark-muted); text-decoration: none; }
  .footer-links a:hover, .site-footer address a:hover { color: #fff; text-decoration: underline; }
  .site-footer address { line-height: 1.75; }
  .footer-hours { margin-top: 1rem; line-height: 1.6; }
  .footer-hours strong { color: var(--color-dark-contrast); font-weight: 500; }
  .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.8125rem; }
  .footer-bottom p { margin: 0; }
  .footer-bottom a { color: var(--color-dark-muted); }
  .footer-bottom a:hover { color: #fff; }

  /* ---------- mobile action bar ---------- */
  @media (max-width: 47.99rem) {
    .action-bar { background: var(--color-dark); border-top: 1px solid rgb(255 255 255 / 0.1); box-shadow: none; }
    .action-bar a { color: var(--color-dark-contrast); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
    .action-bar a:last-child { background: var(--color-primary); color: #fff; }
    .action-bar a:first-child { background: transparent; color: var(--color-dark-contrast); }
    .action-bar svg { stroke-width: 1.6; }
  }

  /* ---------- legal ---------- */
  .legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
  .legal h1 { font-size: var(--step-3); font-weight: 300; }
  .legal h2 { font-family: var(--font-heading); font-weight: 400; }
  .legal a { word-break: break-word; }

  /* ---------- 404 / thanks ---------- */
  .center-page { min-height: 60vh; display: grid; align-items: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
  .center-page h1 { font-size: var(--step-4); font-weight: 200; letter-spacing: -0.045em; }
  .center-page .stack > * + * { margin-top: 1.25rem; }

  /* =====================================================================
     MOTION – only with .motion (set in <head> when the visitor allows motion).
     Without JS or with "reduce motion" everything is simply visible.
     ===================================================================== */
  .motion [data-reveal] { opacity: 0; transform: translateY(28px); }
  .motion [data-reveal].is-in { animation: fx-up 1.1s var(--ease-out) var(--d, 0s) both; }
  .motion [data-reveal="fade"] { transform: none; }
  .motion [data-reveal="fade"].is-in { animation-name: fx-fade; }
  /* the clip sits on the image, so the observed figure keeps its full box (IntersectionObserver ignores fully clipped targets) */
  .motion [data-wipe] img { clip-path: inset(0 0 100% 0); transform: scale(1.18); }
  .motion [data-wipe].is-in img { animation: fx-wipe 1.6s var(--ease-out) var(--d, 0s) both; }
  @keyframes fx-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  @keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fx-wipe { 0% { clip-path: inset(0 0 100% 0); transform: scale(1.18); } 70% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); transform: scale(1); } }

  /* hero headline: lines rise out of a mask */
  .motion .hero h1 .line, .motion .page-hero h1 .line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .motion .hero h1 .line > span, .motion .page-hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: fx-line 1.25s var(--ease-out) var(--d, .2s) both; }
  .motion .hero-lead, .motion .hero-actions, .motion .hero-proof, .motion .page-hero .lead, .motion .page-hero .hero-actions, .motion .hero .eyebrow, .motion .page-hero .crumbs { animation: fx-up 1.2s var(--ease-out) var(--d, .7s) both; }
  .motion .hero .eyebrow, .motion .page-hero .crumbs { --d: .1s; }
  .motion .hero-actions, .motion .page-hero .hero-actions { --d: .85s; }
  .motion .hero-proof { --d: 1.05s; }
  @keyframes fx-line { from { transform: translateY(105%); } to { transform: none; } }
  .motion .hero-media video, .motion .hero-media img { animation: fx-zoom 2.6s var(--ease-out) both; }
  @keyframes fx-zoom { from { transform: scale(1.12); opacity: 0.3; } to { transform: scale(1); opacity: 1; } }
  /* the bracket corners draw themselves */
  .motion .bracket::before { animation: fx-corner-a 1.3s var(--ease-out) .55s both; }
  .motion .bracket::after { animation: fx-corner-b 1.3s var(--ease-out) .75s both; }
  @keyframes fx-corner-a { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes fx-corner-b { from { clip-path: inset(100% 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
  .motion .hero-media.is-parallax video, .motion .hero-media.is-parallax img { animation: none; transform: scale(var(--ps, 1)); transform-origin: 50% 30%; }
  .motion .steps-line span { transform: scaleX(var(--p, 0)); transition: transform .15s linear; }
  .motion .page-hero-bg img { animation: fx-zoom 2.4s var(--ease-out) both; }
}

/* the starter's reduce-motion kill switch must not stop a forced demo (?motion=1) */
@media (prefers-reduced-motion: reduce) {
  html.motion *, html.motion *::before, html.motion *::after { animation-duration: revert-layer !important; animation-iteration-count: revert-layer !important; transition-duration: revert-layer !important; }
}
