:root {
    --qfr-charcoal: #252525;
    --qfr-charcoal-soft: #3a3c3b;
    --qfr-orange: #f58220;
    --qfr-paper: #f0f2f1;
    --qfr-white: #fff;
    --qfr-muted: #8c8d8d;
    --qfr-blue: #4e79a7;
    --qfr-border: rgba(255, 255, 255, .14);
    --font-body: "Raleway", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--qfr-charcoal);
    color: var(--qfr-paper);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 1100;
    padding: .65rem 1rem;
    background: var(--qfr-white);
    color: var(--qfr-charcoal);
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--qfr-charcoal);
}

.site-header .navbar {
    min-height: 96px;
    padding: .65rem 0;
}

.header-branding {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-right: 2rem;
}

.header-branding .navbar-brand {
    margin-right: 0;
    padding: 0;
}

.navbar-brand img {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.aes-logo {
    display: block;
    width: 140px;
    height: auto;
}

.site-header .nav-link {
    padding: .75rem 1rem !important;
    color: rgba(255, 255, 255, .76);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
    color: var(--qfr-orange);
}

.site-header .nav-contact {
    margin-left: 1rem;
    border-left: 1px solid var(--qfr-border);
}

.site-header .nav-contact .nav-link {
    font-size: .75rem;
    letter-spacing: .02em;
    text-transform: none;
}

.site-header .nav-admin .nav-link {
    color: var(--qfr-orange);
    font-size: .72rem;
}

.home-hero {
    position: relative;
    display: grid;
    min-height: min(760px, calc(100svh - 96px));
    align-items: center;
    overflow: hidden;
    background: #20201e;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-image {
    background: url("../../images/studio-02.jpeg") center 48% / cover no-repeat;
    transform: scale(1.015);
}

.hero-shade {
    background: linear-gradient(90deg, rgba(19, 19, 18, .88) 0%, rgba(19, 19, 18, .67) 42%, rgba(19, 19, 18, .12) 100%), linear-gradient(0deg, rgba(19, 19, 18, .42), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.hero-logo {
    width: 116px;
    height: 116px;
    margin-bottom: 2rem;
    object-fit: contain;
}

.eyebrow {
    margin-bottom: .8rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .19em;
    line-height: 1.5;
    text-transform: uppercase;
}

.text-orange {
    color: var(--qfr-orange);
}

.home-hero h1,
.page-intro h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    letter-spacing: -.055em;
    line-height: 1.03;
}

.home-hero h1 span {
    color: var(--qfr-orange);
}

.hero-copy {
    max-width: 490px;
    margin: 1.5rem 0 2rem;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
}

.btn-orange {
    padding: .9rem 1.25rem;
    border: 1px solid var(--qfr-orange);
    border-radius: 0;
    background: var(--qfr-orange);
    color: var(--qfr-charcoal);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-orange:hover,
.btn-orange:focus-visible {
    border-color: var(--qfr-white);
    background: transparent;
    color: var(--qfr-white);
}

.btn-orange span {
    margin-left: .5rem;
    font-size: 1rem;
}

.scroll-cue {
    position: absolute;
    right: 50%;
    bottom: 1.5rem;
    z-index: 2;
    display: block;
    width: 22px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 14px;
    transform: translateX(50%);
}

.scroll-cue span {
    position: absolute;
    top: 7px;
    left: 9px;
    width: 2px;
    height: 7px;
    background: var(--qfr-orange);
}

.section-space {
    padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.welcome-section {
    background: var(--qfr-paper);
    color: var(--qfr-charcoal);
}

.welcome-section h2,
.studio-details h2,
.artist-cta h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -.045em;
    line-height: 1.1;
}

.lead-copy {
    max-width: 680px;
    margin: 0 0 1.5rem;
    color: #5a5c5b;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    color: var(--qfr-orange);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link:hover {
    color: var(--qfr-charcoal);
}

.home-links {
    background: var(--qfr-charcoal);
}

.feature-card {
    display: flex;
    height: 100%;
    min-height: 270px;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--qfr-border);
    color: var(--qfr-paper);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.feature-card:hover {
    border-color: var(--qfr-orange);
    color: var(--qfr-paper);
    transform: translateY(-4px);
}

.feature-number {
    color: var(--qfr-orange);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.feature-card h3 {
    margin: 1.8rem 0 .7rem;
    font-size: 1.65rem;
    font-weight: 500;
}

.feature-card p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, .67);
    font-size: .92rem;
}

.feature-card .text-link {
    margin-top: auto;
}

.page-intro {
    padding: clamp(4rem, 9vw, 8rem) 0 3.5rem;
    background: var(--qfr-charcoal);
}

.page-intro h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(3.3rem, 8vw, 6.5rem);
}

.intro-lead {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, .73);
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    line-height: 1.8;
}

.studio-gallery-section {
    padding: 1rem 0 3rem;
}

.carousel-frame {
    position: relative;
    overflow: hidden;
    background: #171716;
}

.carousel-slide {
    display: none;
    margin: 0;
}

.carousel-slide.is-active {
    display: block;
    animation: slide-in .45s ease;
}

.carousel-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 660px;
    object-fit: cover;
}

@keyframes slide-in {
    from { opacity: .35; }
    to { opacity: 1; }
}

.carousel-control {
    position: absolute;
    top: 50%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(24, 24, 23, .48);
    color: var(--qfr-white);
    font-family: Arial, sans-serif;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background .2s ease, border-color .2s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    border-color: var(--qfr-orange);
    background: var(--qfr-orange);
    color: var(--qfr-charcoal);
}

.carousel-previous {
    left: 1.5rem;
}

.carousel-next {
    right: 1.5rem;
}

.carousel-count {
    position: absolute;
    right: 1.25rem;
    bottom: 1.1rem;
    padding: .25rem .65rem;
    background: rgba(24, 24, 23, .72);
    color: var(--qfr-white);
    font-size: .72rem;
    letter-spacing: .12em;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    overflow-x: auto;
    padding: 1.2rem 0;
}

.carousel-dot {
    width: 8px;
    min-width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #727474;
}

.carousel-dot.is-active {
    background: var(--qfr-orange);
}

.studio-details {
    background: #2b2c2b;
}

.studio-copy {
    color: rgba(255, 255, 255, .74);
}

.studio-copy p {
    margin-bottom: 1.25rem;
}

.artist-section {
    background: #2b2c2b;
}

.artist-card {
    height: 100%;
    min-height: 275px;
    padding: 2rem;
    border: 1px solid var(--qfr-border);
}

.artist-card h2 {
    margin: 2rem 0 .75rem;
    font-size: 1.8rem;
    font-weight: 400;
}

.artist-card p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
}

.artist-list-heading {
    margin: 0 0 2rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -.035em;
}

.artist-notice {
    padding: 2rem;
    border: 1px solid var(--qfr-border);
    color: rgba(255, 255, 255, .7);
}

.artist-profile {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--qfr-border);
    background: #242524;
}

.artist-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #303130;
}

.artist-profile-copy {
    padding: 1.5rem;
}

.artist-profile-copy h3 {
    margin: 0 0 .6rem;
    font-size: 1.45rem;
    font-weight: 500;
}

.artist-profile-copy p {
    color: rgba(255, 255, 255, .68);
    overflow-wrap: anywhere;
}

.artist-profile-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.artist-audio {
    display: grid;
    width: 100%;
    gap: .45rem;
    padding-top: .5rem;
    border-top: 1px solid var(--qfr-border);
}

.artist-audio-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
}

.artist-track-title {
    color: rgba(255, 255, 255, .76);
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.artist-audio audio {
    display: block;
    width: 100%;
    height: 40px;
    color-scheme: dark;
}

.artist-cta {
    margin-top: clamp(4rem, 8vw, 7rem);
    text-align: center;
}

.artist-cta h2 {
    margin-bottom: 1.5rem;
}

.admin-main {
    min-height: 72vh;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    background: #2b2c2b;
}

.admin-heading,
.admin-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-heading h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -.045em;
}

.admin-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--qfr-border);
    background: #242524;
}

.admin-panel h2 {
    margin: 0 0 .75rem;
    font-size: 1.5rem;
    font-weight: 400;
}

.admin-help {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, .64);
    font-size: .86rem;
}

.admin-main .form-label {
    color: rgba(255, 255, 255, .85);
    font-size: .84rem;
    font-weight: 600;
}

.admin-main .form-control {
    border-color: #5a5c5b;
    border-radius: 0;
    background-color: #303130;
    color: var(--qfr-paper);
}

.admin-main .form-control:focus {
    border-color: var(--qfr-orange);
    box-shadow: 0 0 0 .2rem rgba(245, 130, 32, .2);
}

.admin-main .form-control::file-selector-button {
    background: #414242;
    color: var(--qfr-paper);
}

.admin-main .form-control::placeholder,
.optional-label {
    color: #9a9c9b;
}

.admin-login {
    max-width: 480px;
    margin: 0 auto;
}

.admin-existing-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .68);
    font-size: .8rem;
}

.admin-existing-upload img {
    width: 76px;
    height: 60px;
    object-fit: cover;
}

.admin-cancel {
    margin-left: 1rem;
    color: rgba(255, 255, 255, .72);
    font-size: .85rem;
}

.admin-list-heading {
    margin-bottom: 1.5rem;
}

.admin-list-heading h2 {
    margin: 0;
}

.admin-artist-list {
    display: grid;
    gap: .75rem;
}

.admin-artist {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--qfr-border);
}

.admin-artist > img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: cover;
}

.admin-artist-info {
    min-width: 0;
    flex: 1;
}

.admin-artist-info h3 {
    margin: 0 0 .2rem;
    font-size: 1rem;
    font-weight: 600;
}

.admin-artist-info p {
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
}

.admin-music-status {
    color: var(--qfr-orange);
    font-size: .7rem;
}

.admin-artist-actions {
    display: flex;
    flex: 0 0 auto;
    gap: .4rem;
}

.artist-cta {
    margin-top: clamp(4rem, 8vw, 7rem);
    text-align: center;
}

.artist-cta h2 {
    margin-bottom: 1.5rem;
}

.video-section {
    background: #2b2c2b;
}

.video-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
    align-items: center;
    background: #242524;
}

.video-art {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: #111;
}

.video-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .74;
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    padding-left: .25rem;
    border: 1px solid var(--qfr-white);
    border-radius: 50%;
    background: rgba(0, 0, 0, .2);
    color: var(--qfr-white);
    transform: translate(-50%, -50%);
}

.video-copy {
    padding: clamp(2rem, 5vw, 4rem);
}

.video-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: 1.15;
}

.video-copy p:not(.eyebrow) {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, .7);
}

.music-section {
    min-height: 50vh;
    background: #2b2c2b;
}

.music-empty {
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 5rem);
    border: 1px solid var(--qfr-border);
    text-align: center;
}

.music-empty img {
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.music-empty h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 300;
}

.music-empty p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, .68);
}

.music-player {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.4rem, 4vw, 3rem);
    border: 1px solid var(--qfr-border);
    background: #242524;
}

.player-heading,
.player-current,
.player-controls {
    display: flex;
    align-items: center;
}

.player-heading {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.player-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 300;
}

.track-total {
    color: var(--qfr-muted);
    font-size: .8rem;
}

.player-current {
    gap: 1rem;
    padding: 1rem;
    background: #303130;
}

.player-current img {
    flex: 0 0 72px;
    object-fit: contain;
}

.current-track {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.current-label {
    color: var(--qfr-orange);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.current-track strong {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-error {
    color: #ffadad;
    font-size: .8rem;
}

.player-controls {
    gap: .75rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--qfr-border);
}

.player-button {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--qfr-paper);
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
}

.player-button:hover:not(:disabled),
.player-button:focus-visible:not(:disabled) {
    color: var(--qfr-orange);
}

.player-button:disabled {
    opacity: .4;
}

.player-play {
    background: var(--qfr-orange);
    color: var(--qfr-charcoal);
}

.player-play:hover:not(:disabled),
.player-play:focus-visible:not(:disabled) {
    background: var(--qfr-white);
    color: var(--qfr-charcoal);
}

.player-timeline {
    display: flex;
    min-width: 120px;
    flex: 1;
    align-items: center;
    gap: .7rem;
    color: var(--qfr-muted);
    font-size: .7rem;
    font-variant-numeric: tabular-nums;
}

.player-timeline .form-range,
.volume-control .form-range {
    margin: 0;
}

.form-range::-webkit-slider-thumb {
    background: var(--qfr-orange);
}

.form-range::-moz-range-thumb {
    background: var(--qfr-orange);
}

.volume-control {
    display: flex;
    width: 105px;
    min-width: 80px;
    align-items: center;
    gap: .5rem;
    color: var(--qfr-orange);
}

.track-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.track-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 1rem;
    padding: .9rem .5rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: transparent;
    color: var(--qfr-paper);
    text-align: left;
    transition: color .2s ease, background .2s ease;
}

.track-item:hover,
.track-item.is-playing {
    background: rgba(255, 255, 255, .035);
    color: var(--qfr-orange);
}

.track-index {
    width: 2rem;
    color: var(--qfr-muted);
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
}

.track-name {
    flex: 1;
    overflow-wrap: anywhere;
}

.track-action {
    font-size: .75rem;
}

.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--qfr-border);
    color: rgba(255, 255, 255, .58);
    font-size: .78rem;
}

.footer-brand {
    color: var(--qfr-white);
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--qfr-orange);
}

@media (max-width: 991.98px) {
    .site-header .navbar {
        min-height: 82px;
    }

    .navbar-brand img {
        width: 64px;
        height: 64px;
    }

    .aes-logo {
        width: 112px;
    }

    .site-header .navbar-collapse {
        padding: .5rem 0 1rem;
    }

    .site-header .nav-link {
        padding: .65rem .25rem !important;
    }

    .site-header .nav-contact {
        margin: .4rem 0 0;
        border-top: 1px solid var(--qfr-border);
        border-left: 0;
    }

    .site-header .nav-admin .nav-link {
        padding-top: .4rem !important;
    }

    .home-hero {
        min-height: min(700px, calc(100svh - 82px));
    }

    .video-feature {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
        margin-bottom: 1.5rem;
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(19, 19, 18, .84), rgba(19, 19, 18, .52)), linear-gradient(0deg, rgba(19, 19, 18, .4), transparent 55%);
    }

    .carousel-slide img {
        aspect-ratio: 4 / 3;
    }

    .carousel-control {
        width: 42px;
        height: 42px;
    }

    .carousel-previous {
        left: .75rem;
    }

    .carousel-next {
        right: .75rem;
    }

    .player-controls {
        flex-wrap: wrap;
        gap: .45rem;
    }

    .player-button {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    .player-timeline {
        order: 2;
        width: 100%;
        flex-basis: 100%;
    }

    .volume-control {
        margin-left: auto;
    }

    .site-footer .container {
        text-align: center;
    }

    .admin-artist {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-artist-actions {
        width: 100%;
        padding-left: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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