:root{
            --brand-green: #9dc41f;      /* existing brand green, unchanged */
            --brand-green-dark: #9dc41f; /* darker green for hover/depth */
            --accent-terracotta: #E76F51;/* warm complementary accent */
            --charcoal: #2D3436;         /* text & dark sections */
            --warm-sand: #EDE6DB;        /* secondary background */
            --off-white: #FAF7F2;        /* main background */
        }

        body { background-color: var(--off-white) !important; color: var(--charcoal) !important; }

        /* Preloader override — uses new palette instead of default white/YT spinner */
        .preloader { background-color: var(--off-white) !important; }
        .brand-loader {
            position: relative;
            display: inline-block;
            width: 70px;
            height: 70px;
        }
        .brand-loader-logo {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 42px;
            height: auto;
            transform: translate(-50%, -50%);
            animation: brandPulse 1.1s ease-in-out infinite;
            z-index: 2;
        }
        .brand-loader-ring {
            position: absolute;
            inset: 0;
            border: 3px solid var(--warm-sand);
            border-top-color: var(--brand-green);
            border-radius: 50%;
            animation: brandSpin 0.8s linear infinite;
        }
        @keyframes brandPulse {
            0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
            50%      { transform: translate(-50%, -50%) scale(0.88); opacity: 0.75; }
        }
        @keyframes brandSpin {
            to { transform: rotate(360deg); }
        }

        /* Section backgrounds */
        .gray-bg { background-color: var(--warm-sand) !important; }

        /* Headlines & titles */
        .title, .section-title .title, .header-content-right .title { color: var(--charcoal) !important; }
        .sub-title { color: var(--brand-green) !important; }

        /* Primary buttons keep the brand green, hover shifts to terracotta */
        .main-btn { background-color: var(--brand-green) !important; border-color: var(--brand-green) !important; color: #fff !important; transition: all .25s ease; }
        .main-btn:hover { background-color: var(--accent-terracotta) !important; border-color: var(--accent-terracotta) !important; color: #fff !important; }

        /* Secondary CTA button (Send e-post) uses the terracotta accent */
        .main-btn.custom-2 { background-color: var(--accent-terracotta) !important; border-color: var(--accent-terracotta) !important; }
        .main-btn.custom-2:hover { background-color: var(--brand-green-dark) !important; border-color: var(--brand-green-dark) !important; }

        /* Skill bars stay green (the established brand color) */
        .bar.progress-line { background-color: var(--brand-green) !important; }
        .skill-title, .counter { color: var(--charcoal) !important; }

        /* Service icons pick up the warm accent for contrast against green */
        .service-icon i { color: var(--accent-terracotta) !important; }
        .single-service:hover .service-icon i { color: var(--brand-green) !important; }

        /* Social & contact icons */
        .header-social-icon i, .contact-icon i, .footer-content i { color: var(--brand-green) !important; }
        .header-social-icon a:hover i, .footer-content a:hover i { color: var(--accent-terracotta) !important; }

        /* Nav links hover */
        .navbar-nav .nav-item a:hover { color: var(--accent-terracotta) !important; }

        /* Call to action section overlay tint */
        #call-to-action .action-title { color: #fff !important; }
        /* Footer */
        .footer-area { background-color: var(--charcoal) !important; }
        .footer-copyright { background-color: #232829 !important; }

        /* ===== Motion additions ===== */

        /* Scroll-linked reveal — opacity/position are set directly by JS based on
           scroll progress, not a fixed-duration transition, so the motion lasts
           exactly as long as the user's scroll does (slow scroll = slow reveal). */
        .reveal {
            opacity: 0;
            transform: translateY(70px) scale(0.97);
            will-change: transform, opacity;
            transition: transform 0.15s ease-out, opacity 0.15s ease-out;
        }
        /* Stagger service cards slightly so they don't all move at once */
        .reveal-stagger:nth-child(1) { transition-delay: 0s; }
        .reveal-stagger:nth-child(2) { transition-delay: 0.08s; }
        .reveal-stagger:nth-child(3) { transition-delay: 0.16s; }
        .reveal-stagger:nth-child(4) { transition-delay: 0.24s; }
        .reveal-stagger:nth-child(5) { transition-delay: 0.32s; }
        .reveal-stagger:nth-child(6) { transition-delay: 0.4s; }

        /* Button micro-interaction — subtle lift + shadow on hover */
        .main-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(39, 174, 96, 0.25);
        }

        /* Animated nav underline */
        .navbar-nav .nav-item a {
            position: relative;
        }
        .navbar-nav .nav-item a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0;
            height: 2px;
            background: var(--brand-green);
            transition: width 0.25s ease;
        }
        .navbar-nav .nav-item a:hover::after,
        .navbar-nav .nav-item.active a::after {
            width: 100%;
        }

        /* Service card lift on hover */
        .single-service {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .single-service:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
        }

        /* Contact box lift on hover, to match service cards */
        .contact-box {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .contact-box:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
        }

        /* Ambient drift on header shapes — runs continuously, on top of the existing mouse parallax */
        .header-shape img {
            animation: floaty 6s ease-in-out infinite;
        }
        .shape-tow img, .shape-fore img { animation-delay: -2s; }
        .shape-three img, .shape-eight img { animation-delay: -4s; }
        .shape-six img { animation-delay: -1s; }
        .shape-nine img, .shape-ten img { animation-delay: -5s; }
        @keyframes floaty {
            0%, 100% { transform: translateY(0); }
            50%      { transform: translateY(-12px); }
        }

        /* Respect users who've asked for reduced motion */
        @media (prefers-reduced-motion: reduce) {
            .reveal { transition: none; opacity: 1 !important; transform: none !important; }
            .header-shape img { animation: none; }
            .brand-loader-logo, .brand-loader-ring { animation-duration: 0.01ms !important; }
        }

        /* Scroll progress bar */
        #scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            width: 0%;
            background-color: var(--brand-green);
            z-index: 100000;
            transition: width 0.1s linear;
        }

        /* Hero content fades + drifts up as the page is scrolled past it */
        .header-content-right {
            transition: opacity 0.2s linear, transform 0.2s linear;
        }

        /* Nav bar: match palette, add depth once sticky */
        .navigation { background-color: var(--off-white) !important; }
        .navigation.sticky {
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important;
        }

        /* Service icons get a little life on hover, beyond the card lift */
        .service-icon i {
            display: inline-block;
            transition: transform 0.3s ease, color 0.3s ease;
        }
        .single-service:hover .service-icon i {
            transform: scale(1.15) rotate(-6deg);
        }

        /* Skill bars animate their fill instead of snapping to width */
        .bar.progress-line {
            transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* Hero image — round photo with a round green backdrop, replacing the
           square bracket-frame from the base template so it matches the
           circular logo/brand mark. */
        .header-image {
            position: relative;
            max-width: 380px;
            width: 100%;
            aspect-ratio: 1 / 1;
            margin: 0 auto;
            animation: heroFloat 5s ease-in-out infinite;
        }
        /* Neutralise the base template's square bracket-frame */
        .header-image::before {
            width: auto;
            height: auto;
            border: none;
            inset: -10px;
            transform: none;
            border-radius: 50%;
            background-color: var(--brand-green);
            z-index: 1;
            animation: haloPulse 3s ease-in-out infinite;
        }
        .header-image::after {
            content: none;
        }
        .header-image img {
            position: relative;
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            border-radius: 50%;
            z-index: 5;
            transition: transform 0.5s ease;
        }
        .header-image:hover img {
            transform: scale(1.05);
        }
        @keyframes heroFloat {
            0%, 100% { transform: translateY(0); }
            50%      { transform: translateY(-14px); }
        }
        @keyframes haloPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50%      { transform: scale(1.03); opacity: 0.85; }
        }

        /* Cursor-follow spotlight over the hero section */
        #parallax { position: relative; }
        /* Keep hero text/image above the mesh + shapes, regardless of DOM order */
        #parallax > .container { position: relative; z-index: 2; }
        .header-shape { z-index: 1; }

        /* Animated gradient-mesh background — a "living" backdrop without video weight */
        #hero-mesh {
            position: absolute;
            inset: 0;
            overflow: hidden;
            z-index: 0;
            pointer-events: none;
        }
        .mesh-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(70px);
            opacity: 0.4;
            animation: meshDrift ease-in-out infinite alternate;
        }
        .mesh-blob.b1 {
            width: 420px; height: 420px;
            background: var(--brand-green);
            top: -120px; left: -100px;
            animation-duration: 16s;
        }
        .mesh-blob.b2 {
            width: 380px; height: 380px;
            background: var(--accent-terracotta);
            bottom: -140px; right: -80px;
            animation-duration: 20s;
            animation-delay: -6s;
        }
        .mesh-blob.b3 {
            width: 320px; height: 320px;
            background: var(--warm-sand);
            top: 35%; left: 45%;
            animation-duration: 24s;
            animation-delay: -11s;
            opacity: 0.5;
        }
        @keyframes meshDrift {
            0%   { transform: translate(0, 0) scale(1); }
            50%  { transform: translate(50px, -35px) scale(1.15); }
            100% { transform: translate(-35px, 25px) scale(0.92); }
        }

        #hero-spotlight {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            opacity: 0;
            transition: opacity 0.3s ease;
            background: radial-gradient(circle 260px at var(--spot-x, 50%) var(--spot-y, 50%), rgba(157, 196, 31, 0.16), transparent 70%);
        }
        #parallax:hover #hero-spotlight {
            opacity: 1;
        }

        /* Keep typing text and cursor on the same line */
        .typing-line {
            white-space: nowrap;
        }

        /* Typing effect cursor */
        .sub-title .typing-cursor,
        .header-content-right .title .typing-cursor {
            display: inline;
            margin-left: 2px;
            white-space: nowrap;
            animation: typingBlink 0.8s step-end infinite;
        }
        @keyframes typingBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        @media (prefers-reduced-motion: reduce) {
            .header-image { animation: none; }
            .header-image::before { animation: none; }
            .header-image img { transition: none; }
            #hero-spotlight { display: none; }
            .mesh-blob { animation: none; }
            .sub-title .typing-cursor,
            .header-content-right .title .typing-cursor { animation: none; }
            .marquee-track { animation: none; }
        }

        /* Scrolling skills ticker */
        .skills-marquee {
            background-color: var(--charcoal);
            overflow: hidden;
            padding: 18px 0;
        }
        .marquee-track {
            display: flex;
            width: max-content;
            animation: marqueeScroll 34s linear infinite;
            will-change: transform;
        }
        .marquee-group {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }
        .marquee-track span.item {
            color: var(--off-white);
            font-weight: 600;
            letter-spacing: 1px;
            font-size: 14px;
            text-transform: uppercase;
            white-space: nowrap;
            padding: 0 20px;
        }
        .marquee-track span.dot {
            color: var(--brand-green);
            padding: 0 4px;
        }
        @keyframes marqueeScroll {
            from { transform: translate3d(0, 0, 0); }
            to   { transform: translate3d(calc(-1 * var(--marquee-distance, 50%)), 0, 0); }
        }
        .skills-marquee:hover .marquee-track {
            animation-play-state: paused;
        }

/* Former inline styles */
.gtm-noscript { display: none; visibility: hidden; }
.call-to-action-bg { background-image: url('../images/call-to-action.jpg'); }




/* ===== Cookie consent ===== */
.cookie-consent[hidden],
.cookie-details[hidden] { display: none !important; }

.cookie-consent {
    position: fixed;
    z-index: 99999;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 860px;
    margin: 0 auto;
}
.cookie-consent-inner {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid rgba(45, 52, 54, .14);
    border-radius: 14px;
    box-shadow: 0 18px 55px rgba(45, 52, 54, .20);
}
.cookie-consent-copy { max-width: 570px; }
.cookie-consent h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}
.cookie-consent p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
.cookie-details { margin-top: 12px; }
.cookie-details p + p { margin-top: 8px; }
.cookie-link,
.cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
.cookie-link { margin-top: 8px; font-size: 14px; }
.cookie-settings-row { margin-top: 8px !important; }
.cookie-settings-link { color: inherit; font-size: 13px; }
.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}
.cookie-btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.cookie-btn-primary {
    border: 2px solid #754ef9;
    background: #754ef9;
    color: #fff;
}
.cookie-btn-secondary {
    border: 2px solid #2d3436;
    background: #fff;
    color: #2d3436;
}
.cookie-btn:focus-visible,
.cookie-link:focus-visible,
.cookie-settings-link:focus-visible {
    outline: 3px solid rgba(117, 78, 249, .35);
    outline-offset: 3px;
}
@media (max-width: 767.98px) {
    .cookie-consent { left: 12px; right: 12px; bottom: 12px; }
    .cookie-consent-inner { display: block; padding: 18px; }
    .cookie-consent-actions { margin-top: 16px; }
    .cookie-btn { flex: 1 1 0; }
}
@media (max-width: 430px) {
    .cookie-consent-actions { flex-direction: column; }
    .cookie-btn { width: 100%; }
}

.cookie-privacy-link { margin-left: 14px; }
.privacy-header { padding: 28px 0 10px; }
.privacy-logo img { max-width: 150px; height: auto; }
.privacy-page { padding: 35px 0 90px; }
.privacy-content { max-width: 820px; margin: 0 auto; }
.privacy-content h1 { margin-bottom: 8px; }
.privacy-content h2 { margin-top: 38px; margin-bottom: 12px; font-size: 24px; }
.privacy-content p { margin-bottom: 14px; line-height: 1.75; }
.privacy-updated { opacity: .72; margin-bottom: 30px !important; }
.privacy-back { margin-bottom: 28px !important; }
.privacy-inline-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
@media (max-width: 575.98px) {
    .cookie-privacy-link { display: inline-block; margin-left: 10px; }
    .privacy-page { padding-top: 20px; }
}


/* ===== Mobile viewport / overflow fix ===== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Keep anchored sections clear of the fixed navigation */
#home,
#about,
#service,
#contact,
#call-to-action {
    scroll-margin-top: 105px;
}

@media (max-width: 767.98px) {
    /* Prevent Bootstrap rows / animated content from producing horizontal overflow */
    .header-content,
    .header-content > .container,
    .header-content .row,
    .header-content [class*="col-"],
    .header-content-right {
        min-width: 0;
        max-width: 100%;
    }

    .header-content > .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-content-right {
        width: 100%;
        overflow: visible;
    }

    .header-content-right p {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    /* The two typing headings should stay on one line, but never exceed the viewport */
    .header-content-right .sub-title.typing-line,
    .header-content-right .title.typing-line {
        max-width: 100%;
        overflow: hidden;
        text-overflow: clip;
    }

    .header-content-right .sub-title {
        font-size: clamp(19px, 6vw, 24px);
    }

    .header-content-right .title {
        font-size: clamp(30px, 9.2vw, 38px);
    }

    /* Give long competency labels enough room without widening the page */
    .skill-header {
        min-width: 0;
    }

    .skill-title {
        min-width: 0;
        padding-right: 12px;
        overflow-wrap: anywhere;
    }

    .skill-percentage {
        flex: 0 0 auto;
    }

    /* Keep the moving ticker visually clipped without affecting page width */
    .skills-marquee {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .marquee-track {
        max-width: none;
    }

    /* Safer mobile navbar sizing */
    .navigation .navbar .navbar-brand {
        width: calc(100% - 58px);
        max-width: 500px;
        margin-right: 0;
    }

    .navigation .navbar .navbar-brand img {
        display: block;
        max-width: 100%;
        height: auto;
    }
}


/* ===== Cookie controls — match site buttons / brand ===== */
.cookie-btn {
    min-height: 44px;
    padding: 0 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: .02em;
    transition: all .3s ease-out 0s;
}

.cookie-btn-primary {
    background: #98ce00 !important;
    border: 2px solid #98ce00 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(152, 206, 0, .20);
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
    background: #2d3436 !important;
    border-color: #2d3436 !important;
    color: #fff !important;
}

.cookie-btn-secondary {
    background: transparent !important;
    border: 2px solid #98ce00 !important;
    color: #2d3436 !important;
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
    background: #98ce00 !important;
    border-color: #98ce00 !important;
    color: #fff !important;
}

.cookie-link,
.cookie-settings-link,
.privacy-inline-button {
    color: #6f9700;
    transition: color .25s ease;
}

.cookie-link:hover,
.cookie-link:focus,
.cookie-settings-link:hover,
.cookie-settings-link:focus,
.privacy-inline-button:hover,
.privacy-inline-button:focus {
    color: #2d3436;
}

.cookie-btn:focus-visible,
.cookie-link:focus-visible,
.cookie-settings-link:focus-visible,
.privacy-inline-button:focus-visible {
    outline: 3px solid rgba(152, 206, 0, .30);
    outline-offset: 3px;
}


/* ===== Privacy page — isolated layout only ===== */
/* Navigation intentionally uses exactly the same base CSS as index.html. */
.privacy-site-header {
    height: 0;
    min-height: 0;
}

.privacy-page {
    padding: 165px 0 90px;
}

.privacy-content {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.privacy-content h1 {
    margin: 0 0 10px;
    color: var(--charcoal);
    font-size: 52px;
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.privacy-content h2 {
    margin-top: 38px;
    margin-bottom: 12px;
    color: var(--charcoal);
    font-size: 28px;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
}

.privacy-content p {
    max-width: 100%;
    margin-bottom: 14px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.privacy-content a,
.privacy-inline-button {
    color: #6f9700;
}

.privacy-content a:hover,
.privacy-inline-button:hover {
    color: var(--charcoal);
}

.privacy-updated {
    opacity: .72;
    margin-bottom: 30px !important;
}

@media (max-width: 991.98px) {
    .privacy-page {
        padding-top: 145px;
        padding-bottom: 75px;
    }

    .privacy-content h1 {
        font-size: 42px;
    }

    .privacy-content h2 {
        font-size: 26px;
    }
}

@media (max-width: 575.98px) {
    .privacy-page {
        padding: 132px 0 65px;
    }

    .privacy-page .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .privacy-content h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    .privacy-content h2 {
        margin-top: 32px;
        font-size: 24px;
        line-height: 1.2;
    }

    .privacy-content p {
        line-height: 1.65;
    }

    .cookie-consent {
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }
}


/* ===== Positioning / work examples ===== */
.hero-process {
    margin-top: 14px !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .015em;
    color: var(--charcoal);
}
.hero-process span {
    display: inline-block;
    padding: 0 5px;
    color: #98ce00;
}

.work-examples-area {
    padding: 90px 0;
    background: #f3eee4;
}
.work-examples-content {
    max-width: 780px;
    margin: 0 auto;
}
.work-examples-content .section-title {
    margin-bottom: 26px;
}
.work-examples-content .section-title .title {
    margin: 0;
}
.work-examples-content p {
    max-width: 720px;
    margin: 0 auto 12px;
    line-height: 1.75;
}
.work-examples-lead {
    font-weight: 500;
}
.work-examples-btn {
    margin-top: 22px;
}

@media (max-width: 767.98px) {
    .hero-process {
        margin-top: 12px !important;
        font-size: 13px;
        line-height: 1.75;
    }
    .hero-process span {
        padding: 0 2px;
    }
    .work-examples-area {
        padding: 65px 0;
    }
    .work-examples-content {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ===== Header-to-hero spacing correction ===== */
/* Fixed navigation already reserves its own visual height; hero should follow directly. */
#home.header-area,
.header-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.header-content {
    margin-top: 0 !important;
}

/* Keep the same correction on phones/tablets. */
@media (max-width: 991.98px) {
    #home.header-area,
    .header-area,
    .header-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}




/* ===== Scrollbar regression fix ===== */
html,
body {
    overflow-x: hidden;
    overflow-y: auto !important;
}

.privacy-body {
    overflow-y: auto !important;
    min-height: 100%;
}


/* ===== Restore original hero name typography ===== */
.header-content-right #typing-title,
.header-content-right .title.typing-line {
    font-weight: 700 !important;
    color: #293134 !important;
}

/* ===== Interactive résumé ===== */
.resume-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}
.resume-overlay.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.resume-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 27, 28, .72);
    backdrop-filter: blur(8px);
}
.resume-panel {
    position: absolute;
    inset: 18px;
    background: #f5f0e7;
    color: #293134;
    overflow: hidden;
    transform: translateY(24px) scale(.985);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2,.75,.2,1), opacity .35s ease;
    outline: none;
}
.resume-overlay.is-open .resume-panel { transform: none; opacity: 1; }
body.resume-open { overflow: hidden !important; }
.resume-topbar {
    position: absolute;
    z-index: 5;
    top: 0; left: 0; right: 0;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    border-bottom: 1px solid rgba(41,49,52,.12);
    background: rgba(245,240,231,.92);
    backdrop-filter: blur(12px);
}
.resume-wordmark {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .16em;
    color: #293134;
}
.resume-wordmark span { color: #98ce00; padding: 0 3px; }
.resume-actions { display: flex; align-items: center; gap: 24px; }
.resume-pdf-link {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #293134;
}
.resume-pdf-link span { color: #98ce00; font-size: 16px; }
.resume-close {
    width: 44px; height: 44px;
    position: relative;
    border: 1px solid rgba(41,49,52,.2);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.resume-close:hover { transform: rotate(5deg); background: #fff; }
.resume-close span { position:absolute; width:18px; height:1px; background:#293134; top:21px; left:12px; }
.resume-close span:first-child { transform: rotate(45deg); }
.resume-close span:last-child { transform: rotate(-45deg); }
.resume-scroll {
    position: absolute;
    inset: 78px 0 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}
.resume-hero {
    min-height: calc(100vh - 114px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10vh max(6vw, 46px) 9vh;
    border-bottom: 1px solid rgba(41,49,52,.12);
    position: relative;
}
.resume-kicker, .resume-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.resume-kicker { margin-bottom: 28px; color: #687174; }
.resume-hero h2 {
    margin: 0;
    max-width: 1050px;
    font-size: clamp(52px, 8.3vw, 132px);
    line-height: .88;
    letter-spacing: -.06em;
    font-weight: 800;
    color: #293134;
}
.resume-hero h2 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: #98ce00; }
.resume-intro {
    max-width: 720px;
    margin-top: 36px;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.5;
    color: #4f595c;
}
.resume-jump {
    position: absolute;
    right: max(6vw, 46px);
    bottom: 36px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #293134;
}
.resume-jump span { color: #98ce00; font-size: 18px; margin-left: 8px; }
.resume-grid { display: grid; grid-template-columns: minmax(170px, 20vw) 1fr; }
.resume-index {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: calc(100vh - 78px);
    padding: 70px 24px 40px max(3vw, 30px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-right: 1px solid rgba(41,49,52,.12);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #8b9294;
}
.resume-block {
    min-height: 72vh;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 24px;
    padding: 90px max(6vw, 60px) 90px 48px;
    border-bottom: 1px solid rgba(41,49,52,.12);
}
.resume-number {
    font-size: 12px;
    font-weight: 800;
    color: #98ce00;
    padding-top: 10px;
}
.resume-copy { max-width: 920px; }
.resume-eyebrow { color: #7a8385; margin-bottom: 22px; }
.resume-copy h3 {
    margin: 0 0 32px;
    font-size: clamp(36px, 5vw, 76px);
    line-height: .98;
    letter-spacing: -.04em;
    color: inherit;
}
.resume-copy > p:not(.resume-eyebrow):not(.resume-note) {
    max-width: 760px;
    font-size: 20px;
    line-height: 1.7;
    color: #596265;
}
.resume-facts { margin-top: 50px; display: flex; flex-wrap: wrap; gap: 12px; }
.resume-facts span {
    padding: 12px 16px;
    border: 1px solid rgba(41,49,52,.16);
    font-size: 10px;
    letter-spacing: .08em;
}
.resume-facts strong { color: #293134; margin-right: 5px; }
.resume-block-dark { background: #293134; color: #f7f2e9; }
.resume-block-dark .resume-eyebrow { color: #98ce00; }
.resume-block-dark .resume-copy h3 { color: #f7f2e9; }
.resume-role-list { border-top: 1px solid rgba(255,255,255,.16); }
.resume-role {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
}
.resume-role-mark { color: #98ce00; font-size: 24px; }
.resume-role h4 { color: #fff; margin: 0 0 7px; font-size: 24px; }
.resume-role p { color: #aeb6b8; margin: 0; line-height: 1.6; }
.resume-note { margin-top: 28px; color: #98a1a3; font-size: 13px; }
.resume-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.resume-tags span {
    display: inline-block;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(41,49,52,.18);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.resume-tags span:hover { background: #fff; border-color: #98ce00; transform: translateY(-2px); }
.resume-block-accent { background: #98ce00; }
.resume-block-accent .resume-number, .resume-block-accent .resume-eyebrow { color: #293134; }
.resume-block-accent .resume-copy > p:not(.resume-eyebrow) { color: #334033; }
.resume-finale {
    min-height: 56vh;
    padding: 110px max(6vw,60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.resume-finale > p { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #7a8385; }
.resume-finale h3 { font-size: clamp(46px, 7vw, 96px); letter-spacing: -.05em; margin: 6px 0 36px; color: #293134; }
.resume-final-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.resume-contact-link { font-weight: 700; color: #293134; border-bottom: 2px solid #98ce00; padding-bottom: 3px; }
.reveal-resume { opacity: .35; transform: translateY(30px); transition: opacity .55s ease, transform .55s ease; }
.reveal-resume.is-visible { opacity: 1; transform: none; }

@media (max-width: 767.98px) {
    .resume-panel { inset: 0; }
    .resume-topbar { height: 66px; padding: 0 18px; }
    .resume-scroll { inset: 66px 0 0; }
    .resume-actions { gap: 12px; }
    .resume-close { width: 38px; height: 38px; }
    .resume-close span { top: 18px; left: 10px; }
    .resume-hero { min-height: calc(100vh - 66px); padding: 70px 22px 90px; }
    .resume-hero h2 { font-size: clamp(48px, 17vw, 78px); }
    .resume-intro { font-size: 17px; margin-top: 28px; }
    .resume-jump { left: 22px; right: auto; bottom: 28px; }
    .resume-grid { display: block; }
    .resume-index { display: none; }
    .resume-block { min-height: auto; grid-template-columns: 42px 1fr; gap: 8px; padding: 72px 22px; }
    .resume-copy h3 { font-size: clamp(34px, 11vw, 52px); }
    .resume-copy > p:not(.resume-eyebrow):not(.resume-note) { font-size: 17px; }
    .resume-facts { margin-top: 32px; }
    .resume-role { grid-template-columns: 34px 1fr; }
    .resume-role h4 { font-size: 21px; }
    .resume-tags span { font-size: 12px; padding: 11px 13px; }
    .resume-finale { min-height: 48vh; padding: 76px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .resume-overlay, .resume-panel, .reveal-resume { transition: none !important; }
    .reveal-resume { opacity: 1; transform: none; }
    .resume-scroll { scroll-behavior: auto; }
}

/* ===== Premium section transitions ===== */
.premium-reveal {
    --reveal-y: 28px;
    --reveal-delay: 0ms;
}
.js-premium-motion .premium-reveal {
    opacity: 0;
    transform: translate3d(0, var(--reveal-y), 0);
    transition:
        opacity .72s cubic-bezier(.22,1,.36,1) var(--reveal-delay),
        transform .78s cubic-bezier(.22,1,.36,1) var(--reveal-delay);
    will-change: opacity, transform;
}
.js-premium-motion .premium-reveal.premium-visible {
    opacity: 1;
    transform: translate3d(0,0,0);
}

/* Titles get a tiny independent drift for a more editorial feel. */
.section-title .title,
.work-examples-content .section-title .title,
.call-action .action-title {
    transition: transform .22s linear;
    will-change: transform;
}

/* Soft visual hand-off between major sections, without visible separators. */
#about, #service, #call-to-action, #arbeider, #contact {
    position: relative;
    isolation: isolate;
}
#about::before, #service::before, #arbeider::before, #contact::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: min(76vw, 920px);
    height: 1px;
    transform: translateX(-50%) scaleX(.3);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, rgba(31,31,31,.11), transparent);
    opacity: .55;
    transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .9s ease;
    pointer-events: none;
}
#about.section-in-view::before, #service.section-in-view::before,
#arbeider.section-in-view::before, #contact.section-in-view::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .js-premium-motion .premium-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .section-title .title,
    .work-examples-content .section-title .title,
    .call-action .action-title { transform: none !important; transition: none !important; }
    #about::before, #service::before, #arbeider::before, #contact::before { transition: none !important; transform: translateX(-50%) scaleX(1); }
}


/* CV inset modal — keep the website visibly present around the resume */
.resume-panel {
    inset: clamp(28px, 5vw, 76px) clamp(24px, 6vw, 96px) !important;
    border-radius: 14px;
    box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.resume-backdrop {
    background: rgba(23, 27, 28, .62);
    backdrop-filter: blur(6px);
}
@media (max-width: 767px) {
    .resume-panel {
        inset: 16px 12px !important;
        border-radius: 10px;
    }
}



/* Coral on bright green has insufficient visual contrast here.
   Keep the outside-work headline in the dark neutral from the palette. */
.resume-block-outside .resume-copy > h3,
.resume-block-outside h3 {
    color: #2D3436 !important;
}



/* Interactive CV heading colors */
.resume-content .resume-copy > h3 {
    color: #E76F51 !important;
}

/* Explicit headline colors: IDs avoid selector conflicts */
#resume-profile-headline {
    color: #E76F51 !important;
}

#resume-outside-headline {
    color: #2D3436 !important;
}


/* Footer legal links: stay visible; coral on hover/focus on every page */
.cookie-settings-row .cookie-settings-link:hover,
.cookie-settings-row .cookie-settings-link:focus,
.cookie-settings-row .cookie-settings-link:focus-visible {
    color: #E76F51 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration-color: #E76F51 !important;
}


/* Final footer legal-link hover override.
   Placed last and scoped to the footer to beat theme hover rules. */
.footer-copyright .copyright-text .cookie-settings-row a.cookie-settings-link:hover,
.footer-copyright .copyright-text .cookie-settings-row a.cookie-settings-link:focus,
.footer-copyright .copyright-text .cookie-settings-row button.cookie-settings-link:hover,
.footer-copyright .copyright-text .cookie-settings-row button.cookie-settings-link:focus {
    color: #E76F51 !important;
    -webkit-text-fill-color: #E76F51 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration-color: #E76F51 !important;
}


/* CV final email CTA */
#resume-email-cta:hover,
#resume-email-cta:focus,
#resume-email-cta:focus-visible {
    color: #E76F51 !important;
    -webkit-text-fill-color: #E76F51 !important;
    border-color: #E76F51 !important;
    text-decoration-color: #E76F51 !important;
    opacity: 1 !important;
}


/* Contact links */
#contact .contact-content a {
    color: inherit;
    transition: color .2s ease;
}
#contact .contact-content a:hover,
#contact .contact-content a:focus {
    color: #E76F51 !important;
}






