/* =========================================================
   AVSTUDIO
   COMPLETE STYLESHEET
   ========================================================= */


/* =========================================================
   COLORS / VARIABLES
   ========================================================= */

:root {
    --background: #ffffff;
    --background-secondary: #f7f5ef;

    --surface: #ffffff;
    --surface-hover: #faf8f2;

    --text: #111111;
    --text-secondary: #69655d;

    --gold: #b18418;
    --gold-light: #d0aa42;
    --gold-dark: #87640f;

    --border: rgba(0, 0, 0, 0.10);

    --header-background: rgba(255, 255, 255, 0.88);

    --shadow:
        0 18px 55px rgba(0, 0, 0, 0.07);

    --hero-image-opacity: 0.72;

    --max-width: 1200px;
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"] {
    --background: #050505;
    --background-secondary: #0c0c0c;

    --surface: #101010;
    --surface-hover: #171717;

    --text: #f5f2e9;
    --text-secondary: #aaa69e;

    --gold: #c9a43d;
    --gold-light: #e0c46a;
    --gold-dark: #9d791d;

    --border: rgba(255, 255, 255, 0.11);

    --header-background: rgba(5, 5, 5, 0.88);

    --shadow:
        0 20px 65px rgba(0, 0, 0, 0.45);

    --hero-image-opacity: 0.78;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;

    transition:
        background-color 0.35s ease,
        color 0.35s ease;
}


body.menu-open {
    overflow: hidden;
}


a {
    color: inherit;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
textarea {
    font: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 6%;

    background: var(--header-background);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);

    transition:
        padding 0.25s ease,
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.25s ease;
}


.header.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;

    box-shadow:
        0 7px 25px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   HEADER LOGO
   ========================================================= */

.logo-link {
    width: 145px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #000000;

    border-radius: 5px;

    text-decoration: none;
}


.site-logo {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.nav {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 32px;
}


.nav a {
    position: relative;

    text-decoration: none;

    color: var(--text);

    font-size: 0.92rem;
    font-weight: 600;

    white-space: nowrap;
}


.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition:
        width 0.25s ease;
}


.nav a:hover::after {
    width: 100%;
}


/* The menu item of the page we are on */

.nav a[aria-current] {
    color: var(--gold);
}


.nav a[aria-current]::after {
    width: 100%;
}


/* Narrow desktops: let the menu sit between the logo and the
   buttons instead of the exact centre, so they never overlap. */

@media (max-width: 1180px) {
    .nav {
        position: static;
        transform: none;

        gap: 24px;
    }
}


/* Contact link that only appears inside the mobile menu */

.nav .nav-mobile-only {
    display: none;
}


/* =========================================================
   HEADER RIGHT SIDE
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}


.header-contact {
    min-height: 44px;

    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--gold);

    border: 1px solid var(--gold);

    color: #ffffff;

    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 700;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.header-contact:hover {
    transform: translateY(-2px);

    background: var(--gold-dark);
    border-color: var(--gold-dark);

    box-shadow:
        0 8px 25px rgba(177, 132, 24, 0.25);
}


/* =========================================================
   THEME BUTTON
   ========================================================= */

.theme-toggle {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--gold);

    font-size: 1.15rem;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}


.theme-toggle:hover {
    transform:
        rotate(10deg)
        scale(1.05);
}


/* =========================================================
   LANGUAGE BUTTON (HU / EN)
   One click switches the whole site. The active language
   is highlighted; <html lang> is set before the first paint.
   ========================================================= */

.lang-toggle {
    height: 44px;

    padding: 4px;

    display: inline-flex;
    align-items: center;

    gap: 2px;

    border-radius: 999px;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text-secondary);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}


.lang-toggle:hover {
    border-color: var(--gold);
}


.lang-toggle:active {
    transform: scale(0.96);
}


.lang-option {
    min-width: 32px;
    height: 34px;

    padding: 0 7px;

    display: grid;
    place-items: center;

    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


html:not([lang="en"]) .lang-option-hu,
html[lang="en"] .lang-option-en {
    background: var(--gold);

    color: #ffffff;
}


/* Hide the page (not the gold transition cover) until the
   English texts are in place, so Hungarian never flashes. */

html.i18n-pending body > :not(.page-transition-overlay) {
    visibility: hidden;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: none;

    background: transparent;

    cursor: pointer;
}


.menu-button span {
    display: block;

    width: 27px;
    height: 2px;

    margin: 6px auto;

    background: var(--text);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.menu-button.active span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}


.menu-button.active span:nth-child(2) {
    opacity: 0;
}


.menu-button.active span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        150px 8%
        100px;

    overflow: hidden;

    background: var(--background);
}


/* Background image */

.hero-background {
    position: absolute;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;
}


.hero-background picture {
    display: block;

    width: 100%;
    height: 100%;
}


.hero-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: var(--hero-image-opacity);

    filter:
        saturate(0.85)
        contrast(1.04);

    transform: scale(1.02);

    transition:
        opacity 0.35s ease;
}


/* Light mode fade on left */

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.93) 0%,
            rgba(255, 255, 255, 0.84) 27%,
            rgba(255, 255, 255, 0.58) 48%,
            rgba(255, 255, 255, 0.18) 67%,
            rgba(255, 255, 255, 0.00) 82%
        );
}


/* Dark mode fade */

html[data-theme="dark"] .hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.75) 27%,
            rgba(0, 0, 0, 0.50) 48%,
            rgba(0, 0, 0, 0.16) 67%,
            rgba(0, 0, 0, 0.00) 82%
        );
}


/* Gold glow */

.hero::after {
    content: "";

    position: absolute;

    z-index: 1;

    width: 600px;
    height: 600px;

    right: -180px;
    top: -120px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(177, 132, 24, 0.12),
            transparent 68%
        );

    pointer-events: none;
}


/* Hero content */

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;
}


/* =========================================================
   COMPANY NAME ABOVE HERO
   ========================================================= */

/*
   Works if you use:

   <div class="brand-tag">
       <span class="brand-tag-line"></span>
       <span class="brand-tag-text">AudioVisual Studio</span>
   </div>
*/

.brand-tag {
    display: inline-flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 27px;
}


.brand-tag-line {
    width: 42px;
    height: 2px;

    flex-shrink: 0;

    background: var(--gold);
}


.brand-tag-text {
    padding: 9px 15px;

    border:
        1px solid rgba(177, 132, 24, 0.35);

    background:
        rgba(255, 255, 255, 0.30);

    color: var(--gold);

    font-size: 1.72rem;
    font-weight: 750;

    letter-spacing: 0.17em;

    text-transform: uppercase;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


html[data-theme="dark"] .brand-tag-text {
    background:
        rgba(0, 0, 0, 0.27);

    border-color:
        rgba(201, 164, 61, 0.38);
}


/*
   Also supports the older
   AudioVisual Studio class if you're still using it.
*/

.hero-eyebrow {
    font-size: 1.05rem !important;
    letter-spacing: 0.16em;
}


/* =========================================================
   EYEBROW TEXT
   ========================================================= */

.eyebrow {
    margin-bottom: 20px;

    color: var(--gold);

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.hero h1 {
    max-width: 800px;

    font-size:
        clamp(
            3rem,
            4.5vw,
            6rem
        );

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.hero h1 span {
    color: var(--gold);

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   HERO SLOGAN
   ========================================================= */

.hero-text {
    max-width: 580px;

    margin-top: 30px;

    color: var(--text-secondary);

    font-size: 1.12rem;

    line-height: 1.65;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 34px;
}


.button {
    min-height: 53px;

    padding: 0 29px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;

    text-decoration: none;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.button:hover {
    transform: translateY(-3px);
}


.button-primary {
    background: var(--gold);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--gold-dark);
}

.button-secondary {
    border-color: var(--gold);
    background: transparent;
    color: var(--gold);
}

.button-secondary:hover {
    background: var(--gold);
    color: #ffffff;
}


.button-light {
    background: #ffffff;

    color: #111111;
}


/* =========================================================
   SCROLL INDICATOR
   ========================================================= */

.scroll-indicator {
    position: absolute;

    left: 8%;
    bottom: 30px;

    z-index: 2;

    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--text-secondary);

    text-decoration: none;

    font-size: 0.78rem;
}


.scroll-indicator span {
    width: 38px;
    height: 1px;

    background: var(--gold);
}


.scroll-indicator em {
    font-style: normal;
}




#about,
#services,
#projects {
    scroll-margin-top: 96px;
}

/* =========================================================
   GLOBAL SECTIONS
   ========================================================= */

.section {
    width:
        min(
            var(--max-width),
            88%
        );

    margin: 0 auto;

    padding: 115px 0;
}


.section-heading {
    max-width: 900px;

    margin-bottom: 62px;
}


.section-heading h2 {
    max-width: 900px;

    font-size:
        clamp(
            1.8rem,
            3.5vw,
            3rem
        );

    line-height: 1.12;

    letter-spacing: -0.035em;
}


/* =========================================================
   ABOUT — NEW DESIGN
   ========================================================= */

.about-new {
    background: var(--background);
}


.about-new-inner {
    width: min(1400px, 90%);
    margin: 0 auto;

    padding: 130px 0 10px;

    border-bottom: 1px solid var(--border);
}


/* =========================================================
   ABOUT HEADER
   ========================================================= */

.about-new-header {
    padding-bottom:
        85px;

    border-bottom:
        1px solid var(--border);
}


.about-new-heading {
    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 60px;

    align-items: center;
}   


.about-new-heading h2 {
    max-width: 760px;

    font-size: clamp(
        2.2rem,
        3vw,
        4rem
    );

    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 650;
}


.about-new-intro {
    width: 100%;
    max-width: none;

    color: var(--text-secondary);

    font-size: 1rem;
    line-height: 1.75;
}


.about-new-intro p + p {
    margin-top:
        20px;
}

.about-brand-logo {
    position: relative;
    z-index: 2;

    width: min(400px, 92%);

    display: flex;
    align-items: center;
}

.about-brand-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   MAIN ABOUT AREA
   ========================================================= */

.about-showcase {
    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap:
        70px;

    padding:
        90px 0;
}


/* =========================================================
   AVSTUDIO BRAND PANEL
   ========================================================= */

.about-brand-panel {
    position: relative;

    min-height:
        540px;

    padding:
        45px;

    display: flex;

    flex-direction:
        column;

    justify-content:
        space-between;

    overflow:
        hidden;

    background:
        var(--gold);

    color:
        #ffffff;
}


.about-brand-panel::after {
    content: "";

    position:
        absolute;

    width:
        420px;

    height:
        420px;

    right:
        -210px;

    bottom:
        -210px;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius:
        50%;

    box-shadow:
        0 0 0 70px rgba(255,255,255,0.04),
        0 0 0 140px rgba(255,255,255,0.025);
}


.about-brand-small {
    position: relative;
    z-index: 2;

    font-size: 1rem;
    font-weight: 800;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


.about-brand-mark {
    position:
        relative;

    z-index:
        2;

    font-size:
        clamp(
            5rem,
            10vw,
            9rem
        );

    font-weight:
        900;

    line-height:
        0.8;

    letter-spacing:
        -0.09em;
}


.about-brand-panel p {
    position:
        relative;

    z-index:
        2;

    font-size:
        1.4rem;

    line-height:
        1.35;

    font-weight:
        600;
}


/* =========================================================
   PRINCIPLES
   ========================================================= */

.about-principles {
    display: flex;

    flex-direction:
        column;

    justify-content:
        center;
}


.about-principle {
    position:
        relative;

    padding:
        35px 0 38px;

    border-bottom:
        1px solid var(--border);
}


.about-principle:first-child {
    border-top:
        1px solid var(--border);
}


.about-principle-line {
    display:
        block;

    width:
        40px;

    height:
        2px;

    margin-bottom:
        22px;

    background:
        var(--gold);

    transition:
        width 0.3s ease;
}


.about-principle:hover
.about-principle-line {
    width:
        80px;
}


.about-principle h3 {
    margin-bottom:
        13px;

    font-size:
        clamp(
            1.6rem,
            2.3vw,
            2.4rem
        );

    line-height:
        1.1;

    letter-spacing:
        -0.035em;
}


.about-principle p {
    max-width:
        620px;

    color:
        var(--text-secondary);

    line-height:
        1.75;
}


/* =========================================================
   ABOUT — DARK MODE
   ========================================================= */

html[data-theme="dark"]
.about-brand-panel {
    background:
        var(--gold-dark);
}


/* =========================================================
   ABOUT — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .about-new-inner {
        width:
            90%;

        padding:
            100px 0;
    }


    .about-new-heading {
        grid-template-columns:
            1fr;

        gap:
            35px;
    }


    .about-showcase {
        grid-template-columns:
            1fr;

        gap:
            35px;

        padding:
            70px 0;
    }


    .about-brand-panel {
        min-height:
            420px;
    }


    .about-statement {
        grid-template-columns:
            1fr;

        gap:
            25px;
    }

}


/* =========================================================
   ABOUT — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .about-new-inner {
        padding:
            85px 0;
    }


    .about-new-header {
        padding-bottom:
            55px;
    }


    .about-new-heading h2 {
        font-size:
            clamp(
                2.2rem,
                10vw,
                3.2rem
            );
    }


    .about-showcase {
        padding:
            55px 0;
    }


    .about-brand-panel {
        min-height:
            360px;

        padding:
            30px;
    }


    .about-brand-mark {
        font-size:
            5rem;
    }


    .about-brand-panel p {
        font-size:
            1.2rem;
    }


    .about-principle {
        padding:
            30px 0;
    }


    .about-statement {
        padding-top:
            50px;
    }


    .about-statement p {
        font-size:
            2rem;
    }

}


/* =========================================================
   NEW SERVICES SECTION
   ========================================================= */

.services-new {
    width: min(1400px, 90%);

    margin: 0 auto;

    padding: 125px 0 95px;
}


/* Service titles are links to the services page (good for search engines) */

.service-row-title h3 a {
    color: inherit;

    text-decoration: none;
}


.service-row-title h3 a:hover {
    color: var(--gold);
}


/* Services heading */

.services-header {
    display: block;
    width: 100%;
    margin-bottom: 75px;
}

.services-header h2 {
    width: 100%;
    max-width: none;

    font-size: clamp(2.5rem, 4.7vw, 4.7rem);
    line-height: 1.08;
    letter-spacing: 0.0em;
}


.services-intro {
    max-width: 410px;

    padding-bottom: 7px;

    color: var(--text-secondary);

    font-size: 1rem;

    line-height: 1.7;
}


/* =========================================================
   SERVICES LIST
   ========================================================= */

.services-list {
    border-top:
        1px solid var(--border);
}


.service-row {
    position: relative;

    min-height: 150px;

    padding: 35px 18px;

    display: grid;

    grid-template-columns:
        minmax(300px, 1fr)
        minmax(300px, 0.75fr)
        55px;

    gap: 45px;

    align-items: center;

    border-bottom:
        1px solid var(--border);

    transition:
        background-color 0.3s ease,
        padding 0.3s ease;
}

.service-arrow {
    text-decoration: none;
}

/* Gold hover line */

.service-row::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 3px;
    height: 100%;

    background: var(--gold);

    transform: scaleY(0);

    transform-origin: bottom;

    transition:
        transform 0.3s ease;
}


.service-row:hover {
    padding-left: 30px;
    padding-right: 30px;

    background: var(--surface-hover);
}


.service-row:hover::before {
    transform: scaleY(1);
}


/* Service title */

.service-row-title h3 {
    max-width: 600px;

    font-size:
        clamp(
            1.8rem,
            2.8vw,
            3rem
        );

    font-weight: 650;

    line-height: 1.06;

    letter-spacing: -0.04em;
}


/* Service description */

.service-row-description p {
    max-width: 470px;

    color: var(--text-secondary);

    font-size: 0.98rem;

    line-height: 1.75;
}


/* Arrow */

.service-arrow {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        1px solid var(--border);

    color: var(--gold);

    font-size: 1.25rem;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.service-row:hover .service-arrow {
    background: var(--gold);

    border-color: var(--gold);

    color: #ffffff;

    transform: rotate(45deg);
}


html[data-theme="dark"] .service-row:hover {
    background:
        rgba(255, 255, 255, 0.025);
}


/* Link to the services page under the list */

.services-more {
    display: flex;
    justify-content: flex-end;

    margin-top: 34px;
}


.services-more-link {
    display: inline-flex;
    align-items: center;

    gap: 18px;

    padding: 14px 0;

    color: var(--text);

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    border-bottom: 2px solid var(--gold);

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}


.services-more-link:hover {
    gap: 26px;

    color: var(--gold);
}


.services-more-arrow {
    color: var(--gold);

    font-size: 1.1rem;
}


/* =========================================================
   OLD SERVICES FALLBACK
   ========================================================= */

/*
   These styles stop the page from breaking
   if you still have any old service-card elements.
*/

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


.service-card {
    min-height: 300px;

    padding: 40px;

    border: 1px solid var(--border);

    background: var(--surface);

    box-shadow: var(--shadow);
}


.service-card h3 {
    margin-bottom: 13px;

    font-size: 1.7rem;
}


.service-card p {
    color: var(--text-secondary);
}


.service-number {
    display: none;
}


/* =========================================================
   NEW PORTFOLIO
========================================================= */

.portfolio-new {
    background:
        var(--background);

    padding:
        0
        0
        120px;
}


.portfolio-inner {
    width:
        min(
            1400px,
            90%
        );

    margin:
        0 auto;
}



/* =========================================================
   HEADER
========================================================= */

.portfolio-header {
    padding:
        120px
        0
        70px;

    border-top:
        1px solid
        var(--border);
}


.portfolio-heading-row {
    display:
        grid;

    grid-template-columns:
        1.15fr
        0.55fr;

    gap:
        80px;

    align-items:
        end;
}


.portfolio-heading-row h2 {
    max-width:
        850px;

    margin:
        0;

    font-size:
        clamp(
            2.8rem,
            5vw,
            5.2rem
        );

    line-height:
        1.02;

    letter-spacing:
        -0.055em;

    font-weight:
        650;
}


.portfolio-heading-row > p {
    max-width:
        450px;

    margin:
        0;

    color:
        var(--text-secondary);

    line-height:
        1.75;
}



/* =========================================================
   GRID
========================================================= */

.portfolio-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        24px;
}


.portfolio-featured {
    grid-column:
        1 / -1;
}



/* =========================================================
   CARD
========================================================= */

.portfolio-card {
    position:
        relative;

    min-width:
        0;
}


.portfolio-visual {
    position:
        relative;

    min-height:
        410px;

    overflow:
        hidden;

    border:
        1px solid
        var(--border);

    background:
        #0a0a0a;

    transition:
        transform
        0.4s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.portfolio-featured
.portfolio-visual {
    min-height:
        560px;
}


.portfolio-card:hover
.portfolio-visual {
    transform:
        translateY(-4px);
}



/* =========================================================
   FEATURED VISUAL
========================================================= */

.portfolio-visual-featured {
    background:
        linear-gradient(
            125deg,
            #080808
            0%,
            #111111
            56%,
            #191408
            100%
        );
}


.portfolio-visual-featured::before {
    content:
        "";

    position:
        absolute;

    width:
        650px;

    height:
        650px;

    right:
        -180px;

    top:
        -230px;

    border:
        1px solid
        rgba(
            201,
            164,
            61,
            0.35
        );

    border-radius:
        50%;
}


.portfolio-visual-featured::after {
    content:
        "";

    position:
        absolute;

    width:
        380px;

    height:
        380px;

    right:
        80px;

    bottom:
        -250px;

    background:
        radial-gradient(
            circle,
            rgba(
                201,
                164,
                61,
                0.18
            ),
            transparent
            70%
        );
}



/* =========================================================
   DECORATIVE FEATURED LINES
========================================================= */

.portfolio-visual-decoration {
    position:
        absolute;

    left:
        8%;

    bottom:
        15%;

    width:
        55%;

    display:
        flex;

    flex-direction:
        column;

    gap:
        18px;
}


.portfolio-visual-decoration span {
    display:
        block;

    height:
        1px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}


.portfolio-visual-decoration span:first-child {
    width:
        100%;
}


.portfolio-visual-decoration span:last-child {
    width:
        62%;
}



/* =========================================================
   PROJECT 2 VISUAL
========================================================= */

.portfolio-visual-light {
    background:
        linear-gradient(
            145deg,
            #080808,
            #12100a
        );
}


.portfolio-light-lines {
    position:
        absolute;

    inset:
        0;

    display:
        flex;

    justify-content:
        space-evenly;

    overflow:
        hidden;
}


.portfolio-light-lines span {
    width:
        2px;

    height:
        140%;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(
                201,
                164,
                61,
                0.85
            ),
            transparent
        );

    transform:
        rotate(24deg)
        translateY(-15%);
}


.portfolio-light-lines span:nth-child(2) {
    opacity:
        0.45;
}


.portfolio-light-lines span:nth-child(3) {
    opacity:
        0.7;
}


.portfolio-light-lines span:nth-child(4) {
    opacity:
        0.3;
}



/* =========================================================
   PROJECT 3 VISUAL
========================================================= */

.portfolio-visual-media {
    background:
        linear-gradient(
            140deg,
            #090909,
            #161616
        );
}


.portfolio-frame-decoration {
    position:
        absolute;

    width:
        58%;

    aspect-ratio:
        16 / 10;

    left:
        50%;

    top:
        50%;

    transform:
        translate(
            -50%,
            -50%
        );

    border:
        1px solid
        rgba(
            201,
            164,
            61,
            0.55
        );
}


.portfolio-frame-decoration::before {
    content:
        "";

    position:
        absolute;

    inset:
        18px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.09
        );
}


.portfolio-frame-decoration::after {
    content:
        "";

    position:
        absolute;

    width:
        85px;

    height:
        85px;

    left:
        50%;

    top:
        50%;

    transform:
        translate(
            -50%,
            -50%
        );

    border:
        1px solid
        var(--gold);

    border-radius:
        50%;
}



/* =========================================================
   COMING SOON
========================================================= */

.portfolio-coming-soon {
    position:
        absolute;

    right:
        30px;

    top:
        28px;

    z-index:
        3;

    padding:
        9px
        14px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.18
        );

    color:
        rgba(
            255,
            255,
            255,
            0.75
        );

    font-size:
        0.67rem;

    font-weight:
        750;

    letter-spacing:
        0.18em;
}



/* =========================================================
   BOTTOM INFORMATION
========================================================= */

.portfolio-card {
    display: flex;
    flex-direction: column;
}

.portfolio-card-bottom {
    min-height: 220px;
    padding: 28px 2px 35px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.portfolio-card-bottom > div {
    flex: 1;
    min-width: 0;
}

.portfolio-card-bottom h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.portfolio-description {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}


.portfolio-category {
    margin:
        0
        0
        10px;

    color:
        var(--gold);

    font-size:
        0.72rem;

    font-weight:
        800;

    letter-spacing:
        0.16em;
}


/* =========================================================
   ARROW
========================================================= */

.portfolio-arrow {
    text-decoration: none;
    width:
        48px;

    height:
        48px;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        var(--border);

    border-radius:
        50%;

    color:
        var(--gold);

    font-size:
        1.15rem;

    transition:
        background
        0.25s ease,
        border-color
        0.25s ease,
        color
        0.25s ease,
        transform
        0.25s ease;


}


.portfolio-card:hover
.portfolio-arrow {
    background:
        var(--gold);

    border-color:
        var(--gold);

    color:
        #ffffff;

    transform:
        translate(
            3px,
            -3px
        );
}



/* =========================================================
   LIGHT MODE VISUAL TWEAK
========================================================= */

html:not([data-theme="dark"])
.portfolio-visual {
    box-shadow:
        0
        22px
        60px
        rgba(
            0,
            0,
            0,
            0.08
        );
}



/* =========================================================
   TABLET
========================================================= */

@media (
    max-width: 950px
) {

    .portfolio-heading-row {
        grid-template-columns:
            1fr;

        gap:
            25px;
    }


    .portfolio-heading-row > p {
        max-width:
            600px;
    }


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


    .portfolio-featured {
        grid-column:
            auto;
    }


    .portfolio-featured
    .portfolio-visual {
        min-height:
            470px;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 650px
) {

    .portfolio-inner {
        width:
            92%;
    }


    .portfolio-new {
        padding-bottom:
            80px;
    }


    .portfolio-header {
        padding:
            80px
            0
            45px;
    }


    .portfolio-heading-row h2 {
        font-size:
            clamp(
                2.5rem,
                12vw,
                3.8rem
            );
    }


    .portfolio-visual,
    .portfolio-featured
    .portfolio-visual {
        min-height:
            340px;
    }


    .portfolio-coming-soon {
        right:
            20px;

        top:
            20px;
    }


    .portfolio-card-bottom {
        min-height: 0;
        padding:
            22px
            2px
            35px;
    }


    .portfolio-description {
        font-size:
            0.9rem;
    }


    .portfolio-arrow {
        width:
            42px;

        height:
            42px;
    }

}


/* =========================================================
   CTA
   ========================================================= */

.cta-box {
    padding: 65px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    background: var(--gold);

    color: #ffffff;
}


.cta-box h2 {
    font-size:
        clamp(
            2.7rem,
            5vw,
            4.8rem
        );

    line-height: 1;

    letter-spacing: -0.05em;
}


.cta-box .eyebrow {
    color:
        rgba(255, 255, 255, 0.75);
}


.cta-box p {
    max-width: 500px;

    margin-top: 17px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    border-top:
        1px solid var(--border);
}


.contact-grid {
    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 75px;
}


.contact-details {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 19px;
}


.contact-details p {
    max-width: 420px;

    margin-bottom: 14px;

    color: var(--text-secondary);
}


.contact-details a {
    color: var(--gold);

    text-decoration: none;

    font-size: 1.2rem;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
    display: grid;

    gap: 22px;
}


.contact-form label {
    display: grid;

    gap: 8px;

    color: var(--text-secondary);

    font-size: 0.85rem;
}


input,
textarea {
    width: 100%;

    padding: 16px 18px;

    outline: none;

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    transition:
        border-color 0.2s ease,
        background-color 0.35s ease;
}


input:focus,
textarea:focus {
    border-color: var(--gold);
}


textarea {
    resize: vertical;
}


.form-message {
    min-height: 24px;

    color: var(--gold);

    font-size: 0.9rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    width:
        min(
            var(--max-width),
            88%
        );

    margin: 0 auto;

    border-top:
        1px solid var(--border);

    color: var(--text-secondary);
}


.footer-main {
    padding: 32px 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 24px 34px;
}


.footer-logo {
    width: 100px;

    padding: 5px;

    background: #000000;

    border-radius: 4px;

    transition: transform 0.2s ease;
}


.footer-logo:hover {
    transform: translateY(-2px);
}


.footer-logo img {
    width: 100%;
    height: auto;
}


/* LINKS — same gold underline as the header menu */

.footer-links {
    display: flex;
    flex-wrap: wrap;

    gap: 12px 28px;

    margin-right: auto;
}


.footer-links a {
    position: relative;

    color: var(--text);

    text-decoration: none;

    font-size: 0.86rem;
    font-weight: 650;
}


.footer-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width 0.25s ease;
}


.footer-links a:hover::after,
.footer-links a:focus-visible::after,
.footer-links a[aria-current]::after {
    width: 100%;
}


.footer-links a[aria-current] {
    color: var(--gold);
}


.footer-copy {
    font-size: 0.86rem;
}


/* BUSINESS DETAILS BUTTON (+ turns into −) */

.footer-company-toggle {
    min-height: 40px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;

    gap: 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: transparent;

    color: var(--text-secondary);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}


.footer-company-toggle:hover,
.footer-company-toggle[aria-expanded="true"] {
    border-color: var(--gold);

    color: var(--gold);
}


.footer-company-icon {
    position: relative;

    width: 10px;
    height: 10px;

    flex-shrink: 0;
}


.footer-company-icon::before,
.footer-company-icon::after {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 10px;
    height: 2px;

    background: currentColor;

    transition: transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}


.footer-company-icon::after {
    transform: rotate(90deg);
}


.footer-company-toggle[aria-expanded="true"] .footer-company-icon::after {
    transform: rotate(0deg);
}


/* BUSINESS DETAILS PANEL
   Folds open with the same easing as the page transition,
   then a gold line draws across and the rows rise in. */

.footer-company {
    display: grid;
    grid-template-rows: 0fr;

    opacity: 0;
    visibility: hidden;

    transition:
        grid-template-rows 0.55s cubic-bezier(0.76, 0, 0.24, 1),
        opacity 0.3s ease,
        visibility 0s linear 0.55s;
}


.footer-company.open {
    grid-template-rows: 1fr;

    opacity: 1;
    visibility: visible;

    transition:
        grid-template-rows 0.55s cubic-bezier(0.76, 0, 0.24, 1),
        opacity 0.35s ease 0.1s,
        visibility 0s;
}


.footer-company-inner {
    min-height: 0;

    overflow: hidden;
}


.footer-company-list {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px 30px;

    padding: 28px 0 34px;

    border-top: 1px solid var(--border);
}


.footer-company-list::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--gold);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}


.footer-company.open .footer-company-list::before {
    transform: scaleX(1);

    transition-delay: 0.2s;
}


.footer-company-list > div {
    opacity: 0;

    transform: translateY(14px);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}


.footer-company.open .footer-company-list > div {
    opacity: 1;

    transform: translateY(0);
}


.footer-company.open .footer-company-list > div:nth-child(1) { transition-delay: 0.20s; }
.footer-company.open .footer-company-list > div:nth-child(2) { transition-delay: 0.26s; }
.footer-company.open .footer-company-list > div:nth-child(3) { transition-delay: 0.32s; }
.footer-company.open .footer-company-list > div:nth-child(4) { transition-delay: 0.38s; }
.footer-company.open .footer-company-list > div:nth-child(5) { transition-delay: 0.44s; }
.footer-company.open .footer-company-list > div:nth-child(6) { transition-delay: 0.50s; }


.footer-company-list dt {
    margin-bottom: 6px;

    color: var(--gold);

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.footer-company-list dd {
    color: var(--text);

    font-weight: 600;
}


.footer-company-list a {
    color: inherit;

    text-decoration: none;

    border-bottom: 1px solid var(--border);

    transition: border-color 0.25s ease, color 0.25s ease;
}


.footer-company-list a:hover {
    color: var(--gold);

    border-color: var(--gold);
}


/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   TABLETS / MOBILE
   ========================================================= */

@media (max-width: 1000px) {

    /* Header */

    .header {
        padding-left: 4%;
        padding-right: 4%;
    }


    .logo-link {
        width: 115px;
        height: 48px;
    }


    .header-contact {
        min-height: 40px;

        padding: 0 14px;

        font-size: 0.76rem;
    }


    .menu-button {
        display: block;
    }


    /* Mobile nav */

    .nav {
        position: fixed;

        top: 79px;
        left: 5%;

        width: 90%;

        padding: 28px;

        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        background: var(--surface);

        border:
            1px solid var(--border);

        box-shadow: var(--shadow);

        transform:
            translateY(-20px);

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s;
    }


    .nav.open {
        transform:
            translateY(0);

        opacity: 1;
        visibility: visible;

        pointer-events: auto;
    }


    .nav a {
        font-size: 1.05rem;
    }


    .nav .nav-mobile-only {
        display: inline;
    }


    /* Hero */

    .hero {
        min-height: 100svh;

        padding:
            135px 6%
            90px;
    }


    .hero h1 {
        max-width: 700px;

        font-size:
            clamp(
                2.9rem,
                10vw,
                5rem
            );
    }


    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.92) 0%,
                rgba(255, 255, 255, 0.78) 45%,
                rgba(255, 255, 255, 0.35) 72%,
                rgba(255, 255, 255, 0.08) 100%
            );
    }


    html[data-theme="dark"] .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.88) 0%,
                rgba(0, 0, 0, 0.70) 45%,
                rgba(0, 0, 0, 0.30) 72%,
                rgba(0, 0, 0, 0.05) 100%
            );
    }


    .scroll-indicator {
        left: 6%;
    }


    /* About */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    /* Services */

    .services-new {
        width: 90%;

        padding:
            100px 0;
    }


    .services-header {
        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 55px;
    }


    .services-header h2 br {
        display: none;
    }


    .service-row {
        grid-template-columns:
            1fr 48px;

        gap: 20px;

        min-height: auto;

        padding:
            34px 5px;
    }


    .service-row-title {
        grid-column: 1;
    }


    .service-arrow {
        grid-column: 2;
        grid-row: 1;

        align-self: center;
    }


    .service-row-description {
        grid-column:
            1 / 3;
    }


    .service-row:hover {
        padding-left: 12px;
        padding-right: 12px;
    }


    /* Projects */

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


    .project-large {
        grid-column: span 1;
    }


    .project-large .project-image,
    .project-image {
        min-height: 350px;
    }


    /* CTA */

    .cta-box {
        padding: 42px 30px;

        flex-direction: column;

        align-items: flex-start;
    }


    /* Contact */

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 650px) {

    .header {
        padding:
            12px 4%;
    }


    .logo-link {
        width: 95px;
        height: 42px;
    }


    .header-actions {
        gap: 7px;
    }


    .header-contact {
        min-height: 38px;

        padding: 0 10px;

        font-size: 0.68rem;
    }


    .theme-toggle {
        width: 38px;
        height: 38px;
    }


    .lang-toggle {
        height: 38px;

        padding: 3px;
    }


    .lang-option {
        min-width: 28px;
        height: 30px;

        padding: 0 5px;

        font-size: 0.64rem;
    }


    .menu-button {
        width: 38px;
        height: 38px;
    }


    .nav {
        top: 68px;
    }


    /* Hero */

    .hero {
        padding:
            125px 5%
            90px;
    }


    .hero h1 {
        font-size:
            clamp(
                2.7rem,
                13vw,
                4rem
            );

        line-height: 1;
    }


    .hero-text {
        font-size: 1rem;
    }


    .brand-tag {
        gap: 10px;
    }


    .brand-tag-line {
        width: 27px;
    }


    .brand-tag-text {
        padding: 7px 10px;

        font-size: 0.72rem;

        letter-spacing: 0.13em;
    }


    .hero-buttons {
        max-width: 330px;

        flex-direction: column;
    }


    .hero-buttons .button {
        width: 100%;
    }


    .scroll-indicator {
        display: none;
    }


    /* Sections */

    .section {
        width: 90%;

        padding:
            85px 0;
    }


    .section-heading {
        margin-bottom: 45px;
    }


    .section-heading h2 {
        font-size:
            clamp(
                1.7rem,
                8vw,
                2.5rem
            );
    }


    /* Stats */

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


    /* Services */

    .services-new {
        padding:
            85px 0;
    }


    .services-header h2 {
        font-size: 2.35rem;
    }


    .service-row {
        grid-template-columns: 1fr;

        gap: 15px;

        padding:
            30px 4px;
    }


    .service-row-title,
    .service-row-description {
        grid-column: 1;
    }


    .service-arrow {
        display: none;
    }


    .service-row-title h3 {
        font-size: 1.65rem;
    }


    .service-row-description p {
        font-size: 0.94rem;
    }


    .services-more {
        justify-content: flex-start;
    }


    /* Projects */

    .project-heading {
        width: 90%;

        padding:
            85px 0 45px;
    }


    .project-heading h2 {
        font-size: 2.4rem;
    }


    .project-grid {
        width: 90%;
    }


    .project-image,
    .project-large .project-image {
        min-height: 300px;
    }


    /* CTA */

    .cta-box h2 {
        font-size: 2.6rem;
    }


    /* Footer */

    .footer-main {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    .footer-links {
        margin-right: 0;
    }


    .footer-company-list {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 430px) {

    .header-contact {
        display: none;
    }


    .hero h1 {
        font-size: 2.75rem;
    }


    .services-header h2 {
        font-size: 2.05rem;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   PORTFOLIO — COMING SOON PAGE
   ========================================================= */

.portfolio-coming-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 0 80px;
    background: var(--background);
    overflow: hidden;
}

.portfolio-coming-page::before {
    content: "";
    position: absolute;
    width: 750px;
    height: 750px;
    top: -390px;
    right: -250px;
    border: 1px solid rgba(177, 132, 24, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.portfolio-coming-page::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    bottom: -260px;
    left: -170px;
    border: 1px solid rgba(177, 132, 24, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

html[data-theme="dark"] .portfolio-coming-page::before {
    border-color: rgba(201, 164, 61, 0.24);
}

html[data-theme="dark"] .portfolio-coming-page::after {
    border-color: rgba(201, 164, 61, 0.16);
}

.portfolio-coming-content {
    position: relative;
    z-index: 2;
    width: min(1000px, 88%);
    text-align: center;
}

.portfolio-coming-content .eyebrow {
    margin-bottom: 24px;
}

.portfolio-coming-content h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(5rem, 14vw, 12rem);
    line-height: 0.9;
    letter-spacing: -0.075em;
    font-weight: 650;
}

.portfolio-coming-content > p:not(.eyebrow) {
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.portfolio-coming-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 45px;
    padding: 14px 22px;
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    transition:
        transform 0.2s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.portfolio-coming-back:hover {
    transform: translateY(-2px);
    background: var(--gold);
    border-color: var(--gold);
    color: #ffffff;
}

@media (max-width: 650px) {
    .portfolio-coming-content {
        width: 90%;
    }

    .portfolio-coming-content h1 {
        font-size: clamp(4rem, 22vw, 7rem);
    }
}


/* =========================================================
   HEADER SCROLL PROGRESS
   Thin gold line under the header on the longer subpages.
   ========================================================= */

.header-scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;

    width: 100%;
    height: 2px;

    overflow: hidden;
    pointer-events: none;
}

.header-scroll-progress span {
    display: block;

    width: 0%;
    height: 100%;

    background: var(--gold);

    transition: width 0.08s linear;
}


/* ======================================================
   PAGE TRANSITION
====================================================== */

.page-transition-overlay {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--gold);

    transform: translateY(100%);

    pointer-events: none;

    transition:
        transform 0.55s cubic-bezier(
            0.76,
            0,
            0.24,
            1
        );
}

.page-transition-overlay span {
    color: #ffffff;

    font-size: clamp(
        1rem,
        2vw,
        1.4rem
    );

    font-weight: 800;

    letter-spacing: 0.28em;

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease 0.12s,
        transform 0.25s ease 0.12s;
}


/* NEW PAGE: COVER THE SCREEN BEFORE FIRST PAINT */

html.page-transition-pending {
    overflow: hidden;
}

html.page-transition-pending .page-transition-overlay {
    transform: translateY(0);
    transition: none;
}

html.page-transition-pending .page-transition-overlay span {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}


/* LEAVING CURRENT PAGE */

.page-transition-overlay.is-leaving {
    transform: translateY(0);
    pointer-events: all;
}

.page-transition-overlay.is-leaving span {
    opacity: 1;
    transform: translateY(0);
}


/* NEW PAGE STARTS COVERED */

.page-transition-overlay.is-entering {
    transform: translateY(0);

    transition: none;
}

.page-transition-overlay.is-entering span {
    opacity: 1;
    transform: translateY(0);
}


/* REVEAL NEW PAGE */

.page-transition-overlay.is-entering.is-revealing {
    transform: translateY(-100%);

    transition:
        transform 0.58s cubic-bezier(
            0.76,
            0,
            0.24,
            1
        );
}

.page-transition-overlay.is-entering.is-revealing span {
    opacity: 0;

    transition:
        opacity 0.18s ease;
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .page-transition-overlay {
        transition: none;
    }

}
