/* RIGHT PANEL (starburst-photo) specific styles */

#starburstCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.graphic-label {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: clamp(0.75rem, 0.8vw, 0.95rem);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.graphic-label .indicator {
    width: 0.5rem;
    height: 0.5rem;
    background-color: white;
    margin-right: 0.5rem;
}

/* Right panel states fill the panel */
.state { position: absolute; inset: 0; }

/* Visibility */
#state-profile { opacity: 0; pointer-events: none; transition: opacity 320ms ease; }
#state-landing { opacity: 1; pointer-events: auto; transition: opacity 320ms ease; }

/* Toggle class applied on the host (right-host) to show profile */
#right-host.show-profile #state-profile { opacity: 1; pointer-events: auto; }
#right-host.show-profile #state-landing { opacity: 0; pointer-events: none; }

/* Profile state visuals */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Anchor the image to the top so any overflow crops only at the bottom */
    object-position: top center;
    display: block;
}

.profile-ctas {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 760px; /* fits two 360px buttons + gap */
    padding: 0 1rem; /* small breathing room at narrow widths */
    z-index: 1; /* ensure above photo */
}

.cta-btn {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    border: 1.8px solid #E2DED9;
    border-radius: 5px;
    /* Responsive sizing: prefer side-by-side, shrink if needed, stack on small screens */
    flex: 1 1 320px;     /* target width ~320px, can grow up to max-width */
    min-width: 260px;    /* don’t get too narrow on mid-widths */
    max-width: 360px;    /* Figma max width */
    height: 70px;        /* Figma height */
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;     /* inner horizontal padding per spec */
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.05vw, 1.175rem);
    letter-spacing: 0.01em;
    cursor: pointer;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}
.cta-btn:hover { background: rgba(255,255,255,0.12); border-color: #E2DED9; }
.cta-btn:active { box-shadow: inset 2px 6px 10px rgba(102, 74, 40, 0.25); }

/* ------MOBILE VIEW------- */

/* On narrow viewports, stack buttons full-width inside the container */
@media (max-width: 820px) {
    .profile-ctas { max-width: 90%; }
    .cta-btn { flex: 1 1 100%; min-width: 0; max-width: 100%; }
}

/* Scroll indicator (mobile design) */
.scroll-indicator-meet {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(env(safe-area-inset-bottom, 0px) + 15vh);
    display: none; /* hidden by default; enabled on mobile */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
    z-index: 2;
    cursor: pointer;
}
.scroll-label-meet {
    font-family: inherit;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    color: white;
    opacity: 0.9;
}
.scroll-arrow-meet {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid white;
}

/* Show indicator only on mobile stacked layout */
@media (max-width: 767px) {
    .scroll-indicator-meet { display: inline-flex; }
}
