/* --- YOUR CONTROL PANEL (CSS Variables) --- */
:root {
    --bg: #0a0d12;
    --panel: rgba(18, 22, 29, 0.55); /* Transparent dark blue/gray */
    --border-lit: rgba(255, 255, 255, 0.1);
    --text: #e8ecf1;
    --muted: #8a94a3;
    --accent: #38e8c6;
    --accent-rgb: 56, 232, 198;
    --content-width: 1380px;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Archivo', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

/* Homepage only: centers the glass panel perfectly, hides video overflow.
   Applied via <body class="home-body"> on index.html - other pages need
   normal document flow so their content isn't shrunk into a centered box. */
body.home-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

.mono {
    font-family: var(--font-mono);
}

/* --- BACKGROUND VIDEO & OVERLAY --- */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2; /* Pushes video to the very back */
    object-fit: cover;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 13, 18, 0.65); /* Dims the video */
    z-index: -1; /* Sits between the video and the glass panel */
}

/* --- GLASS PANEL --- */
.glass-panel {
    background: var(--panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* For Safari support */
    border: 1px solid var(--border-lit);
    border-radius: 16px;
    padding: 3rem 4rem;
    text-align: center;
    max-width: 700px;
    width: 90%;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--border-lit);
    /* When you have a profile photo, upload it to GitHub and uncomment the line below: */
    /* background-image: url('your-photo-name.jpg'); */
    background-size: cover;
    background-position: center;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--border-lit);
}

.name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.title {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.bio {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* --- NAVIGATION LINKS --- */
.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.85rem;
}

.links a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: var(--accent);
}

/* Animated underline effect on hover */
.links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.links a:hover::after {
    width: 100%;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 600px) {
    .glass-panel {
        padding: 2rem;
    }
    .links {
        gap: 1rem;
        flex-direction: column;
    }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .bg-video {
        display: none;
    }
    .bg-overlay {
        background: var(--bg);
    }
}

/* =============================================================
   SITE-WIDE NAV (present on every page - home, about, work, art,
   colour mapping). Lets people get around from anywhere, not just
   the homepage hero.
   ============================================================= */
.sitenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: rgba(10, 13, 18, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-lit);
}

.sitenav-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.sitenav-logo {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.sitenav-links {
    display: flex;
    gap: 1.75rem;
    font-size: 0.8rem;
}

.sitenav-links a {
    color: var(--muted);
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sitenav-links a:hover {
    color: var(--text);
}

.sitenav-links a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- Mobile nav: stack + wrap --- */
@media (max-width: 600px) {
    .sitenav-inner {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.85rem 1.25rem;
    }
    .sitenav-links {
        gap: 1.1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =============================================================
   INTERIOR PAGE SHELL (about / work / art) - no video background,
   just the base colour, so longer text stays easy to read.
   ============================================================= */
.page-shell {
    min-height: 100vh;
    padding: 7rem clamp(1.5rem, 4vw, 3rem) 5rem;
    background: var(--bg);
}

.page-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.page-eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.page-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.875rem, 4.4vw, 3.125rem); /* 30px–50px, matches Colour Mapping's h1 */
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
}

.page-lede {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 2.5rem;
}

/* --- Placeholder callouts: obvious, not meant to ship --- */
.placeholder-note {
    border: 1px dashed var(--border-lit);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.placeholder-note b {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

/* --- Work list --- */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.work-card {
    background: var(--panel);
    border: 1px solid var(--border-lit);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
}

.work-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.work-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.work-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    border: 1px solid var(--border-lit);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.work-card p a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-rgb), 0.4);
}

.work-card p a:hover {
    color: var(--text);
}

/* --- Work cards as links --- */
.work-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.work-card:hover,
.work-card:focus-visible {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
    outline: none;
}

.work-card-cta {
    display: inline-block;
    margin-top: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* --- Art grid --- */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

@media (max-width: 600px) {
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.art-tile {
    aspect-ratio: 1/1;
    border-radius: 10px;
    border: 1px dashed var(--border-lit);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-align: center;
    padding: 0.5rem;
}

/* --- CTA button (homepage hero) --- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #1a1206;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    margin-top: 0.5rem;
    transition: filter 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-lit);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    margin-top: 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.06);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.home-socials {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: 0.2rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-lit);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 999px;
    border: 1px solid var(--border-lit);
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    outline: none;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .home-socials {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
}
/* =============================================================
   ABOUT PAGE - INTRO PANEL + BIOGRAPHY/SLIDESHOW
   ============================================================= */
.about-page {
    max-width: 1380px;
}

.about-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(2.6rem, 4vw, 3.8rem);
    padding: clamp(1.7rem, 3vw, 2.8rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.075), transparent 34%),
        linear-gradient(180deg, rgba(20, 24, 33, 0.94), rgba(13, 17, 24, 0.9));
    box-shadow: 0 24px 60px -42px rgba(0, 0, 0, 0.82);
}

.about-hero::before {
    content: "";
    position: absolute;
    left: clamp(1.7rem, 3vw, 2.8rem);
    top: clamp(1.35rem, 2.4vw, 2rem);
    width: 76px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0));
    opacity: 0.88;
}

.about-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 920px;
    padding-top: 0.55rem;
}

.about-page .page-title {
    font-size: clamp(2.55rem, 3.1vw, 3.7rem);
    line-height: 1.02;
    margin-bottom: 1.15rem;
}

.about-page .page-lede {
    max-width: 860px;
    font-size: clamp(1.05rem, 0.55vw + 0.92rem, 1.22rem);
    line-height: 1.78;
    margin-bottom: 1.35rem;
}

.about-hero-support {
    max-width: 760px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.72;
    opacity: 0.9;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: clamp(2.6rem, 6vw, 5.5rem);
    align-items: start;
}

.about-body {
    padding: 0.35rem 0 1rem clamp(0rem, 1vw, 0.65rem);
}

.about-copy {
    max-width: 790px;
}

.about-copy p {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.92;
    margin-bottom: 1.5rem;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-gallery {
    position: sticky;
    top: 6.7rem;
    align-self: start;
}

.about-gallery-heading {
    margin-bottom: 1rem;
}

.about-gallery-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.about-gallery-heading p {
    max-width: 390px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.about-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: #05070a;
    box-shadow: 0 28px 65px -36px rgba(0, 0, 0, 0.95);
    isolation: isolate;
    outline: none;
}

.about-carousel:focus-visible {
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px rgba(var(--accent-rgb), 0.16),
        0 28px 65px -36px rgba(0, 0, 0, 0.95);
}

.about-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.about-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.about-slide-backdrop {
    position: absolute;
    inset: -10%;
    z-index: 0;
    background-image: var(--slide-image);
    background-position: var(--slide-position, center);
    background-size: cover;
    filter: blur(28px) brightness(0.38) saturate(0.82);
    transform: scale(1.12);
}

.about-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(5, 7, 10, 0.04) 35%,
            rgba(5, 7, 10, 0.78) 78%,
            rgba(5, 7, 10, 0.94) 100%
        );
}

.about-slide img {
    position: relative;
    z-index: 1;
    display: block;
    width: calc(100% - 1.4rem);
    height: calc(100% - 1.4rem);
    margin: 0.7rem;
    border-radius: 12px;
    object-fit: cover;
    object-position: var(--slide-position, center);
    box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.85);
}

.about-slide figcaption {
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1rem;
    z-index: 3;
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.45;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.about-slide figcaption .mono {
    display: block;
    color: var(--accent);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.22rem;
}

.about-carousel-controls {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.95rem;
}

.about-carousel-arrow {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(18, 22, 29, 0.72);
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.about-carousel-arrow:hover,
.about-carousel-arrow:focus-visible {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    transform: translateY(-1px);
    outline: none;
}

.about-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.about-carousel-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--muted);
    opacity: 0.42;
    cursor: pointer;
    transition:
        width 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.about-carousel-dots button:hover,
.about-carousel-dots button:focus-visible {
    opacity: 0.9;
    outline: 2px solid rgba(var(--accent-rgb), 0.35);
    outline-offset: 3px;
}

.about-carousel-dots button.is-active {
    width: 20px;
    background: var(--accent);
    opacity: 1;
}

@media (max-width: 1080px) {
    .about-layout {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-gallery {
        position: static;
        width: min(100%, 520px);
    }

    .about-gallery-heading p {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .about-hero {
        margin-bottom: 2.5rem;
        padding: 1.4rem;
        border-radius: 16px;
    }

    .about-page .page-title {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
    }

    .about-page .page-lede {
        font-size: 1rem;
        line-height: 1.72;
    }

    .about-hero-support {
        font-size: 0.9rem;
    }

    .about-copy p {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .about-gallery {
        width: 100%;
    }

    .about-carousel-controls {
        grid-template-columns: 36px 1fr 36px;
    }

    .about-carousel-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-slide {
        transition: none;
    }

    .about-carousel-dots button,
    .about-carousel-arrow {
        transition: none;
    }
}

/* =============================================================
   INTERIOR PAGE EYEBROW LIGHT
   Matches the glowing indicator on the Colour Mapping page.
   ============================================================= */
.page-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.page-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 6px rgba(var(--accent-rgb), 0.95),
        0 0 14px rgba(var(--accent-rgb), 0.4);
}
/* =============================================================
   HOMEPAGE HERO - PROFILE + GALAXY SLIDESHOW
   ============================================================= */
body.home-body {
    min-height: 100vh;
    padding: 7rem clamp(1.5rem, 4vw, 3rem) 3rem;
    overflow: auto;
}

.home-shell {
    width: min(100%, var(--content-width));
    margin: auto;
    position: relative;
    z-index: 1;
}

.glass-panel.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 460px);
    gap: clamp(2rem, 5vw, 3.6rem);
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: clamp(2rem, 3vw, 3rem);
    text-align: left;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.09), transparent 34%),
        rgba(18, 22, 29, 0.52);
}

.home-copy {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.95rem;
}

.home-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 6px rgba(var(--accent-rgb), 0.95),
        0 0 14px rgba(var(--accent-rgb), 0.4);
}

.home-identity {
    display: flex;
    align-items: center;
    gap: 1.1rem;              /* tightened */
    margin-bottom: 0.85rem;   /* tightened below identity row */
}

.home-body .profile-pic {
    width: 110px;             /* slightly larger (you preferred larger) */
    height: 110px;
    flex: 0 0 110px;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background-image: url('images/home/nicole-profile.webp');
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.85);
}

.home-identity-copy .name {
    margin-bottom: 0.35rem;
    font-size: clamp(2.35rem, 3.35vw, 3.45rem); /* reduced */
    line-height: 0.97;
    letter-spacing: -0.016em;
}

.home-identity-copy .title {
    margin-bottom: 0;
    font-size: 0.77rem;
    line-height: 1.5;
}

.home-hero .bio {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(1.02rem, 0.8vw + 0.78rem, 1.12rem);
    line-height: 1.68; /* reduced from 1.82 */
}

.home-now {
    max-width: 620px;
    border-top: 1px solid var(--border-lit);
    margin-top: 2.05rem;  /* divider spacing from paragraph 1 */
    margin-bottom: 0;
    padding-top: 1.05rem; /* divider spacing to paragraph 2 heading */
}

.home-now-label {
    display: block;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.52rem;
}

.home-now p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.58;
    margin: 0;
}

/* Right column */
.home-galaxy-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-galaxy-heading {
    margin-bottom: 1rem;
}

.home-galaxy-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.home-galaxy-heading p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.56;
}

.home-galaxy-carousel {
    position: relative;
    min-height: 420px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 8, 12, 0.85);
    box-shadow: 0 24px 55px -30px rgba(0, 0, 0, 0.85);
}

.home-galaxy-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.85s ease, visibility 0.85s ease;
}

.home-galaxy-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.home-galaxy-image {
    position: absolute;
    inset: 0;
    background:
        var(--slide-image);
    background-color: #090c14;
    background-position: center;
    background-size: cover;
    filter: saturate(1.04);
    transform: scale(1.01);
}

.home-galaxy-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(5, 7, 10, 0) 60%,
            rgba(5, 7, 10, 0.65) 90%,
            rgba(5, 7, 10, 0.88) 100%
        );
    pointer-events: none;
}

.home-galaxy-slide figcaption {
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1rem;
    z-index: 2;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.5;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}

.home-galaxy-slide figcaption .mono {
    display: block;
    color: var(--accent);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.home-galaxy-controls {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 0.95rem;
}

.home-galaxy-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.home-galaxy-arrow {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(18, 22, 29, 0.72);
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-galaxy-arrow:hover,
.home-galaxy-arrow:focus-visible {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    outline: none;
}

.home-galaxy-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--muted);
    opacity: 0.42;
    cursor: pointer;
    transition: width 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.home-galaxy-dots button:hover,
.home-galaxy-dots button:focus-visible {
    opacity: 0.9;
    outline: 2px solid rgba(var(--accent-rgb), 0.35);
    outline-offset: 3px;
}

.home-galaxy-dots button.is-active {
    width: 20px;
    background: var(--accent);
    opacity: 1;
}

@media (max-width: 980px) {
    .glass-panel.home-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .home-copy,
    .home-galaxy-panel {
        height: auto;
    }

    .home-now {
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .home-galaxy-controls {
        margin-top: 0.95rem;
        padding-top: 0;
    }

    .home-galaxy-carousel {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    body.home-body {
        padding-top: 8.5rem;
    }

    .glass-panel.home-hero {
        padding: 1.5rem;
    }

    .home-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .home-body .profile-pic {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .home-hero .bio {
        font-size: 1rem;
        line-height: 1.65;
    }

    .home-galaxy-carousel {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-galaxy-slide,
    .home-galaxy-dots button {
        transition: none;
    }
}
