/* ============================================================
   CS Design System — 04 Content blocks
   ============================================================ */

/* The legacy `mask_banner` opener rendered its own plum-washed slab with a
   lowercased title. It now reuses the page-hero plate, so every page in the site
   opens with the same device — see "Page hero" further down. */

/* ---------- Focus Box (brand element: primary colors only) ---------- */

.focus-box {
    position: relative;
    overflow: clip;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.8rem, 3.5vw, 3rem);
    background: var(--cs-surface);
    border: 2px solid var(--cs-red);
}

.focus-box__content,
.focus-box__metric {
    position: relative;
    z-index: 1;
}

/* Every variant keeps the red frame: amber on the light canvas is too weak to
   read as a frame, and the guide reserves red for the Focus Box outline. */
.focus-box--energy,
.focus-box--innovation,
.focus-box--technology { border-color: var(--cs-red); }

.focus-box::before {
    content: "";
    position: absolute;
    top: -2px;
    inset-inline-start: -2px;
    width: 1.1rem;
    height: 1.1rem;
    background: var(--cs-red);
}


/* Red label chip, as on the guide's product spreads ("Brennstoffe" / "Merkmale") */
.focus-box__kicker {
    display: inline-block;
    font-size: var(--cs-kicker-size);
    font-weight: 700;
    letter-spacing: var(--cs-kicker-track);
    text-transform: uppercase;
    color: #fff;
    background: var(--cs-red);
    padding: 0.45em 0.8em;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.focus-box--energy .focus-box__kicker {
    background: var(--cs-amber);
    color: var(--cs-black);
}

.focus-box__title {
    font-size: clamp(1.6rem, 2.6vw, 2.6rem);
    margin-bottom: 1rem;
}

.focus-box__copy {
    color: var(--cs-navy);
    max-width: 62ch;
}

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

.focus-box__metric {
    text-align: end;
    padding-inline-start: 2rem;
    border-inline-start: 2px solid var(--cs-line);
}

.focus-box__value {
    display: block;
    font-family: var(--cs-display);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1;
    color: var(--cs-red);
}

.focus-box--energy .focus-box__value { color: var(--cs-orange); }

.focus-box__unit {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-steel);
    margin-top: 0.4rem;
}

.focus-box__link { margin-top: 1.4rem; }

/* The dotted Power Ring sits with its hub exactly on the corner, so the visible
   part is a clean quarter of the ring. Any other offset crops the undulating
   lobes mid-wave and the motif reads as a smear rather than a ring. */
.focus-box__ring {
    --ring-size: clamp(16rem, 30vw, 26rem);
    position: absolute;
    inset-inline-end: calc(var(--ring-size) / -2);
    bottom: calc(var(--ring-size) / -2);
    width: var(--ring-size);
    aspect-ratio: 1;
    background: url("../Images/guide/power-ring-energy.png") no-repeat center / contain;
    opacity: 0.55;
    pointer-events: none;
}

.focus-box--technology .focus-box__ring {
    background-image: url("../Images/guide/power-ring-technology.png");
}

.focus-box--innovation .focus-box__ring {
    background-image: url("../Images/guide/power-ring-innovation.png");
}

@media (max-width: 700px) {
    .focus-box { grid-template-columns: 1fr; }
    .focus-box__metric {
        text-align: start;
        padding-inline-start: 0;
        border-inline-start: 0;
        border-top: 2px solid var(--cs-line);
        padding-top: 1.2rem;
    }
    .focus-box__ring { display: none; }
}

/* ---------- Page hero (subpage opener) ---------- */

/* The guide opens every section with a desaturated photograph carrying the title in
   solid knockout blocks (p.36). A flat dark slab is not a brand device — the plate is,
   so the page's own signature photo runs full-bleed here instead of in a small frame
   further down. */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    width: 100vw;
    margin-inline-start: calc(50% - 50vw);
    /* The navbar is fixed, so content already starts at the top of the page and
       only needs padding to clear it — a negative margin would crop the band. */
    padding-top: calc(var(--cs-navbar-h) + clamp(3rem, 7vw, 6rem));
    padding-bottom: clamp(3rem, 6vw, 5rem);
    min-height: clamp(23rem, 42vw, 34rem);
    display: flex;
    align-items: flex-end;
    background: var(--cs-black);
    color: #fff;
}

/* Starts below the fixed navbar. Running it to the top of the page put the most
   valuable part of every plate — the horizon, the faces — behind an opaque white bar. */
.page-hero__media {
    position: absolute;
    inset: var(--cs-navbar-h) 0 0;
    z-index: -2;
}

/* Greyscale with the contrast pulled back: the red title blocks are the only
   saturated thing allowed on this plate. */
/* Focus above centre by default: the plates are cropped hard to a letterbox, and on
   the group photos a centred crop took everyone's head off. Photos that need another
   band — the team line-up, whose faces sat right where the title block lands — carry
   their own --plate-focus from the element. */
.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% var(--plate-focus, 32%);
    /* Lifted above 1: several plant plates are underexposed at source and went to
       near-black here. The scrim below keeps the type safe on the bright ones. */
    filter: grayscale(1) contrast(1.02) brightness(1.12);
}

/* Subtle depth as the opener leaves the viewport. Scroll-driven and transform-
   only on an absolutely positioned layer — zero layout cost; engines without
   scroll timelines keep the static plate. Scaled from the top edge, not the
   centre: the centred zoom hid the top 4% of every plate at rest, which is
   exactly where the faces sit on the group photos. 1.04 from the top covers
   the -4% travel with nothing cropped until the visitor actually scrolls. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .page-hero__media img {
            transform-origin: 50% 0;
            scale: 1.04;
            animation: cs-hero-plate-drift linear both;
            animation-timeline: view(block 0% 100%);
        }
    }
}

@keyframes cs-hero-plate-drift {
    from { translate: 0 0; }
    to { translate: 0 -4%; }
}

/* The Metallurgie opener ships mirrored from stock — the CS logo on the
   helmet reads backwards. Flipping the plate here restores it; transform is
   free because the drift animation rides translate/scale, not transform.
   (Both languages render the default-language uid in the body id.) */
#page_774 .page-hero__media img {
    transform: scaleX(-1);
}

/* Scrim anchored bottom-left where the type sits, so a bright sky in the top-right
   of a plant photo still reads as a photo rather than being flattened away. */
.page-hero::before {
    content: "";
    position: absolute;
    inset: var(--cs-navbar-h) 0 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(20, 21, 31, 0.8) 0%, rgba(20, 21, 31, 0.34) 52%, rgba(20, 21, 31, 0.14) 100%),
        radial-gradient(85% 120% at 0% 100%, rgba(20, 21, 31, 0.55), transparent 60%);
    pointer-events: none;
}

/* Thin inset rule, as on the guide's full-bleed opener spreads */
.page-hero::after {
    --frame-gap: clamp(0.85rem, 1.6vw, 1.5rem);
    content: "";
    position: absolute;
    inset: calc(var(--cs-navbar-h) + var(--frame-gap)) var(--frame-gap) var(--frame-gap);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.page-hero__inner {
    width: 100%;
    max-width: var(--cs-maxwidth);
    margin-inline: auto;
    padding-inline: var(--cs-gutter);
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.15rem;
    /* Bright plates (the refinery sky) leave this line floating — the shadow carries it
       without needing a heavier scrim over the whole photo. */
    text-shadow: 0 1px 12px rgba(20, 21, 31, 0.85);
}

/* The guide prefixes its running heads with an arrow rather than a rule */
.page-hero__eyebrow::before {
    content: "\2192";
    font-size: 1.15em;
    letter-spacing: 0;
    color: var(--cs-orange);
}

/* Each wrapped line gets its own solid block — `clone` is what makes the padding
   repeat per line instead of only at the very start and end of the run. */
.page-hero__title {
    font-family: var(--cs-display);
    /* The guide knocks these lines out in FS Sinclair Regular, not a bold cut */
    font-weight: 400;
    font-size: clamp(1.85rem, 4.2vw, 3.3rem);
    line-height: 1.42;
    letter-spacing: -0.005em;
    text-transform: none;
    color: #fff;
    margin: 0;
    max-width: 20ch;
    text-wrap: balance;
    /* The knockout blocks make a hyphenated break read as two separate words, so this
       plate wraps on spaces only — overflow-wrap still saves a word wider than the plate. */
    hyphens: manual;
}

/* Red on every variant: navy blocks vanished into the greyscale plate, and the guide
   only ever knocks this type out of red or orange. */
.page-hero__title span {
    background: var(--cs-red);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0.1em 0.4em 0.16em;
}

/* Utility pages (imprint, privacy, downloads, newsletter) open shorter than a section
   page — their content, not the plate, is the point. Not much shorter, though: these
   photographs are 3:1 banner crops, and at 19rem only the middle 45% of one survived,
   so a composed product shot arrived looking like an accidental slice of pipework. */
.page-hero--banner {
    min-height: clamp(15rem, 30vw, 25rem);
    padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

.page-hero--banner .page-hero__title {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}

@media (max-width: 48rem) {
    .page-hero { min-height: clamp(20rem, 66vw, 26rem); }
    .page-hero--banner { min-height: clamp(13rem, 40vw, 17rem); }
    .page-hero::after { display: none; }
    .page-hero__title { line-height: 1.36; }

    /* Only a shallow strip of plate shows above the title here, so the crop has to
       sit higher still to keep faces in frame. Elements that set their own focus keep
       it — the offset below only shifts the default. */
    .page-hero__media img { object-position: 50% var(--plate-focus, 24%); }
}

/* ---------- Node feature (section intro) ---------- */

/* The photo moved up into the hero plate, so this block is a pure standfirst:
   opening sentence as a lead, the rest as support copy at reading measure. */
.node-feature__copy {
    color: var(--cs-steel);
    max-width: 72ch;
}

.node-feature__copy > p:first-child {
    font-family: var(--cs-display);
    font-size: clamp(1.3rem, 2.1vw, 1.9rem);
    line-height: 1.32;
    color: var(--cs-navy);
    max-width: 44ch;
    margin-bottom: 1.1rem;
}

/* Red hairline picking up the hero blocks, so the standfirst stays tied to the plate */
.node-feature__copy > p:first-child::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    background: var(--cs-red);
    margin-top: 1.1rem;
}

.node-feature__link { margin-top: 1.4rem; }

/* The Power Ring is decorative only: on wide screens it sits to the right of the
   standfirst and may bleed softly into its background. */
.frame-node-feature {
    position: relative;
    overflow: clip;
}

.frame-node-feature::before {
    --ring-size: clamp(42rem, 72vw, 72rem);
    content: "";
    position: absolute;
    z-index: 0;
    /* Show only the ring's left-hand fan; its hub remains at the right edge. */
    inset-block: 0;
    inset-inline-end: 0;
    width: calc(var(--ring-size) * 0.52);
    background: url("../Images/guide/power-ring-greyscale.png") no-repeat left center / var(--ring-size) var(--ring-size);
    /* Dissolve the crop before it meets the section's top and bottom edges. */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    opacity: 0.18;
    pointer-events: none;
}

/* Energy/Performance keeps the same neutral treatment, only with a lower crop. */
.frame-node-feature--energy::before {
    --ring-size: clamp(46rem, 78vw, 76rem);
    background-position: left 62%;
    opacity: 0.2;
}

.frame-node-feature > * {
    position: relative;
    z-index: 1;
}

/* Single column leaves no clear margin for it to sit in, so it would print straight
   through the standfirst */
@media (max-width: 60rem) {
    .frame-node-feature::before { display: none; }
}

/* ---------- Focus feature (editorial with 2 images) ---------- */

.focus-feature {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.focus-feature__kicker {
    display: inline-block;
    font-size: var(--cs-kicker-size);
    font-weight: 700;
    letter-spacing: var(--cs-kicker-track);
    text-transform: uppercase;
    color: #fff;
    background: var(--cs-red);
    padding: 0.45em 0.8em;
    line-height: 1.25;
    margin-bottom: 1.1rem;
}

.focus-feature__copy { max-width: 58ch; }
.focus-feature__link { margin-top: 1.2rem; }

.focus-feature__visuals {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.2rem;
    align-items: end;
}

.focus-feature__media {
    position: relative;
    margin: 0;
}

.focus-feature__media img { width: 100%; object-fit: cover; }
.focus-feature__media--primary img { aspect-ratio: 3 / 4; }
.focus-feature__media--secondary img { aspect-ratio: 1 / 1; }

.focus-feature__media figcaption {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cs-steel);
}

.focus-feature__focus-frame {
    position: absolute;
    inset-inline-start: 1rem;
    bottom: 1rem;
    background: var(--cs-surface);
    border-inline-start: 4px solid var(--cs-red);
    padding: 0.7em 1em;
    line-height: 1.15;
}

.focus-feature__focus-frame strong {
    display: block;
    font-family: var(--cs-display);
    font-size: 1.7rem;
    color: var(--cs-red);
}

.focus-feature__focus-frame span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cs-navy);
}

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

/* ---------- Teaser cards ---------- */

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.teaser-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--cs-surface);
    text-decoration: none;
    color: var(--cs-ink);
    border: 1px solid var(--cs-line);
    transition: border-color 0.25s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.teaser-card:hover {
    border-color: var(--cs-red);
    transform: translateY(-0.3rem);
    box-shadow: var(--cs-shadow-soft);
    color: var(--cs-ink);
}

.teaser-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 0.9rem;
    height: 0.9rem;
    background: var(--cs-red);
    z-index: 2;
}

.teaser-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
    background: var(--cs-navy);
}

.teaser-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.teaser-card:hover .teaser-card__media img { transform: scale(1.05); }

.teaser-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.4rem 1.4rem 1.6rem;
    flex: 1;
}

.teaser-card__title {
    font-size: clamp(1.35rem, 1.8vw, 1.7rem);
    margin: 0;
}

.teaser-card__text {
    color: var(--cs-steel);
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.teaser-card__more {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cs-red);
}

.teaser-card__more::after {
    content: " →";
}

/* ---------- Process section ---------- */

/* Three children — copy, plate, facts band — on a two-track grid. Copy and
   plate share row 1, and the facts band closes the section across the full
   width in row 2. Keeping the band out of the copy column is what stops it
   reading as a boxed sidebar widget: the columns above stay a clean
   text-against-plate spread, and every section ends on the same horizontal
   spec band regardless of how tall its copy runs.

   Every second section mirrors the two tracks (plate left, copy right). The
   track widths stay identical in mirror image, so the copy measure and the
   plate band never change — only the side. Engines without :nth-child(… of …)
   keep the uniform copy-left layout. */
.process-section {
    display: grid;
    /* The copy track *is* the measure, so the distance from the last word to the
       plate is the grid gap and nothing else. Sizing this track in fr while
       capping the copy inside it left 35px of slop that read as a second, wider
       gutter and pushed the plate away from the text it belongs to. The 55% keeps
       the track from taking the measure out of a narrow window and leaving the
       plate a 260px sliver: from ~1120px up the measure binds, below it the two
       tracks just share the width. */
    grid-template-columns: minmax(0, min(var(--cs-measure), 55%)) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(2rem, 4vw, 3rem);
    row-gap: clamp(1.8rem, 3.5vw, 2.75rem);
    max-width: var(--cs-maxwidth);
    margin-inline: auto;
    padding-inline: var(--cs-gutter);
    padding-block: calc(var(--cs-section) / 1.6);
    border-top: 1px solid var(--cs-line);
    scroll-margin-top: calc(var(--cs-navbar-h) + 1rem);
}

.process-section:first-of-type { border-top: 0; }

.process-section__content { grid-area: 1 / 1; }
.process-section__media { grid-area: 1 / 2; }
.process-section__facts { grid-row: 2; grid-column: 1 / -1; }

.process-section:nth-child(even of .process-section) {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(var(--cs-measure), 55%));
}

.process-section:nth-child(even of .process-section) .process-section__content { grid-area: 1 / 2; }
.process-section:nth-child(even of .process-section) .process-section__media { grid-area: 1 / 1; }

/* Without a plate there is no second track to hold open: one readable column
   instead of a full-width heading over a narrow body. (After the alternation
   rules on purpose — same specificity class, source order decides.) */
.process-section:not(:has(.process-section__media)) {
    grid-template-columns: minmax(0, 46rem);
}

/* The process number is a section-level running head, so it carries the
   guide's red bar — the panel below stays the quiet register. */
.process-section__label {
    display: inline-block;
    font-size: var(--cs-kicker-size);
    font-weight: 700;
    letter-spacing: var(--cs-kicker-track);
    text-transform: uppercase;
    color: #fff;
    background: var(--cs-red);
    padding: 0.45em 0.9em 0.45em 0.8em;
    line-height: 1.25;
    margin-bottom: 1.1rem;
}

.process-section h2,
.process-section h3 {
    margin-bottom: 1rem;
    max-width: 30ch;
    /* Long process names ("Power-to-X – NH3 off-gas incineration") used to
       strand one word on the second line; balancing keeps the two lines even. */
    text-wrap: balance;
}

.process-section__copy { max-width: var(--cs-measure); }

/* Align the visible FS Sinclair digits, including their side bearing and
   baseline descent, to equal left/bottom insets. Keep the original outline;
   the narrow dark shadow makes it readable on white technical drawings too. */
.process-section__index {
    --process-index-inset: clamp(1.5rem, 2.8vw, 2rem);
    position: absolute;
    inset-inline-start: calc(var(--process-index-inset) - 0.061em);
    bottom: calc(var(--process-index-inset) - 0.242em);
    padding: 0;
    font-family: var(--cs-display);
    font-weight: 700;
    line-height: 1;
    font-size: clamp(4.5rem, 7.5vw, 7.5rem);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--process-overlay-color, rgba(255, 255, 255, 0.42));
    filter: drop-shadow(0 0 0.65px rgba(10, 11, 18, 0.95))
            drop-shadow(0 0 0.65px rgba(10, 11, 18, 0.95));
    pointer-events: none;
    user-select: none;
}

/* Benefits and product list are one specification band, not a boxed sidebar —
   the guide pairs them under every process description, and its own data pages
   (p.44 register) set them as open hairline tables, not filled cards. So no
   surface, no outline: top and bottom hairlines let the band sit in the page,
   and the quiet register stays (one steel-caps label voice, hairline dividers,
   no chips, bullets or corner marks — the section's red "Prozess" label above
   remains the only accent nearby). Benefits keep the first row, products the
   row below, both hanging off one shared label column like a spec sheet. */
.process-section__facts {
    position: relative;
    border-block: 1px solid var(--cs-line);
}

.process-section__bullets,
.process-section__products {
    display: grid;
    grid-template-columns: minmax(8rem, 10.5rem) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 3rem);
    align-items: baseline;
    padding-block: 1.3rem;
}

.process-section__products {
    border-top: 1px solid var(--cs-line);
}

.process-section__products span {
    color: var(--cs-ink);
    font-weight: 400;
    line-height: 1.5;
    hyphens: auto;
}

.process-section__products strong,
.process-section__bullets strong {
    font-size: var(--cs-label-size);
    font-weight: 700;
    letter-spacing: var(--cs-label-track);
    text-transform: uppercase;
    color: var(--cs-steel);
}

.process-section__bullets ul {
    list-style: none;
    margin: 0;
    padding: 0;
    /* However many benefits the editor writes, they share the row equally;
       vertical hairlines live on the items so the count stays flexible. */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}

.process-section__bullets li {
    position: relative;
    padding: 0;
    padding-inline-end: clamp(1.1rem, 2vw, 1.9rem);
    margin: 0;
    color: var(--cs-ink);
    font-weight: 400;
    line-height: 1.5;
    hyphens: auto;
}

/* Hairlines only BETWEEN columns: an underline beneath the label row would
   make it a table header; without it the label stays a voice, not a border. */
.process-section__bullets li + li {
    border-inline-start: 1px solid var(--cs-line);
    padding-inline-start: clamp(1.1rem, 2vw, 1.9rem);
}

.process-section__bullets li::before { content: none; }

.process-section__media {
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Pinned to the section's top line, not centred: kicker, headline and
       plate share one edge, and the leftover height pools quietly below the
       caption. The centred version split it above AND below, which left the
       plate floating mid-column with a dead corner over it. */
    align-self: start;
}

/* One predictable plate format matches the editor's 3:2 photograph crop.
   Product cutouts remain complete inside the same frame. */
.process-section__media a {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

/* Thin inset rule, as on the guide's full-bleed opener spreads — gives every
   plate its frame and survives the hover zoom untouched. */
.process-section__media a::after {
    content: "";
    position: absolute;
    inset: clamp(0.6rem, 1.4vw, 1rem);
    border: 1px solid var(--process-overlay-color, rgba(255, 255, 255, 0.35));
    pointer-events: none;
}

/* Same outline and frame treatment, with a readable grey on white artwork. */
.process-section__media--overlay-dark {
    --process-overlay-color: rgba(82, 89, 105, 0.8);
}
.process-section__media--overlay-dark .process-section__index {
    filter: none;
}

.process-section__media img {
    display: block;
    transition: scale 0.5s var(--ease-out);
}

/* Match the fixed crop in the editor without further zoom or parallax. */
.process-section__media--cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Preserve approved photographic compositions such as the VARISPRAY detail. */
.process-section__media--original a {
    aspect-ratio: clamp(1.05, calc(var(--plate-w, 4) / var(--plate-h, 3)), 1.6);
}

.process-section__media--original img {
    width: 100%;
    height: auto;
}

/* Cutouts and renders float on a dark plate: navy-deep ground, a heat halo
   behind the product, and the dotted Power Ring bleeding past the corner —
   the same device the menu and footer carry. */
.process-section__media--dark a {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(85% 72% at 50% 60%, rgba(246, 166, 20, 0.24), rgba(211, 36, 61, 0.12) 48%, transparent 72%),
        radial-gradient(120% 90% at 82% 8%, var(--cs-ember), transparent 60%),
        var(--cs-navy-deep);
}

.process-section__media--dark a::before {
    content: "";
    position: absolute;
    width: 92%;
    aspect-ratio: 1;
    inset-inline-end: -28%;
    top: -32%;
    background: url("../Images/guide/power-ring-tracks.png") center / contain no-repeat;
    opacity: 0.38;
}

/* Never upscale: the % cap binds for the 2200px cutouts, the ×1.5-native px
   cap binds for the small legacy trio — blowing those up is what made the old
   plates look cheap. */
.process-section__media--dark img {
    position: relative;
    width: auto;
    height: auto;
    max-width: min(90%, calc(var(--plate-w, 1200) * 1.5px));
    max-height: min(82%, calc(var(--plate-h, 800) * 1.5px));
    object-fit: contain;
    filter: drop-shadow(0 1.6rem 3rem rgba(10, 11, 18, 0.55));
}

.process-section__media--dark a:hover img { scale: 1.04; }

/* White-background product images keep their complete proportions and the
   same breathing room above and below, including on narrow screens. */
.process-section__media--product a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: #fff;
}

.process-section__media--product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Captions describe the frame in a full phrase, so caps and wide tracking
   (fine for short labels) would only slow them down. */
.process-section__media figcaption {
    margin-top: 0.7rem;
    padding-inline-start: 0.7rem;
    border-inline-start: 2px solid var(--cs-red);
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--cs-steel);
}

/* One column: the explicit placements above would otherwise keep conjuring a
   second track for the plate to sit in. DOM order is copy, plate, facts, which is
   the order they should stack in. The mirrored rules carry the same specificity,
   so the resets repeat them verbatim. */
@media (max-width: 900px) {
    .process-section,
    .process-section:nth-child(even of .process-section) {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1.8rem;
    }

    .process-section__content,
    .process-section__facts,
    .process-section__media,
    .process-section:nth-child(even of .process-section) .process-section__content,
    .process-section:nth-child(even of .process-section) .process-section__media {
        grid-area: auto;
    }

    /* The band folds back into a stack: labels above their content, benefits
       as hairlined rows again — side-by-side cells have no room here. */
    .process-section__bullets,
    .process-section__products {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.6rem;
        padding-block: 1.15rem;
    }

    .process-section__bullets ul {
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }

    .process-section__bullets li {
        padding: 0.55em 0;
    }

    .process-section__bullets li + li {
        border-inline-start: 0;
        padding-inline-start: 0;
        border-top: 1px solid var(--cs-line);
    }

    .process-section__index { font-size: 4rem; }
}

/* ---------- Process rail (JS-built anchor nav) ----------
   Slim numbered rail in the left margin on pages with three or more anchored
   process sections. main.js builds it only from 1500px up, where the margin
   outside the content column has room for it; the media query catches
   resizes after build. Quiet register: steel numerals, hairline spine, the
   red marker is the only accent. */
.process-rail {
    position: fixed;
    top: 50%;
    translate: 0 -50%;
    left: max(1rem, calc((100vw - var(--cs-maxwidth)) / 2 - 4.5rem));
    z-index: 10;
}

.process-rail ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}

.process-rail li::before { content: none; }

.process-rail a {
    display: block;
    padding: 0.32rem 0.7rem;
    font-size: var(--cs-label-size);
    font-weight: 700;
    letter-spacing: var(--cs-label-track);
    color: var(--cs-steel);
    text-decoration: none;
    border-inline-start: 2px solid var(--cs-line);
    transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.process-rail a:hover { color: var(--cs-ink); }

.process-rail a[aria-current="true"] {
    color: var(--cs-ink);
    border-inline-start-color: var(--cs-red);
}

/* The rail is fixed while the underlying page alternates between paper and
   navy bands. main.js detects the real surface behind the rail so its quiet
   steel register can become a high-contrast white register only when needed. */
.process-rail--on-dark a {
    color: rgba(255, 255, 255, 0.68);
    border-inline-start-color: rgba(255, 255, 255, 0.5);
}

.process-rail--on-dark a:hover,
.process-rail--on-dark a:focus-visible,
.process-rail--on-dark a[aria-current="true"] {
    color: #fff;
}

.process-rail a:focus-visible {
    outline: 2px solid var(--cs-orange);
    outline-offset: 2px;
}

@media (max-width: 1499px) {
    .process-rail { display: none; }
}

/* ---------- Milestones ---------- */

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.milestone-card {
    background: var(--cs-surface);
    border-top: 4px solid var(--cs-red);
    padding: 1.6rem;
}

.milestone-card__date {
    font-family: var(--cs-display);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    color: var(--cs-red);
    line-height: 1;
    margin-bottom: 0.8rem;
}

.milestone-card__text { color: var(--cs-ink); }
.milestone-card__text p:last-child { margin-bottom: 0; }

/* ---------- Stats row ---------- */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.stat-item {
    border-inline-start: 4px solid var(--cs-red);
    padding-inline-start: 1.2rem;
}

.stat-item__value {
    display: block;
    font-family: var(--cs-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    color: var(--cs-navy);
}

.stat-item__label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-steel);
}

/* ---------- Home news ---------- */

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.home-news__item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--cs-surface);
    padding: 1.6rem;
    border-top: 4px solid var(--cs-red);
}

.home-news__item--technology { border-top-color: var(--cs-turquoise); }
.home-news__item--innovation { border-top-color: var(--cs-orange); }

.home-news__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-steel);
}

.home-news__item h3 { font-size: 1.4rem; margin: 0; }
.home-news__copy { color: var(--cs-steel); font-size: 1rem; flex: 1; }
.home-news__copy p:last-child { margin-bottom: 0; }

.home-news__link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cs-red);
}

/* ---------- Dark section variant ---------- */

.section-dark {
    background: var(--cs-navy-deep);
    color: rgba(255, 255, 255, 0.85);
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
/* Kicker bars flip to orange/ink on dark surfaces — handled in base.css */
.section-dark .stat-item { border-inline-start-color: var(--cs-orange); }
.section-dark .stat-item__value { color: #fff; }
.section-dark .stat-item__label { color: rgba(255, 255, 255, 0.6); }

/* ---------- FSC textmedia ---------- */

/* FSC frame headers */
.frame > .frame-container > header,
.frame > .frame-container > .frame-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.frame > .frame-container > header h2,
.frame > .frame-container > header h3 {
    margin-bottom: 0;
    max-width: 26ch;
}

.frame > .frame-container > header .subheader {
    margin-top: 0.6rem;
    color: var(--cs-steel);
    font-size: 1.05rem;
    max-width: 52ch;
}

.ce-textpic,
.ce-textmedia {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.ce-gallery { margin: 0; }

/* Image beside text (FSC imageorient 25/26) */
@media (min-width: 48rem) {
    .ce-textpic.ce-intext.ce-right,
    .ce-textpic.ce-intext.ce-left {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
        align-items: start;
    }

    .ce-textpic.ce-intext.ce-right > .ce-gallery { grid-area: 1 / 2; }
    .ce-textpic.ce-intext.ce-right > .ce-bodytext { grid-area: 1 / 1; }

    .ce-textpic.ce-intext.ce-left {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    }

    .ce-textpic.ce-intext.ce-left > .ce-gallery { grid-area: 1 / 1; }
    .ce-textpic.ce-intext.ce-left > .ce-bodytext { grid-area: 1 / 2; }
}

/* For the "beside text" variants FSC puts the heading inside the bodytext, which sits
   after the gallery in source order — stacked, that pushed the page title below the
   image. Copy always leads. */
@media (max-width: 47.999rem) {
    .ce-textpic.ce-intext > .ce-bodytext { order: 1; }
    .ce-textpic.ce-intext > .ce-gallery { order: 2; }
}

.ce-gallery .ce-row {
    display: grid;
    gap: clamp(1rem, 2vw, 1.75rem);
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.ce-gallery .ce-row:last-child { margin-bottom: 0; }

.ce-gallery[data-ce-columns="2"] .ce-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ce-gallery[data-ce-columns="3"] .ce-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ce-gallery[data-ce-columns="4"] .ce-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 62rem) {
    .ce-gallery[data-ce-columns="3"] .ce-row,
    .ce-gallery[data-ce-columns="4"] .ce-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 34rem) {
    .ce-gallery[data-ce-columns="2"] .ce-row,
    .ce-gallery[data-ce-columns="3"] .ce-row,
    .ce-gallery[data-ce-columns="4"] .ce-row { grid-template-columns: minmax(0, 1fr); }
}

.ce-gallery figure.image { margin: 0; }

.ce-gallery figure.image a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--cs-line);
}

/* Non-linked images have no wrapper to carry the frame */
.ce-gallery figure.image:not(:has(a)) img {
    border: 1px solid var(--cs-line);
}

/* Uniform boxes so mixed-aspect sources form a tidy grid; contained so
   technical renders keep their legends and lance tips */
.ce-gallery img,
.ce-textmedia .image img,
.ce-textpic .image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--cs-surface);
    transition: transform 0.6s var(--ease-out);
}

.ce-gallery figure.image a:hover img { transform: scale(1.04); }

/* A single image beside text has no siblings to line up with, so it keeps its
   own proportions instead of being letterboxed into the grid ratio */
.ce-textpic.ce-intext .ce-gallery[data-ce-images="1"] img {
    aspect-ratio: auto;
    height: auto;
}

.ce-gallery figcaption {
    margin-top: 0.7rem;
    padding-inline-start: 0.7rem;
    border-inline-start: 2px solid var(--cs-red);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--cs-steel);
}

/* A lone image should read as an editorial figure, not a full-bleed banner */
.ce-gallery[data-ce-images="1"] {
    max-width: 48rem;
}

.ce-gallery[data-ce-images="1"] img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Product renders read better uncropped on their own backdrop */
.ce-gallery--contain img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--cs-black);
    padding: 0.5rem;
}

.ce-bodytext > *:last-child { margin-bottom: 0; }

/* ---------- Legal register (layout 1) ---------- */

/* Imprint and privacy policy are long runs of "label, then value" — as a single
   measure-wide column they left two thirds of the screen empty and the reader had to
   scroll past 17 sections to find the one they wanted. Setting the heading beside its
   text turns the page into the hairline register the guide uses for data (p.44), and
   the headings become scannable down one edge.

   Auto-placement does the grouping: every heading is pinned to column one and every
   block of copy to column two, so a heading followed by three paragraphs keeps those
   three stacked beside it and the next heading starts a fresh row. */
.frame-layout-1 .ce-bodytext {
    display: grid;
    grid-template-columns: minmax(11rem, 17rem) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 4vw, 4rem);
    max-width: 62rem;
}

.frame-layout-1 .ce-bodytext > h2,
.frame-layout-1 .ce-bodytext > h3 {
    grid-column: 1;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-navy);
    margin: 0;
    padding-top: 1.15rem;
}

.frame-layout-1 .ce-bodytext > p,
.frame-layout-1 .ce-bodytext > ul,
.frame-layout-1 .ce-bodytext > ol,
.frame-layout-1 .ce-bodytext > table {
    grid-column: 2;
    margin: 0 0 0.75rem;
    max-width: 60ch;
}

/* The hairline is drawn on the heading and on the first block beside it, so the rule
   reads as one line across both columns without an extra element per section. */
.frame-layout-1 .ce-bodytext > h2,
.frame-layout-1 .ce-bodytext > h2 + p,
.frame-layout-1 .ce-bodytext > h2 + ul,
.frame-layout-1 .ce-bodytext > h3,
.frame-layout-1 .ce-bodytext > h3 + p {
    border-top: 1px solid var(--cs-hairline, rgba(35, 37, 77, 0.16));
    padding-top: 1.15rem;
}

.frame-layout-1 .ce-bodytext > h2:first-child,
.frame-layout-1 .ce-bodytext > h2:first-child + p {
    border-top: 0;
    padding-top: 0;
}

/* Last block of a section carries the gap to the next hairline. */
.frame-layout-1 .ce-bodytext > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 48rem) {
    .frame-layout-1 .ce-bodytext {
        grid-template-columns: minmax(0, 1fr);
    }

    .frame-layout-1 .ce-bodytext > h2,
    .frame-layout-1 .ce-bodytext > h3,
    .frame-layout-1 .ce-bodytext > p,
    .frame-layout-1 .ce-bodytext > ul,
    .frame-layout-1 .ce-bodytext > ol,
    .frame-layout-1 .ce-bodytext > table {
        grid-column: 1;
    }

    /* Stacked, the rule above the copy would sit between a heading and its own text. */
    .frame-layout-1 .ce-bodytext > h2 + p,
    .frame-layout-1 .ce-bodytext > h2 + ul,
    .frame-layout-1 .ce-bodytext > h3 + p {
        border-top: 0;
        padding-top: 0;
    }

    .frame-layout-1 .ce-bodytext > h2,
    .frame-layout-1 .ce-bodytext > h3 {
        margin-top: 0.6rem;
        margin-bottom: 0.5rem;
    }
}

/* ---------- GLightbox brand overrides ---------- */

.gslide-description {
    background: var(--cs-navy-deep);
}

.glightbox-clean .gdesc-inner,
.glightbox-modern .gdesc-inner {
    padding: 1.2rem 1.4rem;
}

.gslide-title {
    font-family: var(--cs-display);
    color: #fff;
}

.gslide-desc {
    font-family: var(--cs-body);
    color: rgba(255, 255, 255, 0.8);
}

.gclose, .gnext, .gprev {
    color: var(--cs-orange);
}

/* ---------- Fact strip (red band) ---------- */

.red-band .fact-strip {
    padding-block: 0;
    border: 0;
}

.red-band .fact-strip__item {
    border-inline-start-color: rgba(255, 255, 255, 0.28);
}

.red-band .fact-strip__number {
    color: #fff;
}

.red-band .fact-strip__label {
    color: rgba(255, 255, 255, 0.95);
}

.red-band .fact-strip__sublabel {
    color: rgba(255, 255, 255, 0.75);
}

.red-band .fact-strip__title {
    color: #fff;
    font-family: var(--cs-display);
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 400;
    line-height: 1.15;
    text-transform: none;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.fact-strip__title {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.fact-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: clamp(1.2rem, 3vw, 2.5rem);
    padding-block: clamp(1.8rem, 3.5vw, 3rem);
    border-top: 1px solid var(--cs-line);
    border-bottom: 1px solid var(--cs-line);
}

.fact-strip__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-inline-start: clamp(1rem, 2vw, 1.6rem);
    border-inline-start: 1px solid var(--cs-line);
}

.fact-strip__item:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.fact-strip__number { text-wrap: balance; }

/* The JS count-up rewrites the digits ~70 times in 1.2s; tabular figures keep
   the strip from jittering while the numbers run. */
.fact-strip__number,
.stat-item__value { font-variant-numeric: tabular-nums; }

.fact-strip__number {
    font-family: var(--cs-display);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 400;
    line-height: 1;
    color: var(--cs-red);
}

.fact-strip__unit {
    font-size: 0.55em;
    margin-left: 0.1em;
}

.fact-strip__label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    color: var(--cs-navy);
}

.fact-strip__sublabel {
    font-size: 0.9rem;
    color: var(--cs-steel);
}

@media (max-width: 1024px) {
    .fact-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .fact-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Card grid ---------- */

.card-grid__title { margin-bottom: 0; }
.card-grid__intro { color: var(--cs-steel); }

.card-grid {
    display: grid;
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

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

@media (max-width: 1024px) {
    .card-grid--cols-3,
    .card-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .card-grid--cols-2,
    .card-grid--cols-3,
    .card-grid--cols-4 { grid-template-columns: 1fr; }
}

/* A lone card would sit orphaned in a multi-column track, so it turns into a
   full-width horizontal feature instead */
@media (min-width: 48rem) {
    .card-grid:not(:has(.card-grid__card:nth-child(2))) .card-grid__card {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: stretch;
    }

    .card-grid:not(:has(.card-grid__card:nth-child(2))) .card-grid__media {
        flex: 0 0 46%;
    }

    .card-grid:not(:has(.card-grid__card:nth-child(2))) .card-grid__media img {
        height: 100%;
        aspect-ratio: auto;
    }

    .card-grid:not(:has(.card-grid__card:nth-child(2))) .card-grid__body {
        justify-content: center;
        padding: clamp(1.75rem, 3vw, 2.75rem);
    }

    .card-grid:not(:has(.card-grid__card:nth-child(2))) .card-grid__text {
        max-width: 52ch;
    }
}

/* Odd counts leave their last grid slot empty on purpose: a double-width
   trailing card reads as a hierarchy that does not exist. */

.card-grid__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    overflow: hidden;
    transition: border-color 0.25s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.card-grid__card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: var(--cs-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
    z-index: 3;
}

.card-grid--industry .card-grid__card::before { background: var(--cs-orange); }

.card-grid__card:hover {
    border-color: rgba(211, 36, 61, 0.35);
    transform: translateY(-0.35rem);
    box-shadow: var(--cs-shadow-lift);
}

.card-grid__card:hover::before { transform: scaleX(1); }

.card-grid__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
    background: var(--cs-navy);
    position: relative;
}

.card-grid__media a { display: block; height: 100%; }

.card-grid__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.card-grid__card:hover .card-grid__media img { transform: scale(1.06); }

.card-grid__media--contain {
    background: #fff;
}

.card-grid__media--contain a {
    /* Four-column cards have shallow image frames. Keep the whole product
       visible without shrinking it behind the large process-plate padding. */
    padding: clamp(0.5rem, 1vw, 0.75rem);
}

.card-grid__media--contain img {
    object-fit: contain;
}

.card-grid__card:hover .card-grid__media--contain img {
    transform: none;
}

.card-grid__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem 1.5rem 1.6rem;
    flex: 1;
}

.card-grid__kicker {
    font-size: 0.72rem;
    font-weight: 700;
    /* Tighter tracking than the display eyebrows: these carry spec values such as
       "AD2000 / ASME VIII" that must survive a narrow card column. */
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--cs-red);
    /* Reserve two lines. Spec kickers regularly wrap, and an unreserved wrap
       drops that card's title a line below its neighbours. The text sits at the
       bottom of that box so a one-line kicker still hugs its title. */
    display: flex;
    align-items: flex-end;
    min-height: 2.4em;
}

/* Ink-orange on the light cards: pure brand orange fails contrast on white.
   The dark tile variant below restates the bright orange, where it reads. */
.card-grid--industry .card-grid__kicker { color: var(--cs-orange-ink); }

.card-grid__card-title {
    font-family: var(--cs-display);
    font-size: clamp(1.05rem, 1.25vw, 1.2rem);
    line-height: 1.25;
    color: var(--cs-navy);
    margin: 0;
    overflow-wrap: break-word;
    hyphens: auto;
    /* reserve two lines so every card body starts on the same baseline */
    min-height: 2.5em;
}

.card-grid__text {
    color: var(--cs-steel);
    font-size: 0.975rem;
    line-height: 1.6;
    /* Body copy needs more air from the title than the title does from its kicker */
    margin: 0.35rem 0 0;
}

.card-grid__more {
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cs-red);
    text-decoration: none;
}

.card-grid__more::after {
    content: " →";
    display: inline-block;
    transition: transform 0.25s var(--ease-out);
}

.card-grid__card:hover .card-grid__more::after { transform: translateX(0.25em); }

/* Tile variant — image-led teasers where the copy lives on the hub page and
   the tile only has to name the industry and invite the click. */
.card-grid--tile .card-grid__card {
    border: 0;
    background: var(--cs-black);
}

.card-grid--tile .card-grid__media {
    aspect-ratio: 3 / 4;
    grid-area: 1 / 1;
}

.card-grid--tile .card-grid__card {
    display: grid;
    grid-template-areas: "stack";
}

.card-grid--tile .card-grid__media,
.card-grid--tile .card-grid__body {
    grid-area: stack;
}

/* Deep enough that an orange kicker still reads over a bright plant photo */
.card-grid--tile .card-grid__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 11, 18, 0.96) 0%, rgba(10, 11, 18, 0.78) 32%, rgba(10, 11, 18, 0.34) 62%, rgba(10, 11, 18, 0.06) 100%);
    pointer-events: none;
}

/* Seven industry tiles in a four-up grid: the eighth slot stays empty. */

.card-grid--tile .card-grid__body {
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 1.4rem 1.4rem 1.5rem;
    pointer-events: none;
}

.card-grid--tile .card-grid__kicker {
    color: var(--cs-orange);
    min-height: 0;
}

.card-grid--tile .card-grid__card-title {
    color: #fff;
    min-height: 0;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
}

.card-grid--tile .card-grid__text { display: none; }

.card-grid--tile .card-grid__more {
    margin-top: 0.5rem;
    padding-top: 0;
    color: #fff;
    pointer-events: auto;
}

.card-grid--tile .card-grid__card:hover {
    transform: none;
    box-shadow: none;
}

.card-grid--tile .card-grid__card::before { z-index: 3; }

/* ---------- Contact cards ----------
   People are not numbered process steps, so this variant opts out of the
   counter plate and leads with the role instead. */
.card-grid--people .card-grid__card {
    border: 1px solid var(--cs-line);
    border-top: 3px solid var(--cs-red);
    box-shadow: none;
}

.card-grid--people .card-grid__card:hover {
    transform: none;
    box-shadow: var(--cs-shadow-soft);
}

.card-grid--people .card-grid__card::after { content: none; }

.card-grid--people .card-grid__body {
    padding: 1.5rem 1.6rem 1.6rem;
    gap: 0.3rem;
}

.card-grid--people .card-grid__kicker {
    color: var(--cs-steel);
    min-height: 0;
    order: 2;
}

.card-grid--people .card-grid__card-title {
    order: 1;
    min-height: 0;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.card-grid--people .card-grid__text {
    order: 3;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--cs-line);
    font-size: 0.9rem;
    color: var(--cs-steel);
}

.card-grid--people .card-grid__text a {
    color: var(--cs-navy);
    text-decoration-color: var(--cs-red);
}

/* Text-only grids (service scope, capability lists) have no photography to
   carry them, so a numbered plate does the work instead of a bare rectangle. */
.card-grid:not(.card-grid--people):not(:has(.card-grid__media)) {
    counter-reset: cs-card;
}

.card-grid:not(.card-grid--people):not(:has(.card-grid__media)) .card-grid__card {
    counter-increment: cs-card;
    border: 0;
    background: var(--cs-surface);
    box-shadow: var(--cs-shadow-soft);
}

.card-grid:not(.card-grid--people):not(:has(.card-grid__media)) .card-grid__body {
    padding: clamp(1.6rem, 2.6vw, 2.1rem);
}

.card-grid:not(.card-grid--people):not(:has(.card-grid__media)) .card-grid__body::before {
    content: counter(cs-card, decimal-leading-zero);
    font-family: var(--cs-display);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1;
    color: var(--cs-red);
    margin-bottom: 0.9rem;
}

.card-grid:not(.card-grid--people):not(:has(.card-grid__media)) .card-grid__card-title {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    min-height: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cs-line);
}

.card-grid:not(.card-grid--people):not(:has(.card-grid__media)) .card-grid__card:hover .card-grid__card-title {
    border-bottom-color: var(--cs-red);
}

/* ---------- Patent list ---------- */

.patent-list__title { margin-bottom: 0; }
.patent-list__intro { color: var(--cs-steel); }

.patent-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.6rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 1000px) {
    .patent-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.patent-list__item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-top: 3px solid var(--cs-line);
    padding: 1.5rem 1.6rem 1.6rem;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.patent-list__item:hover {
    border-color: rgba(211, 36, 61, 0.3);
    border-top-color: var(--cs-red);
    box-shadow: var(--cs-shadow-soft);
}

/* Granted patents carry the brand focus frame */
.patent-list__item--highlight {
    border-top-color: var(--cs-red);
}

.patent-list__item--highlight::before {
    content: "";
    position: absolute;
    top: -3px;
    inset-inline-start: -1px;
    width: 0.85rem;
    height: 0.85rem;
    background: var(--cs-red);
}

/* Name and registration sit on separate lines: the three-up grid is too narrow
   to keep them side by side, and stacking gives every card the same baseline. */
.patent-list__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--cs-line);
}

.patent-list__name {
    font-family: var(--cs-display);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--cs-navy);
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.12em;
    line-height: 1;
    max-width: 100%;
}

/* Official Wort-Bild-Marke from CS Marke PDFs / brand guide */
.patent-list__mark {
    display: block;
    width: auto;
    max-width: min(100%, 17rem);
    height: clamp(1.65rem, 2.4vw, 2.15rem);
    object-fit: contain;
    object-position: left center;
}

.patent-list__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35em;
    height: 1.35em;
    padding: 0 0.08em;
    background: var(--cs-red);
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
}

/* Remaining letters: CS orange tiles (guide patents spread) */
.patent-list__letter--rest {
    background: var(--cs-orange);
    color: #fff;
}

.patent-list__word {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.patent-list__detail {
    font-size: var(--cs-label-size);
    font-weight: 700;
    letter-spacing: var(--cs-label-track);
    text-transform: uppercase;
    color: var(--cs-steel);
}

/* Only granted patents get the brand red on the registration line */
.patent-list__item--highlight .patent-list__detail {
    color: var(--cs-red);
}

.patent-list__description {
    color: var(--cs-steel);
    font-size: 0.925rem;
    line-height: 1.6;
    margin: 0.9rem 0 0;
}

/* ---------- Central innovation records ---------- */

.innovation-list {
    padding-block: var(--cs-section);
}

.innovation-list__inner,
.job-list__inner,
.chatbot {
    max-width: var(--cs-maxwidth);
    margin-inline: auto;
    padding-inline: var(--cs-gutter);
}

.innovation-list__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.6rem);
}

.innovation-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.2rem, 2vw, 1.7rem);
    border-top: 3px solid var(--cs-red);
    background: var(--cs-surface);
    box-shadow: var(--cs-shadow-soft);
}

.innovation-card__mark {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    margin: 0 0 1.2rem;
}

.innovation-card__title {
    margin: 0 0 0.6rem;
    font-family: var(--cs-display);
    font-size: 1.2rem;
    color: var(--cs-navy);
}

.innovation-card__teaser,
.innovation-card__detail {
    color: var(--cs-steel);
    font-size: 0.94rem;
}

.innovation-card__link {
    display: inline-flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .innovation-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---------- Careers ---------- */

.job-list { padding-block: var(--cs-section); }
.job-list__intro { max-width: 65ch; color: var(--cs-steel); }
.job-list__items { display: grid; gap: 1rem; margin-top: 2rem; }

.job-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--cs-line);
    border-inline-start: 4px solid var(--cs-red);
    background: #fff;
}

.job-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.job-card__head :is(h2, h3) { margin: 0; font-weight: 600; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--cs-steel); }
.job-card__index { font-family: var(--cs-display); font-size: 1.8rem; color: var(--cs-red); }
.job-card__details { border-top: 1px solid var(--cs-line); padding-top: 1rem; }
.job-card__details summary { width: fit-content; cursor: pointer; font-weight: 700; color: var(--cs-red); }
.job-card__detail-content { display: grid; gap: 1rem; padding-top: 1.2rem; }
.job-card__detail-content :is(h3, h4) { margin-bottom: 0.5rem; }

.job-list__empty {
    margin-top: 2rem;
    padding: clamp(1.4rem, 3vw, 2.5rem);
    border-inline-start: 4px solid var(--cs-orange);
    background: var(--cs-surface);
}

/* ---------- Chatbot ---------- */

.chatbot {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding-block: var(--cs-section);
}

.chatbot__panel {
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-top: 4px solid var(--cs-red);
    background: var(--cs-surface);
}

.chatbot__privacy { color: var(--cs-steel); }
.chatbot__status { font-weight: 700; }
.chatbot__frame iframe { display: block; width: 100%; min-height: 40rem; margin-top: 1.5rem; border: 0; background: #fff; }

@media (max-width: 800px) {
    .chatbot { grid-template-columns: 1fr; }
    .chatbot__frame iframe { min-height: 34rem; }
}

/* ---------- Scroll reveal (JS opt-in; content visible without JS) ---------- */

html.cs-reveal .teaser-card,
html.cs-reveal .milestone-card,
html.cs-reveal .stat-item,
html.cs-reveal .home-news__item,
html.cs-reveal .card-grid__card,
html.cs-reveal .fact-strip__item,
html.cs-reveal .patent-list__item,
html.cs-reveal .process-section__content,
html.cs-reveal .process-section__media,
html.cs-reveal .process-section__facts,
html.cs-reveal .service-card {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.6s var(--ease-out) var(--reveal-delay, 0ms),
        transform 0.6s var(--ease-out) var(--reveal-delay, 0ms);
}

html.cs-reveal .is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.cs-reveal .teaser-card,
    html.cs-reveal .milestone-card,
    html.cs-reveal .stat-item,
    html.cs-reveal .home-news__item,
    html.cs-reveal .card-grid__card,
    html.cs-reveal .fact-strip__item,
    html.cs-reveal .patent-list__item,
    html.cs-reveal .process-section__content,
    html.cs-reveal .process-section__media,
    html.cs-reveal .process-section__facts,
    html.cs-reveal .service-card {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Quote band → black band ---------- */

.quote-band,
.black-band {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-inline-start: calc(50% - 50vw);
    padding-block: clamp(3.5rem, 8vw, 7rem);
    background: var(--cs-black);
    color: #fff;
}

.quote-band::before,
.black-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0) 0 0 / 20px 20px,
        radial-gradient(75% 130% at 6% 92%, var(--cs-ember-strong), transparent 58%);
    pointer-events: none;
}

.quote-band__inner,
.black-band__inner {
    position: relative;
    z-index: 1;
    max-width: var(--cs-maxwidth);
    margin-inline: auto;
    padding-inline: var(--cs-gutter);
}

/* Bands between .frame neighbours get their air from the frames' own padding;
   only after the dark hero do two plates meet edge to edge, so give that seam
   a canvas break of the same section rhythm. */
.cs-hero + .quote-band,
.cs-hero + .black-band {
    margin-top: var(--cs-section);
}

/* Claims sit one step below the hero headline: large enough to carry the band,
   small enough that the regular weight reads as confidence, not shouting. */
.quote-band__quote,
.black-band__title {
    font-family: var(--cs-display);
    font-style: normal;
    font-size: clamp(1.6rem, 3.2vw, 2.7rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.005em;
    text-transform: none;
    margin: 0;
    max-width: 22ch;
    color: #fff;
}

.quote-band__quote em,
.black-band__title em,
.quote-band__quote .accent {
    font-style: normal;
    color: var(--cs-red);
}

.quote-band__attribution,
.black-band__attribution {
    display: block;
    margin-top: 1.4rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Legacy variant classes map to black band */
.quote-band--red,
.quote-band--navy,
.quote-band--turquoise,
.quote-band--blueprint {
    background: var(--cs-black);
}

/* Blueprint variant (Engineering): the guide's technical wireframe as a
   watermark on the right half of the band. The asset is flattened onto the
   band's own black, so `screen` passes the ground through and only the line
   work lightens; the mask keeps the claim's text zone clean. One band per
   site carries this — a texture repeated stops being a texture. */
.quote-band--blueprint::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../Images/guide/engineering-drawing-white.webp") right center / min(72rem, 92%) auto no-repeat;
    mix-blend-mode: screen;
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(to right, transparent 20%, #000 55%);
    mask-image: linear-gradient(to right, transparent 20%, #000 55%);
    pointer-events: none;
}

/* The guide's signature statement device: every wrapped line of the claim sits
   in its own solid bar ("Efficiency is not an add-on. It's at the core.",
   p.24/29/31). The template wraps the quote in one span; `clone` repeats the
   bar per line. An <em> flips its segment to the amber bar with ink type. */
.quote-band__quote:has(.quote-band__bars) {
    line-height: 1.5;
    max-width: 24ch;
}

.quote-band__bars {
    background: var(--cs-red);
    color: #fff;
    padding: 0.1em 0.42em 0.16em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.quote-band__quote .quote-band__bars em,
.quote-band__quote .quote-band__bars .accent {
    font-style: normal;
    background: var(--cs-amber);
    color: var(--cs-black);
    padding: 0.1em 0.32em 0.16em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* ---------- Technology stack card ---------- */

.tech-stack__card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 20px 20px,
        radial-gradient(70% 110% at 92% 4%, var(--cs-ember-strong), transparent 58%),
        linear-gradient(155deg, #191a33 0%, #14151f 55%, #101119 100%);
    box-shadow: var(--cs-shadow);
    padding: clamp(1.75rem, 4vw, 3.25rem);
}

@media (min-width: 62rem) {
    .tech-stack__card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }
}

.tech-stack__content {
    position: relative;
    z-index: 1;
}

/* Orange running-head bar with ink type, as on the guide's dark map spread */
.tech-stack__eyebrow {
    display: inline-block;
    font-family: var(--cs-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cs-black);
    background: var(--cs-orange);
    padding: 0.45em 0.8em;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.tech-stack__title {
    font-family: var(--cs-display);
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    font-weight: 400;
    line-height: 1.18;
    color: #fff;
    margin: 0 0 0.9rem;
}

.tech-stack__subtitle {
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.6;
    max-width: 40ch;
    margin: 0;
}

.tech-stack__layers {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    counter-reset: layer;
}

.tech-stack__layer { margin: 0; padding: 0; counter-increment: layer; }
.tech-stack__layer::before { content: none; }

.tech-stack__layer-link::before {
    content: "0" counter(layer);
    font-family: var(--cs-display);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    flex: none;
}

.tech-stack__layer-link {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.05rem 1.25rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-inline-start: 3px solid var(--cs-red);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.tech-stack__layer-link:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(0.35rem);
    color: #fff;
}

.tech-stack__layer--orange .tech-stack__layer-link { border-inline-start-color: var(--cs-orange); }
.tech-stack__layer--cyan .tech-stack__layer-link { border-inline-start-color: var(--cs-turquoise); }
/* The guide's accent set has no light blue; the pale yellow carries the fourth
   step and still reads against the dark card. */
.tech-stack__layer--blue .tech-stack__layer-link,
.tech-stack__layer--yellow .tech-stack__layer-link { border-inline-start-color: var(--cs-yellow); }

.tech-stack__layer-label {
    flex: 1;
    letter-spacing: 0.01em;
}

.tech-stack__layer-link::after {
    content: "→";
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.tech-stack__layer-link:hover::after {
    color: #fff;
    transform: translateX(0.25em);
}

/* ---------- World map (animated standorte) ---------- */

.world-map {
    position: relative;
    background: var(--cs-black);
    color: #fff;
    padding: var(--cs-section) 0;
    overflow: hidden;
}

.world-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0) 0 0 / 20px 20px,
        radial-gradient(80% 80% at 78% 42%, var(--cs-ember), transparent 60%);
    pointer-events: none;
}

.world-map__inner {
    position: relative;
    z-index: 1;
    max-width: var(--cs-maxwidth);
    margin-inline: auto;
    padding-inline: var(--cs-gutter);
    display: grid;
    gap: 2rem;
}

.world-map__title {
    color: #fff;
    margin: 0.8rem 0 1rem;
    max-width: 16ch;
}

.world-map__intro {
    color: rgba(255,255,255,0.75);
    max-width: 48ch;
}

.world-map__hq {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.world-map__hq li {
    padding: 0 0 0 1rem;
    border-inline-start: 2px solid rgba(246, 166, 20, 0.55);
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.world-map__location {
    transition: border-color 0.18s ease, color 0.18s ease;
}

.world-map__location:hover,
.world-map__location:focus-within {
    border-color: var(--cs-orange);
}

.world-map__location:focus-visible {
    outline: 2px solid var(--cs-orange);
    outline-offset: 0.3rem;
}

.world-map__hq li::before { content: none; }

.world-map__hq strong {
    display: block;
    color: #fff;
    font-weight: 700;
}

.world-map__hq-role {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cs-orange);
    margin-bottom: 0.2rem;
}

.world-map__hq-address {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.62);
}

.world-map__hq a {
    display: block;
    width: fit-content;
    color: rgba(255, 255, 255, 0.82);
}

.world-map__stage {
    position: relative;
    aspect-ratio: 1350 / 837;
    width: 100%;
}

.world-map__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Pins sit on a dense red dot field, so they need a dark collar to separate */
.world-map__pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 0.8rem;
    height: 0.8rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    outline: 3px solid var(--cs-black);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(246, 166, 20, 0.5);
    animation: map-pulse 2.8s ease-out infinite;
    text-decoration: none;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease, transform 0.18s ease;
}

.world-map__pin[role="img"] { cursor: help; }

.world-map__pin--hq {
    width: 1rem;
    height: 1rem;
    background: var(--cs-orange);
    animation-duration: 2.2s;
}

.world-map__pin--hq::after {
    content: "";
    position: absolute;
    inset: -0.55rem;
    border: 2px solid var(--cs-orange);
    border-radius: 50%;
    opacity: 0.7;
    animation: map-ring 2.2s ease-out infinite;
}

.world-map__pin.is-highlighted {
    z-index: 4;
    background: var(--cs-orange);
    outline-color: #fff;
    box-shadow: 0 0 0 0.4rem rgba(246, 166, 20, 0.32), 0 0 1.4rem 0.5rem rgba(246, 166, 20, 0.28);
    transform: translate(-50%, -50%) scale(1.45);
    animation: none;
}

.world-map__pin--hq.is-highlighted::after {
    opacity: 0.95;
    transform: scale(1.35);
    animation: none;
}

.world-map__pin:nth-child(3) { animation-delay: 0.2s; }
.world-map__pin:nth-child(4) { animation-delay: 0.5s; }
.world-map__pin:nth-child(5) { animation-delay: 0.8s; }
.world-map__pin:nth-child(6) { animation-delay: 1.1s; }
.world-map__pin:nth-child(7) { animation-delay: 1.4s; }
.world-map__pin:nth-child(8) { animation-delay: 1.7s; }

@keyframes map-pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 166, 20, 0.55); }
    70% { box-shadow: 0 0 0 0.9rem rgba(246, 166, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 166, 20, 0); }
}

@keyframes map-ring {
    0% { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

.world-map__tooltip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, calc(-100% - 0.8rem));
    background: var(--cs-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35em 0.7em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.world-map__tooltip.is-on { opacity: 1; }

.world-map__regions-wrap {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.world-map__regions-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.world-map__regions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.2rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.world-map__regions li { display: grid; padding: 0; margin: 0; }
.world-map__regions li::before { content: none; }
.world-map__regions a { color: #fff; }
.world-map__regions span { color: rgba(255, 255, 255, 0.58); }

@media (min-width: 900px) {
    .world-map__inner {
        grid-template-columns: 0.9fr 1.4fr;
        grid-template-rows: auto auto;
        align-items: start;
    }
    .world-map__stage { grid-row: 1 / span 2; grid-column: 2; }
    .world-map__regions-wrap { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .world-map__location,
    .world-map__pin,
    .world-map__pin--hq::after {
        animation: none;
        transition: none;
    }
}

/* ---------- Download index (fluid_styled_content uploads) ---------- */

/* Each document on /downloads is its own content element, so the page was a column of
   near-empty blocks separated by full section gaps. Collapsed to an index: the element
   header is the document name, the row below it carries type, size and the link. */
.frame-type-uploads {
    padding-block: 0.4rem;
}

/* A run reads as one list, but needs a section's worth of air against the plate above
   and whatever follows it. */
.page-hero + .frame-type-uploads {
    padding-top: var(--cs-section);
}

.frame-type-uploads:has(+ .frame:not(.frame-type-uploads)),
.frame-type-uploads:last-child {
    padding-bottom: var(--cs-section);
}

/* A heading introducing a run belongs to it, so it keeps only its own header margin —
   full section padding on both sides left a screen of dead space under "Newsletter". */
.frame:not(.frame-type-uploads):has(+ .frame-type-uploads) {
    padding-bottom: 0;
}

/* Only shown when one element carries several files and needs a group label */
.download-list__group {
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.3;
    margin: 0.9rem 0 0.35rem;
}

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

.download-list__item {
    margin: 0;
    padding: 0;
}

.download-list__item::before { content: none; }

.download-list__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--cs-line);
    color: var(--cs-navy);
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.download-list__link:hover,
.download-list__link:focus-visible {
    border-color: var(--cs-red);
    color: var(--cs-red);
}

/* Type chip in place of the old loose "pdf" badge that sat under every link */
.download-list__type {
    font-family: var(--cs-cond);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--cs-navy);
    padding: 0.3em 0.55em;
    min-width: 3.4em;
    text-align: center;
}

.download-list__link:hover .download-list__type,
.download-list__link:focus-visible .download-list__type {
    background: var(--cs-red);
}

.download-list__name {
    font-size: 0.95rem;
    overflow-wrap: break-word;
}

/* Arrow sits after the size so the row still ends on an affordance */
.download-list__size {
    font-family: var(--cs-cond);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--cs-steel);
    white-space: nowrap;
}

.download-list__size::after {
    content: " \2193";
    color: var(--cs-red);
    font-weight: 700;
}

.download-list__note {
    font-size: 0.85rem;
    color: var(--cs-steel);
    margin: 0.2rem 0 0.6rem;
}

@media (max-width: 34rem) {
    .download-list__link {
        grid-template-columns: auto 1fr;
        row-gap: 0.25rem;
    }

    .download-list__size { grid-column: 2; }
}

/* ---------- Newsletter signup (Campaign Monitor embed) ---------- */

/* The embed ships its own <style> block with hashed class names, Helvetica and a
   rounded white card. Overriding it needs selectors more specific than its single
   hashed classes; the wrapper's negative margin is inline, so that one needs
   !important to shift. */
.frame-type-html .l-form-default {
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

/* The intro block above already closes with a section of padding */
.frame-type-html:has(form.js-cm-form) {
    padding-top: 0;
}

.frame-type-html form.js-cm-form {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-top: 3px solid var(--cs-red);
    border-radius: 0;
    box-shadow: none;
    max-width: 34rem;
    padding: clamp(1.75rem, 3vw, 2.5rem);
}

/* The embed paints its own rounded white card on a hashed wrapper around the form,
   which showed as a second card behind this one. */
.frame-type-html div:has(> div > form.js-cm-form) {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
    margin-inline: 0;
}

.frame-type-html .js-cm-form label {
    font-family: var(--cs-cond);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cs-navy);
    margin-bottom: 0.45rem;
}

/* The consent line is a sentence, not a field label */
.frame-type-html .js-cm-form label[for="cm-privacy-consent"] {
    font-family: var(--cs-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cs-steel);
}

.frame-type-html .js-cm-form input[type="text"],
.frame-type-html .js-cm-form input[type="email"],
.frame-type-html .js-cm-form input#fieldName {
    width: 100%;
    background: var(--cs-canvas);
    border: 1px solid var(--cs-line);
    border-radius: 0;
    box-shadow: none;
    font-family: var(--cs-body);
    font-size: 0.95rem;
    color: var(--cs-ink);
    padding: 0.75em 0.9em;
}

.frame-type-html .js-cm-form input[type="text"]:focus,
.frame-type-html .js-cm-form input[type="email"]:focus {
    outline: none;
    border-color: var(--cs-red);
    background: var(--cs-surface);
}

.frame-type-html .js-cm-form input[type="checkbox"] {
    accent-color: var(--cs-red);
}

.frame-type-html button.js-cm-submit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    margin-top: 1.4rem;
    padding: 0.85em 1.6em;
    background: var(--cs-red);
    border: 2px solid var(--cs-red);
    border-radius: 0;
    box-shadow: none;
    font-family: var(--cs-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.frame-type-html button.js-cm-submit-button::after {
    content: "\2192";
}

.frame-type-html button.js-cm-submit-button:hover {
    background: var(--cs-navy);
    border-color: var(--cs-navy);
}

/* ---------- Location map (Anfahrt) ---------- */

/* Split card: ink panel left, tinted OpenStreetMap right. The tile tint pulls
   the standard OSM palette into the CS ink register (grayscale, then a cool
   rotate) — the counterpart to the guide's monochrome plates. */
.location-map {
    display: grid;
    grid-template-columns: minmax(17rem, 24rem) minmax(0, 1fr);
    min-height: clamp(26rem, 60vh, 36rem);
    isolation: isolate;
    border: 1px solid var(--cs-line);
}

.location-map__panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    background:
        radial-gradient(120% 90% at 85% 0%, var(--cs-ember), transparent 60%),
        var(--cs-navy-deep);
    color: #fff;
}

.location-map__panel::after {
    content: "";
    position: absolute;
    width: 22rem;
    aspect-ratio: 1;
    inset-inline-start: -9rem;
    bottom: -11rem;
    background: url("../Images/guide/power-ring-tracks.png") center / contain no-repeat;
    opacity: 0.16;
    pointer-events: none;
}

.location-map__kicker {
    font-size: var(--cs-label-size);
    font-weight: 700;
    letter-spacing: var(--cs-label-track);
    text-transform: uppercase;
    color: var(--cs-orange);
}

.location-map__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.1;
    color: #fff;
    max-width: 14ch;
}

.location-map__address {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.location-map__coords {
    margin: auto 0 0;
    font-size: var(--cs-label-size);
    font-weight: 700;
    letter-spacing: var(--cs-label-track);
    color: rgba(255, 255, 255, 0.55);
}

.location-map__panel .btn {
    position: relative;
    z-index: 1;
}

.location-map__canvas {
    min-height: 22rem;
    background: var(--cs-canvas);
}

.location-map__canvas .leaflet-tile-pane {
    filter: grayscale(1) sepia(0.16) hue-rotate(175deg) saturate(2.1) brightness(1.03) contrast(0.97);
}

/* Leaflet chrome in the brand register: sharp corners, body face. */
.location-map__canvas.leaflet-container {
    font-family: var(--cs-body);
    border-radius: 0;
}

.location-map__canvas .leaflet-control-zoom a {
    border-radius: 0 !important;
    color: var(--cs-navy);
}

.location-map__canvas .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.88);
    color: var(--cs-steel);
    font-size: 0.68rem;
}

/* Marker: red square dot (brand corner square) inside the pulsing ring. */
.cs-map-pin__dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    translate: -50% -50%;
    background: var(--cs-red);
    box-shadow: 0 0 0 2px #fff, 0 0.35rem 1rem rgba(20, 21, 31, 0.4);
}

.cs-map-pin__ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--cs-red);
    border-radius: 50%;
    animation: cs-pin-pulse 2.4s var(--ease-out) infinite;
}

@keyframes cs-pin-pulse {
    0% { transform: scale(0.4); opacity: 0.9; }
    75% { transform: scale(1); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-map-pin__ring {
        animation: none;
        transform: scale(0.6);
        opacity: 0.5;
    }
}

@media (max-width: 900px) {
    .location-map {
        grid-template-columns: minmax(0, 1fr);
    }

    .location-map__canvas { min-height: 19rem; }
}

/* Engineering gallery: equal full image boxes without letterboxing. */
#page_766 .ce-gallery[data-ce-columns="3"][data-ce-images="3"] img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Contact details keep data in fields and icons in the template. */
.contact-links { display: grid; gap: 0.45rem; }
.contact-links .contact-links__item { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.65rem; align-items: start; }
.contact-links__icon { width: 1.25rem; height: 1.25rem; margin-top: 0.1em; }
.contact-links__item > span { min-width: 0; overflow-wrap: anywhere; }
.card-grid--people .card-grid__contact { order: 3; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--cs-line); font-size: 0.9rem; }
.card-grid--people .card-grid__contact a { color: var(--cs-navy); text-decoration-color: var(--cs-red); }
.card-grid--people .card-grid__contact .contact-links__icon { color: var(--cs-steel); }

.contact-details .contact-links { margin-bottom: 1rem; }
