/* ==========================================================
   BAND WEBSITE
   Black / cold white / electric blue
   ========================================================== */


/* ------------------------------
   Theme
------------------------------ */

:root {
    --background: #020304;
    --background-soft: #07090c;

    --text: #f0f4f7;
    --text-soft: #a5adb5;
    --muted: #68717a;

    --line: #171d23;
    --line-blue: rgba(30, 145, 255, 0.24);

    --blue: #168cff;
    --blue-bright: #48adff;
    --blue-dark: #064b8f;

    --blue-glow:
            0 0 6px rgba(22, 140, 255, 0.65),
            0 0 20px rgba(22, 140, 255, 0.25);

    --blue-glow-soft:
            0 0 20px rgba(22, 140, 255, 0.12);
}


/* ------------------------------
   Base
------------------------------ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
            radial-gradient(
                    circle at 80% 15%,
                    rgba(0, 80, 160, 0.035),
                    transparent 30rem
            ),
            var(--background);

    color: var(--text);

    font-family:
            "Helvetica Neue",
            Helvetica,
            Arial,
            sans-serif;

    font-weight: 300;
    line-height: 1.6;

    overflow-x: hidden;
}

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

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

::selection {
    background: var(--blue);
    color: #000;
}


/* ------------------------------
   Navigation
------------------------------ */

.topbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

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

    padding: 0 5vw;

    z-index: 100;

    background:
            linear-gradient(
                    to bottom,
                    rgba(2, 3, 4, 0.98),
                    rgba(2, 3, 4, 0.75) 50%,
                    rgba(2, 3, 4, 0)
            );
}

.logo {
    color: var(--text);

    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;

    transition:
            color 0.35s ease,
            text-shadow 0.35s ease;
}

.logo:hover {
    color: #fff;

    text-shadow:
            0 0 12px rgba(22, 140, 255, 0.5);
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    position: relative;

    color: var(--muted);

    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;

    transition:
            color 0.3s ease,
            text-shadow 0.3s ease;
}

nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--blue);

    box-shadow: var(--blue-glow);

    transition: width 0.35s ease;
}

nav a:hover {
    color: #fff;

    text-shadow:
            0 0 10px rgba(22, 140, 255, 0.25);
}

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

.spotify-nav {
    height: 34px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

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

.spotify-nav img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;

    fill: var(--muted);

    transition:
            fill 0.3s ease,
            filter 0.3s ease;
}

.spotify-nav:hover {
    border-color: var(--blue);
}

.spotify-nav:hover img {
    fill: var(--blue);
    filter: drop-shadow(0 0 6px rgba(22, 140, 255, 0.5));
}

/* Don't give the Spotify button the normal nav underline */
.spotify-nav::after {
    display: none;
}


/* ==========================================================
   Hero
   ========================================================== */

.hero {
    position: relative;

    height: clamp(300px, 60vw, 100dvh);
    min-height: 0;

    overflow: hidden;
    background: #000;

    --hero-x: 8vw;

    --hero-y: max(12vw, 100px);

    --title-size: 10.5vw;

    --bunny-width: 50vw;
    --bunny-right: 2vw;

    --bunny-y-offset: -16vw;

    --eyebrow-size: 0.70vw;
    --eyebrow-gap: 2.2vw;

    --sigil-size: 10vw;
}


.hero-image {
    position: absolute;
    inset: 0;

    z-index: 0;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;


    filter:
            grayscale(100%)
            contrast(1.08)
            brightness(0.45);

    transform: scale(1.03);

    animation:
            slowZoom 22s ease-out forwards;
}


@keyframes slowZoom {

    from {
        transform: scale(1.03);
    }

    to {
        transform: scale(1.10);
    }
}


.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:

        /* subtle vignette */
            radial-gradient(
                    ellipse at center,
                    transparent 30%,
                    rgba(0, 0, 0, 0.18) 70%,
                    rgba(0, 0, 0, 0.45) 100%
            ),

                /* keep left side dark enough for text */
            linear-gradient(
                    90deg,
                    rgba(0, 0, 0, 0.88) 0%,
                    rgba(0, 0, 0, 0.62) 38%,
                    rgba(0, 0, 0, 0.18) 70%,
                    rgba(0, 0, 0, 0.25) 100%
            );
}


/* ==========================================================
   Bunny
   ========================================================== */

.hero-bunny {
    position: absolute;

    width: var(--bunny-width);
    height: auto;

    right: var(--bunny-right);

    top: calc(
            var(--hero-y) +
            var(--bunny-y-offset)
    );

    transform: none;

    z-index: 2;
    opacity: 0.82;

    pointer-events: none;

    filter:
            drop-shadow(0 0 3px rgba(22, 110, 255, 0.70))
            drop-shadow(0 0 12px rgba(10, 90, 255, 0.32))
            drop-shadow(0 0 30px rgba(0, 80, 255, 0.18))
            drop-shadow(0 0 60px rgba(0, 75, 255, 0.12));
}

/* Large, cheap atmospheric glow behind the bunny */
.hero::after {
    content: "";

    position: absolute;

    width: 60vw;
    aspect-ratio: 1;

    right: -10vw;
    top: var(--hero-y);

    transform: translateY(-35%);

    z-index: 0;
    pointer-events: none;

    background:
            radial-gradient(
                    ellipse at center,
                    rgba(0, 70, 255, 0.20) 0%,
                    rgba(0, 65, 245, 0.14) 22%,
                    rgba(0, 55, 225, 0.085) 42%,
                    rgba(0, 45, 200, 0.035) 60%,
                    transparent 76%
            );
}



/* ==========================================================
   Hero text
   ========================================================== */


.hero-content {
    position: absolute;

    left: var(--hero-x);
    top: var(--hero-y);

    width: 48vw;
    margin: 0;

    z-index: 3;

    animation: mobileAppear 1.8s ease both;
}

@keyframes appear {

    from {
        opacity: 0;

        transform:
                translateY(20px);
    }

    to {
        opacity: 1;

        transform:
                translateY(0);
    }
}


/* ----------------------------------------------------------
   Location / eyebrow
   ---------------------------------------------------------- */

.eyebrow {
    margin: 0 0 var(--eyebrow-gap);

    width: auto;

    color: var(--blue);

    font-size: var(--eyebrow-size);
    letter-spacing: 0.25em;
    text-transform: uppercase;

    white-space: nowrap;

    text-shadow:
            0 0 14px rgba(22, 140, 255, 0.35);
}



/* ----------------------------------------------------------
   Main title
   ---------------------------------------------------------- */

.hero h1 {
    margin: 0;

    color: #f4f7f9;

    font-size: var(--title-size);
    font-weight: 300;

    line-height: 0.78;
    letter-spacing: -0.06em;

    text-shadow:
            0 2px 30px rgba(0, 0, 0, 0.55);
}


/* ----------------------------------------------------------
   Subtitle
   ---------------------------------------------------------- */

.subtitle {
    max-width: 400px;

    margin-top: 2vw;

    color: var(--text-soft);
    font-size: 1.5vw;
    letter-spacing: 0.04em;
}

/* ==========================================
   Animated sigil
   ========================================== */

.sigil {
    position: absolute;

    left: 50%;
    top: calc(var(--hero-y) + 24vw + 65px);

    width: var(--sigil-size);
    aspect-ratio: 1;

    transform: translateX(-50%);

    z-index: 5;
    opacity: 0.95;
}

.sigil:hover {
    opacity: 1;

    transform:
            translateX(-50%)
            scale(1.04);
}


.sigil-svg {
    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;
}


/* ------------------------------------------
   Permanent dark lines
------------------------------------------ */

.sigil-base {
    fill: none;

    stroke: #18222d;
    stroke-width: 3;

    stroke-linecap: square;
    stroke-linejoin: miter;
}


/* Front line can be slightly brighter */

.sigil-base-front {
    stroke: #1d2935;
}


/* ------------------------------------------
   MASK

   This black stroke sits BETWEEN the back
   star and front star.

   Therefore it erases the back star around
   each intersection before the front line
   gets drawn over it.
------------------------------------------ */

.sigil-mask {
    fill: none;

    stroke: #020304;

    /*
       Must be substantially wider than
       the visible line.
    */
    stroke-width: 13;

    stroke-linejoin: miter;
    stroke-linecap: square;
}


/* ------------------------------------------
   Ambient blue hue
------------------------------------------ */

.sigil-aura {
    fill: none;

    stroke: rgba(22, 140, 255, 0.13);
    stroke-width: 10;

    filter: url(#ambient-blue-glow);
}

.sigil-aura-front {
    stroke:
            rgba(22, 140, 255, 0.16);
}


/* ------------------------------------------
   Moving blue light
------------------------------------------ */

.sigil-light {
    fill: none;

    stroke: #1495ff;
    stroke-width: 4;

    stroke-linecap: round;
    stroke-linejoin: round;

    /*
       14% illuminated,
       86% dark.
    */
    stroke-dasharray: 14 86;

    filter: url(#line-blue-glow);
}


/* Back star */

.sigil-light-back {
    animation:
            sigilBackTravel
            5.2s
            linear
            infinite;
}


/* Front star */

.sigil-light-front {
    animation:
            sigilFrontTravel
            4.1s
            linear
            infinite;
}


@keyframes sigilBackTravel {

    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -100;
    }
}


@keyframes sigilFrontTravel {

    from {
        stroke-dashoffset: 35;
    }

    to {
        stroke-dashoffset: -65;
    }
}

/* ------------------------------
   General sections
------------------------------ */

.section {
    position: relative;

    display: grid;
    grid-template-columns: 15% 1fr;

    max-width: 1500px;

    margin: auto;
    padding: 10rem 5vw;
}

.section-number {
    color: var(--blue);

    font-size: 0.65rem;
    letter-spacing: 0.2em;

    text-shadow:
            0 0 10px rgba(22, 140, 255, 0.55),
            0 0 25px rgba(22, 140, 255, 0.18);
}

.section-content {
    max-width: 1100px;
}

.section-label {
    margin: 0 0 4rem;

    color: var(--muted);

    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.section h2 {
    margin: 0 0 5rem;

    color: var(--text);

    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 300;

    line-height: 0.95;
    letter-spacing: -0.045em;
}


/* ------------------------------
   About
------------------------------ */
.about {
    min-height: 90vh;
    align-items: center;
}

.about .section-content {
    display: grid;
    grid-template-columns:
        minmax(180px, 0.75fr)
        minmax(0, 1.25fr);
    grid-template-areas:
        "label label"
        "title text";
    column-gap: clamp(4rem, 8vw, 10rem);
    row-gap: 2rem;

    width: 100%;
    max-width: 1200px;
}

.about .section-label {
    grid-area: label;

    margin: 0 0 1rem;
}

.about h2 {
    grid-area: title;

    margin: 0;

    font-size: clamp(4rem, 7vw, 7rem);
    line-height: 0.9;
}

.about-text {
    grid-area: text;

    /* remove the old 25% offset */
    margin-left: 0;

    max-width: 650px;
    padding-top: 0.5rem;
}

.about-text p {
    margin: 0;

    color: var(--text-soft);

    font-size: 1.05rem;
    line-height: 1.85;
}

.bio-block {
    margin-bottom: 4rem;
}

.bio-block:last-child {
    margin-bottom: 0;
}

.bio-language {
    display: block;

    margin-bottom: 1rem;

    color: var(--blue);

    font-size: 0.65rem;
    font-weight: 500;

    letter-spacing: 0.22em;
    text-transform: uppercase;

    text-shadow:
            0 0 10px rgba(22, 140, 255, 0.35);
}

.bio-block p {
    margin: 0;
}


/* ------------------------------
   Interlude
------------------------------ */

.interlude {
    position: relative;

    height: 80vh;
    min-height: 600px;

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

    overflow: hidden;

    background: #000;
}

.interlude-image {
    position: absolute;
    inset: 0;

    background:
            url("../images/interlude.jpg")
            center / cover
            no-repeat;

    filter:
            grayscale(100%)
            brightness(0.26)
            contrast(1.2);
}

.interlude::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
            radial-gradient(
                    circle at center,
                    rgba(0, 80, 170, 0.10),
                    transparent 48%
            );
}

.interlude::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    background:
            linear-gradient(
                    to bottom,
                    rgba(0, 0, 0, 0.25),
                    rgba(0, 4, 10, 0.30)
            );
}

blockquote {
    position: relative;
    z-index: 2;

    max-width: 750px;

    padding: 2rem;

    color: #d5dce1;

    font-family:
            Georgia,
            "Times New Roman",
            serif;

    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400;
    font-style: italic;

    line-height: 1.3;
    text-align: center;

    text-shadow:
            0 2px 25px rgba(0, 0, 0, 0.8);
}


/* ------------------------------
   Gallery
------------------------------ */

.photos {
    padding-top: 12rem;
    padding-bottom: 12rem;
}

.gallery {
    display: grid;

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

    gap: 4rem 2rem;
}

.photo {
    position: relative;

    margin: 0;

    overflow: hidden;

    background: var(--background-soft);
}

/* very subtle blue line when hovering */

.photo::after {
    content: "";

    position: absolute;
    inset: 0;

    border: 1px solid transparent;

    pointer-events: none;

    transition:
            border-color 0.8s ease,
            box-shadow 0.8s ease;
}

.photo:hover::after {
    border-color: rgba(22, 140, 255, 0.16);

    box-shadow:
            inset 0 0 35px rgba(22, 140, 255, 0.035);
}

.photo img {
    height: 550px;

    object-fit: cover;

    filter:
            grayscale(100%)
            brightness(0.68)
            contrast(1.12);

    transition:
            transform 1.4s ease,
            filter 1s ease;
}

.photo:hover img {
    transform: scale(1.025);

    filter:
            grayscale(75%)
            brightness(0.78)
            contrast(1.08);
}

.photo-large {
    grid-row: span 2;
}

.photo-large img {
    height: 100%;
    min-height: 900px;
}

.photo-wide {
    grid-column: 1 / -1;
}

.photo-wide img {
    height: 650px;
}


/* ------------------------------
   Contact
------------------------------ */

.contact {
    min-height: 90vh;

    align-items: center;

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

.contact-links {
    max-width: 750px;
}

.contact-links a,
.contact-links .contact-copy {
    position: relative;

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

    width: 100%;
    padding: 1.8rem 0;

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

    background: none;
    color: var(--text-soft);

    font: inherit;
    text-align: left;

    cursor: pointer;

    transition:
            color 0.35s ease,
            padding 0.35s ease,
            border-color 0.35s ease,
            text-shadow 0.35s ease;
}

.contact-links a span,
.contact-links .contact-copy > span:first-child {
    color: var(--muted);

    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;

    transition: color 0.35s ease;
}

.contact-links a:hover,
.contact-links .contact-copy:hover {
    padding-left: 1rem;

    color: #fff;

    border-color: var(--line-blue);

    text-shadow:
            0 0 14px rgba(22, 140, 255, 0.18);
}

.contact-links a:hover span,
.contact-links .contact-copy:hover .contact-label {
    color: var(--blue);
}

.contact-links .contact-copy:hover .contact-value {
    color: #fff;
}


/* ------------------------------
   Footer
------------------------------ */

footer {
    display: flex;
    justify-content: space-between;

    padding: 3rem 5vw;

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

    color: #505860;

    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

footer a {
    transition:
            color 0.3s ease,
            text-shadow 0.3s ease;
}

footer a:hover {
    color: var(--blue);

    text-shadow:
            0 0 12px rgba(22, 140, 255, 0.4);
}


/* ------------------------------
   Scrollbar
------------------------------ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020304;
}

::-webkit-scrollbar-thumb {
    background: #1b2229;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

/* ==========================================================
   Tablet / narrow desktop
   ========================================================== */

@media (max-width: 1100px) and (min-width: 751px) {

    /*
     * Give the section itself a little more usable width.
     * The number column doesn't need 15% here.
     */
    .section {
        grid-template-columns: 10% minmax(0, 1fr);
        padding-left: 4vw;
        padding-right: 4vw;
    }


    /*
     * Keep Bio + text side-by-side, but allow BOTH
     * columns to shrink properly.
     */
    .about .section-content {
        grid-template-columns:
            minmax(150px, 0.55fr)
            minmax(0, 1.45fr);

        column-gap: clamp(2rem, 5vw, 4rem);

        width: 100%;
        max-width: 100%;
        min-width: 0;
    }


    /*
     * Critical:
     * allow the text grid item to actually shrink.
     */
    .about-text {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }


    .about-text p {
        width: 100%;
        max-width: 100%;

        overflow-wrap: break-word;
    }


    /*
     * Scale Bio down slightly as space disappears.
     */
    .about h2 {
        font-size: clamp(4rem, 7vw, 6rem);
    }
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 750px) {

    /* ------------------------------------------------------
       Global overflow protection
       ------------------------------------------------------ */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    main,
    section {
        max-width: 100%;
    }


    /* ------------------------------------------------------
       Navigation
       ------------------------------------------------------ */

    .topbar {
        height: 65px;
        padding: 0 5vw;
    }

    .logo {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 0.56rem;
        letter-spacing: 0.08em;
    }

    /* ------------------------------------------------------
       All normal sections
       ------------------------------------------------------ */

    .section {
        display: block;

        width: 100%;
        max-width: 100%;

        padding: 7rem 7vw;
    }

    .section-number {
        margin-bottom: 2rem;
    }

    .section-label {
        margin-bottom: 2rem;
    }

    .section h2 {
        margin-bottom: 3rem;

        font-size: clamp(3rem, 15vw, 5rem);
    }


    /* ------------------------------------------------------
       About / Bio

       IMPORTANT:
       Desktop defines its own grid on .about .section-content,
       so we explicitly remove that grid on mobile.
       ------------------------------------------------------ */

    .about {
        min-height: 0;
    }

    .about .section-content {
        display: block;

        width: 100%;
        max-width: 100%;

        min-width: 0;
    }

    .about h2 {
        margin-bottom: 3rem;

        font-size: clamp(3.5rem, 17vw, 5rem);
    }

    .about-text {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        margin: 0;
        padding: 0;
    }

    .bio-block {
        width: 100%;
        max-width: 100%;

        margin-bottom: 3.5rem;
    }

    .bio-block p {
        width: 100%;
        max-width: 100%;

        overflow-wrap: break-word;

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


    /* ------------------------------------------------------
       Gallery
       ------------------------------------------------------ */

    .gallery {
        display: block;

        width: 100%;
    }

    .photo {
        width: 100%;

        margin-bottom: 1.5rem;
    }

    .photo img,
    .photo-large img,
    .photo-wide img {
        width: 100%;
        height: auto;

        min-height: 0;
    }


    /* ------------------------------------------------------
       Interlude
       ------------------------------------------------------ */

    .interlude {
        height: 65vh;
        min-height: 450px;
    }


    /* ------------------------------------------------------
       Contact

       Apply EXACTLY the same layout to <a> and <button>.
       ------------------------------------------------------ */

    .contact {
        min-height: 0;
    }

    .contact-links {
        width: 100%;
        max-width: 100%;
    }

    .contact-links a,
    .contact-links .contact-copy {
        display: flex;

        width: 100%;

        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        gap: 0.45rem;

        padding: 1.4rem 0;
    }

    /*
       Prevent long email/usernames from forcing
       the page wider than the viewport.
    */

    .contact-links a,
    .contact-value {
        overflow-wrap: anywhere;
        word-break: break-word;
    }


    /* ------------------------------------------------------
       Footer
       ------------------------------------------------------ */

    footer {
        padding: 2.5rem 7vw;

        gap: 1.5rem;

        flex-direction: column;
    }
}


/* ==========================================================
   Very small phones
   ========================================================== */

@media (max-width: 600px) {

    .topbar {
        height: 64px;
        padding: 0 4vw;
    }

    .logo {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    nav {
        gap: 0.65rem;
    }

    nav a {
        font-size: 0.52rem;
        letter-spacing: 0.04em;
    }


    /* Normal sections */

    .section {
        padding: 6rem 6vw;
    }

    .bio-block p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}


/* ------------------------------
   Reduced motion
------------------------------ */

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

    html {
        scroll-behavior: auto;
    }

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