

/* ─────────────────────────────────────────────
   TOKENS — derived from Kuchler Geomatics logo
   Primary red:   #e32622  (KUCHLER text)
   Brand green:   #3cc669  (MATICS text)
   Sphere green:  #7bd5a0  (globe highlight)
───────────────────────────────────────────── */
:root {
    /*** colours ***/
    --dk:    #1a0a0a;   /* near-black, warm red tint — nav, hero bg      */
    --mid:   #2a0e0e;   /* dark red-black — CTA strip, footer             */
    --card:  #3a1212;   /* deep red card bg — tech cards                  */
    --dim:   #b82020;   /* muted red — eyebrows, borders                  */
    --acc:   #3cc669;   /* logo green (MATICS) — highlights, tags         */
    --acc2:  #e32622;   /* logo red (KUCHLER) — CTA buttons               */
    --acc3:  #c01010;   /* darker red — hover states                      */
    --lt:    #fde8e8;   /* light red tint — why-num colour, icon bg       */
    --pale:  #fdf2f2;   /* very light red — tag bg, banner bg             */
    --white: #ffffff;
    --body:  #fdf8f8;   /* near-white with warmth — page background       */
    --text1: #fff4f4;   /* warm near-white — text on dark                 */
    --text2: #cc9090;   /* muted pinkish — subtext on dark                */
    --text3: wheat;   /* dim #7a4848 — smallest text on dark                    */

    /*** sizes ***/
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  16px;
    --r-xl:  24px;
    --headerHeight: 80px;
    --contentWidth: min(1440px,95dvw);
    --sectionPadding: 2.5rem;
    --minSubHeroHeight: min(70dvh,840px);

    /*** miscellaneous ***/
    --shadow: 0 24px 64px rgba(80,0,0,0.22);
}
/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*,
*::before,
*::after
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html
{
    scroll-behavior: smooth;
    font-size: 16px;
}
body
{
    font-family: 'DM Sans', sans-serif;
    color: #1a2e22;
    background: #fdf8f8;
    line-height: 1.7;
    overflow-x: hidden;
}
h1,h2,h3,h4
{
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.15;
}
header:has(.subheader)
{
    display: flex;
    flex-direction: column-reverse;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
}
header .subheader
{
    font-size: max(12px,0.85em) !important;
    font-style: italic;
    font-weight: normal;
}
a
{
    text-decoration: none;
}
img, svg
{
    display: block;
}


/**  general / manual formatting **/
.outerWrapper,
.outerWrapper > div
{
    max-width: 100dvw;
    overflow: clip;
}

main,
main > .section,
main > .section-dark,
main > .section-mid,
main > .section-white,
main > .cta-strip
{
    display: grid;
    grid-template-columns: auto var(--contentWidth) auto;
}

main > *
{
    grid-column: 2;
    padding-inline: 1.5rem;
    padding-block: var(--sectionPadding);
}
main > .section > *,
main > .section-dark > *,
main > .section-mid > *,
main > .section-white > *,
main > .cta-strip > *
{
    grid-column: 2;
}
main > .section,
main > .section-dark,
main > .section-mid,
main > .section-white,
main > .cta-strip
{
    grid-column: 1 / -1;
}
main > div.grid-2
{
    grid-column-gap: 4rem;
}
.frame ul,
.frame ol
{
    margin-left: 0.5rem;
    padding-left: 1rem;
    padding-block: 0.5rem;
    list-style: square;
}

.frame ul ul
{
    padding-top: 0.1rem;
    list-style: disc;
}

.frame p
{
    padding-block: 0.5rem;
}

    /* ─────────────────────────────────────────────
       NAV — fully responsive with hamburger
    ───────────────────────────────────────────── */
.nav
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--headerHeight);
    max-width: 100dvw;
    padding: 0 5%;
    border-bottom: 1px solid rgba(227,38,34,0.1);
    background: rgba(20,6,6,0.97);
    backdrop-filter: blur(16px) saturate(1.4);
    z-index: 200;
    transition: background .3s;
}
.nav.scrolled
{
    background: rgba(20,6,6,0.99);
    border-color: rgba(227,38,34,0.18);
}
.nav-logo
{
    position: relative;
    display: block;
}
.nav-logo > img
{
    height: 100%;
    width: auto;
}
.logo-mark { flex-shrink: 0; }
.logo-wordmark
{
    position: absolute;
    top: calc(var(--headerHeight) - 0.1rem);
    left: -0.1rem;
    padding-inline: 0.5rem;
    border-bottom-right-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
    box-shadow: var(--shadow);
    background-color: rgba(20,6,6,0.7);
    background-position: left 50%;
}
.logo-wordmark strong
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text1);
    letter-spacing: -.2px;
    white-space: nowrap;
}
.logo-wordmark span
{
    font-size: max(12px,0.65rem);
    color: var(--acc);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}
header.menu-open .logo-wordmark
{
    display: none;
}
.menu
{
    list-style: none;
}
.nav-links
{
    display: none;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.nav-links a
{
    display: block;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    border-radius: var(--r-sm);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text1); background: rgba(227,38,34,0.08); }
.menu.level2
{
    position: absolute;
    display: none;
    background-color: rgba(20,6,6,0.7);
}
.nav-links > li:hover
{
    position: relative;
}
.nav-links > li:hover .menu.level2
{
    display: block;
    padding-bottom: 0.5rem;
}
/* Level 3 desktop dropdown */
.menu.level2 > li { position: relative; }
.menu.level3 { position: absolute; left: 100%; top: 0; display: none; background-color: rgba(20,6,6,0.85); min-width: 200px; padding-bottom: 0.5rem; }
.menu.level2 > li:hover > .menu.level3 { display: block; }
.menu.level3 a { white-space: nowrap; }
.nav-right { display: none; align-items: center; gap: 8px; }
.lang-pills { display: flex; gap: 3px; }
.lang-pill { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(227,38,34,0.2); color: var(--text2); background: transparent; cursor: pointer; letter-spacing: .4px; transition: all .15s; }
.lang-pill:hover, .lang-pill.on { background: rgba(227,38,34,0.14); color: var(--acc); border-color: var(--acc); }
.btn-nav { display: inline-block; padding: 8px 16px; border-radius: var(--r-sm); background: var(--acc2); color: #fff4f4 !important; font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: background .15s; font-family: 'DM Sans', sans-serif; white-space: nowrap; text-decoration: none; }
.btn-nav:hover { background: #c01010; }
/* Hamburger */
.nav-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; background: transparent; border: none; cursor: pointer; border-radius: var(--r-sm); }
.nav-hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--text2); transition: transform .25s, opacity .2s; transform-origin: center; }
.nav-hamburger span:nth-child(1) { width: 22px; }
.nav-hamburger span:nth-child(2) { width: 16px; }
.nav-hamburger span:nth-child(3) { width: 22px; }
.nav-hamburger:hover span { background: var(--acc); }
.nav.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.nav.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }
/* Mobile dropdown */
.nav-mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 199; background: rgba(18,4,4,0.98); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(227,38,34,0.12); padding: 16px 5% 24px; flex-direction: column; gap: 0; overflow-y: auto; }
.nav-mobile-menu.open { display: flex; }
/* Accordion nav structure */
.mob-nav { list-style: none; padding: 0; margin: 0; }
.mob-nav-row { display: flex; align-items: center; justify-content: space-between; }
.mob-nav-row > a { flex: 1; }
.mob-nav-toggle { background: none; border: none; color: var(--text2); padding: 14px 4px; cursor: pointer; transition: transform .2s; }
.mob-nav-item.open > .mob-nav-row > .mob-nav-toggle { transform: rotate(180deg); }
.mob-sub { list-style: none; padding: 0 0 0 16px; margin: 0; display: none; }
.mob-nav-item.open > .mob-sub { display: block; }
.nav-mobile-menu a { font-size: 16px; font-weight: 500; color: var(--text2); padding: 14px 0; border-bottom: 1px solid rgba(227,38,34,0.07); transition: color .15s; display: block; }
.mob-sub a { font-size: 15px; padding: 10px 0; }
.mob-sub .mob-sub a { font-size: 14px; font-weight: 400; padding: 8px 0; }
.nav-mobile-menu a:hover { color: var(--acc); }
.mob-nav-item.active > .mob-nav-row > a { color: var(--acc); }
.nav-mobile-menu .mob-cta { display: block; margin-top: 16px; padding: 14px; background: var(--acc2); color: #fff4f4 !important; font-weight: 600; border-radius: var(--r-md); text-align: center; font-size: 15px; border: none; width: 100%; cursor: pointer; font-family: 'DM Sans', sans-serif; text-decoration: none; }
.nav-mobile-menu .mob-cta:hover { background: #c01010; }
.mob-langs { display: flex; gap: 8px; margin-top: 16px; }
.mob-lang { font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 4px; border: 1px solid rgba(227,38,34,0.25); color: var(--text2); background: transparent; cursor: pointer; }
.mob-lang.on { background: rgba(227,38,34,0.15); color: var(--acc); border-color: var(--acc); }
/* Desktop breakpoint */
@media (min-width: 900px)
{
    .nav-links { display: flex; }
    .nav-right { display: flex; }
    .nav-hamburger { display: none; }
    .nav-mobile-menu { display: none !important; }
}

/* ─────────────────────────────────────────────
   HERO — fullscreen video background
───────────────────────────────────────────── */
.hero
{
    position: relative;
    min-height: 60dvh;
    max-height: 80dvh;
    background: var(--dk);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

@media (max-height: 600px)
{
    .hero
    {
        max-height: unset;
    }
}

/* ── VIDEO / IMAGE BACKGROUND ── */
.hero-visual
{
    position: absolute;
    margin-top: var(--headerHeight);
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #1a0a0a;   /* dark fallback while poster/video loads */
}
.hero-video,
.hero-image
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop / mobile video switching */
.hero-video--mobile  { display: none; }
@media (max-width: 479px)
{
    .hero-video--desktop { display: none; }
    .hero-video--mobile  { display: block; }
}

.hero-overlay
{
    position: absolute;
    inset: 0;
    /* dark gradient: strong left/bottom for text readability, lighter right for video visibility */
    background:
        linear-gradient(90deg,  rgba(26,10,10,0.44) 0%, rgba(26,10,10,0.25) 50%, rgba(26,10,10,0.1) 100%),
        linear-gradient(180deg, rgba(26,10,10,0.10) 0%, rgba(26,10,10,0.20) 100%);
}

video + .hero-overlay
{
    opacity: 0;
}

/* ── TEXT BLOCK ── */
.hero-content
{
    position: relative;
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin-top: 8.5rem;
    padding-block: 1.5rem;
    padding-inline: 5%;
    padding-bottom: 1.5rem;
    max-width: 88dvw;
    background-color: rgba(0,0,0,0.45);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 0.5rem;
    z-index: 1;
}
@media (min-width: 900px)
{
    .hero-content
    {
        padding-inline: 6%;
    }
}

/* Animated badge */
@keyframes blink
{
    0%,100%
    {
        opacity:1;transform:scale(1)
    }
    50%
    {
        opacity:.25;transform:scale(.7)
    }
}

.hero-badge
{
    /*display: inline-flex;*/
    display: none;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: 24px;
    border: 1px solid rgba(227,38,34,0.35);
    color: var(--acc); font-size: 12px; letter-spacing: 2.5px;
    text-transform: uppercase; padding: 7px 16px; border-radius: 4px;
    animation: fadeUp .6s ease both;
}
.hero-badge::before
{
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--acc); animation: blink 2.2s ease-in-out infinite;
}

.hero h1
{
    max-width: 24ch;
    margin-bottom: 1.5rem;
    font-size: clamp(28px, 4vw + 0.2rem, 48px);
    font-weight: 700; color: var(--text1);
    letter-spacing: -1.5px; line-height: 1.1;

    animation: fadeUp .6s .1s ease both;
}
.hero h1 em { color: var(--acc); font-style: normal; }

.hero-lead {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text2); line-height: 1.75;
    max-width: 520px; margin-bottom: 36px;
    animation: fadeUp .6s .2s ease both;
}

.hero-actions {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    animation: fadeUp .6s .3s ease both;
}
.btn-cta
{
    width: fit-content;
    padding: 14px 28px;
    border-radius: var(--r-md);
    background: var(--acc2); color: #fff4f4;
    font-size: 15px; font-weight: 600; border: none; cursor: pointer;
    transition: background .15s, transform .12s; font-family: 'DM Sans', sans-serif;
    display: inline-block;
}
a.btn-cta { text-decoration: none; color: #fff4f4; }
.btn-cta:hover { background: #bf0e0e; transform: translateY(-2px); }
.btn-outline {
    padding: 14px 28px; border-radius: var(--r-md);
    border: 1px solid rgba(227,38,34,0.3); color: var(--text2);
    background: transparent; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: border-color .15s, color .15s; font-family: 'DM Sans', sans-serif;
    display: inline-flex; align-items: center; gap: 9px;
}
a.btn-outline { text-decoration: none; }
.btn-outline:hover { border-color: var(--acc); color: var(--acc); }
.btn-outline svg { transition: transform .2s; }
.btn-outline:hover svg { transform: translateX(3px); }
/* Small button (RTE link style) */
.btn-sm {
    display: inline-block; padding: 8px 20px; border-radius: 6px;
    background: rgba(227,38,34,0.12); color: var(--acc); font-size: 13px;
    font-weight: 600; letter-spacing: .3px; transition: background .15s;
    text-decoration: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-sm:hover { background: rgba(227,38,34,0.22); }

/* Stats row */
.hero-stats
{
    display: flex;
    gap: 0;
    /*flex-wrap: wrap;*/
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(227,38,34,0.12);
    animation: fadeUp .6s .4s ease both;
}
.stat
{
    padding-block: 8px;
    padding-top: 28px;
}
.stat:first-child
{
    padding-left: 0;
}
.stat + .stat { border-left: 1px solid rgba(227,38,34,0.12); padding-left: 28px; }
.stat-val
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(16px, 1.8dvw + 0.2rem, 28px);
    font-weight: 700;
    color: var(--acc);
    letter-spacing: -1px;
    line-height: 1;
}
.stat-lbl { font-size: 12px; color: var(--text3); margin-top: 4px; letter-spacing: .2px; }

/* Scroll cue — bottom of hero */
.scroll-cue { display: none !important; }
@media (min-width: 900px) {
    .scroll-cue {
        position: absolute; bottom: 32px; left: 6%; z-index: 1;
        display: flex; align-items: center; gap: 10px;
        font-size: 12px; color: var(--text3); letter-spacing: 2px; text-transform: uppercase;
        animation: fadeUp .6s .6s ease both;
    }
}
.scroll-line { width: 32px; height: 1px; background: var(--dim); }
.scroll-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acc); animation: blink 2s ease-in-out infinite; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   SUBPAGE HERO — lighter hero for inner pages
───────────────────────────────────────────── */
.sub-hero {
    position: relative;
    min-height: 38vh;
    min-height: 38dvh;
    background: var(--dk);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.sub-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.sub-hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sub-hero-overlay
{
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(26,10,10,0.02) 0%, rgba(26,10,10,0.1) 100%),
        linear-gradient(90deg,  rgba(26,10,10,0.10) 0%, rgba(26,10,10,0.01) 100%);
}
.sub-hero-content
{
    position: relative;
    max-width: 800px;
    padding: 60px 5% 48px;
    background-color: rgba(0,0,0,0.4);
    border-top-right-radius: 0.5rem;
    z-index: 1;
}
@media (min-width: 900px)
{
    .sub-hero { min-height: 44vh; min-height: 44dvh; }
    .sub-hero-content { padding: 100px 6% 64px; }
}
.sub-hero-kicker
{
    display: inline-flex; align-items: center; gap: 9px;
    border: 1px solid rgba(227,38,34,0.35);
    color: var(--acc); font-size: 12px; letter-spacing: 2.5px;
    text-transform: uppercase; padding: 6px 14px; border-radius: 4px;
    margin-bottom: 18px; width: fit-content;
    animation: fadeUp .5s ease both;
}
.sub-hero h1
{
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700; color: var(--text1);
    letter-spacing: -1px; line-height: 1.15;
    margin-bottom: 1rem;
    animation: fadeUp .5s .1s ease both;
}
.sub-hero h1 em
{
    color: var(--acc);
    font-style: normal;
}
.sub-hero-intro
{
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--text2); line-height: 1.7;
    max-width: 600px;
    animation: fadeUp .5s .2s ease both;
}

/* ─────────────────────────────────────────────
   TRUST BAR
───────────────────────────────────────────── */
.trust-bar {
    background: var(--mid);
    border-bottom: 1px solid rgba(227,38,34,0.07);
    padding: 13px 5%;
    display: flex; align-items: center; gap: 32px;
    overflow-x: auto; white-space: nowrap;
}
.trust-item
{
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: wheat;
}
.trust-item svg { opacity: .65; flex-shrink: 0; }
.trust-sep { width: 1px; height: 14px; background: rgba(227,38,34,0.12); flex-shrink: 0; }

/* ─────────────────────────────────────────────
   SECTION BOILERPLATE
───────────────────────────────────────────── */

.section-dark { background: var(--dk) }
.section-mid  { background: var(--mid) }
.section-white{ background: var(--white) }

.eyebrow { font-size: 10.5px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; color: var(--dim); margin-bottom: 10px; }
.eyebrow-light { color: var(--acc); }
.h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.7px; margin-bottom: 14px; color: #1a0a0a; }
.h2-light { color: var(--text1); }
.lead
{
    font-size: 1rem;
    color: #7a4040;
    max-width: 80%;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}
.text-end
{
    text-align: right;
}
.lead-light
{
    color: var(--text2);
}

.frame-centreImage .ce-gallery[data-ce-images="1"]
{
    height: 100%;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 0;
}

.frame-centreImage .ce-left.ce-intext .ce-gallery[data-ce-images="1"] img
{
    padding-top: 1rem;
    padding-right: 2rem;
}

.frame-centreImage .ce-right.ce-intext .ce-gallery[data-ce-images="1"] img
{
    padding-left: 2rem;
    padding-right: 1rem;
    padding-top: 1rem;
}

.frame-type-textmedia .ce-intext.ce-right .ce-gallery
{
    max-width: 64dvw;
    padding-left: 3rem;
    padding-top: 1rem;
}

.frame-type-textmedia .ce-intext.ce-left .ce-gallery
{
    padding-right: 3rem;
    padding-top: 1rem;
}

div.ce-border img, div.ce-border iframe
{
    border: none;
    border-radius: 0.8rem;
}

.ce-border figure.video
{
    border-radius: 1rem;
    overflow: clip;
}

video
{
    max-width: min(100%, calc(100dvw - 2rem)  );
    height: auto;
}

/* Desktop/mobile video switching for textmedia */
.video-embed-item--mobile { display: none; }
@media (max-width: 499px) {
    .video-embed-item--desktop { display: none; }
    .video-embed-item--mobile { display: block; }
}

@media (max-width: 500px)
{
    .frame-type-textmedia .ce-intext.ce-right .ce-gallery,
    .frame-type-textmedia .ce-intext.ce-left .ce-gallery
    {
        max-width: calc(100dvw - 2rem);
        padding-left: 0;
        padding-right: 0;
        margin-inline: auto;
    }
    .ce-left .ce-gallery, .ce-column
    {
        float: none !important;
    }
}

div.frame-space-after-extra-small
{
    padding-bottom: 0;
}

div.frame-space-after-small
{
    padding-bottom: 0.5rem;
}

div.frame-space-after-medium
{
    padding-bottom: 1rem;
}

div.frame-space-after-large
{
    padding-bottom: 2rem;
}

div.frame-space-after-extra-large
{
    padding-bottom: 4rem;
}

div.frame-space-before-extra-small
{
    padding-top: 0;
}

div.frame-space-before-small
{
    padding-top: 0.5rem;
}

div.frame-space-before-medium
{
    padding-top: 1rem;
}

div.frame-space-before-large
{
    padding-top: 2rem;
}

div.frame-space-before-extra-large
{
    padding-top: 4rem;
}

/* ─────────────────────────────────────────────
   SERVICES GRID
───────────────────────────────────────────── */
.grid-3
{
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(340px,1fr));
    gap: 1rem;
    max-width: calc(100dvw - 3.5rem);
    overflow: clip;
}
.grid-2
{
    display: grid;
    grid-template-columns: repeat(auto-fit ,minmax(300px,1fr));
    gap: 1rem;
    max-width: calc(100dvw - 3.5rem);
    overflow: clip;
}
.grid-4
{
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(300px,1fr));
    gap: 10px;
    max-width: calc(100dvw - 3.5rem);
    overflow: clip;
}

.svc-card {
    background: var(--white); border: 1px solid #f0c8c8;
    border-radius: var(--r-lg); padding: 28px;
    position: relative; overflow: hidden;
    transition: border-color .2s, transform .18s, box-shadow .2s;
    display: block; color: inherit;
}
.svc-card::after
{
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--dim), var(--acc));
    opacity: 0; transition: opacity .2s;
}
.svc-card:hover { border-color: #e08888; transform: translateY(-4px); box-shadow: 0 14px 36px rgba(46,125,79,.09); }
.svc-card:hover::after { opacity: 1; }
.svc-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--lt); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc-icon svg { width: 22px; height: 22px; }
.svc-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; color: #1a0808; margin-bottom: 9px; }
.svc-desc { font-size: 13px; color: #7a4040; line-height: 1.62; margin-bottom: 20px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 10.5px; font-weight: 500; background: var(--pale); color: var(--dim); padding: 3px 10px; border-radius: 4px; }

/* ─────────────────────────────────────────────
   TECH CARDS (dark)
───────────────────────────────────────────── */
.tech-card
{
    background: var(--card); border: 1px solid rgba(227,38,34,0.1);
    border-radius: var(--r-lg); padding: 30px;
    transition: border-color .2s;
}
.tech-card:hover
{
    border-color: rgba(227,38,34,0.28);
}
.tech-num
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: rgba(247,78,74,0.2);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -2px;
}
.tech-title { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; color: #fff4f4; margin-bottom: 11px; }
.tech-desc
{
    font-size: 13px;
    color: wheat;
    line-height: 1.65;
    margin-bottom: 18px;
}
.fmt-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fmt-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .5px; background: rgba(227,38,34,0.09); color: var(--acc); padding: 3px 10px; border-radius: 4px; border: 1px solid rgba(227,38,34,0.18); }

/* ─────────────────────────────────────────────
   SECTOR CHIPS
───────────────────────────────────────────── */
.sector { border: 1px solid #f0c8c8; border-radius: var(--r-md); padding: 16px 18px; display: flex; align-items: center; gap: 11px; background: var(--white); transition: background .15s, border-color .15s; }
.sector:hover { background: var(--pale); border-color: #e08888; }
.sector-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.sector-name { font-size: 13px; font-weight: 500; color: #3a0a0a; }

/* ─────────────────────────────────────────────
   WHY US
───────────────────────────────────────────── */
.why-card {
    background: var(--white); border: 1px solid #f0c8c8;
    border-radius: var(--r-lg); padding: 30px 34px;
    display: flex; gap: 22px; align-items: flex-start;
}
.why-num { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; color: var(--lt); line-height: 1; flex-shrink: 0; width: 52px; }
.why-title { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 600; color: #1a0808; margin-bottom: 8px; }
.why-desc { font-size: 13px; color: #7a4040; line-height: 1.65; }

/* ─────────────────────────────────────────────
   LANG BANNER
───────────────────────────────────────────── */
.lang-banner
{
    background: var(--pale); border-top: 1px solid #f5d0d0; border-bottom: 1px solid #f5d0d0;
    padding: 28px 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lang-banner-text strong { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #1a0a0a; display: block; margin-bottom: 4px; }
.lang-banner-text p { font-size: 13.5px; color: #702020; }
.lang-flags { display: flex; gap: 9px; }
.lang-flag { display: flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid #f0c0c0; padding: 8px 16px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: #702020; cursor: pointer; transition: border-color .15s; }
.lang-flag:hover { border-color: var(--dim); }
.lang-flag span { font-size: 17px; }

@media (max-width: 800px)
{
    .lang-flags
    {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px)
{
    .lang-banner
    {
        flex-direction: column;
    }
}

/* ─────────────────────────────────────────────
   CTA STRIP
───────────────────────────────────────────── */
.cta-strip
{
    display: grid;
    grid-template-columns: auto var(--contentWidth) auto;
    background: var(--mid);
    border-top: 1px solid rgba(227,38,34,0.09);
}
.cta-strip-title { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; color: var(--text1); letter-spacing: -.5px; margin-bottom: 8px; }
.cta-strip-sub
{
    font-size: 14px;
    color: #Ca8080;
}
.cta-badges { display: none; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.cta-badge { font-size: 12px; color: var(--acc); border: 1px solid rgba(227,38,34,0.22); padding: 4px 12px; border-radius: 4px; }

@media (max-width: 680px)
{
    .cta-strip
    {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 48px;
        flex-direction: column;
    }
}
/* ─────────────────────────────────────────────
   Powermail
───────────────────────────────────────────── */
.tx-powermail legend
{
    display: none;
}
.layout2 > .row
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-column-gap: 2rem;
    grid-row-gap: 1.5rem;
}
fieldset
{
    padding-top: 1.5rem;
}
fieldset.layout2 .powermail_fieldwrap + .powermail_fieldwrap
{
    margin-block-start: 0;
}
.powermail_fieldwrap_type_check > .powermail_field
{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1.5rem;
}
.powermail_checkwrap > label
{
    text-indent: -200dvw;
}
.powermail_fieldwrap_type_submit
{
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}
.tx-powermail .btn-primary
{
    display: block;
    width: fit-content;
    margin-left: auto;
    padding-block: 0.5rem;
    padding-inline: 2rem;
    border-radius: var(--r-md);
    background: var(--acc2);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0.3rem 0.3rem 0.5rem rgba(0,0,0,0.3);
    transition: background .15s, transform .12s;
    font-family: 'DM Sans', sans-serif;
}
.tx-powermail .btn-primary:hover
{
    box-shadow: 0.5rem 0.5rem 0.8rem rgba(10,0,0,0.6);
}
    /* ─────────────────────────────────────────────
       FOOTER
    ───────────────────────────────────────────── */
footer
{
    background: #071410;
    border-top: 1px solid rgba(227,38,34,0.07);
    padding: 56px 5% 28px;
}
.footer-grid
{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(227,38,34,0.07);
}
.footer-brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #fff4f4; margin-bottom: 10px; }
.footer-brand-desc
{
    font-size: 13px;
    color: wheat;;
    line-height: 1.65;
    max-width: 260px;
}
.footer-lang { display: flex; gap: 7px; margin-top: 20px; }
.fl
{
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(94,203,138,.12);
    padding: 5px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    color: wheat;
}
.fl span { font-size: 15px; }
.footer-col h4
{
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: wheat;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 12.5px; color: var(--text3); transition: color .12s; }
.footer-col a:hover { color: #cc9090; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; color: #5a2020; }
.footer-bottom a { color: wheat; }
.footer-bottom a:hover { color: var(--acc2); }

.footer-copyright
{
    color: wheat;
}

@media (max-width: 640px)
{
    .footer-grid
    {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .footer-grid > div:first-of-type
    {
        grid-column: 1 / -1;
    }
}

/* ─────────────────────────────────────────────
   CE HEADER GROUP — eyebrow SEO reorder
   HTML: <h2> then <div class="eyebrow">
   Visual: eyebrow appears ABOVE the h2
───────────────────────────────────────────── */
.ce-header-group
{
    display: flex;
    flex-direction: column;
}
.ce-header-group .eyebrow
{
    order: -1;
}

/* ─────────────────────────────────────────────
   CE SECTION LAYOUTS (via frame-layout-X)
   Layout 0 = default (light/body bg)
   Layout 1 = Service Cards layout (no special wrapper needed)
   Layout 2 = Dark section (tech cards)
   Layout 3 = White section
───────────────────────────────────────────── */
.frame > a:first-of-type
{
    display: none;
}
.frame-layout-0
{

}
.frame-layout-1,
.frame-layout-2
{
    /* default — inherits body background */
    padding-block: 6rem;
}
.frame-layout-2
{
    background: var(--dk);
    color: wheat;
}
.frame-layout-3
{
    background: var(--white);
    padding: 6rem 1.5rem;
}
.frame-layout-1,
.frame-layout-2
{
    display: grid;
    grid-template-columns: auto var(--contentWidth) auto;
    grid-column: 1 / -1;
    padding-inline: 0;
}
.frame-layout-2 a,
.frame-layout-2 a:visited,
#footerWrapper a,
#footerWrapper a:visited
{
    color: wheat;
    text-decoration: none;
}
main > div.grid-2 .frame-layout-1,
main > div.grid-2 .frame-layout-2
{
    grid-column: unset;
    display: block;
    height: fit-content;
    padding-block: 2rem;
    padding-inline: 1.5rem;
    border-radius: 1rem;
}
.frame-layout-1 > *,
.frame-layout-2 > *
{
    grid-column: 2;
    max-width: var(--contentWidth);
    padding-inline: 1.5rem;
}

/* Strip TYPO3's default wrapping styles when we use our own section layouts */
.frame-layout-2 .ce-bodytext,
.frame-layout-3 .ce-bodytext
{
    color: inherit;
}

/* ─────────────────────────────────────────────
   SUBPAGE HERO
───────────────────────────────────────────── */
.subhero
{
    display: flex;
    align-items: flex-end;
    position: relative;
    min-height: var(--minSubHeroHeight);
    padding-top: var(--headerHeight);
    overflow: hidden;
}
.subhero-bg
{
    position: absolute;
    inset: 0;
    z-index: 0;
}
.subhero-img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.subhero-placeholder
{
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dk) 0%, #2a0808 50%, var(--dk) 100%);
}
.subhero-overlay
{
    position: absolute;
    inset: 0;
    animation: fadeoutbg 2s ease-in-out forwards;
}
@keyframes fadeoutbg
{
    0%
    {
        background: linear-gradient(
            to bottom,
            rgba(26,10,10,0.3) 0%,
            rgba(26,10,10,0.5) 50%,
            rgba(26,10,10,0.7) 100%
        );
    }
    50%
    {
        background: linear-gradient(
            to bottom,
            rgba(26,10,10,0.1) 0%,
            rgba(26,10,10,0.2) 75%,
            rgba(26,10,10,0.3) 100%
        );
    }
    100%
    {
        background: linear-gradient(
            to bottom,
            rgba(26,10,10,0) 0%,
            rgba(26,10,10,0) 100%,
            rgba(26,10,10,0) 100%
        );
    }
}
.subhero-content
{
    position: relative;
    z-index: 1;
    padding: 48px 5% 40px;
    width: fit-content;
    background-color: rgba(0,0,0,0.5);
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border-top-right-radius: 1rem;
    box-shadow: 0.8rem -0.8rem 1.4rem rgba(0, 0, 0, 0.7);
}

.subhero-content .breadcrumb a
{
    color: wheat;
}

/* Breadcrumb */
.breadcrumb
{
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a
{
    color: var(--text3);
    transition: color .15s;
}
.breadcrumb a:hover { color: var(--acc); }
.bc-sep { color: rgba(227,38,34,0.3); }
.bc-current { color: var(--text2); }

.subhero-title
{
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--text1);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 12px;
}
.subhero-lead
{
    max-width: 600px;
    width: fit-content;
    padding-inline: 1rem;
    padding-block: 0.5rem;
    margin-left: -1rem;
    margin-top: -0.5rem;
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text2);
    line-height: 1.7;
}

/* ─────────────────────────────────────────────
   SUBPAGE INTRO TEXT (regular text CE on subpage)
───────────────────────────────────────────── */
.sub-intro
{
    padding: 64px 5% 48px;
    max-width: 800px;
}
.sub-intro h2
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    color: #1a0a0a;
    letter-spacing: -.5px;
    margin-bottom: 18px;
    line-height: 1.2;
}
.sub-intro p
{
    font-size: 16px;
    color: #5a2828;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ─────────────────────────────────────────────
   USE CASE CARDS
───────────────────────────────────────────── */
.uc-card
{
    background: var(--white);
    border: 1px solid #f0c8c8;
    border-radius: var(--r-lg);
    padding: 28px;
    text-align: center;
    transition: border-color .2s, transform .18s, box-shadow .2s;
}
.uc-card:hover
{
    border-color: #e08888;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(80,0,0,0.08);
}
.uc-icon
{
    font-size: 32px;
    margin-bottom: 14px;
    line-height: 1;
}
.uc-title
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a0808;
    margin-bottom: 8px;
}
.uc-desc
{
    font-size: 13px;
    color: #7a4040;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────
   PROCESS STEPS (dark, timeline-style)
───────────────────────────────────────────── */
.steps-track
{
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
}
.step-card
{
    display: flex;
    gap: 24px;
    align-items: stretch;
}
.step-marker
{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
}
.step-num
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--acc);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(60,198,105,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60,198,105,0.06);
    flex-shrink: 0;
}
.step-line
{
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, rgba(60,198,105,0.3), rgba(60,198,105,0.08));
    min-height: 24px;
}
.step-body
{
    padding-bottom: 36px;
}
.step-title
{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text1);
    margin-bottom: 8px;
    padding-top: 10px;
}
.step-desc
{
    font-size: 14px;
    color: var(--text2);
    line-height: 1.7;
}

/* ─────────────────────────────────────────────
   FAQ ACCORDION
───────────────────────────────────────────── */
.faq-list
{
    max-width: 740px;
}
.faq-item
{
    border-bottom: 1px solid #f0c8c8;
}
.faq-item:first-child
{
    border-top: 1px solid #f0c8c8;
}
.faq-question
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    cursor: pointer;
    list-style: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a0808;
    transition: color .15s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--acc2); }
.faq-chevron
{
    flex-shrink: 0;
    color: var(--dim);
    transition: transform .25s ease;
}
.faq-item[open] .faq-chevron
{
    transform: rotate(180deg);
}
.faq-answer
{
    padding: 0 4px 24px;
    font-size: 14.5px;
    color: #5a2828;
    line-height: 1.75;
}

/* ─────────────────────────────────────────────
   SUBPAGE CTA (reuses cta-strip, adds top border)
───────────────────────────────────────────── */
.sub-cta
{
    border-top: 1px solid rgba(227,38,34,0.12);
}
