/* ==================================================
   01. Brand variables
   ================================================== */

:root {
    --bg: #080808;
    --silver: #a6a6a6;
    --blue: #0145f2;
    --line: #555;
    --pad: 3.5vw;
}


/* ==================================================
   02. Global styles
   ================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--silver);
    font-family: Arial,Helvetica,sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,a:focus-visible {
    color: white;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}


/* ==================================================
   03. Header and navigation
   ================================================== */

header {
    display: flex;
    align-items: center;
    gap: 3.8vw;
    padding: 20px var(--pad);
    position: relative;
    z-index: 3;
}

header img {
    width: clamp(150px,16vw,260px);
    display: block;
}

.rule {
    height: 1px;
    background: var(--line);
    flex: 1;
}

nav {
    display: flex;
    gap: 2.8vw;
    font-size: clamp(11px,1vw,16px);
    letter-spacing: .12em;
    text-transform: uppercase;
}

nav a[aria-current] {
    color: white;
    border-bottom: 2px solid var(--blue);
}


/* ==================================================
   04. Homepage layout
   ================================================== */

.home {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}
/* Keep the homepage within the desktop viewport. */
@media (min-width: 751px) and (min-height: 700px) {
    .home {
        height: 100svh;
    }

    .hero {
        min-height: 0;
    }

    header,
    .bottom {
        flex-shrink: 0;
    }
}

/* ==================================================
   05. Hero photography and overlays
   ================================================== */

.visual {
    position: absolute;
    inset: 0 0 10% 28%;
    z-index: -1;
    overflow: hidden;
}

.visual img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity .7s;

    /* Image colour treatment */
    filter: saturate(0.35) brightness(0.85) contrast(1.1);
}

.visual img.active {
    opacity: 1;
}

.visual:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#080808 0%,rgba(8,8,8,.74) 15%,transparent 65%),linear-gradient(0deg,#080808 0%,transparent 28%,transparent 76%,rgba(8,8,8,.65) 100%);
}


/* ==================================================
   06. Hero content and typography
   ================================================== */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5vh var(--pad);
    position: relative;
}

.accent {
    width: clamp(48px,6.5vw,110px);
    height: 10px;
    background: var(--blue);
    margin-bottom: 3vh;
}

h1 {
    font-size: clamp(48px,7.7vw,150px);
    line-height: .85;
    letter-spacing: -.065em;
    margin: 0 0 4vh;
    font-weight: 700;
    color: #b8b8b8;
}


/* ==================================================
   07. Service links
   ================================================== */

.services {
    border-left: 1px solid var(--line);
    padding-left: 2.8vw;
    width: min(350px,80%);
    font-size: clamp(17px,1.6vw,26px);
}

.services a {
    display: block;
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
}

.services a:last-child {
    border: 0;
}


/* ==================================================
   08. Homepage bottom bar
   ================================================== */

.bottom {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.3fr;
    align-items: center;
    gap: 3vw;
    padding: 2.5vh var(--pad) 3vh;
    background: linear-gradient(transparent,#080808);
}


/* ==================================================
   09. Carousel controls
   ================================================== */

.counter {
    font-size: 12px;
    letter-spacing: .18em;
}

.dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.dots button {
    width: 48px;
    height: 16px;
    background: transparent;
    border: 0;
    border-bottom: 3px solid #444;
    padding: 0;
}

.dots button.active {
    border-color: var(--blue);
}


/* ==================================================
   10. Experience and contact links
   ================================================== */

.experience {
    font-size: clamp(12px,1.2vw,18px);
    letter-spacing: .2em;
    text-transform: uppercase;
}

.contact {
    border-left: 1px solid var(--line);
    padding-left: 3vw;
    font-size: clamp(16px,1.7vw,28px);
    text-transform: uppercase;
}

.contact small {
    display: block;
    font-size: .7em;
    text-transform: none;
    margin-top: 6px;
}

.contact:before {
    content: '';
    display: inline-block;
    width: 38px;
    height: 7px;
    background: var(--blue);
    margin-right: 12px;
    vertical-align: middle;
}


/* ==================================================
   11. Interior pages
   ================================================== */

.inner {
    max-width: 1250px;
    margin: auto;
    padding: 9vh var(--pad);
}

.inner h1 {
    font-size: clamp(44px,7vw,100px);
    line-height: 1;
}

.inner p {
    max-width: 700px;
    font-size: 20px;
    line-height: 1.65;
}

.eyebrow {
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 24px;
}


/* ==================================================
   12. Content entries
   ================================================== */

.entry {
    border-top: 1px solid var(--line);
    padding: 25px 0;
}

.entry h2 {
    font-size: 32px;
    margin: 0;
}


/* ==================================================
   13. Experience gallery
   ================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}


/* ==================================================
   14. Site footer
   ================================================== */

footer {
    padding: 25px var(--pad);
    border-top: 1px solid #333;
    font-size: 12px;
    letter-spacing: .1em;
}


/* ==================================================
   15. Responsive mobile layout
   ================================================== */

@media(max-width:750px) {
    :root {
        --pad: 6vw;
    }

    header {
        flex-wrap: wrap;
        gap: 20px;
    }

    header .rule {
        display: none;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: 11px;
    }

    .visual {
        inset: 12% 0 12% 0;
    }

    .visual:after {
        background: linear-gradient(90deg,rgba(8,8,8,.85),rgba(8,8,8,.2)),linear-gradient(0deg,#080808,transparent 65%);
    }

    .hero {
        padding-top: 9vh;
        padding-bottom: 6vh;
    }

    h1 {
        font-size: clamp(38px,10vw,75px);
        line-height: .92;
    }

    .bottom {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .contact {
        grid-column: 1/-1;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #444;
        padding-top: 18px;
    }

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

    .services {
        padding-left: 16px;
    }

    .accent {
        height: 6px;
    }

}


/* ==================================================
   16. Reduced motion accessibility
   ================================================== */

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none!important;
    }

}
