/* Explain: Styling for UI elements, layout components, and auth states. */
.site-header {
    background: linear-gradient(180deg, rgba(11, 12, 18, 0.92), rgba(11, 12, 18, 0.6));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(150deg, rgba(46, 34, 61, 0.6), rgba(18, 19, 28, 0.66));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.portrait-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 160, 106, 0.3);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.portrait-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(201, 160, 106, 0.26);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.portrait-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.portrait-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.story-card {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    max-width: 290px;
    border-radius: 2rem;
    padding: 1.5rem;
}

.quiet-detail,
.detail-row,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.035);
    padding: 1.25rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.work-card {
    border-radius: 2.2rem;
    padding: 1.5rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.work-card:hover {
    border-color: rgba(201, 160, 106, 0.5);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-6px);
}

.work-thumb {
    overflow: hidden;
    border-radius: 1.5rem;
}

.detail-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.detail-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 0 0 0.45rem var(--terracotta-soft);
}

.feature-image-wrap {
    height: 660px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem 999px 999px 3rem;
    box-shadow: var(--shadow-soft);
}

.post-card {
    border-radius: 2.2rem;
    padding: 1.5rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.post-card:hover {
    border-color: rgba(201, 160, 106, 0.5);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-6px);
}

.post-meta {
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.prose-body p {
    margin-bottom: 1.35rem;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 2;
}

.prose-body p:last-child {
    margin-bottom: 0;
}

.contact-form,
.contact-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #8FD3A0;
}

.form-status.error {
    color: #E39A9A;
}

.text-gradient-logo {
    background-image: linear-gradient(100deg, #E9CB92 0%, #D6A665 42%, #B98FD6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #D6A665;
}

.admin-action {
    display: none !important;
}
body.is-admin .admin-action {
    display: inline-flex !important;
}

body.is-guest .guest-locked-page > :not(.guest-gate) {
    display: none !important;
}

.guest-gate {
    display: none;
}

body.is-guest .guest-gate {
    display: flex;
    min-height: 78vh;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.guest-gate-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 34rem;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--glass-border);
    border-radius: 2.4rem;
    background: linear-gradient(150deg, rgba(46, 34, 61, 0.6), rgba(18, 19, 28, 0.66));
    box-shadow: var(--shadow-soft);
    text-align: center;
    backdrop-filter: blur(18px);
}

.mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(11, 12, 18, 0.9);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(4, 5, 9, 0.74);
    padding: 1rem;
}

.contact-overlay.is-open {
    display: block;
}

.contact-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .portrait-frame-large,
    .portrait-frame-medium,
    .feature-image-wrap {
        height: 510px;
        min-height: 0;
    }

    .portrait-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }

    .floating-note,
    .story-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }

    .feature-image-wrap {
        border-radius: 999px 999px 2rem 2rem;
    }
}