:root {
    --bg: #07111f;
    --bg-deep: #030913;
    --panel: rgba(7, 17, 31, 0.82);
    --panel-strong: rgba(7, 17, 31, 0.92);
    --line: rgba(135, 175, 220, 0.18);
    --text: #e6eefb;
    --muted: #9fb0c8;
    --accent: #ff8a1f;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    --radius: 22px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(1, 5, 12, 0.92), rgba(1, 5, 12, 0.96)),
        url('../images/blueprint-bg.png') center top / cover fixed;
    color: var(--text);
}

img {
    display: block;
    max-width: 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mix-blend-mode: screen;
    opacity: 0.32;
}

.site-shell {
    position: relative;
    z-index: 1;
}

.topbar {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
    padding: 20px 50px 20px 50px;;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 17, 28, 0.92);
    border-bottom: 1px solid rgba(138, 176, 214, 0.22);
    backdrop-filter: blur(10px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a,
.pillar-card-body a,
.button {
    color: var(--text);
    text-decoration: none;
}

.nav a {
    color: var(--muted);
    font-size: 0.96rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible {
    color: white;
}

.hero,
.section,
.topbar {
    position: relative;
}

.hero {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 10px auto 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(2, 8, 18, 0.92) 0%, rgba(2, 8, 18, 0.82) 45%, rgba(2, 8, 18, 0.58) 100%),
        url('../images/banner.png') center center / cover no-repeat;
    box-shadow: var(--shadow);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(110, 170, 235, 0.06), rgba(110, 170, 235, 0.02));
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px 28px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 660px;
    padding: 28px 12px 28px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-project-panel {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.hero-project-card {
    width: 100%;
    align-self: stretch;
    background: linear-gradient(180deg, rgba(10, 22, 38, 0.9), rgba(5, 11, 20, 0.94));
}

.hero-project-title {
    font-size: clamp(1.8rem, 2.4vw, 2.35rem);
}

.hero-project-card .project-card-image {
    aspect-ratio: 16 / 10;
}

.hero-project-card .project-card-body p {
    margin: 12px 0 18px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #cdd9ee;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 4.4rem);
    max-width: 10ch;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.45rem;
}

.hero-copy,
.section-heading p,
.project-copy p,
.video-panel p,
.about-copy p,
.feature-list {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, #ff8a1f, #ff5c2d);
    box-shadow: 0 10px 30px rgba(255, 118, 40, 0.28);
}

.button-secondary {
    background: rgba(255,255,255,0.04);
}

.section {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto 28px;
    padding: 48px 0;
}

.section-heading {
    max-width: 1280px;
    margin-bottom: 28px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.pillar-card {
    grid-column: span 6;
    background: linear-gradient(180deg, rgba(12, 23, 40, 0.92), rgba(4, 10, 18, 0.96));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pillar-card::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pillar-accent) 30%, transparent);
    border-radius: inherit;
    pointer-events: none;
}

.pillar-card:hover,
.pillar-card:focus-within {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--pillar-accent) 45%, rgba(255,255,255,0.08));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 46px rgba(0,0,0,0.5), 0 0 24px color-mix(in srgb, var(--pillar-accent) 18%, transparent);
}

.pillar-card-image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pillar-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-card-body {
    padding: 20px 22px 24px;
}

.pillar-card-body p {
    margin: 10px 0 16px;
    color: var(--muted);
}

.pillar-card-body a {
    display: inline-flex;
    color: white;
    font-weight: 700;
    border-bottom: 1px solid color-mix(in srgb, var(--pillar-accent) 68%, transparent);
    padding-bottom: 4px;
}

.culmination,
.about-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: start;
}

.culmination .section-heading,
.about-section .about-copy {
    max-width: none;
}

.project-highlight,
.about-section {
    grid-column: 1 / -1;
}

.project-highlight {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

.project-image,
.project-copy,
.video-panel,
.about-copy,
.about-visual {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-copy,
.video-panel,
.about-copy {
    padding: 28px;
}

.feature-list {
    margin: 20px 0 0;
    padding-left: 20px;
}

.feature-list li + li {
    margin-top: 10px;
}

.video-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.panel-label {
    display: inline-flex;
    margin-bottom: 20px;
    font-size: 0.78rem;
    color: #d7e3f5;
    text-transform: uppercase;
    float: right;
    letter-spacing: 0.12em;
}

.about-section {
    grid-template-columns: 1fr 1fr;
}

.about-visual img,
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .pillar-card,
    .video-panels > *,
    .project-highlight > *,
    .about-section > * {
        grid-column: auto;
    }

    .pillar-card {
        grid-column: span 12;
    }

    .video-panels,
    .project-highlight,
    .about-section,
    .culmination {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 72px 28px;
    }
}

@media (max-width: 720px) {
    .topbar {
        position: static;
        padding-top: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        gap: 14px;
    }

    .hero {
        min-height: 70vh;
    }

    .section {
        padding: 32px 0;
    }
}

.topbar::before,
.hero::before,
.page-hero::before,
.pillar-card::before,
.project-card::before,
.video-panel::before,
.info-panel::before,
.mini-panel::before,
.site-footer::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(135, 175, 220, 0.1);
    border-radius: inherit;
    pointer-events: none;
}

.nav a.is-active {
    color: #fff;
}

.page-hero {
    width: min(calc(100% - 32px), var(--max-width));
    min-height: 360px;
    margin: 10px auto 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(2, 8, 18, 0.96), rgba(2, 8, 18, 0.82));
    box-shadow: var(--shadow);
}

.page-hero-bg,
.page-hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-hero-bg img {
    object-fit: cover;
    opacity: 0.38;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 72px 56px;
}

.small-hero {
    min-height: 300px;
}

.pillar-card,
.project-card,
.video-panel,
.info-panel,
.mini-panel,
.site-footer {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pillar-card {
    grid-column: span 4;
}

.pillar-card-image,
.project-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.pillar-card-image img,
.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pillar-card-body,
.project-card-body {
    padding: 20px 20px 22px;
}

.pillar-card-body a,
.project-card-body a,
.footer-grid a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.pillar-card-body a:hover,
.project-card-body a:hover,
.footer-grid a:hover {
    color: var(--accent);
}

.panel-label,
.status-chip,
.tag-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.project-grid,
.video-panels,
.footer-grid,
.coming-soon-grid,
.two-column-section {
    display: grid;
    gap: 20px;
}

.project-grid {
    grid-template-columns: repeat(12, 1fr);
}

.project-card {
    grid-column: span 4;
}

.video-panels {
    grid-template-columns: repeat(3, 1fr);
}

.video-panel,
.info-panel {
    padding: 24px;
}

.two-column-section {
    grid-template-columns: repeat(2, 1fr);
}

.coming-soon-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
}

.mini-panel {
    padding: 18px;
    text-align: center;
    color: var(--text);
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.status-planned,
.status-chip.status-planned { border-color: rgba(255, 178, 66, 0.32); }
.status-in_progress,
.status-chip.status-in_progress { border-color: rgba(42, 140, 255, 0.32); }
.status-completed,
.status-chip.status-completed { border-color: rgba(104, 200, 120, 0.32); }
.status-archived,
.status-chip.status-archived { border-color: rgba(150, 150, 150, 0.32); }

.card-heading {
    font-size: 1.45rem;
}

.site-footer {
    padding: 28px;
    margin-bottom: 40px;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 980px) {
    .pillar-card,
    .project-card {
        grid-column: span 6;
    }

    .video-panels,
    .two-column-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .topbar {
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero,
    .page-hero {
        min-height: auto;
    }

    .hero-layout {
        padding: 18px;
        gap: 18px;
    }

    .hero-content {
        padding: 40px 8px 0;
    }

    .page-hero-content {
        padding: 56px 24px;
    }

    .pillar-card,
    .project-card {
        grid-column: span 12;
    }

    .coming-soon-grid {
        grid-template-columns: 1fr;
    }
}


/* Admin */
.admin-body {
    background: #07111c;
    color: #e9f1fb;
    min-height: 100vh;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 17, 28, 0.92);
    border-bottom: 1px solid rgba(138, 176, 214, 0.22);
    backdrop-filter: blur(10px);
}
.admin-topbar-inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.admin-brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.05em; }
.admin-menu { display:flex; gap:1rem; flex-wrap:wrap; }
.admin-menu a, .admin-user { color:#b9cbe0; text-decoration:none; }
.admin-main { width:min(1180px, calc(100% - 2rem)); margin:2rem auto 4rem; }
.admin-auth-main { display:grid; place-items:center; min-height: calc(100vh - 90px); }
.admin-hero, .admin-card {
    background: linear-gradient(180deg, rgba(12,26,40,0.92), rgba(8,18,30,0.96));
    border: 1px solid rgba(138,176,214,0.18);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}
.auth-card { width:min(520px, 100%); }
.admin-grid-panels { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1rem; margin:1.5rem 0; }
.admin-card + .admin-card, .admin-hero + .admin-card { margin-top: 1.5rem; }
.admin-card-header { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1rem; }
.admin-table-wrap { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th, .admin-table td { padding:0.85rem 0.75rem; border-bottom:1px solid rgba(138,176,214,0.14); text-align:left; }
.admin-table code { color:#ffd28f; }
.admin-form label, .admin-form fieldset { display:flex; flex-direction:column; gap:0.45rem; }
.admin-form input[type="text"], .admin-form input[type="password"], .admin-form input[type="datetime-local"], .admin-form textarea, .admin-form select {
    width:100%;
    background:#0a1522;
    color:#edf4fd;
    border:1px solid rgba(138,176,214,0.18);
    border-radius:12px;
    padding:0.85rem 0.9rem;
}
.stack-form { display:grid; gap:1rem; }
.grid-form { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1rem; }
.full-width { grid-column:1 / -1; }
.checkbox-row { flex-direction:row !important; align-items:center; gap:0.75rem !important; }
.checkbox-group { border:1px solid rgba(138,176,214,0.18); border-radius:14px; padding:1rem; }
.checkbox-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:0.75rem; }
.checkbox-card { display:flex !important; flex-direction:row !important; align-items:center; gap:0.5rem !important; padding:0.75rem; border:1px solid rgba(138,176,214,0.14); border-radius:12px; background:rgba(255,255,255,0.02); }
.admin-alert { border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.admin-alert.error { background: rgba(190, 59, 59, 0.18); border:1px solid rgba(220, 94, 94, 0.36); }
.admin-alert.success { background: rgba(52, 138, 84, 0.18); border:1px solid rgba(84, 184, 116, 0.36); }
.admin-note, .muted { color:#b9cbe0; }
@media (max-width: 860px) {
    .admin-grid-panels, .grid-form, .checkbox-grid { grid-template-columns:1fr; }
    .admin-topbar-inner, .admin-card-header { flex-direction:column; align-items:flex-start; }
}


.clickable-card {
    position: relative;
}

.card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.card-link-text,
.coming-soon-text {
    display: inline-flex;
    color: #fff;
    font-weight: 700;
}

.single-project-grid {
    grid-template-columns: minmax(0, 560px);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.video-card,
.empty-state-panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-card::before,
.empty-state-panel::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(135, 175, 220, 0.1);
    border-radius: inherit;
    pointer-events: none;
}

.video-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-body,
.empty-state-panel {
    padding: 20px 20px 24px;
}

.video-card-body p,
.empty-state-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.video-card-body a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.video-card-body a:hover {
    color: var(--accent);
}

.empty-state-panel h3 {
    margin-bottom: 10px;
}

@media (max-width: 980px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
