.secret-page {
    min-height: 100svh;
}

.secret-page .grid-background {
    pointer-events: none;
}

.secret-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 860px);
    margin-inline: auto;
    padding: 32px 32px max(48px, env(safe-area-inset-bottom));
}

.secret-page .back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--dim-green);
    border-radius: 6px;
    background: var(--bg-darker);
    color: var(--circuit-green);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.secret-page .back-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.secret-page .back-button:hover {
    border-color: var(--circuit-green);
    background: rgba(0, 255, 65, 0.06);
}

.secret-header {
    margin-block: 48px 32px;
}

.secret-eyebrow,
.project-number,
.secret-footer {
    color: #7fa98b;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    line-height: 1.6;
}

.secret-header h1 {
    margin-block: 12px 14px;
    font-size: clamp(1.65rem, 5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
    text-shadow: 0 0 22px rgba(0, 255, 65, 0.15);
}

.secret-intro,
.project-description {
    color: #a0b8aa;
    font-size: 0.9rem;
    line-height: 1.7;
}

.secret-intro {
    max-width: 58ch;
}

.project-list {
    display: grid;
    gap: 18px;
}

.project-bubble {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 22px;
    padding: 26px;
    border: 1px solid var(--dim-green);
    border-radius: 12px;
    background: rgba(5, 8, 16, 0.88);
    color: var(--circuit-green);
    text-decoration: none;
    scroll-margin-block: 24px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.3;
}

.project-icon svg {
    display: block;
    width: 48px;
    height: 48px;
}

.project-action {
    margin-top: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.new-tab-note {
    color: #7fa98b;
}

.project-arrow {
    align-self: start;
    font-size: 1.5rem;
    line-height: 1;
}

.project-bubble:hover,
.project-bubble:focus-visible {
    border-color: var(--circuit-green);
    background: rgba(0, 255, 65, 0.045);
    box-shadow: 0 0 24px rgba(0, 255, 65, 0.1);
}

.secret-page a:focus-visible {
    outline: 2px solid var(--circuit-green);
    outline-offset: 5px;
}

.secret-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--dim-green);
}

@media (max-width: 520px) {
    .secret-shell {
        padding: 20px 16px max(32px, env(safe-area-inset-bottom));
    }

    .secret-header {
        margin-top: 32px;
    }

    .project-bubble {
        grid-template-columns: 32px minmax(0, 1fr) 18px;
        gap: 12px;
        padding: 22px 16px;
    }

    .project-icon svg {
        width: 32px;
        height: 32px;
    }

    .project-title {
        font-size: 1.1rem;
    }
}
