/* ==========================================
   DTL GmbH — Luxury Design System
   Deep violet, dark, cinematic.
   Class names are intentionally unchanged from
   the previous stylesheet: app.js binds to them.
   ========================================== */

:root {
    /* Surfaces — near-black violet, never pure black */
    --bg-void: #0B0616;
    --bg-deep: #120A24;
    --bg-raise: #17102C;
    --surface-glass: rgba(139, 92, 246, 0.055);
    --surface-glass-hi: rgba(139, 92, 246, 0.1);

    /* Brand violet — --primary is the original DTL purple, kept as anchor */
    --primary: #4B0082;
    --primary-light: #7C3AED;
    --accent: #8B5CF6;
    --accent-light: #C4B5FD;
    --accent-pale: #E9D5FF;

    /* Metallic violet, used for headline and rule fills */
    --violet-metal: linear-gradient(120deg, #C4B5FD 0%, #8B5CF6 42%, #6D28D9 72%, #A78BFA 100%);
    --violet-line: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);

    /* Type */
    --text-hi: #F4F1FA;
    --text-mid: rgba(233, 226, 248, 0.66);
    --text-low: rgba(233, 226, 248, 0.40);

    /* Hairlines — luxury reads as thin, not heavy */
    --hairline: rgba(167, 139, 250, 0.14);
    --hairline-hi: rgba(167, 139, 250, 0.30);

    /* Glow, not drop shadow */
    --glow-violet: 0 0 60px rgba(139, 92, 246, 0.22);
    --glow-violet-sm: 0 0 24px rgba(139, 92, 246, 0.28);
    --shadow-depth: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 18px 46px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: var(--shadow-depth);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Vertical rhythm — roughly double the old spacing */
    --section-pad: clamp(90px, 12vw, 180px);
}

/* ---------- Reset & base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-void);
    /* `clip`, not `hidden`: the horizontal reveal transforms (translateX ±44px)
       overhang the viewport until they land, and `hidden` would create a scroll
       container that breaks the sticky positioning the scrub band relies on. */
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-mid);
    background-color: var(--bg-void);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient violet bloom fixed behind the whole page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 75% 0%, rgba(109, 40, 217, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
        var(--bg-void);
    pointer-events: none;
}

/* Fine film grain over everything — the cheapest way to look expensive */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

::selection {
    background: rgba(139, 92, 246, 0.35);
    color: var(--text-hi);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 10px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-hi);
    line-height: 1.1;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 6.25rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.75rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.015em;
}

h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.text-center { text-align: center; }

.gradient-text-purple {
    background: var(--violet-metal);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Layout ---------- */
.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.items-center { align-items: center; }

section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* ---------- Scroll reveal engine ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(38px);
    transition:
        opacity 1.1s var(--ease-lux) var(--reveal-delay, 0ms),
        transform 1.1s var(--ease-lux) var(--reveal-delay, 0ms),
        filter 1.1s var(--ease-lux) var(--reveal-delay, 0ms);
    filter: blur(6px);
    will-change: opacity, transform;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

[data-reveal="fade"] { transform: none; }

[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }

[data-reveal="scale"] {
    transform: scale(0.94);
    filter: blur(10px);
}

/* Line that draws itself in */
[data-reveal="line"] {
    transform: scaleX(0);
    transform-origin: center;
    filter: none;
}
[data-reveal="line"].is-revealed { transform: scaleX(1); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--violet-metal);
    box-shadow: var(--glow-violet-sm);
    width: 0%;
    z-index: 1001;
    transition: width 0.12s linear;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 38px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
                background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
    border: none;
    gap: 10px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Sheen sweep on hover */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--ease-lux);
}

.btn:hover::before { transform: translateX(120%); }

.btn-primary {
    background: linear-gradient(120deg, var(--primary-light) 0%, var(--accent) 55%, #A78BFA 100%);
    color: #fff;
    box-shadow: 0 10px 34px -10px rgba(139, 92, 246, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px -12px rgba(139, 92, 246, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-hi);
    border: 1px solid var(--hairline-hi);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(139, 92, 246, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.btn-block { display: flex; width: 100%; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; }
.icon-purple { color: var(--accent-light); }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth),
                backdrop-filter var(--transition-smooth), box-shadow var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(11, 6, 22, 0.72);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom-color: var(--hairline);
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9);
}

.header-container {
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height var(--transition-smooth);
}

.header.scrolled .header-container { height: 78px; }

.logo-container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
}

.dtl-logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-smooth), filter var(--transition-fast);
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.35));
}

.logo-link:hover .dtl-logo-img {
    filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.65));
}

.header.scrolled .dtl-logo-img { height: 46px; }

.logo-text-dynamisch {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.6em;
    color: var(--text-hi);
    margin-top: 4px;
    margin-right: -0.6em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.logo-text-sub {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-low);
    margin-top: 2px;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-text-dynamisch { font-size: 0.68rem; margin-top: 2px; }
.header.scrolled .logo-text-sub { font-size: 0.45rem; margin-top: 1px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-mid);
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.5s var(--ease-lux);
}

.nav-link:hover { color: var(--text-hi); }
.nav-link:hover::after { width: 100%; }

.nav-contact-btn {
    padding: 12px 28px;
    color: #fff !important;
    font-size: 0.78rem;
}

.nav-contact-btn::after { display: none; }

/* ---------- Language switcher ---------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-low);
    cursor: pointer;
    padding: 4px 8px;
    transition: color var(--transition-fast);
}

.lang-btn:hover { color: var(--text-hi); }

.lang-btn.active {
    color: var(--accent-light);
    position: relative;
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 8px;
    right: 8px;
    height: 1px;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.lang-divider { color: var(--hairline-hi); }

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-toggle .bar {
    width: 26px;
    height: 1.5px;
    background-color: var(--text-hi);
    transition: var(--transition-fast);
}

/* ==========================================
   HERO — cinematic video stage
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 190px;
    padding-bottom: 140px;
    overflow: hidden;
    background-color: var(--bg-void);
}

/* Video / fallback layer sits behind everything in the hero */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video,
.hero-media-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.6s ease;
}

.hero-video.is-ready,
.hero-media-fallback.is-ready { opacity: 1; }

.hero-video {
    filter: saturate(0.75) contrast(1.06) brightness(0.82);
    transform: scale(1.06);
}

/* Network-map still. Sits on the right so it reads as a companion to the
   headline rather than wallpaper behind it, and is feathered on every edge so
   it dissolves into the page instead of ending on a hard rectangle. */
/* Anchored to the right rather than stretched across the hero.
   `cover` is wrong for a map: the artwork is nearly square, so on a wide hero
   it scales by width, leaving no horizontal freedom and slicing the top and
   bottom off Germany. `contain` inside a right-hand box keeps the country
   whole and puts it where the photo card used to sit, clear of the headline. */
.hero-still {
    position: absolute;
    top: 50%;
    right: -2%;
    transform: translateY(-50%);
    width: 68%;
    height: 108%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 1.6s ease;
    /* Pushed hard: the duotone layer above flattens luminance, and the page's
       ambient violet bloom sits behind the map's near-black plate, so without
       extra contrast the whole thing goes milky. */
    filter: saturate(1.15) contrast(1.45) brightness(0.92);
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 22%),
        linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 22%),
        linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero-still.is-ready { opacity: 1; }

/* When the map is in use the hero photo card would fight it for the same
   space, so it steps aside. */
.hero-section.has-still .hero-visual { display: none; }

.hero-section.has-still .hero-container {
    grid-template-columns: minmax(0, 1fr);
}

/* The map occupies the right of the frame, so the copy is held to the left
   half instead of running underneath it. */
.hero-section.has-still .hero-content {
    max-width: 620px;
}

/* Ease the duotone off the map. At full strength it maps every pixel to the
   same violet hue, which erases the difference between the gold pins and the
   dark plate - the exact contrast that makes the artwork read. */
.hero-section.has-still .hero-media::after { opacity: 0.5; }

/* The right-hand darkening exists to protect the photo card's contrast; with
   the map there it just mutes the glow. */
.hero-section.has-still .hero-overlay {
    background:
        linear-gradient(180deg, rgba(11, 6, 22, 0.72) 0%, rgba(11, 6, 22, 0.22) 38%, var(--bg-void) 100%),
        linear-gradient(90deg, var(--bg-void) 0%, rgba(11, 6, 22, 0.82) 30%, transparent 62%);
}

/* Duotone violet pass over the footage.
   The ffmpeg grade cannot tint this clip: its light trails are clipped to pure
   white, and a blown highlight has no colour left to shift. `mix-blend-mode:
   color` takes luminance from the video and hue from this layer, so it tints
   the highlights too — which is what actually makes stock footage read as brand. */
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(140deg, #6D28D9 0%, #4B0082 55%, #8B5CF6 100%);
    mix-blend-mode: color;
    opacity: 0.8;
    pointer-events: none;
}

/* Canvas gradient shown when no video file is present */
.hero-media-fallback { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Dark enough to keep the headline legible, light enough that the footage
       is still visibly moving behind it. */
    background:
        linear-gradient(180deg, rgba(11, 6, 22, 0.78) 0%, rgba(11, 6, 22, 0.30) 42%, var(--bg-void) 100%),
        radial-gradient(ellipse 70% 60% at 70% 30%, rgba(109, 40, 217, 0.26) 0%, transparent 65%),
        linear-gradient(90deg, rgba(11, 6, 22, 0.88) 0%, rgba(11, 6, 22, 0.45) 42%, transparent 72%);
}

.hero-container {
    position: relative;
    z-index: 2;
    align-items: center;
}

.badge-wrapper { margin-bottom: 30px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(139, 92, 246, 0.09);
    color: var(--accent-pale);
    border: 1px solid var(--hairline-hi);
    padding: 9px 22px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Small pulsing dot inside badges */
.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 10px var(--accent-light);
    animation: badgePulse 2.6s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

.badge-accent {
    background-color: rgba(196, 181, 253, 0.08);
    color: var(--accent-pale);
}

.hero-content h1 {
    color: var(--text-hi);
    margin-bottom: 30px;
    text-wrap: balance;
}

.hero-content p {
    color: var(--text-mid);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--hairline);
    width: 100%;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-depth), var(--glow-violet);
    transition: transform 0.9s var(--ease-lux);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    /* The source photography is bright daylight. Without grading it fights the
       dark palette and reads as a stock image dropped onto a luxury page. */
    filter: saturate(0.62) contrast(1.1) brightness(0.7);
}

/* Violet wash over the hero photo so it belongs to the scheme */
.visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(75, 0, 130, 0.42) 0%, transparent 45%, rgba(11, 6, 22, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-floating-card {
    position: absolute;
    bottom: -34px;
    left: -34px;
    background-color: rgba(18, 10, 36, 0.72);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--hairline-hi);
    padding: 22px 28px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-depth);
    animation: floating 5s ease-in-out infinite;
    /* must sit above .visual-card::after, which is generated last */
    z-index: 2;
}

.hero-floating-card h4 {
    color: var(--text-hi);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.hero-floating-card p {
    color: var(--text-low);
    font-size: 0.8rem;
    margin-bottom: 0;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll cue at the bottom of the hero */
.hero-scroll-cue {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.62rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-low);
    font-family: var(--font-heading);
}

.hero-scroll-cue .cue-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.hero-scroll-cue .cue-line::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--accent-light));
    animation: cueTravel 2.6s ease-in-out infinite;
}

@keyframes cueTravel {
    0% { top: -60px; }
    100% { top: 60px; }
}

/* ---------- Trust bar ---------- */
.trust-bar-section {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--hairline);
    position: relative;
    z-index: 10;
    margin-top: -70px;
    border-radius: var(--radius-lg);
    max-width: 1216px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-depth);
    padding: 0;
}

.trust-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 38px 28px;
    flex-wrap: wrap;
    gap: 34px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform var(--transition-fast);
}

.trust-badge-item:hover { transform: translateY(-3px); }

.badge-icon-holder {
    width: 52px;
    height: 52px;
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.04));
    border: 1px solid var(--hairline);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    flex-shrink: 0;
    transition: box-shadow var(--transition-fast);
}

.trust-badge-item:hover .badge-icon-holder { box-shadow: var(--glow-violet-sm); }

.trust-icon { width: 22px; height: 22px; }

.trust-badge-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.trust-badge-text p {
    font-size: 0.8rem;
    color: var(--text-low);
    margin-bottom: 0;
}

.trust-divider {
    width: 1px;
    height: 52px;
    background: linear-gradient(180deg, transparent, var(--hairline-hi), transparent);
}

/* ---------- Section headers ---------- */
.section-header { margin-bottom: 80px; }

.section-header h2 {
    margin-bottom: 24px;
    text-wrap: balance;
}

.section-underline {
    width: 90px;
    height: 1px;
    background: var(--violet-line);
    margin: 0 auto 28px;
    border-radius: 0;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-mid);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================
   SCROLL-SCRUBBED VIDEO BAND
   ========================================== */
.scrub-section {
    position: relative;
    height: 320vh;          /* scroll distance that drives the playhead */
    padding: 0;
    background-color: var(--bg-void);
}

.scrub-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrub-video,
.scrub-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scrub-video {
    /* Kept deliberately dark: the duotone layer below tints it violet, and at
       full brightness the result is a loud purple wash rather than a deep one. */
    filter: saturate(0.45) contrast(1.2) brightness(0.34);
}

/* Shown when no footage is present. Slowly drifting violet field so the band
   still reads as a deliberate cinematic beat rather than an empty black gap. */
.scrub-fallback {
    background:
        radial-gradient(ellipse 55% 45% at 25% 30%, rgba(139, 92, 246, 0.30) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 78% 68%, rgba(75, 0, 130, 0.45) 0%, transparent 62%),
        radial-gradient(ellipse 70% 55% at 55% 50%, rgba(109, 40, 217, 0.20) 0%, transparent 70%),
        linear-gradient(160deg, #150C28 0%, var(--bg-void) 70%);
    background-size: 160% 160%, 150% 150%, 180% 180%, 100% 100%;
    animation: scrubDrift 26s ease-in-out infinite alternate;
}

@keyframes scrubDrift {
    0%   { background-position: 0% 0%, 100% 100%, 50% 50%, 0 0; }
    100% { background-position: 30% 40%, 60% 60%, 40% 60%, 0 0; }
}

/* Duotone violet pass, matching the hero. z-index 1 keeps it above the footage
   and veil but below the captions (z-index 2), which must stay untinted. */
.scrub-sticky::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(145deg, #6D28D9 0%, #4B0082 58%, #8B5CF6 100%);
    mix-blend-mode: color;
    opacity: 0.62;
    pointer-events: none;
}

.scrub-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 60% at 50% 50%, transparent 0%, rgba(11, 6, 22, 0.55) 75%, rgba(11, 6, 22, 0.9) 100%),
        linear-gradient(180deg, var(--bg-void) 0%, transparent 18%, transparent 82%, var(--bg-void) 100%),
        linear-gradient(120deg, rgba(75, 0, 130, 0.35) 0%, transparent 60%);
}

.scrub-captions {
    position: relative;
    z-index: 2;
    text-align: center;
    /* Every child is absolutely positioned, so this flex item has no in-flow
       content to size against and would collapse to zero width. */
    width: min(880px, 90vw);
    height: 60vh;
    padding: 0 32px;
}

.scrub-band {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(28px);
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.9s var(--ease-lux);
    pointer-events: none;
}

.scrub-band.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.scrub-band h2 {
    font-size: clamp(2rem, 5.5vw, 4.75rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.9);
}

.scrub-band p {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.9);
}

/* Thin progress rail for the scrub */
.scrub-rail {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, 60vw);
    height: 1px;
    background: rgba(196, 181, 253, 0.18);
    z-index: 2;
}

.scrub-rail-fill {
    height: 100%;
    width: 0%;
    background: var(--violet-metal);
    box-shadow: var(--glow-violet-sm);
}

/* ---------- About ---------- */
.about-section { background-color: transparent; }

.about-card {
    padding: 52px;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color var(--transition-fast), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.about-card:hover {
    border-color: var(--hairline-hi);
    box-shadow: var(--glow-violet);
}

.about-card h3 {
    margin-bottom: 26px;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.about-card p {
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 22px;
}

.about-card p:last-child { margin-bottom: 0; }

.quote-card {
    background:
        linear-gradient(150deg, rgba(109, 40, 217, 0.35) 0%, rgba(75, 0, 130, 0.18) 55%, rgba(139, 92, 246, 0.1) 100%),
        var(--bg-raise);
    border: 1px solid var(--hairline-hi);
    color: var(--text-hi);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.16) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 11rem;
    color: rgba(196, 181, 253, 0.09);
    position: absolute;
    top: -34px;
    left: 24px;
    line-height: 1;
}

.quote-card blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 1.9vw, 1.6rem);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: -0.015em;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
    color: var(--text-hi);
}

.quote-author {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
}

.quote-author strong {
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-hi);
}

.quote-author span {
    font-size: 0.78rem;
    color: var(--text-low);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ---------- Partners ---------- */
.partners-section { background-color: transparent; }

.partners-filter-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}

.partners-tabs {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 7px;
    border-radius: 100px;
    display: inline-flex;
    border: 1px solid var(--hairline);
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.tab-btn {
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 11px 26px;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-low);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tab-btn:hover { color: var(--text-hi); }

.tab-btn.active {
    background: linear-gradient(120deg, var(--primary-light), var(--accent));
    color: #fff;
    box-shadow: 0 6px 22px -8px rgba(139, 92, 246, 0.9);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.partner-card {
    background: var(--surface-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius-md);
    padding: 34px;
    border: 1px solid var(--hairline);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Violet wash that rises on hover */
.partner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.partner-card:hover::after { opacity: 1; }

.partner-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    display: none;
}

.partner-card:hover {
    transform: translateY(-7px);
    border-color: var(--hairline-hi);
    box-shadow: var(--shadow-md), var(--glow-violet);
}

.partner-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-hi);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Real logo file, once one is dropped into assets/partners/.
   Hidden until it actually loads, so a missing file never leaves a broken
   image icon - the styled wordmark below just stays visible instead. */
/* Fixed height, auto width: brand-kit SVGs often carry only a viewBox and no
   intrinsic width/height, and `max-height` + `width:auto` collapses those to a
   sliver. A definite height lets the browser derive the ratio from the viewBox. */
.brand-logo-img {
    display: none;
    height: 30px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Partner logos arrive in every possible colourway - dark-on-transparent,
   full colour, white-on-transparent. A soft light plate is the only treatment
   that renders all of them correctly on a dark card. */
/* Pure white, not tinted: several of the supplied logos are PNGs with an opaque
   white background rather than transparency, and any off-white plate shows them
   as a lighter rectangle floating inside it. */
.brand-logo.has-logo {
    max-width: 62%;
    background: #ffffff;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 10px;
    padding: 8px 14px;
    min-height: 46px;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.7);
}

.brand-logo.has-logo .brand-logo-img { display: block; }
.brand-logo.has-logo .brand-logo-text { display: none; }

/* Partner brand colours, lifted for legibility on dark */
.dpd-brand { color: #F87171; }
.go-brand { color: #93C5FD; }
.post-brand {
    color: #FDE047;
    background-color: rgba(253, 224, 71, 0.1);
    border: 1px solid rgba(253, 224, 71, 0.22);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 1.05rem;
}
.fresh-brand { color: #6EE7B7; }
.pdg-brand { color: #FDBA74; font-size: 1.05rem; }
.grosso-brand { color: #A5B4FC; font-size: 1.05rem; }

.brand-tag {
    font-size: 0.65rem;
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--hairline);
    color: var(--accent-light);
    padding: 5px 12px;
    border-radius: 100px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.partner-details { position: relative; z-index: 1; }

.partner-details h4 {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-low);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    margin-top: 20px;
    font-weight: 500;
}

.partner-details h4:first-of-type { margin-top: 0; }

.tasks-desc {
    font-size: 0.95rem;
    color: var(--text-hi);
    font-weight: 300;
    margin-bottom: 0;
    line-height: 1.6;
}

.location-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.location-list li {
    font-size: 0.78rem;
    background-color: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--hairline);
    color: var(--accent-light);
    font-weight: 400;
    padding: 5px 13px;
    border-radius: 100px;
    transition: background-color var(--transition-fast);
}

.partner-card:hover .location-list li { background-color: rgba(139, 92, 246, 0.16); }

/* ---------- Services ---------- */
.services-section { background-color: transparent; }

.service-card {
    background: var(--surface-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    padding: 46px 40px;
    border: 1px solid var(--hairline);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Cursor-tracked spotlight (position set from app.js) */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.14), transparent 42%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--hairline-hi);
    box-shadow: var(--shadow-md), var(--glow-violet);
}

.service-icon-box {
    width: 62px;
    height: 62px;
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.03));
    border: 1px solid var(--hairline);
    color: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon-box {
    background: linear-gradient(140deg, var(--primary-light), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-violet-sm);
    transform: translateY(-2px);
}

.service-icon { width: 26px; height: 26px; }

.service-card h3 {
    font-size: 1.22rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.93rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ---------- Expansion ---------- */
.expansion-section {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.expansion-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 8% 30%, rgba(139, 92, 246, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 92% 75%, rgba(75, 0, 130, 0.22) 0%, transparent 55%);
    pointer-events: none;
}

.expansion-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.expansion-img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-depth), var(--glow-violet);
    filter: saturate(0.62) contrast(1.1) brightness(0.72);
}

.expansion-content h2 {
    color: var(--text-hi);
    margin-bottom: 26px;
}

.expansion-content p {
    color: var(--text-mid);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 22px;
}

.expansion-timeline {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-light);
    border-radius: 50%;
    margin-top: 9px;
    flex-shrink: 0;
    box-shadow: 0 0 16px var(--accent);
    position: relative;
    z-index: 2;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 5.5px;
    width: 1px;
    height: calc(100% + 18px);
    background: linear-gradient(180deg, var(--hairline-hi), transparent);
    z-index: 1;
}

.timeline-text h4 {
    color: var(--text-hi);
    font-size: 1.08rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-text p {
    color: var(--text-low);
    font-size: 0.92rem;
    font-weight: 300;
    margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact-section { background-color: transparent; }

.contact-info { padding: 20px 0; }

.contact-grid-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

.contact-info-centered {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 46px 60px;
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-depth);
    max-width: 600px;
    width: 100%;
}

.contact-info h3, .contact-info-centered h3 {
    margin-bottom: 44px;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    background: var(--violet-metal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 30px;
}

.info-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.03));
    border: 1px solid var(--hairline);
    color: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: box-shadow var(--transition-fast);
}

.info-item:hover .info-icon { box-shadow: var(--glow-violet-sm); }

.info-icon svg { width: 19px; height: 19px; }

.info-label {
    display: block;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-low);
    margin-bottom: 6px;
}

.info-value {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-hi);
    line-height: 1.6;
}

.info-link:hover { color: var(--accent-light); }

/* Contact form */
.contact-form-container {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 46px;
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-depth);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-low);
}

.form-group input,
.form-group textarea {
    padding: 15px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-hi);
    background-color: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    outline: none;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(233, 226, 248, 0.26); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background-color: rgba(139, 92, 246, 0.06);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

/* Autofill on dark — Chrome forces a light background without this */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-hi);
    -webkit-box-shadow: 0 0 0 1000px #1A1030 inset;
    caret-color: var(--text-hi);
}

/* Toast */
.toast {
    margin-top: 22px;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 400;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.success {
    background-color: rgba(52, 211, 153, 0.1);
    color: #6EE7B7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.toast.error {
    background-color: rgba(248, 113, 113, 0.1);
    color: #FCA5A5;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.hidden { display: none !important; }

/* ---------- Footer ---------- */
.footer {
    background-color: rgba(11, 6, 22, 0.6);
    border-top: 1px solid var(--hairline);
    padding: 44px 0;
    color: var(--text-low);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    letter-spacing: 0.06em;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.45s var(--ease-lux);
}

.footer-link:hover { color: var(--text-hi); }
.footer-link:hover::after { width: 100%; }

/* ---------- Modals ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 6, 22, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.modal-box {
    background: linear-gradient(160deg, var(--bg-raise) 0%, var(--bg-deep) 100%);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 720px;
    max-height: 82vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-depth), var(--glow-violet);
    border: 1px solid var(--hairline-hi);
    animation: modalReveal 0.6s var(--ease-lux);
}

@keyframes modalReveal {
    from { transform: scale(0.96) translateY(24px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-low);
    transition: color var(--transition-fast), transform var(--transition-fast);
    line-height: 1;
}

.modal-close:hover { color: var(--text-hi); transform: rotate(90deg); }

.modal-content { padding: 52px; }

.modal-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.modal-content hr {
    border: none;
    height: 1px;
    background: var(--violet-line);
    margin-bottom: 28px;
}

.modal-content h3 {
    font-size: 1rem;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--accent-light);
    letter-spacing: 0.02em;
}

.modal-content p {
    font-size: 0.93rem;
    font-weight: 300;
    color: var(--text-mid);
    margin-bottom: 12px;
    line-height: 1.8;
}

.modal-content strong { color: var(--text-hi); font-weight: 600; }

/* ---------- Custom cursor (pointer:fine only) ---------- */
.lux-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--hairline-hi);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-lux), height 0.3s var(--ease-lux),
                background-color 0.3s var(--ease-lux), border-color 0.3s var(--ease-lux);
    mix-blend-mode: difference;
    display: none;
}

.lux-cursor.is-active { display: block; }

.lux-cursor.is-hovering {
    width: 56px;
    height: 56px;
    background-color: rgba(196, 181, 253, 0.12);
    border-color: var(--accent-light);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1024px) {
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .about-card { padding: 40px; }
    .scrub-section { height: 260vh; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    section { padding: clamp(70px, 14vw, 100px) 0; }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .header-container { height: 76px; }
    .header.scrolled .header-container { height: 66px; }
    .dtl-logo-img { height: 46px; }
    .header.scrolled .dtl-logo-img { height: 40px; }

    .mobile-nav-toggle { display: flex; z-index: 1002; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 340px;
        height: 100svh;
        background: linear-gradient(160deg, var(--bg-raise), var(--bg-void));
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--hairline);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 34px;
        transition: right var(--transition-smooth);
        z-index: 1001;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
    }

    .nav-menu.active { right: 0; }

    .nav-link { font-size: 1rem; letter-spacing: 0.14em; }

    .nav-contact-btn { width: 76%; text-align: center; }

    .mobile-nav-toggle.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .mobile-nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .hero-section {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 110px;
    }

    .hero-content { text-align: center; }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons { justify-content: center; }

    .hero-visual { margin-top: 30px; }

    .hero-floating-card {
        bottom: -24px;
        left: 12px;
        right: 12px;
        justify-content: center;
        padding: 18px 20px;
    }

    .hero-scroll-cue { display: none; }

    /* On a phone the map is far too detailed to read, and as a floating panel
       it collides with the headline and shows a hard rectangular edge. Full
       bleed and faded right back, it works as ambience instead. */
    .hero-still {
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 40%;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 72%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 72%, transparent 100%);
    }

    .hero-still.is-ready { opacity: 0.42; }

    .hero-section.has-still .hero-content { max-width: none; }

    .hero-section.has-still .hero-overlay {
        background:
            linear-gradient(180deg, rgba(11, 6, 22, 0.82) 0%, rgba(11, 6, 22, 0.55) 40%, var(--bg-void) 100%);
    }

    .trust-bar-section {
        margin-top: 30px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .trust-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 26px;
        gap: 24px;
    }

    .trust-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--hairline-hi), transparent);
    }

    .section-header { margin-bottom: 52px; }

    .scrub-section { height: 220vh; }
    .scrub-rail { bottom: 12vh; }

    .partners-grid { grid-template-columns: 1fr; }

    .partners-tabs { border-radius: var(--radius-md); }
    .tab-btn { padding: 10px 18px; font-size: 0.72rem; }

    .about-card { padding: 30px; }
    .quote-icon { font-size: 8rem; }

    .service-card { padding: 34px 28px; }

    .contact-form-container { padding: 30px; }

    .modal-content { padding: 34px 26px; }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links { gap: 24px; }
}

/* ==========================================
   Reduced motion — strip all of it
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .scrub-band { opacity: 1; }
    .hero-scroll-cue { display: none; }
    .lux-cursor { display: none !important; }
}
