* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #141310;
    color: #f5f1e8;
    font: 18px/1.6 Georgia,serif;
}

a {
    color: #e1b0a3;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 4%;
    border-bottom: 1px solid #52433c;
    background: #181613;
}

.brand {
    font: bold 18px Georgia;
    color: #f5f1e8;
    text-decoration: none;
    letter-spacing: 1px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

nav a {
    font: 600 14px/1.5 Arial,sans-serif;
    text-decoration: none;
    color: #eee;
}

nav a[aria-current],
nav a:hover {
    color: #e1a399;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.hero {
    background: #a7afb0;
}

.hero img {
    width: 100%;
    display: block;
    max-height: 65vh;
    object-fit: contain;
}

.wrap {
    max-width: 1120px;
    margin: auto;
    padding: 44px 28px;
}

.next {
    text-align: center;
    border-bottom: 1px solid #51463c;
}

.eyebrow {
    font: bold 12px/1.6 Arial,sans-serif;
    letter-spacing: 2px;
    color: #d1a399;
    text-transform: uppercase;
}

h1,
h2 {
    line-height: 1.15;
    margin: 0 0 16px;
}

h1 {
    font-size: clamp(34px,5vw,58px);
}

h2 {
    font-size: clamp(24px,3vw,36px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-block;
    background: #8d302d;
    color: white;
    border: 1px solid #8d302d;
    text-decoration: none;
    padding: 12px 22px;
    font: bold 14px Arial,sans-serif;
}

.button[hidden] {
    display: none;
}

.outline {
    background: transparent;
    border-color: #8c8072;
}

.split,
.bio {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
    gap: 30px;
    align-items: center;
}

.split img,
.bio img,
.tiles img {
    width: 100%;
    display: block;
}

.bio {
    padding: 32px 0;
    border-bottom: 1px solid #52433c;
    grid-template-columns: minmax(140px,240px) 1fr;
}

.bio:not(:has(img)) {
    display: block;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 20px;
    margin: 24px 0;
}

.video {
    background: #24211e;
    padding: 24px;
    border: 1px solid #51463c;
}

.video h2 {
    font-size: 22px;
}

.event {
    padding: 14px 0;
    border-bottom: 1px solid #51463c;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.event time {
    min-width: 160px;
    color: #d1a399;
}

footer {
    text-align: center;
    padding: 30px;
    background: #0d0c0b;
    font: 14px/1.7 Arial,sans-serif;
    color: #bfb6ab;
}

.sr,
.skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

@media (max-width:760px){
    header {
        flex-direction: column;
    }

    nav {
        justify-content: center;
    }

    .split,
    .bio {
        grid-template-columns: 1fr;
    }

    .bio img {
        max-width: 260px;
    }

    .wrap {
        padding: 30px 20px;
    }
}

@media (max-width:600px){
    .hero img {
        max-height: none;
        width: 100%;
    }

    .hero {
        background: #141310;
    }
}

/* Homepage illustration and independent title */
.home-page header {
    justify-content: center;
}

.home-page header .brand {
    display: none;
}

.home-page header nav {
    justify-content: center;
}

.hero-scene {
    position: relative;
    background: #0d0d0d;
    overflow: hidden;
}

.hero-scene picture {
    display: block;
}

.hero-scene picture img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
}

.hero-title {
    position: absolute;
    top: 23%;
    left: 6%;
    width: 65%;
    text-align: center;
}

.hero-title h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2%;
    margin: 0 0 1.2vw;
}

.hero-title h1 img {
    display: block;
    width: 53%;
    height: auto;
    max-height: none;
    object-fit: initial;
}

.hero-title h1 img:last-child {
    width: 45%;
}

.hero-subtitle,
.hero-location {
    margin: 0;
    color: #fffdf4;
    text-shadow: 0 2px 3px #20252a;
    font: bold clamp(13px,2vw,30px)/1.4 Arial,sans-serif;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero-location {
    font-size: clamp(10px,1.05vw,16px);
    margin-top: .4em;
    letter-spacing: .18em;
}

@media (max-width:600px){
    .hero-title {
        top: 24%;
        left: 5%;
        width: 68%;
    }

    .hero-title h1 {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 12px;
    }

    .hero-title h1 img {
        width: 100%;
    }

    .hero-title h1 img:last-child {
        width: 85%;
    }

    .hero-subtitle {
        font-size: clamp(11px,3.1vw,18px);
        letter-spacing: .05em;
    }

    .hero-location {
        font-size: clamp(9px,2.5vw,13px);
        letter-spacing: .1em;
    }

    .home-page header {
        padding: 12px 10px;
    }

    .home-page header nav {
        gap: 7px 15px;
    }
}

/* Homepage refinements — preserve interior page styling */
body.home-page {
    background: #0b0b0b;
}

.home-page .hero-scene {
    background: #0b0b0b;
}

.home-page header nav {
    gap: 10px 32px;
}

.home-page header nav a {
    font-size: 16px;
}

@media (min-width:601px) {
    .hero-title {
        top: 20%;
    }

    .hero-title h1 img {
        width: 47.7%;
    }

    .hero-title h1 img:last-child {
        width: 40.5%;
    }
}

@media (max-width:600px) {
    body.home-page,
    .home-page .hero-scene {
        background: #000;
    }

    .home-page header nav {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        width: 100%;
        max-width: 460px;
        gap: 4px 6px;
        text-align: center;
    }

    .home-page header nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        font-size: 14px;
    }
}

/* Desktop sky: subtle glints aligned with the existing illustrated stars. */
@media (min-width:601px) and (prefers-reduced-motion:no-preference) {
    .home-page .hero-scene::before,
    .home-page .hero-scene::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0;
        z-index: 1;
    }

    .home-page .hero-title {
        z-index: 2;
    }

    .home-page .hero-scene::before {
        background: radial-gradient(circle at 5.95% 2.50%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px),
      radial-gradient(circle at 42.14% 3.99%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px),
      radial-gradient(circle at 82.24% 4.68%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px),
      radial-gradient(circle at 13.91% 12.65%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px),
      radial-gradient(circle at 67.17% 17.38%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px);
        animation: wbt-starlight 8s ease-in-out infinite;
    }

    .home-page .hero-scene::after {
        background: radial-gradient(circle at 28.47% 3.13%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px),
      radial-gradient(circle at 51.20% 4.36%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px),
      radial-gradient(circle at 9.78% 6.70%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px),
      radial-gradient(circle at 85.92% 10.15%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px),
      radial-gradient(circle at 20.39% 17.53%, #fff 0, #fffe 2px, #fff9 4px, #fff3 8px, #fff0 13px);
        animation: wbt-starlight 11s ease-in-out -4s infinite;
    }
}

@keyframes wbt-starlight {
    0%,
    25%,
    100% {
        opacity: 0;
    }

    48% {
        opacity: 1;
    }

    70% {
        opacity: .30;
    }
}

/* Desktop atmosphere: the coordinates refer to the 1672 × 941 hero artwork. */
.valley-mist,
.rider-cigarette {
    display: none;
}

@media (min-width:601px) and (prefers-reduced-motion:no-preference) {
    .valley-mist {
        display: block;
        position: absolute;
        pointer-events: none;
        z-index: 1;
        left: 40%;
        top: 65%;
        width: 42%;
        height: 24%;
        overflow: hidden;
        mask-image: radial-gradient(ellipse at center,#000 22%,transparent 73%);
        -webkit-mask-image: radial-gradient(ellipse at center,#000 22%,transparent 73%);
    }

    .valley-mist::before {
        content: "";
        position: absolute;
        inset: 0 -30%;
        background: radial-gradient(ellipse 36% 8% at 42% 37%,rgba(207,218,221,.19),transparent 100%),
               radial-gradient(ellipse 46% 10% at 60% 65%,rgba(205,216,220,.16),transparent 100%);
        animation: wbt-valley-mist 78s ease-in-out infinite;
    }

    .rider-cigarette {
        display: block;
        position: absolute;
        pointer-events: none;
        z-index: 1;
        left: 27.27%;
        top: 74.71%;
        width: 0;
        height: 0;
    }

    .rider-cigarette::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: clamp(4px,.34vw,6px);
        height: clamp(4px,.34vw,6px);
        border-radius: 50%;
        background: #fff3b0;
        box-shadow: 0 0 4px 1px rgba(255,239,163,.92),0 0 10px 3px rgba(255,196,92,.72),0 0 16px 5px rgba(219,126,42,.35);
        transform: translate(-50%,-50%);
        animation: wbt-ember 35s ease-in-out infinite;
    }

    .rider-smoke {
        position: absolute;
        bottom: -.1vw;
        left: -.45vw;
        width: 3.1vw;
        height: 6.5vw;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 84'%3E%3Cpath d='M7 83 C1 72 19 65 11 53 C-1 38 6 31 21 24 C34 16 28 7 34 1 C33 10 40 19 25 30 C12 39 11 43 15 52 C25 68 4 75 9 83 Z' fill='%23e6ecec' fill-opacity='.72'/%3E%3C/svg%3E") center/100% 100% no-repeat;
        filter: blur(.2px);
        transform-origin: 12% 100%;
        opacity: 0;
        animation: wbt-cigarette-smoke 35s ease-in-out infinite;
    }
}

@keyframes wbt-valley-mist {
    0%,
    100% {
        transform: translateX(-9%);
        opacity: .22;
    }

    50% {
        transform: translateX(12%);
        opacity: 1.0;
    }
}

@keyframes wbt-ember {
    0%,
    100% {
        opacity: .38;
    }

    12% {
        opacity: .55;
    }

    17% {
        opacity: 1;
    }

    23% {
        opacity: .34;
    }

    49% {
        opacity: .4;
    }

    54% {
        opacity: .88;
    }

    60% {
        opacity: .3;
    }

    78% {
        opacity: .42;
    }

    84% {
        opacity: 1;
    }

    91% {
        opacity: .36;
    }
}

@keyframes wbt-cigarette-smoke {
    0%,
    25%,
    62%,
    93% {
        opacity: 0;
        transform: translate(0,0) scale(.45);
    }

    30%,
    67%,
    98% {
        opacity: .62;
        transform: translate(.1vw,-.28vw) scale(.8);
    }

    37%,
    74%,
    5% {
        opacity: .50;
        transform: translate(.5vw,-.8vw) scale(1);
    }

    45%,
    82%,
    13% {
        opacity: 0;
        transform: translate(1.05vw,-1.4vw) scale(1.18);
    }

    100% {
        opacity: .59;
        transform: translate(.21vw,-.40vw) scale(.85);
    }
}
