:root {
    --space-panel: rgba(10, 10, 10, 0.82);
    --space-panel-strong: rgba(3, 3, 3, 0.95);
    --space-border: rgba(255, 255, 255, 0.03);
    --space-glow: rgba(255, 255, 255, 0.2);
    --card-hover: rgba(255, 255, 255, 0.14);
    --muted: rgba(223, 226, 236, 0.82);
}

.warp-overlay {
    position: fixed;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(200, 200, 200, 0.16) 20%, rgba(6, 6, 6, 0.96) 62%),
        repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 10px);
    opacity: 0;
    transform: scale(2.2);
}

.scene-ready .warp-overlay {
    animation: warp-in 1250ms cubic-bezier(0.16, 0.88, 0.2, 1) forwards;
}

.space-home {
    position: relative;
    overflow: hidden;
    padding: 1rem 1rem 2.2rem;
    margin-top: 0.35rem;
    display: grid;
    gap: 1.25rem;
    opacity: 0;
    transform: scale(1.08) translateY(20px);
}

body.intro-slides-active .space-home {
    scroll-snap-type: y mandatory;
}

.intro-slide {
    scroll-snap-align: start;
    opacity: 0.44;
    transform: scale(0.985) translateY(20px);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.86, 0.22, 1), filter 420ms ease;
    filter: saturate(0.86) brightness(0.9);
}

body.intro-slides-active .intro-slide.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: saturate(1) brightness(1);
}

body.intro-gate-dismissed .welcome-gate {
    display: none;
}

body.intro-post-layout .values-step {
    min-height: auto;
    align-content: start;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background:
        radial-gradient(circle at 90% 18%, rgba(122, 20, 40, 0.2), transparent 34%),
        linear-gradient(160deg, rgba(9, 9, 12, 0.94), rgba(5, 5, 7, 0.92));
}

body.intro-post-layout .values-title {
    font-size: clamp(1.15rem, 4.2vw, 1.55rem);
}

body.intro-post-layout .values-lead {
    font-size: clamp(0.9rem, 2.7vw, 0.98rem);
    max-width: 88ch;
    color: #dbe1fa;
}

body.intro-post-layout .values-quote {
    margin: 0.1rem 0 0;
    font-size: clamp(1rem, 2.8vw, 1.14rem);
    padding-left: 0.62rem;
}

body.intro-post-layout .values-scroll-hint {
    display: none;
}

body.intro-post-layout .values-actions {
    margin-top: 0.15rem;
}

body:not(.intro-slides-active) .destination-card {
    animation: card-reveal 640ms cubic-bezier(0.22, 0.9, 0.24, 1) 560ms both, card-float 7.5s ease-in-out infinite 1200ms;
}

.home-brand {
    justify-self: center;
    margin: 0.2rem 0 0.3rem;
    padding: 0.15rem 0.45rem;
    font-family: 'Cinzel Decorative', 'Cormorant Garamond', serif;
    font-size: clamp(1.08rem, 4.2vw, 1.38rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(246, 248, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.32), 0 0 20px rgba(122, 20, 40, 0.24);
}

body.intro-locked {
    overflow: hidden;
}

body.intro-locked .home-brand,
body.intro-locked .values-step,
body.intro-locked .hero-shell,
body.intro-locked .destination-grid {
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
}

body.intro-unlocked .home-brand,
body.intro-unlocked .values-step,
body.intro-unlocked .hero-shell,
body.intro-unlocked .destination-grid {
    animation: intro-unveil 700ms cubic-bezier(0.2, 0.86, 0.22, 1) forwards;
}

body.intro-unlocked .welcome-gate {
    animation: gate-slide-up 700ms cubic-bezier(0.2, 0.86, 0.22, 1) forwards;
}

.welcome-gate {
    min-height: calc(var(--vh, 1vh) * 100);
    display: grid;
    align-content: center;
    gap: 0.95rem;
    padding: clamp(1.2rem, 4vw, 2.2rem);
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 14% 20%, rgba(122, 20, 40, 0.3), transparent 40%),
        radial-gradient(circle at 84% 12%, rgba(238, 240, 255, 0.16), transparent 36%),
        linear-gradient(140deg, rgba(5, 5, 8, 0.96), rgba(10, 6, 12, 0.92));
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.1), 0 16px 42px rgba(0, 0, 0, 0.62);
}

body.intro-slides-active .welcome-gate {
    background:
        linear-gradient(118deg, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.76) 42%, rgba(10, 8, 14, 0.55) 72%, rgba(10, 8, 14, 0.4) 100%),
        radial-gradient(circle at 14% 20%, rgba(122, 20, 40, 0.28), transparent 42%),
        radial-gradient(circle at 84% 12%, rgba(238, 240, 255, 0.12), transparent 36%),
    url("pictures/aesthetic/pentaclecode.jpg") 88% 54% / 46% auto no-repeat;
}

.gate-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    color: #f4f6ff;
    line-height: 1.05;
    font-size: clamp(2.15rem, 11.5vw, 3.5rem);
    text-wrap: balance;
}

.gate-lead {
    margin: 0;
    color: #d8def8;
    max-width: 62ch;
    font-size: clamp(1.02rem, 3.6vw, 1.2rem);
}

.gate-actions {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.gate-paths {
    margin-top: 0.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
}

.gate-route {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    color: #e7eaf8;
    border: 1px solid rgba(230, 234, 255, 0.22);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 180ms ease, box-shadow 200ms ease, background 200ms ease;
}

.gate-route:hover,
.gate-route:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.2), 0 0 18px rgba(122, 20, 40, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.gate-route-lia {
    background: linear-gradient(135deg, #f8f8f8, #e6e8f2);
    color: #08090b;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.gate-scroll-hint {
    margin: 0.45rem 0 0;
    color: rgba(230, 235, 250, 0.56);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    animation: scroll-hint-float 2.8s ease-in-out infinite;
    width: fit-content;
}

.gate-enter {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: linear-gradient(132deg, #f8f8f8, #dfdef0);
    color: #060608;
    padding: 0.56rem 1.08rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.gate-enter:hover,
.gate-enter:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.36), 0 0 20px rgba(122, 20, 40, 0.3);
}

.values-step {
    display: grid;
    gap: 0.7rem;
    padding: clamp(1.15rem, 3.8vw, 1.9rem);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at 78% 18%, rgba(122, 20, 40, 0.18), transparent 38%),
        linear-gradient(160deg, rgba(8, 8, 10, 0.92), rgba(5, 5, 7, 0.9));
    min-height: calc(var(--vh, 1vh) * 100);
    align-content: center;
}

body.intro-slides-active .values-step {
    background:
        linear-gradient(122deg, rgba(6, 7, 10, 0.94) 0%, rgba(6, 7, 10, 0.8) 44%, rgba(10, 11, 16, 0.56) 74%, rgba(10, 11, 16, 0.4) 100%),
        radial-gradient(circle at 78% 18%, rgba(122, 20, 40, 0.2), transparent 40%),
    url("pictures/aesthetic/brainprogramming1.PNG") 88% 50% / auto 82% no-repeat;
}

.values-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    color: #f3f5ff;
    font-size: clamp(1.7rem, 7vw, 2.45rem);
    line-height: 1.1;
    text-wrap: balance;
}

.values-lead {
    margin: 0;
    max-width: 66ch;
    color: #d7ddf9;
    font-size: clamp(1rem, 3.4vw, 1.12rem);
}

.values-quote {
    margin: 0.2rem 0 0;
    border-left: 3px solid rgba(236, 239, 255, 0.42);
    padding: 0.3rem 0 0.3rem 0.8rem;
    color: #eef1ff;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 5vw, 1.46rem);
}

.values-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    align-items: center;
}

.values-primary,
.values-secondary {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.values-primary {
    background: linear-gradient(135deg, #f8f8f8, #e6e8f2);
    color: #08090b;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.values-secondary {
    color: #e0e4fa;
    border: 1px solid rgba(230, 234, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
}

.values-primary:hover,
.values-primary:focus-visible,
.values-secondary:hover,
.values-secondary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.2), 0 0 16px rgba(122, 20, 40, 0.18);
}

.values-scroll-hint {
    margin: 0.25rem 0 0;
    color: rgba(215, 220, 244, 0.86);
    font-size: 0.9rem;
}

.scene-ready .space-home {
    animation: scene-enter 850ms ease forwards;
    animation-delay: 420ms;
}

.space-home::before,
.space-home::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.space-home::before {
    background:
        radial-gradient(circle at 12% 25%, rgba(122, 20, 40, 0.22), transparent 38%),
        radial-gradient(circle at 80% 6%, rgba(220, 220, 220, 0.13), transparent 42%),
        radial-gradient(circle at 83% 82%, rgba(180, 180, 180, 0.1), transparent 36%);
    z-index: 0;
    animation: nebula-shift 19s linear infinite alternate;
}

.space-home::after {
    background-image:
        radial-gradient(2px 2px at 8% 20%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 32% 72%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 58% 38%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 82% 62%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 68% 18%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 44% 8%, rgba(255, 255, 255, 0.55), transparent);
    opacity: 0.6;
    z-index: 0;
    animation: stars-drift 30s linear infinite;
}

.space-home > * {
    position: relative;
    z-index: 1;
}

.hero-shell {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    min-height: calc(var(--vh, 1vh) * 100);
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.1), 0 18px 48px rgba(0, 0, 0, 0.7), 0 0 40px rgba(122, 20, 40, 0.18);
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(1px 1px at 10% 16%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 22% 32%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 35% 22%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 51% 12%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 66% 28%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 78% 14%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 89% 27%, rgba(255, 255, 255, 0.45), transparent);
    opacity: 0.65;
    animation: hero-particles-drift 17s linear infinite alternate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-shell:hover .hero-bg {
    transform: scale(1.07);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.4rem;
    background:
        linear-gradient(to top,
            rgba(5, 5, 5, 0.95) 0%,
            rgba(5, 5, 5, 0.65) 35%,
            rgba(20, 5, 10, 0.18) 68%,
            transparent 100%),
        linear-gradient(to right, rgba(122, 20, 40, 0.12) 0%, transparent 60%);
}

.hero-shell::after {
    content: "";
    position: absolute;
    inset: -45% -25%;
    background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.07), transparent 40%);
    pointer-events: none;
    z-index: 3;
    animation: shell-glimmer 10s ease-in-out infinite;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-title {
    margin: 0.45rem 0 0.6rem;
    color: #f3f5ff;
    font-size: clamp(2.05rem, 11vw, 3.2rem);
    line-height: 1.03;
    text-wrap: balance;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.2), 0 0 22px rgba(122, 20, 40, 0.2);
}

.hero-lead {
    margin: 0;
    color: #ebefff;
    font-size: clamp(1.03rem, 3.6vw, 1.2rem);
    max-width: 58ch;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
}



.destination-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, 1fr);
}

.destination-card {
    position: relative;
    isolation: isolate;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.17), 0 4px 18px rgba(0, 0, 0, 0.55);
    transition: border-color 240ms ease, box-shadow 240ms ease;
    opacity: 0;
    will-change: transform, opacity;
    animation-name: card-reveal, card-float;
    animation-duration: 640ms, 7.5s;
    animation-timing-function: cubic-bezier(0.22, 0.9, 0.24, 1), ease-in-out;
    animation-fill-mode: both, both;
    animation-iteration-count: 1, infinite;
    animation-delay: calc(560ms + var(--delay, 0s)), calc(1400ms + var(--delay, 0s));
}

.destination-card::before,
.destination-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.destination-card::before {
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 46%);
    opacity: 0.45;
    z-index: 1;
    animation: aura-breathe 6s ease-in-out infinite;
}

.destination-card::after {
    inset: -20% -55%;
    background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
    transform: translateX(-48%);
    opacity: 0;
    z-index: 2;
}

.destination-card:hover,
.destination-card:focus-within {
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 36px rgba(0, 0, 0, 0.62), 0 0 30px rgba(255, 255, 255, 0.34), 0 0 24px rgba(122, 20, 40, 0.3);
}

.destination-card:hover::after,
.destination-card:focus-within::after {
    opacity: 1;
    animation: sheen-sweep 820ms ease;
}

.card-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    text-decoration: none;
    transform-style: preserve-3d;
    transform: perspective(920px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--tilt-scale, 1));
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-link > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 280ms ease;
}

.destination-card:hover .card-link > img,
.destination-card:focus-within .card-link > img {
    transform: scale(1.06);
    filter: contrast(1.06) brightness(1.03);
}

.card-label {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 6, 8, 0.93) 30%, rgba(40, 10, 18, 0.22) 62%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.85rem;
    opacity: 0;
    transform: translateZ(18px);
    transition: opacity 230ms ease;
}

.destination-card:hover .card-label,
.destination-card:focus-within .card-label {
    opacity: 1;
}

.card-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.62rem;
    color: rgba(255, 222, 228, 0.84);
    margin-bottom: 0.16rem;
}

.card-eyebrow-row {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    margin-bottom: 0.16rem;
    --eyebrow-glow: rgba(255, 255, 255, 0.28);
}

.card-eyebrow-row .card-eyebrow {
    margin-bottom: 0;
}

.card-eyebrow-icon {
    width: 0.98rem;
    height: 0.98rem;
    object-fit: contain;
    display: block;
    opacity: 0.95;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.28)) drop-shadow(0 0 10px var(--eyebrow-glow));
}

.eyebrow-galaxy {
    --eyebrow-glow: rgba(122, 20, 40, 0.62);
}

.eyebrow-music {
    --eyebrow-glow: rgba(255, 124, 169, 0.66);
}

.eyebrow-artistry {
    --eyebrow-glow: rgba(163, 186, 216, 0.62);
}

.eyebrow-portal {
    --eyebrow-glow: rgba(98, 64, 168, 0.66);
}

.destination-card:hover .card-eyebrow-icon,
.destination-card:focus-within .card-eyebrow-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 16px var(--eyebrow-glow));
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.14rem;
    color: #f5f7ff;
    line-height: 1.14;
}

.music-card {
    background: linear-gradient(145deg, rgba(14, 8, 12, 0.97), rgba(5, 3, 5, 0.99));
    grid-column: span 2;
    padding: 1.2rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow: visible;
    position: relative;
}

.music-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse at 18% 70%, rgba(122, 20, 40, 0.22), transparent 55%),
        radial-gradient(ellipse at 82% 25%, rgba(200, 200, 225, 0.07), transparent 48%);
    pointer-events: none;
    z-index: 0;
}

.music-now-playing {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 2rem;
    flex-shrink: 0;
}

.music-bars span {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to top, rgba(122, 20, 40, 0.92), rgba(215, 218, 235, 0.88));
    transform-origin: bottom;
    animation: bar-dance 1.4s ease-in-out infinite;
}

.music-bars span:nth-child(1) { height: 55%; animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 100%; animation-delay: 0.18s; }
.music-bars span:nth-child(3) { height: 72%; animation-delay: 0.36s; }
.music-bars span:nth-child(4) { height: 88%; animation-delay: 0.12s; }
.music-bars span:nth-child(5) { height: 60%; animation-delay: 0.27s; }

.music-info {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    position: relative;
    z-index: 1;
}

.music-card .card-eyebrow,
.music-card .card-title {
    display: block;
}

.music-player-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.music-card audio {
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 2;
    border-radius: 999px;
    accent-color: #cfd4ef;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.16));
}

.track-art {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.2), 0 0 24px rgba(122, 20, 40, 0.26);
}

audio::-webkit-media-controls-panel {
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.94), rgba(28, 30, 44, 0.88));
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    filter: brightness(1.08) saturate(0.9);
}

@keyframes bar-dance {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.card-cta {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.5rem;
    text-decoration: none;
    background: linear-gradient(135deg, #fafafa, #e8e9ef);
    color: #000000;
    border-radius: 999px;
    padding: 0.46rem 0.92rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform 180ms ease, filter 180ms ease;
}

.card-cta:hover,
.card-cta:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.34), 0 0 24px rgba(122, 20, 40, 0.28);
}

@keyframes warp-in {
    0% {
        opacity: 1;
        transform: scale(2.2);
        filter: blur(2px);
    }
    70% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes scene-enter {
    from {
        opacity: 0;
        transform: scale(1.08) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes intro-unveil {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gate-slide-up {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-34px);
        pointer-events: none;
    }
}

@keyframes stars-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-26px); }
}

@keyframes nebula-shift {
    from { transform: translateX(0); }
    to { transform: translateX(16px); }
}

@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes card-reveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes aura-breathe {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.64; }
}

@keyframes sheen-sweep {
    0% { transform: translateX(-48%); }
    100% { transform: translateX(48%); }
}

@keyframes shell-glimmer {
    0%, 100% { transform: translateX(0) translateY(0); opacity: 0.22; }
    50% { transform: translateX(4%) translateY(-3%); opacity: 0.45; }
}

@keyframes hero-particles-drift {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-12px) translateX(6px); }
}

@keyframes scroll-hint-float {
    0%, 100% { transform: translateY(0); opacity: 0.56; }
    50% { transform: translateY(-4px); opacity: 0.85; }
}

@media (min-width: 760px) {
    .space-home {
        padding: 1.3rem 1.3rem 2.5rem;
    }

    .hero-shell {
        min-height: calc(var(--vh, 1vh) * 100);
    }

    .hero-content {
        padding: 2.4rem 2rem;
    }

    .hero-title {
        font-size: clamp(2.4rem, 6vw, 3.5rem);
    }

    .hero-lead {
        font-size: clamp(1.05rem, 2vw, 1.25rem);
    }

    .home-brand {
        margin-top: 0.35rem;
        font-size: clamp(1.24rem, 2.2vw, 1.6rem);
        letter-spacing: 0.08em;
    }

    .welcome-gate {
        min-height: calc(var(--vh, 1vh) * 100);
    }

    .gate-actions {
        gap: 0.85rem;
    }

    .card-eyebrow {
        font-size: 0.78rem;
    }

    .card-eyebrow-icon {
        width: 1.2rem;
        height: 1.2rem;
    }

    .card-title {
        font-size: 1.38rem;
    }

}

@media (min-width: 1100px) {
    .space-home {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .destination-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.1rem;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding-inline: 1.1rem;
        margin: 0 auto;
    }

    .music-card {
        grid-column: span 4;
    }

    .card-eyebrow {
        font-size: 0.95rem;
        letter-spacing: 0.16em;
    }

    .card-eyebrow-icon {
        width: 1.62rem;
        height: 1.62rem;
    }

    .card-title {
        font-size: 1.86rem;
    }

    .home-brand {
        margin-top: 0.45rem;
        font-size: 1.9rem;
        letter-spacing: 0.1em;
    }

    .pexels-section {
        max-width: 1160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .warp-overlay,
    .space-home,
    .space-home::before,
    .space-home::after,
    .hero-shell::before,
    .hero-shell::after,
    .destination-card::before,
    .destination-card::after,
    .destination-card,
    .card-link > img,
    .card-link,
    .card-label,
    .card-cta,
    .music-bars span,
    .home-brand,
    .values-step,
    .welcome-gate,
    .hero-shell,
    .destination-grid {
        animation: none;
        transition: none;
    }

    .space-home {
        opacity: 1;
        transform: none;
    }

    .destination-card:hover .card-link > img {
        transform: none;
    }

    .destination-card {
        opacity: 1;
    }

    body.intro-locked {
        overflow: auto;
    }

    .intro-slide {
        scroll-snap-align: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    body.intro-gate-dismissed .welcome-gate {
        display: block;
    }
}

@media (hover: none), (pointer: coarse) {
    .card-label {
        opacity: 1;
        background: linear-gradient(to top, rgba(6, 6, 8, 0.94) 36%, rgba(40, 10, 18, 0.44) 74%, transparent);
    }

    .card-link {
        transform: none;
    }
}

@media (max-width: 430px) {
    body.intro-slides-active .welcome-gate {
        align-content: end;
        background:
            linear-gradient(180deg,
                rgba(5, 5, 7, 0.12) 0%,
                rgba(5, 5, 7, 0.24) 26%,
                rgba(5, 5, 7, 0.7) 42%,
                rgba(5, 5, 7, 0.94) 55%,
                rgba(10, 8, 14, 0.98) 100%),
            linear-gradient(180deg,
                transparent 0%,
                transparent 42%,
                rgba(236, 239, 255, 0.12) 42.4%,
                transparent 43.2%),
            radial-gradient(circle at 14% 20%, rgba(122, 20, 40, 0.28), transparent 42%),
            radial-gradient(circle at 84% 12%, rgba(238, 240, 255, 0.12), transparent 36%),
            url("pictures/aesthetic/pentaclecode.jpg") 50% 8% / 72% auto no-repeat;
    }

    body.intro-slides-active .values-step {
        align-content: end;
        background:
            linear-gradient(180deg,
                rgba(6, 7, 10, 0.12) 0%,
                rgba(6, 7, 10, 0.22) 28%,
                rgba(6, 7, 10, 0.68) 42%,
                rgba(6, 7, 10, 0.94) 56%,
                rgba(10, 11, 16, 0.98) 100%),
            linear-gradient(180deg,
                transparent 0%,
                transparent 42%,
                rgba(236, 239, 255, 0.1) 42.4%,
                transparent 43.2%),
            radial-gradient(circle at 78% 18%, rgba(122, 20, 40, 0.2), transparent 40%),
            url("pictures/aesthetic/brainprogramming1.PNG") 50% 8% / auto 50% no-repeat;
    }

    .welcome-gate {
        min-height: 88svh;
        padding: 1.1rem 1.1rem 1.25rem;
    }

    .values-step {
        min-height: 88svh;
        padding-top: 1.1rem;
        padding-bottom: 1.25rem;
    }

    body.intro-post-layout .values-step {
        min-height: auto;
        padding: 0.78rem 0.82rem;
    }

    .hero-shell {
        min-height: 88svh;
    }

    .gate-title {
        font-size: clamp(1.95rem, 12.3vw, 2.6rem);
    }

    .values-scroll-hint {
        font-size: 0.84rem;
    }

    .hero-content {
        padding: 1.65rem 1.1rem;
    }

    .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .hero-title {
        margin: 0.32rem 0 0.45rem;
        font-size: clamp(2.08rem, 11.8vw, 2.7rem);
    }

    .hero-lead {
        font-size: 1.02rem;
        line-height: 1.34;
    }

    .music-player-row {
        grid-template-columns: 1fr;
    }

    .track-art {
        width: 100%;
        height: auto;
        max-height: 150px;
    }
}

/* ── Cosmic Lens on homepage ─────────────────────────── */
.pexels-section {
    box-sizing: border-box;
    width: min(100%, 980px);
    margin: 0 auto 1.4rem;
    padding: 1.15rem;
    background: rgba(8, 8, 12, 0.72);
    border: 1px solid rgba(234, 233, 239, 0.1);
    border-radius: 1rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.pexels-intro {
    text-align: center;
    margin-bottom: 0.9rem;
}

.pexels-intro h2 {
    margin: 0 0 0.25rem;
    font-size: clamp(1.16rem, 2.8vw, 1.46rem);
    color: #eae9ef;
}

.pexels-intro p {
    margin: 0;
    color: rgba(234, 233, 239, 0.62);
    font-size: 0.88rem;
}

.pexels-intro a,
.pexels-credit a {
    color: rgba(234, 233, 239, 0.8);
    text-decoration: underline;
}

.pexels-search-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.95rem;
}

.pexels-search-row input {
    flex: 1;
    min-width: 0;
    background: rgba(234, 233, 239, 0.06);
    border: 1px solid rgba(234, 233, 239, 0.14);
    border-radius: 0.55rem;
    padding: 0.65rem 0.85rem;
    color: #eae9ef;
    font-size: 0.9rem;
}

.pexels-search-row button {
    padding: 0.65rem 1.05rem;
    background: rgba(14, 12, 20, 0.66);
    border: 1px solid rgba(234, 233, 239, 0.28);
    color: #f0f2fb;
    border-radius: 0.55rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.pexels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
    margin-bottom: 0.65rem;
}

.pexels-photo {
    position: relative;
    display: block;
    border-radius: 0.55rem;
    overflow: hidden;
    border: 1px solid rgba(234, 233, 239, 0.1);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.pexels-photo img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.photo-credit {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.28rem 0.45rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.66rem;
    opacity: 0;
    transition: opacity 180ms ease;
}

.pexels-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.48);
}

.pexels-photo:hover .photo-credit {
    opacity: 1;
}

.pexels-loading,
.pexels-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(234, 233, 239, 0.52);
    font-size: 0.86rem;
}

.pexels-credit {
    margin: 0;
    text-align: right;
    font-size: 0.72rem;
    color: rgba(234, 233, 239, 0.35);
}

@media (min-width: 740px) {
    .pexels-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .pexels-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
