:root {
    color-scheme: dark;
    --bg: #090807;
    --bg-soft: #14110f;
    --panel: #1c1917;
    --line: rgba(255, 255, 255, 0.12);
    --text: #f5f2ea;
    --muted: #b8afa3;
    --amber: #e5a24a;
    --red: #b83b35;
    --green: #70a082;
    --ink: #050403;
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    background: linear-gradient(180deg, rgba(9, 8, 7, 0.88), rgba(9, 8, 7, 0));
}

.site-header.is-solid {
    background: rgba(9, 8, 7, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark,
.admin-brand span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--text);
    color: var(--ink);
    font-weight: 900;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.94rem;
}

.site-nav a {
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav .is-active {
    color: var(--text);
    border-color: var(--amber);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 132px clamp(18px, 5vw, 72px) 28px;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(90deg, rgba(9, 8, 7, 0.94), rgba(9, 8, 7, 0.46) 52%, rgba(9, 8, 7, 0.75)), var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34vh;
    z-index: -1;
    background: linear-gradient(0deg, var(--bg), rgba(9, 8, 7, 0));
}

.hero-content {
    width: min(760px, 100%);
    padding-bottom: clamp(42px, 8vw, 92px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--amber);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1,
.page-hero h1 {
    max-width: 950px;
    margin-bottom: 20px;
    font-size: clamp(2.8rem, 8vw, 7.6rem);
    line-height: 0.92;
    font-weight: 900;
}

.hero p,
.page-hero p,
.intro-grid p,
.manifesto p {
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-actions,
.admin-heading,
.check-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
}

.primary-button {
    background: var(--text);
    color: var(--ink);
    font-weight: 800;
}

.ghost-button,
.filter-button {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: var(--line);
}

.text-link,
.back-link {
    color: var(--amber);
    font-weight: 800;
}

.hero-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: min(980px, 100%);
    border: 1px solid var(--line);
    background: var(--line);
}

.hero-strip a {
    min-height: 92px;
    padding: 18px;
    background: rgba(9, 8, 7, 0.72);
}

.hero-strip span,
.project-card span,
.team-grid span {
    display: block;
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section,
.project-detail,
.page-hero {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.section {
    padding: clamp(56px, 8vw, 108px) 0;
}

.page-hero {
    padding: 154px 0 70px;
}

.page-hero.compact {
    min-height: 58vh;
    display: grid;
    align-content: end;
}

.intro-grid,
.project-detail-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
    gap: clamp(28px, 6vw, 84px);
}

.intro-grid h2,
.section-heading h2,
.manifesto p {
    max-width: 760px;
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    line-height: 1;
}

.project-band {
    width: min(1380px, calc(100% - 36px));
}

.section-heading {
    margin-bottom: 30px;
}

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

.project-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
}

.project-card a {
    display: grid;
    min-height: 100%;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.06);
}

.project-card span,
.project-card h2,
.project-card h3,
.project-card p {
    margin-left: 16px;
    margin-right: 16px;
}

.project-card span {
    margin-top: 16px;
}

.project-card h2,
.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
    line-height: 1.12;
}

.project-card p {
    color: var(--muted);
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-button.is-active {
    background: var(--amber);
    color: var(--ink);
}

.project-detail {
    padding: 134px 0 92px;
}

.project-detail h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.92;
}

.credits {
    border-left: 1px solid var(--line);
    padding-left: 28px;
    color: var(--muted);
}

.credits h2 {
    color: var(--text);
}

.video-frame {
    margin-top: 48px;
    border: 1px solid var(--line);
    background: #000;
}

.video-frame iframe,
.video-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.manifesto {
    display: grid;
    gap: 28px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.team-grid article,
.contact-aside,
.admin-panel,
.stat-grid article,
.auth-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.team-grid article,
.contact-aside {
    padding: 24px;
}

.behind-scenes img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.briefing-form,
.admin-form {
    display: grid;
    gap: 16px;
}

.briefing-form label,
.admin-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    padding: 12px 13px;
}

textarea {
    resize: vertical;
}

.contact-aside {
    align-self: start;
}

.contact-aside a {
    display: block;
    margin-top: 12px;
    color: var(--amber);
    font-weight: 800;
}

.notice {
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.notice.success {
    background: rgba(112, 160, 130, 0.16);
    color: #d9f0e2;
}

.notice.error {
    background: rgba(184, 59, 53, 0.18);
    color: #ffd8d5;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text);
}

.auth-body,
.admin-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(184, 59, 53, 0.26), transparent 28rem), var(--bg);
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 18px;
}

.auth-panel {
    width: min(440px, 100%);
    padding: 28px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 22px;
    border-right: 1px solid var(--line);
    background: rgba(9, 8, 7, 0.82);
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a {
    padding: 11px 12px;
    border-radius: var(--radius);
    color: var(--muted);
}

.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.admin-sidebar form {
    margin-top: auto;
}

.admin-main {
    width: min(1180px, 100%);
    padding: 30px;
}

.admin-heading {
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-heading h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.stat-grid article,
.admin-panel {
    padding: 18px;
}

.stat-grid span {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
}

.stat-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-panel {
    margin-bottom: 20px;
}

.admin-table {
    display: grid;
    gap: 1px;
    background: var(--line);
}

.admin-table > div {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr) minmax(130px, 0.9fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--panel);
}

.admin-table img {
    width: 84px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-table span,
.message-list time,
code {
    color: var(--muted);
}

.admin-table a,
.danger-link {
    color: var(--amber);
    font-weight: 800;
}

.danger-link {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.admin-form.wide {
    max-width: 860px;
}

.check-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.check-row input {
    width: auto;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.media-grid article {
    display: grid;
    gap: 8px;
}

.media-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.message-list {
    display: grid;
    gap: 14px;
}

.message-list article {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 920px) {
    .site-nav {
        position: fixed;
        inset: 68px 18px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(9, 8, 7, 0.96);
    }

    .site-nav.is-open,
    .nav-toggle {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-strip,
    .intro-grid,
    .project-detail-grid,
    .contact-grid,
    .team-grid,
    .project-grid,
    .stat-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 96vh;
    }

    .credits {
        border-left: 0;
        padding-left: 0;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-table > div {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
