.about-hero {
    background: radial-gradient(circle at top left, rgba(109, 255, 184, 0.18), rgba(0, 0, 0, 0.8)), var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.about-hero .about-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(93, 224, 255, 0.25), transparent 45%);
    filter: blur(50px);
    z-index: 0;
}

.about-hero h1,
.about-hero p {
    position: relative;
    z-index: 1;
}

.about-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
}

.about-body {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.about-body article {
    background: var(--panel-alt);
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 2rem;
}
.content-body p,
.content-body ul,
.content-body ol {
    margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
    padding-left: 1.5rem;
}

.about-body aside {
    background: var(--panel);
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 2rem;
}

.about-body ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-body li::before {
    content: "▹";
    color: var(--accent);
    margin-right: 0.5rem;
}

@media (max-width: 720px) {
    .about-body {
        grid-template-columns: 1fr;
    }
}
:root {
    --bg: #050505;
    --panel: #0c0e16;
    --panel-alt: #111324;
    --text: #f4f8ff;
    --muted: #8ea2c6;
    --accent: #6dffb8;
    --accent-2: #5de0ff;
    --border: #1e2237;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 2px);
    z-index: 1;
}

main {
    position: relative;
    z-index: 2;
    width: min(1200px, 90vw);
    margin: 4rem auto;
}

.site-header {
    background: rgba(5, 5, 8, 0.9);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(1200px, 90vw);
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 0.25rem;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.tagline {
    color: var(--muted);
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.primary-nav a {
    margin-left: 1.25rem;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}

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

.hero {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.hero .glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(109, 255, 184, 0.15), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(93, 224, 255, 0.12), transparent 40%);
    z-index: 0;
}


.hero-carousel {
    position: relative;
    padding: 0 4rem;
}

.hero-carousel .hero-card {
    display: none;
    margin: 0 auto;
}

.hero-carousel .hero-card.is-active {
    display: block;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(4, 6, 16, 0.8);
    color: var(--text);
    cursor: pointer;
    z-index: 2;
}

.hero-nav.prev {
    left: 0;
}

.hero-nav.next {
    left: 100%;
}

.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--accent);
    border-color: var(--accent);
}

.hero-card {
    position: relative;
    z-index: 1;
    max-width: 540px;
}

.hero-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.8rem;
}

.hero-card h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 0.5rem 0;
}

.cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.85rem 1.75rem;
    background: var(--accent);
    color: #041007;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
}

.inline-link {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.grid-section {
    margin-top: 4rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.8rem;
}

.section-heading p {
    color: var(--muted);
    margin-top: 0.4rem;
}

.card-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--panel-alt);
    position: relative;
    overflow: hidden;
    transition: transform 140ms ease, border-color 140ms ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), transparent);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.card-surface {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.card-surface:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 4px;
}

.project-card h3 {
    margin-top: 0.4rem;
}

.card-cta {
    font-weight: 600;
    color: var(--accent);
}

.timestamp {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.post-detail header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.post-detail header h1 {
    margin-bottom: 0.25rem;
}

.post-body {
    margin-top: 2rem;
    line-height: 1.8;
    color: var(--text);
}

.post-body p {
    margin-bottom: 1rem;
}

.post-body img,
.post-body video,
.post-body iframe {
    display: block;
    width: min(540px, 100%);
    max-width: 100%;
    border-radius: 1rem;
    margin: 1.5rem 0;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.post-body img {
    height: auto;
    cursor: zoom-in;
}

.post-body video,
.post-body iframe {
    aspect-ratio: 16 / 9;
    border: none;
}

.flash-stack {
    margin-bottom: 2rem;
}

.flash {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
}

.flash.success {
    border-color: #2bcf93;
    color: #98ffd0;
}

.flash.error {
    border-color: #ff4d7a;
    color: #ff9db8;
}

.auth-panel,
.admin-layout {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.stack-form label span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.stack-form input,
.stack-form textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: #04050a;
    color: var(--text);
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.copy-default {
    border: 1px dashed var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--muted);
}

.copy-default summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--accent);
}

.copy-default p {
    margin-top: 0.5rem;
}

.security-card {
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    background: var(--panel-alt);
}

.secret-block {
    background: #050a11;
    border: 1px dashed var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.secret-block code,
.secret-block small {
    color: var(--accent);
    font-family: "Space Mono", monospace;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(1, 3, 8, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.media-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.media-lightbox-frame {
    max-width: min(90vw, 1200px);
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.media-lightbox-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.media-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    line-height: 1;
    background: transparent;
    color: var(--text);
    border: none;
    cursor: pointer;
}

button,
.button {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.8rem;
    background: var(--accent);
    color: #031007;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-table {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.table-head,
.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.table-head {
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--muted);
}

.row-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.row-actions a,
.row-actions button {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
}

.row-actions button {
    background: #ff4d7a;
    color: white;
}

.inline-form {
    margin: 0;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    padding-bottom: 3rem;
}

.empty-state {
    color: var(--muted);
    text-align: center;
}

.error-panel {
    margin: 6rem auto;
    max-width: 640px;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(109, 255, 184, 0.05), rgba(17, 19, 36, 1));
    text-align: center;
}

.error-panel h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.error-panel p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .table-head,
    .table-row {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-carousel {
        padding: 0 2rem;
    }

    .hero-nav {
        width: 36px;
        height: 36px;
    }

    .hero-dots {
        position: static;
        transform: none;
        margin-top: 1.5rem;
    }
}
