:root {
    --text-gradient: linear-gradient(90deg, #ffffff, #ffc4dc);
    --pink: #ff9ec4;
}

body::before {
    content: "";
    position: fixed;
    inset: -20px;               /* extends past the screen edges, see note below */
    z-index: -1;                /* puts it behind all your content */
    filter: blur(8px);
}
#rain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;           /* behind your content, above the blurred image */
    pointer-events: none;  /* clicks pass through to your page */
}

.site-title {
    margin: 0;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.nameplate {
    position: fixed;
    top: 3rem;
    left: 3rem;
}

.site-subtitle {
    margin: 1rem 0 0;
    font-family: "Google Sans Flex", system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.location {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    margin: 0;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 4vw, 3.5rem);
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.glass-card {
    position: fixed;
    top: 3rem;
    right: 3rem;
    width: min(320px, calc(100vw - 6rem));
    padding: 0.9rem 1.2rem;
    padding-right: 0.9rem;   /* just the right side */
    box-sizing: border-box;
    border-radius: 28px;
    color: #fff;
    font-family: "Outfit", system-ui, sans-serif;

    /* the glass */
    background: linear-gradient(
        135deg,
        rgba(20, 24, 32, 0.45),
        rgba(10, 12, 18, 0.30)
    );
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);

    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.weather-icon img {
    width: 5rem;
    height: 5rem;
    display: block;
    margin: -0.4rem;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.weather-desc {
    margin: 0;
    font-weight: 500;
    font-size: 1.3rem;
}

.weather-range {
    margin: 0;
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.85;
}

html, body {
    overflow: hidden;
    overscroll-behavior: none;
}

html {
    background: #000;
}

.bg-layer {
    position: fixed;
    inset: -20px;          /* extends past the edges so the blur doesn't show a rim */
    z-index: -3;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.9s ease;
}

.bg-layer.active { opacity: 1; }
.bg-layer.front  { z-index: -2; }   /* the newest photo sits on top */

#rain,
.location,
.glass-card,
.greeting-box {
    transition: opacity 0.4s ease;
}

body.switching .location,
body.switching .glass-card,
body.switching .greeting-box {
    opacity: 0;
}
.greeting-box {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
    max-width: 50rem;
    color: #fff;
    font-family: "Outfit", system-ui, sans-serif;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.greeting {
    margin: 0 0 0.35rem;
    font-weight: 500;
    font-size: 2rem;
}

.city-fact {
    margin: 0;
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.5;
    opacity: 0.85;
    min-height: 3em;
}

.city-fact.fading {
    opacity: 0;
}

/* final stage: black screen, nameplate only */
body.ended .bg-layer.active {
    opacity: 0;
}

body.ended #rain,
body.ended .location,
body.ended .glass-card,
body.ended .greeting-box {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    pointer-events: none;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
    transition: opacity 0.4s ease;
}

.scroll-hint svg {
    display: block;
    margin-top: -12px;                 /* stacks the two carets tightly */
    animation: caret-bounce 1.6s ease-in-out infinite;
}

.scroll-hint svg:nth-child(2) {
    animation-delay: 0.2s;             /* second caret trails the first */
}

@keyframes caret-bounce {
    0%   { opacity: 0;   transform: translateY(-6px); }
    40%  { opacity: 1; }
    100% { opacity: 0;   transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-hint svg {
        animation: none;
        opacity: 0.8;
    }
}

/* "About Me" suffix: hidden until the black screen */
.about-suffix {
    font-weight: 300;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.ended .about-suffix {
    opacity: 1;
    transition-delay: 0.6s;      /* appears after the photo has faded to black */
}

/* interests list on the left */
.interests {
    position: fixed;
    top: 32vh;
    left: 5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #fff;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 2.5vw, 2.5rem);
    line-height: 1.9;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.ended .interests {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease 0.6s;   /* same delay as the suffix */
}

/* gradient text, black screen only */
body.ended .site-title,
body.ended .interests-title,
body.ended .interest-name {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;   /* shadows show through gradient text, and aren't visible on black anyway */
}

/* text-shadow can't be used with gradient text, so use a drop shadow on the containers */
.site-title,
.greeting-box,
.location,
.interests {
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

/* interests title and list */
.interests ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.interests-title {
    margin: 0 0 0.6rem;
    font-weight: 500;
    font-size: clamp(3rem, 3vw, 3rem);
    line-height: 1.2;
}

.about-blurb {
    margin: 2.5rem 0 0 2rem;
    font-size: 2rem;
    max-width: min(55rem, 50vw);
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.ended .about-blurb {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease 0.6s;   /* same delay as the "About Me" suffix */
}

/* the active interest: solid pink instead of the gradient */
body.ended .interest.active .interest-name {
    background: none;
    -webkit-text-fill-color: var(--pink);
    color: var(--pink);
}

/* list items */
.interest {
    margin-bottom: 0.4rem;
    opacity: 0.55;
    transition: opacity 0.4s ease;
}

.interest.active {
    opacity: 1;
}

.interest-name {
    display: inline-block;
    font-weight: 300;
    transition: font-weight 0.3s ease;
}

.interest.active .interest-name {
    font-weight: 600;
}

/* explanation that expands underneath the active interest */
.interest-more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s ease, opacity 0.5s ease;
}

.interest-more > .interest-desc {
    min-height: 0;
    overflow: hidden;
    max-width: 50rem;
    margin: 0;
    font-size: 0.6em;
    font-weight: 300;
    line-height: 1.55;
    color: #fff;
}

.interest.active .interest-more {
    grid-template-rows: 1fr;
    opacity: 1;
}

/* the picture on the right, with circular corner cutouts */
.interest-pics {
    right: 3rem;
    width: 32vw;                              /* half the window width */
    height: 76vh;                             /* just over three quarters of the window height */
    border-radius: clamp(24px, 5vmin, 64px);  /* corners scale with the smaller window side */
    /* ...keep everything else... */
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    aspect-ratio: 3 / 2;
    overflow: hidden;
    corner-shape: squircle;     /* smooth squircle curve in browsers that support it */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.interest-pics img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

.interest-pics img.active {
    opacity: 1;
    transform: scale(1);
}

body.ended .interest-pics {
    opacity: 1;
    transition: opacity 0.6s ease 0.6s;
}

/* final stage: everything but the nameplate fades back to black */
body.finished .interests,
body.finished .interest-pics,
body.finished .about-blurb {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.music {
    position: fixed;
    top: 24vh;
    left: 3rem;
    right: 3rem;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1px 1fr;
    gap: 2rem 3.5rem;
    font-family: "Outfit", system-ui, sans-serif;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.finished .music {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease 0.6s;
}

.music-title {
    margin: 0;
    font-weight: 500;
    font-size: clamp(2rem, 3.5vw, 3rem);
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.music-sub {
    margin: 0.2rem 0 1rem;
    font-weight: 300;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    opacity: 0.7;
}

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

.music-list li + li {
    margin-top: 0.8rem;
}

.music-list a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.music-list a:hover {
    opacity: 0.75;
}

.music-art {
    flex: none;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.music-art.round {
    border-radius: 50%;
}

.music-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.music-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.music-primary {
    font-weight: 500;
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-secondary {
    font-weight: 300;
    font-size: 1.15rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blurbs {
    display: grid;
}

.blurbs > p {
    grid-area: 1 / 1;
}

.music-blurb {
    max-width: 50rem;
    margin: 0.75rem 0 0;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 300;
    font-size: clamp(2rem, 2vw, 2rem);
    line-height: 1.6;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.finished .music-blurb {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease 0.6s;
}

.music-divider {
    background: rgba(255, 255, 255, 0.85);    /* the thin white line */
    margin-top: -9rem;       /* extends the line upward */
    margin-bottom: -4rem;    /* extends the line downward */
}

.outreach {
    margin-top: -7rem;       /* lifts the column; a bigger negative number moves it higher */
}

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

.outreach-list li + li {
    margin-top: 1.1rem;
}

.outreach-name {
    display: block;
    font-weight: 500;
    font-size: 1.5rem;
}

.outreach-desc {
    margin: 0.2rem 0 0;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.8;
}

a.outreach-name {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    width: fit-content;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a.outreach-name:hover {
    color: #ff9ec4;
    border-color: #ff9ec4;
}

.outreach-pic {
    display: block;
    width: 100%;
    height: 20rem;             /* adjust to taste */
    margin-top: 1.5rem;
    object-fit: cover;         /* fills the frame and crops instead of stretching */
    border-radius: 28px;
    corner-shape: squircle;    /* smooth squircle curve where supported */
}

/* no more scrolling on the last slide, so the caret goes away */
body.finished .scroll-hint {
    opacity: 0;
}

.site-links {
    position: fixed;
    bottom: 3rem;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.finished .site-links {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease 0.6s;
}

.site-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-links a:hover {
    color: #ff9ec4;
}

.site-links svg {
    width: 1.8rem;
    height: 1.8rem;
    flex: none;
}

.site-links a,
.site-links .handle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
}

.handle-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: brightness(0) invert(1);   /* turns a dark icon white */
}

@media (max-width: 1100px) {
    .nameplate {
        top: 2rem;
        left: 2rem;
    }

    .site-title {
        font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    }
}

@media (max-width: 1000px), (max-height: 800px) {
    .about-blurb,
    .music-blurb {
        display: none;
    }
    .interests {
    top: 9rem;    /* was 36vh */
    }

    .music {
        top: 9rem;    /* was 33vh */
    }
}