/* ============================================================
   CS Design System — 03 Chrome: navbar, hero, footer
   ============================================================ */

/* ---------- Navbar ---------- */

/* Slim bar: brand, language, an outlined Kontakt and the menu trigger. The
   navigation itself lives in the full-screen overlay below — one identity on
   every viewport. Its warm light surface keeps the identity readable over
   both the engineering model and the alternative film heroes. */
.site-nav {
    --nav-ink: var(--cs-navy);
    --nav-ink-soft: var(--cs-steel);
    --nav-accent: var(--cs-red);
    --nav-line: var(--cs-line);
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;
    background: rgba(248, 247, 243, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--cs-line);
    transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.site-nav.is-scrolled {
    box-shadow: 0 0.5rem 2rem rgba(35, 37, 77, 0.1);
}

/* The bar slims down once the page scrolls. --cs-navbar-h stays untouched:
   scroll offsets and the hero paddings depend on it. */
.site-nav.is-scrolled .site-nav__inner {
    min-height: 4.35rem;
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--cs-maxwidth);
    min-height: var(--cs-navbar-h);
    margin-inline: auto;
    /* The taller bar makes room for the larger lockup; the logo itself sits
       nearly flush so the height goes to presence, not to padding. */
    padding: 0.35rem var(--cs-gutter);
    transition: min-height 0.3s var(--ease-out);
}

/* Complete 2026 CS logo lockup (wordmark and claim are part of the SVG) */
.brand-lockup {
    display: inline-flex;
    text-decoration: none;
    line-height: 1;
    flex: none;
}

.brand-lockup img {
    height: auto;
    width: clamp(9.9rem, 13.5vw, 11.7rem);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2.2vw, 1.75rem);
}

/* Language switch: minimal DE | EN */
.site-nav__lang {
    display: inline-flex;
    align-items: center;
}

.site-nav__lang a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.25em 0.55em;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--nav-ink-soft);
    transition: color 0.2s var(--ease-out);
}

.site-nav__lang a + a {
    border-inline-start: 1px solid var(--nav-line);
}

.site-nav__lang a:hover,
.site-nav__lang a.is-active {
    color: var(--nav-accent);
}

/* Kontakt: hairline-outlined label instead of a solid block — the quiet
   register on the bar; the fill arrives on hover. */
.site-nav__contact {
    display: inline-flex;
    align-items: center;
    padding: 0.7em 1.2em;
    border: 1px solid var(--nav-ink);
    font-family: var(--cs-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--nav-ink);
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.site-nav__contact:hover {
    background: var(--cs-red);
    border-color: var(--cs-red);
    color: #fff;
}

/* Menu trigger: the word plus three bars, on every viewport. */
.site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    min-width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
    padding: 0.55rem 0.25rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--nav-ink);
}

.site-nav__toggle em {
    font-style: normal;
    font-family: var(--cs-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nav-ink);
}

.site-nav__toggle span,
.site-nav__toggle span::before,
.site-nav__toggle span::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--nav-ink);
    transition: background 0.2s var(--ease-out);
}

.site-nav__toggle span {
    position: relative;
}

.site-nav__toggle span::before,
.site-nav__toggle span::after {
    position: absolute;
    inset-inline: 0;
}

.site-nav__toggle span::before { top: -0.45rem; }
.site-nav__toggle span::after { top: 0.45rem; }

.site-nav__toggle:hover em,
.site-nav__toggle:hover span,
.site-nav__toggle:hover span::before,
.site-nav__toggle:hover span::after {
    color: var(--nav-accent);
    background: var(--nav-accent);
}

.site-nav__toggle:hover em { background: none; }

@media (max-width: 700px) {
    .site-nav__contact { display: none; }
    .site-nav__toggle em { display: none; }
}

/* ---------- Full-screen menu ---------- */

/* One navigation for every viewport: warm paper canvas, the sections as huge
   numbered display lines, Industrien unfolds its industries inline, contact
   and language at the foot. main.js makes the page behind it inert, so Tab
   stays inside without a hand-rolled focus trap. */
.site-menu {
    --menu-accent: var(--cs-orange-ink);
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: #f8f7f3;
    color: var(--cs-navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.site-menu.is-open {
    opacity: 1;
    visibility: visible;
}

/* A restrained engineering grid and warm light tie the menu to the model. */
.site-menu::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 1px 1px, rgba(47, 89, 131, 0.09) 1px, transparent 0) 0 0 / 24px 24px,
        radial-gradient(70% 120% at 88% 2%, rgba(246, 166, 20, 0.07), transparent 60%);
    pointer-events: none;
}

.site-menu::after {
    content: "";
    position: fixed;
    inset-block: 0;
    inset-inline-end: -6vw;
    width: min(46rem, 62vw);
    background: url("../Images/guide/power-ring-tracks.png") right center / contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.site-menu__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    max-width: var(--cs-maxwidth);
    margin-inline: auto;
    padding: 0.6rem var(--cs-gutter) calc(1.5rem + env(safe-area-inset-bottom));
}

.site-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--cs-navbar-h);
}

.site-menu__close {
    position: relative;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-menu__close span::before,
.site-menu__close span::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    top: 50%;
    height: 2px;
    background: var(--cs-navy);
    transition: background 0.2s var(--ease-out);
}

.site-menu__close span::before { transform: rotate(45deg); }
.site-menu__close span::after { transform: rotate(-45deg); }

.site-menu__close:hover span::before,
.site-menu__close:hover span::after { background: var(--menu-accent); }

.site-menu__nav {
    flex: 1;
    display: grid;
    align-content: center;
    padding-block: clamp(1.25rem, 4vh, 2.75rem);
}

.site-menu__list {
    /* One shared indent: the number sits in a fixed column and the sub list
       starts at the same offset, so main and sub text align at every size. */
    --menu-indent: 2.7rem;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: cs-menu;
    display: grid;
    gap: clamp(0.1rem, 0.9vh, 0.55rem);
}

.site-menu__list > li {
    margin: 0;
    padding: 0;
    counter-increment: cs-menu;
}

.site-menu__list > li::before { content: none; }

.site-menu__link {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--cs-display);
    font-size: clamp(1.5rem, 4.4vh, 2.8rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cs-navy);
    transition: color 0.2s var(--ease-out), translate 0.2s var(--ease-out);
}

.site-menu__link::before {
    content: counter(cs-menu, decimal-leading-zero) / "";
    flex: none;
    inline-size: var(--menu-indent);
    font-family: var(--cs-body);
    font-size: var(--cs-label-size);
    font-weight: 700;
    letter-spacing: var(--cs-label-track);
    color: var(--menu-accent);
}

.site-menu__link:hover {
    color: var(--menu-accent);
    translate: 0.4rem 0;
}

.site-menu__item.active > .site-menu__link,
.site-menu__item.current > .site-menu__link {
    color: var(--menu-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
}

/* Industrien: the seven industries inline, in the quiet register. */
.site-menu__sub {
    list-style: none;
    margin: 0.4rem 0 0.8rem;
    padding: 0 0 0 var(--menu-indent);
    max-width: 46rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 2.5rem;
}

.site-menu__sub li {
    margin: 0;
    padding: 0;
}

.site-menu__sub li::before { content: none; }

.site-menu__sub a {
    display: inline-flex;
    padding: 0.28rem 0;
    font-size: 1.02rem;
    text-decoration: none;
    color: var(--cs-steel);
    transition: color 0.2s var(--ease-out);
}

.site-menu__sub a:hover { color: var(--menu-accent); }

.site-menu__sub .active > a,
.site-menu__sub .current > a {
    color: var(--menu-accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Below the chrome breakpoint the industry pair folds to a single column. */
@media (max-width: 700px) {
    .site-menu__sub { grid-template-columns: 1fr; }
}

.site-menu__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2.5rem;
    border-top: 1px solid var(--cs-line);
    padding-top: 1.2rem;
}

.site-menu__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 2rem;
}

.site-menu__contact a {
    color: var(--cs-steel);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease-out);
}

.site-menu__contact a:hover { color: var(--menu-accent); }

.site-menu .site-nav__lang {
    --nav-ink-soft: var(--cs-steel);
    --nav-accent: var(--menu-accent);
    --nav-line: var(--cs-line);
}

.site-nav :focus-visible,
.site-menu :focus-visible {
    outline: 2px solid #245b8c;
    outline-offset: 4px;
}

/* Items rise into place one after the other; the reduced-motion kill in
   base.css collapses the choreography to an instant. */
.site-menu__item,
.site-menu__foot {
    opacity: 0;
    translate: 0 0.7rem;
    transition: opacity 0.35s var(--ease-out), translate 0.35s var(--ease-out);
}

.site-menu__item:nth-child(1) { --menu-delay: 40ms; }
.site-menu__item:nth-child(2) { --menu-delay: 80ms; }
.site-menu__item:nth-child(3) { --menu-delay: 120ms; }
.site-menu__item:nth-child(4) { --menu-delay: 160ms; }
.site-menu__item:nth-child(5) { --menu-delay: 200ms; }
.site-menu__item:nth-child(6) { --menu-delay: 240ms; }
.site-menu__item:nth-child(n+7) { --menu-delay: 280ms; }

.site-menu.is-open .site-menu__item,
.site-menu.is-open .site-menu__foot {
    opacity: 1;
    translate: none;
    transition-delay: var(--menu-delay, 320ms);
}

/* ---------- Hero (homepage) ---------- */

.cs-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    background: var(--cs-black);
    color: #fff;
    overflow: clip;
}

.cs-hero__stage {
    position: absolute;
    inset: 0;
    z-index: auto;
    background:
        radial-gradient(ellipse 70% 65% at 78% 42%, rgba(211, 36, 61, 0.2), transparent 68%),
        linear-gradient(145deg, #11131c 0%, #090a10 62%, #151018 100%);
}

.cs-hero__poster,
.cs-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.cs-hero__poster {
    object-fit: contain;
    object-position: 76% 48%;
    /* Keep the loading frame visually identical to the finished stage. The
       poster is the faint blueprint layer behind the WebGL model, not a
       temporary full-strength version of the former hero composition. */
    opacity: 0.08;
    filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 1.6rem rgba(246, 166, 20, 0.2));
    mix-blend-mode: screen;
    transition: opacity 0.45s var(--ease-out);
}

.cs-hero__canvas {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
}

.cs-hero__stage.is-ready .cs-hero__canvas { opacity: 1; }
.cs-hero__stage.is-ready .cs-hero__poster { opacity: 0.08; }
.cs-hero__stage.is-fallback .cs-hero__poster,
.cs-hero__stage.is-error .cs-hero__poster { opacity: 0.72; }

@media (max-width: 48rem) {
    .cs-hero__poster { object-position: 64% 35%; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-hero__poster { transition: none; }
}

/* Scroll-driven video hero: the section becomes a runway of several
   viewports, the pin stays on screen (position: sticky) and main.js maps the
   scroll progress through the runway onto the film's timeline, so scrolling
   turns the burner instead of moving the page. In the other modes the pin is
   a transparent wrapper (display: contents) and nothing changes. */
.cs-hero__pin { display: contents; }

/* Doubled class: the compact-screen rule further down sets its own
   min-height on .cs-hero and must not shorten the runway. */
.cs-hero.cs-hero--scrub {
    display: block;
    min-height: calc(var(--hero-runway, 3.5) * 100svh);
    overflow: visible;
}

.cs-hero--scrub .cs-hero__pin {
    position: sticky;
    top: 0;
    display: flex;
    align-items: flex-end;
    height: 100svh;
    overflow: clip;
}

.cs-hero--scrub .cs-hero__scrollhint::after {
    animation: cs-hero-scrub-hint 2.4s ease-in-out infinite;
}

@keyframes cs-hero-scrub-hint {
    0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.5; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-hero--scrub .cs-hero__scrollhint::after { animation: none; }
}

/* Video variant: the looping blueprint film is the whole stage. The plate
   colour equals the film's own ground (#0a0b12) so letterboxing, the poster
   frame and the first decoded frame are indistinguishable. */
.cs-hero__stage--video {
    background: #0a0b12;
}

.cs-hero__video,
.cs-hero__video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 46%;
    pointer-events: none;
}

.cs-hero__video {
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
}

/* Keep the complete rotating assembly visible on the scroll variants,
   including narrow screens, with the film above the hero copy. */
.cs-hero--scrub .cs-hero__video,
.cs-hero--scrub .cs-hero__video-poster {
    object-fit: contain;
    object-position: 50% 35%;
}

.cs-hero__stage--video.is-playing .cs-hero__video { opacity: 1; }
.cs-hero__stage--video.is-playing .cs-hero__video-poster { opacity: 0; }
.cs-hero__stage--video .cs-hero__video-poster { transition: opacity 0.6s var(--ease-out) 0.15s; }
.cs-hero__stage--video.is-static .cs-hero__video,
.cs-hero__stage--video.is-error .cs-hero__video { display: none; }

@media (max-width: 48rem) {
    .cs-hero__video,
    .cs-hero__video-poster { object-position: 72% 40%; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-hero__video,
    .cs-hero__video-poster { transition: none; }
}

/* Showreel variant: the film is composed full-bleed with its own claim and
   typography, so the stage keeps it centred and unscrimmed. The hero copy
   stays in the document for assistive tech and search; on phones the film
   becomes a 16:9 band under the navbar with the copy below it. */
.cs-hero--reel .cs-hero__video,
.cs-hero--reel .cs-hero__video-poster { object-position: 50% 50%; }

.cs-hero--reel .cs-hero__vignette {
    background: linear-gradient(to top, rgba(10, 11, 18, 0.55) 0%, transparent 18%);
}

@media (min-width: 48.001rem) {
    .cs-hero--reel .cs-hero__content {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .cs-hero--reel .cs-hero__actions { display: none; }
}

.cs-hero__toggle {
    position: absolute;
    z-index: 3;
    left: max(var(--cs-gutter), calc((100% - var(--cs-maxwidth)) / 2 + var(--cs-gutter)));
    bottom: clamp(3rem, 8vh, 6rem);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0;
    background: rgba(10, 11, 18, 0.35);
    color: #fff;
    font: 700 0.72rem/1 var(--cs-body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.cs-hero__toggle:hover {
    background: #fff;
    border-color: #fff;
    color: var(--cs-black);
}

.cs-hero__toggle:focus-visible {
    outline: 2px solid var(--cs-orange);
    outline-offset: 3px;
}

/* Two bars while playing, a triangle while paused. */
.cs-hero__toggle-icon {
    width: 0.7rem;
    height: 0.8rem;
    border-inline: 0.22rem solid currentColor;
}

.cs-hero__toggle.is-paused .cs-hero__toggle-icon {
    border: 0;
    width: 0;
    height: 0;
    border-block: 0.42rem solid transparent;
    border-inline-start: 0.7rem solid currentColor;
}

@media (max-width: 48rem) {
    .cs-hero.cs-hero--reel {
        min-height: 0;
        padding-top: calc(var(--cs-navbar-h) + 56.25vw + 4.25rem);
    }

    .cs-hero--reel .cs-hero__stage--video {
        inset: var(--cs-navbar-h) 0 auto;
        height: 56.25vw;
    }

    .cs-hero--reel .cs-hero__vignette { display: none; }

    .cs-hero__toggle {
        top: calc(var(--cs-navbar-h) + 56.25vw + 1rem);
        bottom: auto;
        left: auto;
        right: var(--cs-gutter);
        padding: 0.55rem 0.75rem;
    }
}

.cs-hero__vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(10, 11, 18, 0.94) 0%, rgba(10, 11, 18, 0.72) 42%, transparent 78%),
        linear-gradient(to top, rgba(10, 11, 18, 0.9) 0%, transparent 55%);
    pointer-events: none;
}

.cs-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--cs-maxwidth);
    margin-inline: auto;
    padding: 0 var(--cs-gutter) clamp(6rem, 15vh, 10rem);
}

.cs-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-size: clamp(0.78rem, 1.4vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cs-orange);
    margin-bottom: 1.4rem;
}

.cs-hero__kicker::before {
    content: "";
    width: 2.4em;
    height: 2px;
    background: var(--cs-orange);
}

/* The claim is the whole point of the opening screen, so it is sized to fill the
   measure rather than sit politely above the byline. */
.cs-hero__title {
    color: #fff;
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    /* Monoline regular, like the guide cover's "firing up efficiency" */
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    max-width: 15ch;
    /* At this size a hyphenated break dominates the whole plate — wrap on spaces only */
    hyphens: manual;
}

.cs-hero__title em {
    font-style: normal;
    color: var(--cs-orange);
}

.cs-hero__byline {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 300;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.2rem;
}

.cs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Vertical writing mode swaps the logical axes, so this cue is positioned and
   laid out with physical/inline directions to stay pinned bottom-right. */
.cs-hero__scrollhint {
    position: absolute;
    z-index: 3;
    right: var(--cs-gutter);
    bottom: clamp(3rem, 8vh, 6rem);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    writing-mode: vertical-rl;
}

.cs-hero__scrollhint::after {
    content: "";
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, var(--cs-orange), transparent);
    animation: cs-scrollpulse 2.2s var(--ease-out) infinite;
}

@keyframes cs-scrollpulse {
    0% { transform: scaleY(0); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: top; }
    56% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 700px) {
    .cs-hero {
        /* Give the upper model band and lower copy band reliable room even on
           short phones; taller devices still use their full viewport. */
        min-height: max(100svh, 48rem);
    }

    .cs-hero__content {
        padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
    }

    .cs-hero__kicker {
        margin-bottom: 0.9rem;
    }

    .cs-hero__title {
        max-width: 11ch;
        margin-bottom: 1rem;
        font-size: clamp(2.35rem, 11vw, 3.2rem);
    }

    .cs-hero__byline {
        max-width: 32ch;
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

    .cs-hero__scrollhint { display: none; }

    /* Deepen the scrim so the claim remains readable on the neutral stage. */
    .cs-hero__vignette {
        background: linear-gradient(to top, rgba(10, 11, 18, 0.96) 0%, rgba(10, 11, 18, 0.68) 52%, rgba(10, 11, 18, 0.4) 100%);
    }
}

/* ---------- Light engineering model hero ---------- */

/* The live model gets its own light drawing sheet. Keep this scoped to the
   WebGL variant so existing video compositions retain their dark ground. */
.cs-hero.cs-hero--model {
    --hero-paper: #f8f7f3;
    display: block;
    min-height: 100svh;
    overflow: visible;
    background: var(--hero-paper);
    color: var(--cs-navy);
}

.cs-hero--model .cs-hero__pin {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40rem;
    height: 100svh;
    overflow: clip;
    background:
        radial-gradient(ellipse at 77% 45%, rgba(215, 231, 240, 0.38), transparent 52%),
        var(--hero-paper);
}

/* Give the full CAD assembly most of the usable viewport alongside the
   vertically centered copy, while preserving its complete rotating envelope. */
.cs-hero--model .cs-hero__stage {
    inset: calc(var(--cs-navbar-h) + 6rem) 0.5vw 1rem 37%;
    background: transparent;
    /* Move the drawing alongside the copy without changing its camera size. */
    transform: translate(1rem, calc(-1 * clamp(2rem, calc(6.25vw - 3rem), 4rem)));
}

.cs-hero--model .cs-hero__poster {
    padding: 0;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
    mix-blend-mode: normal;
}

.cs-hero--model .cs-hero__stage.is-ready .cs-hero__poster { opacity: 0; }
.cs-hero--model .cs-hero__stage.is-fallback .cs-hero__poster,
.cs-hero--model .cs-hero__stage.is-error .cs-hero__poster { opacity: 1; }

.cs-hero--model .cs-hero__vignette { display: none; }

.cs-hero--model .cs-hero__content {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding: var(--cs-navbar-h) var(--cs-gutter) 3rem;
}

.cs-hero--model .cs-hero__kicker {
    color: #245b8c;
    font-size: clamp(0.72rem, 0.9vw, 0.85rem);
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.cs-hero--model .cs-hero__kicker::before {
    flex: none;
    background: var(--cs-orange);
}

.cs-hero--model .cs-hero__title {
    max-width: none;
    color: var(--cs-navy);
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    line-height: 1.04;
    white-space: nowrap;
}

.cs-hero--model .cs-hero__title em { color: var(--cs-orange-ink); }

@media (min-width: 62.001rem) {
    /* Keep the wide claim legible where a rotating flange passes its edge. */
    .cs-hero--model .cs-hero__title {
        -webkit-text-stroke: 3px var(--hero-paper);
        paint-order: stroke fill;
    }

    .cs-hero--model .cs-hero__byline {
        -webkit-text-stroke: 2px var(--hero-paper);
        paint-order: stroke fill;
    }
}

.cs-hero--model .cs-hero__byline {
    max-width: 46ch;
    color: var(--cs-steel);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.5;
}

.cs-hero--model .cs-hero__scrollhint {
    left: var(--cs-gutter);
    right: auto;
    bottom: 2rem;
    color: #536779;
    writing-mode: horizontal-tb;
}

.cs-hero--model .cs-hero__scrollhint::after {
    width: 3rem;
    height: 1px;
    background: linear-gradient(to right, #245b8c, transparent);
    animation: none;
    transform: none;
}

.cs-hero--model [data-hero-model-toggle] {
    top: auto;
    right: max(var(--cs-gutter), calc((100% - var(--cs-maxwidth)) / 2 + var(--cs-gutter)));
    bottom: 1.25rem;
    left: auto;
    min-height: 2.75rem;
    border-color: rgba(35, 37, 77, 0.45);
    background: rgba(248, 247, 243, 0.96);
    color: var(--cs-navy);
}

.cs-hero--model [data-hero-model-toggle]:hover {
    border-color: var(--cs-navy);
    background: var(--cs-navy);
    color: #fff;
}

.cs-hero--model [data-hero-model-toggle]:focus-visible { outline-color: #245b8c; }
.cs-hero--model [data-hero-model-toggle][hidden] { display: none; }

@media (max-width: 62rem) {
    .cs-hero--model .cs-hero__pin {
        display: grid;
        grid-template-rows: minmax(15rem, 1fr) auto auto;
        align-items: stretch;
        min-height: 48rem;
        padding-top: calc(var(--cs-navbar-h) + 0.5rem);
    }

    .cs-hero--model .cs-hero__stage {
        position: relative;
        inset: auto;
        min-height: 0;
        width: 100%;
        margin-inline: auto;
        transform: none;
    }

    .cs-hero--model .cs-hero__content {
        width: 100%;
        max-width: 38rem;
        margin-inline: auto;
        padding: 1rem var(--cs-gutter) 0.75rem;
    }

    .cs-hero--model .cs-hero__kicker { margin-bottom: 0.75rem; }

    .cs-hero--model .cs-hero__title {
        max-width: 15ch;
        margin-bottom: 0.9rem;
        font-size: clamp(2.25rem, 7.8vw, 3.4rem);
        white-space: normal;
    }

    .cs-hero--model .cs-hero__byline {
        max-width: 38ch;
        margin-bottom: 1.4rem;
        font-size: 1rem;
    }

    .cs-hero--model .cs-hero__scrollhint { display: none; }

    .cs-hero--model [data-hero-model-toggle] {
        position: relative;
        inset: auto;
        justify-self: start;
        margin: 0 var(--cs-gutter) max(1.25rem, env(safe-area-inset-bottom));
    }
}

/* Keep the complete model and both controls visible on shorter phones. */
@media (max-width: 62rem) and (max-height: 700px) {
    .cs-hero--model .cs-hero__pin {
        min-height: 100svh;
        grid-template-rows: minmax(9rem, 1fr) auto auto;
    }

    .cs-hero--model .cs-hero__content {
        padding-block: 0.5rem 0.4rem;
    }

    .cs-hero--model .cs-hero__kicker {
        margin-bottom: 0.45rem;
        font-size: 0.65rem;
        line-height: 1.35;
    }

    .cs-hero--model .cs-hero__title {
        margin-bottom: 0.55rem;
        font-size: clamp(1.8rem, 6.5vw, 2.5rem);
        line-height: 1.06;
    }

    .cs-hero--model .cs-hero__byline {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .cs-hero--model .cs-hero__actions .btn {
        min-height: 2.75rem;
        padding-block: 0.7em;
    }
}

/* Let very short landscape screens grow naturally with their content. */
@media (max-width: 62rem) and (max-height: 450px) {
    .cs-hero--model .cs-hero__pin {
        height: auto;
        grid-template-rows: minmax(12rem, 36svh) auto auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-hero--model .cs-hero__scrollhint::after { animation: none; }
}

/* ---------- Footer ---------- */

.site-footer {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: var(--cs-black);
    color: rgba(255, 255, 255, 0.78);
    margin-top: auto;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset-inline-end: -4rem;
    top: 50%;
    width: clamp(16rem, 28vw, 22rem);
    aspect-ratio: 1;
    translate: 0 -50%;
    background: url("../Images/guide/power-ring-tracks.png") center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.site-footer__inner {
    position: relative;
    z-index: 2;
    max-width: var(--cs-maxwidth);
    margin-inline: auto;
    padding: clamp(3rem, 6vw, 5rem) var(--cs-gutter) 2rem;
}

/* Closing CTA — the guide's contact page (p.96): the claim stacked in solid
   amber bars with the last line flipped to red, action beside it. */
/* Two calm columns: the claim bars own the left edge; the action and the
   guide-cover lockup own the right, sharing the box's right inset as their
   axis. The bars span both rows, so the action sits on the first bar's line
   and the lockup settles at the bars' foot instead of below them. */
.site-footer__cta {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: clamp(1.5rem, 3vw, 2.2rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer__cta > .btn {
    grid-area: 1 / 2;
    justify-self: end;
    align-self: start;
    /* Optical centre on the first claim bar: half of bar box (1.57em of the
       title size) minus button box (0.95rem text + 0.85em pads + 2px
       borders ≈ 2.82rem). Goes negative once the bars shrink — clamp to
       top-flush. */
    margin-top: max(0rem, calc((1.57 * clamp(1.5rem, 3vw, 2.3rem) - 2.82rem) / 2));
}

.site-footer__cta-title {
    grid-area: 1 / 1 / 3 / 2;
    margin: 0;
    font-family: var(--cs-display);
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--cs-black);
}

/* Each bar is its own line with a ragged right edge, as printed. Should a line
   still wrap on a very narrow screen, `clone` repeats the padding per line. */
.site-footer__cta-title .cta-bar {
    display: block;
    width: fit-content;
    padding: 0.14em 0.5em 0.18em;
    margin-bottom: 0.28em;
    background: var(--cs-amber);
    color: var(--cs-black);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.site-footer__cta-title .cta-bar:last-child { margin-bottom: 0; }

.site-footer__cta-title .cta-bar--red {
    background: var(--cs-red);
    color: #fff;
}

/* Clean red edge accent — no baked-in guide text */
.site-footer::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: var(--cs-red);
    z-index: 1;
    pointer-events: none;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.2fr 1.15fr 0.85fr 0.85fr;
    gap: clamp(1.75rem, 3vw, 3rem);
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand-lockup img { width: 11.5rem; }

.site-footer__tagline {
    margin-top: 1.2rem;
    max-width: 34ch;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
    font-family: var(--cs-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

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

.site-footer__nav li {
    margin: 0 0 0.55rem;
    padding: 0;
}

.site-footer__nav li::before { content: none; }

.site-footer__nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.site-footer__nav a:hover { color: var(--cs-orange); }

.site-footer__contact-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.7rem;
    margin-bottom: 1.2rem;
}

.site-footer__contact-heading h2 { margin-bottom: 0; }

.site-footer__contact .site-footer__contact-claim {
    margin: 0;
    color: var(--cs-orange);
    font-family: var(--cs-display);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.site-footer__contact p { margin: 0 0 0.55rem; }
.site-footer__contact a { color: #fff; }
.site-footer__contact a:hover { color: var(--cs-orange); }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.6rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.site-footer__bottom ul {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__bottom li { margin: 0; padding: 0; }
.site-footer__bottom li::before { content: none; }

.site-footer__bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.site-footer__bottom a:hover { color: var(--cs-orange); }

.site-footer__social {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__social li { margin: 0; padding: 0; }
.site-footer__social li::before { content: none; }

.site-footer__social a {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
    color: var(--cs-black);
    border-color: var(--cs-orange);
    background: var(--cs-orange);
}

@media (max-width: 900px) {
    .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .site-footer__top { grid-template-columns: 1fr; }
}

/* Guide-cover lockup inside the CTA box: the "firing up efficiency" line art
   from CS_Guide_DE p.1 sits beneath the action, end-anchored so its foot
   lines up with the last claim bar rather than drifting below the box. */
.site-footer__claim-art {
    grid-area: 2 / 2;
    justify-self: end;
    align-self: end;
    width: clamp(14rem, 21vw, 20rem);
    height: auto;
    opacity: 0.9;
}

/* Single column: the claim keeps the left axis and the action answers it
   directly beneath; the lockup steps aside to the right edge as a closing
   signature — under the bars it would read as a fourth claim line and
   double the brand lockup that follows just below the box. */
@media (max-width: 900px) {
    .site-footer__cta {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .site-footer__cta-title { grid-area: auto; }

    .site-footer__cta > .btn {
        grid-area: 2 / 1;
        justify-self: start;
    }

    .site-footer__claim-art {
        grid-area: 3 / 1;
        justify-self: end;
        width: clamp(10rem, 38vw, 13rem);
    }
}
