/* ==============================================================================
   MBP VFX Portfolio: shared design layer
   Design shared by every public page: the header notch, footer, cookie banner
   and the sub pages (about, contact, privacy notice, legal notice, 404) in the
   style of the home page. Inter for text, mono only for small capital labels,
   one grey, cards with a fine line, a light accent colour from the theme
   (--brand-primary) on headings, main buttons and labels, slightly rounded
   rectangles (no pills), no glow.

   Loaded by: index.html, about.html, contact.html, data-protection.html,
   legal-info.html and 404.html, after styles.css. Removing its link element
   switches the layer off.
   Depends on: the palette and base rules of styles.css. home-redesign.css and
   the site script build on the variables and class names defined here.

   This is an override layer: rule order matters and must not be changed
   without checking the cascade.

   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1.  DESIGN VARIABLES
   2.  HEADER AS A NOTCH
   3.  FOOTER
   4.  SUB PAGES
   5.  ABOUT: CUSTOMER MARQUEE
   6.  COOKIE BANNER
   7.  LOADING CURTAIN AND HEADER
   8.  DEVICE COMPATIBILITY
   ============================================================================== */

/* ==============================================================================
   1. DESIGN VARIABLES
   Variables of the shared design layer: lines, radii, glass, accent colours,
   text sizes, fonts and easing. All colours come from the palette in
   styles.css, so a theme change is followed automatically.
   ============================================================================== */

:root {
    /* Colours: all colours of this file and of home-redesign.css come from the palette at
       the top of styles.css (:root, section COLOR PALETTE: --brand-*, --surface-*,
       --text-*, --white-alpha-*, --black-alpha-*, --accent-alpha-* ...). No fixed colour
       value appears here, only references to the palette and mixtures of them through
       color-mix. A theme change (the admin Theme page sets --brand-rgb and others) is
       therefore followed automatically. */
    --rd-line: var(--white-alpha-10);
    --rd-line-2: var(--white-alpha-20);          /* stronger line (buttons, fields, popup) */
    --rd-r: 18px;      /* Cards on the sub pages */
    --rd-r-lg: 26px;   /* Large areas of the home page (about bento, contact call to action) */
    --rd-rb: 10px;     /* Buttons, fields, filters, close buttons */
    --rd-rs: 8px;      /* Chips, tags, small parts */
    --rd-glass: linear-gradient(180deg, var(--white-alpha-06), var(--white-alpha-02));
    --rd-dim: var(--white-alpha-60);
    --rd-text: color-mix(in srgb, var(--text-primary) 80%, transparent);
    --rd-acc: var(--brand-primary);
    --rd-acc-2: var(--brand-primary-hover);
    --rd-acc-soft: var(--accent-alpha-12);
    --rd-acc-line: var(--accent-alpha-40);
    /* Dark tone for text on accent areas and for the notch: almost --surface-0, mixed
       slightly towards the card surface. Deliberately not the exact dark grey of
       --surface-0: a script of the site (makeBlackBackgroundsTransparent) makes every
       element whose background contains the digits 5, 5, 5 transparent. color-mix gives a
       different value, so the element stays visible. */
    --rd-ink: color-mix(in srgb, var(--surface-0) 88%, var(--surface-1));
    --rd-on-acc: var(--rd-ink);                  /* Text on accent areas (dark on accent) */
    --rd-veil: color-mix(in srgb, var(--surface-0-alt) 62%, transparent);     /* Buttons over images (close, heart in the popup) */
    --rd-veil-2: color-mix(in srgb, var(--surface-0-alt) 88%, transparent);   /* Action buttons in the gallery */
    --rd-veil-3: color-mix(in srgb, var(--surface-0-alt) 96%, transparent);   /* Background behind the popup (phone) */
    --rd-acc-grad: var(--gradient-primary);      /* Heading gradient: the palette gradient (accent to accent hover) */
    --rd-surf: var(--surface-0-alt);             /* Surfaces of images, tiles and the popup */
    --rd-surf-1: var(--surface-1);               /* Lighter card surface (upper part of the card gradient) */
    --rd-d2: var(--white-alpha-90);              /* Ring: time by discipline, colour order from light to dark */
    --rd-d3: var(--white-alpha-65);
    --rd-d4: var(--white-alpha-40);
    --rd-d5: var(--white-alpha-20);
    --rd-notch: var(--rd-ink);                   /* Notch surface: almost the page background (reason at --rd-ink) */
    --rd-notch-edge: color-mix(in srgb, var(--rd-notch) 89%, var(--text-primary) 11%);   /* Fine edge of the notch (including the ears) */
    --rd-soft: cubic-bezier(0.35, 0.05, 0.15, 1);  /* Soft fade in of the notch: gentle start, long run out */
    --rd-pt-fs: clamp(40px, 5.4vw, 84px);        /* Size of the page heading (the contact page derives the position of the form from it) */
    --rd-ease: cubic-bezier(0.32, 0.72, 0, 1);
    --rd-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --rd-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rd-t-body: clamp(14.5px, 1.05vw, 16px);   /* Body text */
    --rd-t-small: 13.5px;                        /* Small text, notes */
    --rd-t-label: 10.5px;                        /* Mono labels in capital letters */
}

/* ==============================================================================
   2. HEADER AS A NOTCH
   The header hangs like a notch from the top edge, rounded at the bottom
   with curved ears that merge into the screen edge. Dark single colour
   surface, the active page as an accent field, Inter type, no glow around
   the logo. On the home page it is invisible in the hero and appears when
   the mouse moves up or the page is scrolled up (logic in the site script).
   On phones the logo sits on the left, the language button and the hamburger
   on the right. The cookie banner has no rules here; it is styled in
   styles.css.
   ============================================================================== */
.header::before { display: none !important; }            /* No dark gradient behind the notch needed */
.header .nav {
    --ear: 24px;                                          /* Radius of the ears and the lower corners */
    box-sizing: border-box;
    width: min(820px, calc(100% - 96px));                 /* notch width on desktop: 820 px, never closer than 48 px to the screen edges */
    max-width: none;
    height: 54px;
    margin: 0 auto;
    padding: 0 12px 0 22px !important;
    border-radius: 0 0 var(--ear) var(--ear);
    border: 1px solid var(--rd-notch-edge);
    border-top: 0;
    background: var(--rd-notch);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 16px 34px -12px var(--black-alpha-75);
    /* Fade in: soft and long, the bar glides down calmly and fades in at the same time
       (hiding is defined further down and is a little quicker). Background, border and
       shadow fade out while the phone menu is open. */
    transition: transform 0.95s var(--rd-soft), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.05s, background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
/* Ears: curves that let the notch merge into the screen edge at the top. The curve has
   the same fine edge as the bar itself (a 1 px ring in a gradient), so the outline
   continues without a gap from the side edge over the curve to the screen edge.
   Geometry: a circle with radius --ear around the lower outer corner of the ear; it
   ends vertically on the outer edge of the bar (where its border sits) and runs out
   horizontally into the screen edge. */
.header .nav::before,
.header .nav::after {
    content: '';
    position: absolute;
    top: 0;
    width: calc(var(--ear) + 1px);                        /* +1 px: the ear reaches over the 1 px border of the bar and covers its upper part */
    height: var(--ear);
    pointer-events: none;
    transition: opacity 0.45s ease;
}
.header .nav::before {
    left: calc(-1px - var(--ear));
    background: radial-gradient(circle at 0 100%, transparent calc(var(--ear) - 0.4px), var(--rd-notch-edge) calc(var(--ear) + 0.5px), var(--rd-notch-edge) calc(var(--ear) + 0.9px), var(--rd-notch) calc(var(--ear) + 1.6px));
}
.header .nav::after {
    right: calc(-1px - var(--ear));
    background: radial-gradient(circle at 100% 100%, transparent calc(var(--ear) - 0.4px), var(--rd-notch-edge) calc(var(--ear) + 0.5px), var(--rd-notch-edge) calc(var(--ear) + 0.9px), var(--rd-notch) calc(var(--ear) + 1.6px));
}
/* Hide (scrolling down or mouse gone): a little quicker than showing */
.header.header--hidden .nav {
    transform: translateY(calc(-100% - 30px));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.6, 1), opacity 0.45s ease, background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
/* Phone menu open: the notch is not visible in the menu (no box above the menu). Logo,
   language button and hamburger or close button stay in place, only surface, border,
   shadow and ears fade out, so the menu looks like it did with the transparent bar. */
body.mobile-menu-open .header .nav {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
body.mobile-menu-open .header .nav::before,
body.mobile-menu-open .header .nav::after { opacity: 0; }
/* Home page with a mouse: the notch is gone from the start (no brief flash); the site
   script then sets body.rd-hdr-init and takes over with the class header--hidden */
@media (hover: hover) and (pointer: fine) {
    body.home-page:not(.rd-hdr-init) .header .nav { opacity: 0; transform: translateY(calc(-100% - 30px)); transition: none; pointer-events: none; }
}
/* Reduced motion: only a cross fade, no gliding */
@media (prefers-reduced-motion: reduce) {
    .header .nav,
    .header.header--hidden .nav { transition: opacity 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
    .header.header--hidden .nav { transform: none; }
}
.nav-logo a,
.nav-logo a:hover,
.nav-logo a:focus-visible { text-shadow: none !important; filter: none !important; }
.nav-logo a { font-family: var(--rd-sans); font-weight: 800; letter-spacing: -0.03em; }
.nav-logo a:hover { color: var(--rd-acc); }
.nav-links { gap: 4px; }
.nav-links a,
.mobile-nav-link {
    font-family: var(--rd-sans) !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    letter-spacing: -0.005em !important;
}
.nav-links a { padding: 8px 13px; border-radius: 8px; overflow: visible; line-height: 1.3; }
.nav-links a::after { display: none; }
.nav-links a .nav-link-text-dup { display: none !important; }
.nav-links a:hover .nav-link-text { transform: none !important; }
.nav-links a:hover { background: var(--white-alpha-07); color: var(--text-primary); }
.nav-links a.active, .nav-links a.active:hover { background: var(--rd-acc-soft); color: var(--rd-acc); }
.mobile-nav-link { font-size: 15px !important; }
/* Language button: a small rectangle in the bar on desktop, an outlined pill on phones */
@media (min-width: 901px) {
    .nav-lang-btn { border-radius: var(--rd-rb) !important; border-color: var(--white-alpha-30); }
    .nav-lang-btn:hover { border-color: var(--rd-acc); color: var(--rd-acc); background: var(--rd-acc-soft); }
}
/* The language button stays fixed in place: no magnet effect, no lift on hover, the
   icon does not rotate. Only the colours change on hover. */
.nav-lang-btn,
.nav-lang-btn:hover,
.nav-lang-btn:active { transform: none; translate: none !important; }
.nav-lang-btn:hover .nav-lang-icon { transform: none; }
@media (max-width: 900px) {
    .header .nav { --ear: 20px; width: calc(100% - 40px); height: 54px !important; margin: 0 auto; padding: 0 8px 0 14px !important; }
}
/* Phone menu: no glow on the active page, slightly rounded rectangles, accent as a
   fill or border */
.mobile-nav-link, .mobile-nav-link:hover, .mobile-nav-link.active { box-shadow: none !important; text-shadow: none !important; border-radius: var(--rd-rb) !important; }
.mobile-nav-link.active { background: var(--rd-acc-soft) !important; border-color: var(--rd-acc-line) !important; color: var(--rd-acc) !important; }

/* ==============================================================================
   3. FOOTER
   Smaller footer in one slim row, Inter, links with the accent colour on
   hover.
   ============================================================================== */
.footer {
    padding: 18px 50px !important;
    padding-left: max(50px, env(safe-area-inset-left)) !important;
    padding-right: max(50px, env(safe-area-inset-right)) !important;
    padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
    gap: 16px;
}
.footer p, .footer-links a { font-family: var(--rd-sans) !important; font-size: 12.5px !important; letter-spacing: 0 !important; }
.footer p { opacity: 0.62; margin: 0; }
.footer-links { gap: 22px; }
.footer-links a { opacity: 0.7; }
.footer-links a:hover { opacity: 1; color: var(--rd-acc); }
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 8px !important;
        text-align: center;
        padding: 16px 20px !important;
        padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
    }
    .footer-links { gap: 20px; }
}

/* ==============================================================================
   4. SUB PAGES
   Shared typography and cards of About, Contact, Data protection and Legal
   notice: heading like the home page (Inter Bold, same size) with an accent
   dot, body text in Inter, one grey.
   ============================================================================== */
.page-title {
    font-family: var(--rd-sans) !important;
    font-size: var(--rd-pt-fs) !important;
    font-weight: 700 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.02 !important;
    color: var(--text-primary) !important;
    margin: 0 0 clamp(30px, 4.4vw, 64px) !important;
    text-wrap: balance;
}
.page-title::after { content: '.'; color: var(--rd-acc); }
.about-text p,
.customers-text p,
.contact-subtitle,
.legal-content p,
.legal-section p {
    font-family: var(--rd-sans) !important;
    font-size: var(--rd-t-body) !important;
    line-height: 1.75 !important;
    letter-spacing: 0 !important;
    color: var(--rd-text) !important;
    text-align: left !important;
}
.about-text .intro-text { color: var(--white-alpha-90) !important; }
.about-text p + p, .customers-text p + p { margin-top: 1.1em; }

/* About */
.about-image { border-radius: var(--rd-r); overflow: hidden; border: 1px solid var(--rd-line); box-shadow: none !important; }
.about-image img { display: block; width: 100%; border-radius: 0 !important; }
/* School logo: transparent WebP, centred in the card, nothing cropped */
.university-logo-container { border-radius: var(--rd-r) !important; border: 1px solid var(--rd-line) !important; background: var(--rd-glass) !important; box-shadow: none !important; overflow: hidden; padding: 0 !important; }
.university-logo-container a { display: flex !important; align-items: center; justify-content: center; width: 100%; padding: clamp(18px, 2vw, 26px) clamp(20px, 3vw, 40px); box-sizing: border-box; }
.university-logo-container .university-logo { width: 100% !important; max-width: 330px; height: auto !important; max-height: 88px; aspect-ratio: auto !important; object-fit: contain !important; border-radius: 0 !important; opacity: 1 !important; filter: none !important; transform: none !important; }

/* Customer area: no light bar, the same background as the page with only a fine divider line */
.customers-section,
.customers-section--editorial { background: transparent !important; background-image: none !important; border-top: 1px solid var(--rd-line) !important; box-shadow: none !important; }
.customers-big-title, .customers-section .section-title {
    font-family: var(--rd-sans) !important;
    font-size: clamp(32px, 4vw, 56px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.04 !important;
}
.customers-big-title .customers-dot { color: var(--rd-acc); }
.customers-text { max-width: 62ch; }
/* Marquee: all logos are visible at once (a group that fades in on its own would leave
   gaps and make logos pop up in the middle) */
.customers-rail .customer-item,
.customers-rail .customer-item.fade-in-element { opacity: 1 !important; transform: none !important; transition: none !important; }
.customers-rail .customer-placeholder { opacity: 1 !important; filter: none !important; transform: none !important; }

/* Contact: info card and form */
/* Layout: the layout rules of styles.css apply unchanged: heading at the top left, the
   form pulled up on the right next to the heading, the info card below on the left
   (bottom edges of the cards flush), both a little further down. The header area is as
   tall as in styles.css (line height 1.6 plus 60 px spacing, 214 px at a 96 px font
   size); on desktop (from 1201 px) the form is pulled up so that its top edge sits
   about 24 px below the top edge of the heading. */
.contact-hero .page-title { line-height: 1.6 !important; }
@media (min-width: 951px) { .contact-hero .page-title { margin-bottom: 60px !important; } }
@media (min-width: 1201px) {
    .contact-form-section { margin-top: calc(-1 * (var(--rd-pt-fs) * 1.6 + 60px) + 24px); }
}
.contact-info,
.contact-form {
    background: var(--rd-glass) !important;
    border: 1px solid var(--rd-line) !important;
    border-radius: var(--rd-r) !important;
    box-shadow: inset 0 1px 0 var(--white-alpha-06) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.contact-info h2 { font-family: var(--rd-sans) !important; font-size: clamp(24px, 2.2vw, 30px) !important; font-weight: 650; letter-spacing: -0.03em !important; color: var(--rd-acc) !important; margin: 0 0 14px !important; }
.contact-divider { background: var(--rd-line) !important; height: 1px !important; border: 0 !important; margin: 26px 0 !important; box-shadow: none !important; }
.contact-details { display: grid; gap: 0; border: 0 !important; }
.contact-details .contact-item { display: grid !important; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 11px 0; margin: 0 !important; border: 0 !important; font-family: var(--rd-sans) !important; font-size: 16px !important; }
.contact-details .contact-item strong {
    font-family: var(--rd-mono) !important;
    font-size: var(--rd-t-label) !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rd-acc) !important;
}
.contact-details .contact-item a { font-family: var(--rd-sans) !important; font-size: 16px; color: var(--text-primary) !important; text-decoration: none; transition: color 0.3s; }
.contact-details .contact-item a:hover { color: var(--rd-acc) !important; }

/* Resume button: outline, slightly rounded, accent colour on hover */
.resume-download-btn-enhanced {
    display: inline-flex !important;
    align-items: center;
    gap: 12px !important;
    padding: 8px 12px 8px 8px !important;
    border-radius: var(--rd-rb) !important;
    background: var(--white-alpha-05) !important;
    border: 1px solid var(--white-alpha-20) !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    transform: none !important;
    transition: background 0.4s var(--rd-ease), border-color 0.4s !important;
}
.resume-download-btn-enhanced:hover { background: var(--rd-acc-soft) !important; border-color: var(--rd-acc-line) !important; transform: none !important; box-shadow: none !important; }
.resume-download-btn-enhanced .download-icon-wrapper { background: var(--rd-acc) !important; border: 0 !important; border-radius: var(--rd-rs) !important; box-shadow: none !important; color: var(--rd-on-acc) !important; width: 38px; height: 38px; display: grid; place-items: center; }
.resume-download-btn-enhanced .download-title { font-family: var(--rd-sans) !important; font-size: 14.5px !important; font-weight: 600 !important; letter-spacing: 0 !important; color: var(--text-primary) !important; }
.resume-download-btn-enhanced .file-type-badge { background: transparent !important; border: 1px solid var(--white-alpha-20) !important; border-radius: var(--rd-rs) !important; color: var(--rd-dim) !important; font-family: var(--rd-mono) !important; font-size: 10.5px !important; letter-spacing: 0.1em; box-shadow: none !important; }
.resume-download-btn-enhanced .file-type-badge svg { color: var(--rd-dim) !important; fill: currentColor; }

/* Form: labels as small mono labels with // in the accent colour, calm fields, focus
   shown as an accent border (no glow) */
.contact-form .form-group label {
    display: block;
    margin: 0 0 9px !important;
    font-family: var(--rd-mono) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: var(--rd-text) !important;
}
.contact-form .form-group label::before { content: '//' !important; margin-right: 0.7em; letter-spacing: 0; color: var(--rd-acc); }
.contact-form .form-group label::after { content: none !important; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px !important;
    font-family: var(--rd-sans) !important;
    font-size: 15px !important;
    line-height: 1.5;
    letter-spacing: 0 !important;
    color: var(--text-primary) !important;
    background: var(--white-alpha-04) !important;
    border: 1px solid var(--white-alpha-15) !important;
    border-radius: var(--rd-rb) !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.35s var(--rd-ease), background 0.35s !important;
}
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--white-alpha-30) !important; }
.contact-form input:focus, .contact-form textarea:focus { background: var(--white-alpha-07) !important; border-color: var(--rd-acc) !important; box-shadow: none !important; outline: none !important; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--white-alpha-30) !important; font-family: var(--rd-sans) !important; }
.contact-form textarea { min-height: 136px; resize: vertical; }
.contact-form .submit-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    padding: 0 24px !important;
    font-family: var(--rd-sans) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    color: var(--rd-on-acc) !important;
    background: var(--rd-acc) !important;
    border: 0 !important;
    border-radius: var(--rd-rb) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background 0.35s var(--rd-ease) !important;
}
.contact-form .submit-btn:hover { background: var(--rd-acc-2) !important; transform: none !important; box-shadow: none !important; }
.contact-form .submit-btn .submit-btn-icon { width: 18px; height: 18px; }

/* Datenschutz / Impressum */
.legal-section h2 {
    margin: 0 0 6px !important;
    font-family: var(--rd-sans) !important;
    font-size: clamp(26px, 2.6vw, 36px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.1 !important;
    color: var(--rd-acc) !important;
}
.legal-section h3 {
    position: relative;
    margin: clamp(30px, 3.6vw, 46px) 0 12px !important;
    padding-left: 16px;
    font-family: var(--rd-sans) !important;
    font-size: clamp(17px, 1.5vw, 20px) !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em !important;
    color: var(--text-primary) !important;
}
.legal-section h3::before { content: ''; position: absolute; left: 0; top: 0.28em; bottom: 0.28em; width: 3px; border-radius: 2px; background: var(--rd-acc); }
.legal-section p { max-width: 76ch; margin: 0 0 14px !important; }
.legal-section h2 + p { margin-top: 18px !important; }
.legal-section .last-updated {
    font-family: var(--rd-mono) !important;
    font-size: var(--rd-t-label) !important;
    font-style: normal !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    color: var(--rd-dim) !important;
}
.legal-section .contact-info { max-width: 640px; padding: clamp(22px, 2.4vw, 32px) !important; }
.legal-section .contact-info .contact-name { margin: 0 0 16px !important; font-family: var(--rd-sans) !important; font-size: 16px !important; line-height: 1.5 !important; color: var(--rd-text) !important; }
.legal-section .contact-info .contact-name strong { font-size: 18px; font-weight: 650; color: var(--text-primary); }
.legal-section .contact-info .contact-item { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 6px 0; font-family: var(--rd-sans) !important; font-size: 15px !important; line-height: 1.5; color: var(--rd-text) !important; }
.legal-section .contact-info .contact-item .ci-icon { opacity: 0.7; flex-shrink: 0; }
.legal-section a { color: var(--rd-acc); text-decoration-color: var(--rd-acc-line); }

/* 404 */
.not-found-content .back-home-btn {
    background: var(--rd-acc) !important;
    color: var(--rd-on-acc) !important;
    border: 0 !important;
    border-radius: var(--rd-rb) !important;
    font-family: var(--rd-sans) !important;
    font-weight: 650 !important;
    box-shadow: none !important;
    transition: background 0.35s var(--rd-ease) !important;
}
.not-found-content .back-home-btn:hover { background: var(--rd-acc-2) !important; transform: none !important; box-shadow: none !important; }

/* Mobile */
@media (max-width: 768px) {
    .customers-text { max-width: none; }
    /* The resume button stays a slim single line bar on phones (not stacked or oval) */
    .resume-download-section-inline { justify-content: flex-start !important; }
    .resume-download-btn-enhanced { flex-direction: row !important; width: auto !important; max-width: 100%; padding: 8px 12px 8px 8px !important; gap: 10px !important; text-align: left !important; }
    .resume-download-btn-enhanced .download-icon-wrapper { width: 38px !important; height: 38px !important; }
    .resume-download-btn-enhanced .download-content { gap: 0 !important; }
    .resume-download-btn-enhanced .file-type-badge { align-self: center; padding: 5px 10px !important; }
}

/* ==============================================================================
   5. ABOUT: CUSTOMER MARQUEE
   The marquee turns all logos pure white through a filter (grayscale and a
   hard threshold); on hover the original colours return. The spotAR mark has
   a gradient and a white arrow, which the filter would turn into a half
   black hexagon, so two images lie on top of each other: the pure white
   version of the whole logo (always visible) and the mark in its original
   colours, which fades in above it on hover. Everything white stays fully
   opaque during the transition. Both files share the same viewBox. The
   colours belong to the brand, not to the theme.
   ============================================================================== */
.customers-section--editorial .customers-rail .customer-logo-link--spotar { display: grid !important; place-items: center; }
.customer-logo-link--spotar > img { grid-area: 1 / 1; }
.customers-section--editorial .customers-rail .customer-item .spotar-color {
    opacity: 0 !important;
    /* The mark never gets the threshold filter of the marquee (not even outside of hover).
       Otherwise the filter would jump back at once on mouse out while the mark still faded
       out for 0.5 s, and the hexagon looked half black for a moment (the logo seemed half
       cut off). */
    filter: none !important;
    transition: opacity 0.55s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.customers-section--editorial .customers-rail .customer-item:hover .spotar-color,
.customers-section--editorial .customers-rail .customer-logo-link:hover .spotar-color { opacity: 1 !important; filter: none !important; }

/* ==============================================================================
   6. COOKIE BANNER
   Only the typeface and the glow are adjusted. The shape, cookie circle,
   accent button and corners are defined in styles.css. All colours come from
   the palette; this section only takes things away.
   ============================================================================== */
/* Typeface: everything in Inter like the rest of the page (title, description, links
   and buttons) */
.cookie-card,
.cookie-card button,
.cookie-toast,
.cookie-toast button,
.cookie-confirmation { font-family: var(--rd-sans); }
.cookie-title { letter-spacing: -0.02em; }
.cookie-description { font-size: clamp(13px, 2.4vw, 13.5px); line-height: 1.6; letter-spacing: 0; }
.cookie-privacy-link,
.cookie-privacy-separator { font-size: clamp(12px, 2.2vw, 12.5px); letter-spacing: 0; }
.cookie-btn { font-size: clamp(13px, 2.3vw, 14px); letter-spacing: 0; }
/* No glow: nothing glows around the cookie circle (shadow and pulsing halo), no
   glowing dots, no accent flash of the card when it appears, no glow on the
   confirmation (banner message and toast). The dark shadow and the fine accent border
   stay. */
.cookie-icon-container { box-shadow: none !important; }
.cookie-icon-container::before { content: none !important; animation: none !important; }
.cookie-particle { box-shadow: none !important; }
.cookie-banner.show .cookie-card { animation: none !important; }
.cookie-confirmation { box-shadow: none !important; }
.cookie-toast__glow { display: none !important; }
.cookie-toast--visible.cookie-toast--accept { box-shadow: 0 20px 60px var(--black-alpha-50), 0 0 0 1px var(--accent-alpha-15), inset 0 1px 0 var(--white-alpha-08); }

/* ==============================================================================
   7. LOADING CURTAIN AND HEADER
   While the curtain lifts, the hero video is shown at once without fading in
   (the site script sets html.curtain-opening for the first 1.6 s).
   Everything else (content, hero name, award badge) builds up after the
   curtain has cleared, see LOADING CURTAIN HANDOVER in the site script. The
   header arrives as one piece: logo, tabs and language button are fixed
   inside the notch. Until the signal html.rd-hdr-go (about 0.45 s after the
   curtain starts) the notch stays above the screen, then it glides down with
   the soft curve, the same way it returns when scrolling up.
   ============================================================================== */
html.curtain-opening #heroVideo,
html.curtain-opening .hero-video { transition: none !important; }

/* Header: everything stands still, only the notch moves */
.header { opacity: 1; animation: none; }
.nav-logo a { opacity: 1; transform: none; animation: none; }
.nav-links a { opacity: 1; transform: none; }
.nav-links.nav-animate-in a { animation: none; }
.nav-language,
.nav-links.nav-animate-in ~ .nav-language { opacity: 1; transform: none; animation: none; }
@media (max-width: 900px) {
    .header { animation: none !important; }
}
/* Until the signal the notch stays above the screen (no flash behind the curtain); the
   safety net shows it after 20 s in any case */
html:not(.rd-hdr-go) .header .nav {
    opacity: 0;
    transform: translateY(calc(-100% - 30px));
    transition: none;
    animation: rdHdrSafe 0.01s linear 20s forwards;
}
@keyframes rdHdrSafe { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    html:not(.rd-hdr-go) .header .nav { transform: none; }
}

/* ==============================================================================
   8. DEVICE COMPATIBILITY
   Fixes for Apple and Android phones and tablets: text scaling, dark colour
   scheme of form controls, 16 px inputs against the iOS zoom, tap areas of
   at least 44 px, small phones, a fallback without color-mix(), safe areas
   for the cookie banner and the phone menu.
   ============================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }

@media (pointer: coarse) {
    .contact-form input, .contact-form textarea { font-size: 16px !important; }
    .nav-lang-btn, .mobile-menu-toggle, .about-social-icons .social-icon, .footer-links a { position: relative; }
    .nav-lang-btn::after { content: ''; position: absolute; inset: -6px -2px; }
    .mobile-menu-toggle::after { content: ''; position: absolute; inset: -7px; }
    .about-social-icons .social-icon::after { content: ''; position: absolute; inset: -7px; }
    .footer-links a::after { content: ''; position: absolute; inset: -12px -8px; }
    .nav-links a::before { content: ''; position: absolute; inset: -6px -3px; }
}

/* Phone menu: the curtain (.mobile-menu-overlay) sits inside the header, and because
   of transform and contain the header is the containing block for fixed elements. With
   a top safe area (iPhone with a notch: the header sits below the status bar) the
   whole menu slid down by that height, a piece was missing at the bottom (language
   button in the home bar) and at the sides in landscape the edge was left uncovered.
   Compensation: the curtain covers the whole screen again. */
.mobile-menu-overlay {
    top: calc(-1 * env(safe-area-inset-top, 0px));
    left: calc(-1 * env(safe-area-inset-left, 0px));
    width: calc(100% + env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px));
}
/* Phone menu: 1) Only one language button: with the menu open the upper one (in the
   header, next to the close button) is gone and the lower one in the menu stays.
   styles.css already hides the upper one (body.mobile-menu-open .nav-language), but a
   rule with higher weight (.nav-links.nav-animate-in ~ .nav-language { opacity: 1 })
   kept it visible. It fades out softly and fades in again on closing. 2) The hamburger
   turns into the close button in the same place (it is the same button, the bars
   rotate). The menu column always starts below the close button: the button ends 36.5
   px below the header edge, plus at least 21 px of air (58 px, up to 72 px on tall
   phones) plus the top safe area. 3) Low screens (landscape, up to 440 px height):
   entries and language button become more compact so everything fits without cutting. */
:root { --rd-mm-top: clamp(58px, 8vh, 72px); }
@media (max-width: 900px) {
    body.mobile-menu-open .nav-language,
    body.mobile-menu-open .nav-links.nav-animate-in ~ .nav-language {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0s linear 0.22s;
    }
    .nav-language,
    .nav-links.nav-animate-in ~ .nav-language { transition: opacity 0.3s ease 0.12s, visibility 0s; }
    .mobile-menu-content { padding-top: calc(var(--rd-mm-top) + env(safe-area-inset-top, 0px)) !important; }
    .mobile-nav-links { margin-top: 0 !important; }
}
@media (max-width: 480px) {
    .mobile-menu-content { padding-bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 20px)); }
}
@media (max-width: 900px) and (max-height: 440px) {
    .mobile-menu-content { padding-top: calc(54px + env(safe-area-inset-top, 0px)) !important; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important; }
    .mobile-nav-links { gap: 4px !important; }
    .mobile-nav-link { padding: 9px 18px !important; font-size: 15px !important; }
    .mobile-nav-language { margin: 6px 0 0 !important; padding: 6px 0 !important; }
    .mobile-lang-btn { height: 36px; padding-top: 6px; padding-bottom: 6px; }
}

/* Fixed notices (cookie banner, cookie messages, like message) account for the safe
   area (home bar at the bottom, notch at the sides). Without a notch env() is 0 and
   nothing changes. */
.cookie-banner { bottom: calc(3% + env(safe-area-inset-bottom, 0px)); }
.cookie-confirmation { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.cookie-toast { bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.toast { top: calc(20px + env(safe-area-inset-top, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); }
@media (max-width: 900px) { .cookie-banner { bottom: calc(4% + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 560px) { .cookie-banner { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 480px) { .cookie-banner { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 375px) { .cookie-banner { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } }

/* Phone: first name and last name stand one below the other; the gap between them is
   the same as between the other fields */
@media (max-width: 768px) {
    .contact-form .form-row { gap: 25px; }
}

@media (max-width: 400px) {
    .resume-download-btn-enhanced { gap: 8px !important; }
    .resume-download-btn-enhanced .download-title { font-size: 14px !important; }
    .resume-download-btn-enhanced .file-type-badge { padding: 5px 8px !important; }
    .resume-download-btn-enhanced .file-type-badge svg { display: none; }
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    :root {
        --rd-text: var(--text-secondary);
        --rd-ink: var(--surface-1);
        --rd-veil: var(--surface-0-alt);
        --rd-veil-2: var(--surface-0-alt);
        --rd-veil-3: var(--surface-0-alt);
        --rd-notch-edge: var(--white-alpha-20);
    }
}
