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

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    max-width: 100%;
    font-family: "IBM Plex Sans", sans-serif;
}

.hero {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;

    background:
        linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.05)),
        url("images/hero.png") center 58% / cover no-repeat;

    color: white;
}

/* TITLE AND STRAPLINE */

.hero-text {
    position: absolute;
    top: clamp(40px, 6.5vh, 72px);
    left: clamp(24px, 5vw, 76px);
    max-width: 90vw;
}

.hero-text h1 {
    font-size: clamp(1.7rem, 2.35vw, 2.9rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0;
    white-space: nowrap;
    margin-bottom: 8px;
}

.hero-text p {
    font-size: clamp(0.78rem, 1vw, 1.2rem);
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
}

/* CONTACT / LOGIN — NORMAL VIEW */

nav {
    position: absolute;
    left: clamp(24px, 5vw, 76px);
    bottom: clamp(20px, 4vh, 48px);

    display: flex;
    align-items: center;
    gap: 0;

    padding: 10px 12px;
    background: rgba(75, 75, 75, .82);
    border-radius: 5px;
}

nav a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-skip-ink: none;

    font-size: clamp(0.9rem, 1vw, 1.1rem);
    font-weight: 500;

    padding: 0 14px;

    transition: opacity .2s;
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

nav a:first-child {
    padding-left: 8px;
}

nav a + a {
    position: relative;
}

nav a + a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    height: 0.85em;
    width: 1px;
    background: rgba(255,255,255,.75);
}

nav a:hover {
    opacity: .7;
}

/* PORTRAIT PHONE / NARROW TABLET */

@media (max-width: 700px) and (orientation: portrait) {

    body {
        overflow-y: hidden;
    }

    .hero {
        height: 100svh;
        min-height: 0;
        background-size: cover;
        background-position: center center;
    }

    .hero-text {
        top: 4svh;
        left: 4vw;
        max-width: 92vw;
    }

    .hero-text h1 {
        font-size: clamp(1.05rem, 4.4vw, 1.7rem);
    }

    .hero-text p {
        font-size: clamp(0.68rem, 2.65vw, 0.95rem);
    }

    nav {
        position: fixed;
        top: auto;
        right: auto;
        left: 4vw;
        bottom: 3.5svh;

        padding: 10px 12px;

        background: rgba(75, 75, 75, .82);
        border-radius: 5px;
    }

    nav a:first-child {
        padding-left: 8px;
    }

    nav a {
        font-size: 0.9rem;
    }
}


/* LANDSCAPE PHONE / VERY SHORT SCREEN */

@media (orientation: landscape) and (max-height: 520px) and (max-width: 1200px) and (pointer: coarse) {

    html,
    body {
        height: auto;
        min-height: 0;
    }

    body {
        overflow-y: auto;
    }

    .hero {
        height: 66.7vw;
        min-height: 0;
        background-size: 100% auto;
        background-position: center top;
    }

    .hero-text {
        top: 16px;
        left: calc(4vw + env(safe-area-inset-left));
    }

    .hero-text h1 {
        font-size: clamp(1.1rem, 2.5vw, 1.8rem);
        margin-bottom: 5px;
    }

    .hero-text p {
        font-size: clamp(0.65rem, 1.3vw, 0.9rem);
    }

    nav {
        position: fixed;
        top: auto;
        right: auto;
        left: 4vw;
        bottom: 16px;

        padding: 10px 12px;
        gap: 0;

        background: rgba(75, 75, 75, .82);
        border-radius: 5px;
    }

    nav a:first-child {
        padding-left: 8px;
    }

    nav a {
        font-size: 0.85rem;
    }
}


/* AWKWARD DESKTOP WINDOW */

@media (min-width: 901px) and (max-height: 780px) and (pointer: fine) {

    .hero {
        background-size: 100% auto;
        background-position: center -70px;
    }

    .hero-text {
        top: 50px;
    }

    .hero-text h1 {
        font-size: clamp(1.4rem, 2vw, 2.2rem);
    }

    .hero-text p {
        font-size: clamp(0.72rem, 0.9vw, 1rem);
    }

    nav {
        position: fixed;
        top: auto;
        right: auto;
        left: 20px;
        bottom: 20px;

        padding: 10px 12px;

        background: rgba(75, 75, 75, .82);
        border-radius: 5px;
    }

    nav a:first-child {
        padding-left: 8px;
    }
}