:root {
    --ink: #10151a;
    --muted: #66727c;
    --paper: #f6f2ea;
    --white: #ffffff;
    --line: rgba(16, 21, 26, 0.14);
    --gold: #c89b45;
    --sky: #89b7ca;
    --teal: #2f6f73;
    --danger: #9d2d2d;
    --shadow: 0 18px 50px rgba(16, 21, 26, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 4vw, 56px);
    color: var(--white);
    background: linear-gradient(180deg, rgba(16, 21, 26, 0.72), rgba(16, 21, 26, 0));
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

nav {
    display: flex;
    gap: clamp(14px, 3vw, 32px);
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 94vh;
    display: grid;
    align-items: end;
    padding: 142px clamp(20px, 6vw, 82px) 42px;
    overflow: hidden;
    color: var(--white);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 13, 17, 0.82), rgba(9, 13, 17, 0.34) 54%, rgba(9, 13, 17, 0.08)),
        linear-gradient(0deg, rgba(9, 13, 17, 0.72), rgba(9, 13, 17, 0.04) 42%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
    padding-bottom: min(12vh, 110px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    line-height: 0.98;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(48px, 9vw, 112px);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(34px, 5vw, 64px);
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.hero-copy {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}

.hero-actions,
.admin-actions,
.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 18px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    border-color: var(--gold);
    background: var(--gold);
    color: #16130d;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    border-color: rgba(255, 255, 255, 0.25);
}

.button.danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.hero-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(900px, 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-panel span {
    padding: 18px 22px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.hero-panel strong {
    display: block;
    color: var(--white);
    font-size: 28px;
}

.intro-band,
.contact-band {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(28px, 6vw, 90px);
    align-items: center;
    padding: clamp(64px, 9vw, 124px) clamp(20px, 6vw, 82px);
    background: var(--ink);
    color: var(--white);
}

.intro-band p:not(.eyebrow),
.contact-band p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.75;
}

.work-section {
    padding: clamp(54px, 8vw, 108px) clamp(20px, 6vw, 82px);
}

.section-heading {
    display: flex;
    gap: 24px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-heading.compact {
    margin-top: 36px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.filter.active {
    background: var(--ink);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.photo-card {
    position: relative;
    grid-column: span 4;
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    background: #d8d2c8;
    box-shadow: var(--shadow);
}

.photo-card.wide {
    grid-column: span 8;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.photo-card:hover img {
    transform: scale(1.035);
}

.photo-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: 100%;
    border: 0;
    padding: 26px;
    color: var(--white);
    text-align: left;
    background: linear-gradient(0deg, rgba(8, 12, 16, 0.8), rgba(8, 12, 16, 0.04) 64%);
    cursor: zoom-in;
}

.photo-cover span,
.photo-cover small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 800;
}

.photo-cover strong {
    max-width: 620px;
    margin: 8px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1;
}

.empty-state {
    display: none;
    max-width: 760px;
    margin: 34px auto 0;
    padding: 60px 24px;
    text-align: center;
}

.empty-state.show {
    display: block;
}

.empty-state h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.empty-state p {
    color: var(--muted);
}

.capabilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.capabilities article {
    min-height: 320px;
    padding: clamp(28px, 5vw, 58px);
    background: #e9e0d2;
}

.capabilities span {
    color: var(--teal);
    font-weight: 900;
}

.capabilities p {
    color: #52606a;
    line-height: 1.7;
}

.contact-band {
    background: #173438;
}

.lightbox {
    width: min(1180px, calc(100vw - 28px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.lightbox::backdrop {
    background: rgba(9, 13, 17, 0.72);
}

.lightbox img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    background: #0d1216;
}

.lightbox div {
    padding: 24px;
}

.icon-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(20px, 6vw, 82px);
    color: rgba(255, 255, 255, 0.72);
    background: var(--ink);
}

footer p {
    margin: 0;
}

.admin-body {
    min-height: 100vh;
    background: #eef2f1;
}

.admin-shell {
    min-height: 100vh;
}

.login-view {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(16, 21, 26, 0.88), rgba(16, 21, 26, 0.36)),
        url('/assets/images/aviation-hero.png') center / cover;
}

.login-panel {
    width: min(520px, 100%);
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.login-panel h1,
.admin-topbar h1 {
    margin-bottom: 12px;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1;
}

.login-panel p {
    color: #53616c;
    line-height: 1.65;
}

.dashboard {
    padding: clamp(20px, 4vw, 48px);
}

.hidden {
    display: none !important;
}

.admin-topbar {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.admin-topbar .button.ghost,
.section-heading .button.ghost {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.62);
}

.upload-studio,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 34px rgba(16, 21, 26, 0.08);
}

.upload-studio {
    padding: clamp(18px, 3vw, 30px);
}

label {
    display: grid;
    gap: 8px;
    color: #43515c;
    font-size: 13px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    background: #fbfaf7;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

form {
    display: grid;
    gap: 16px;
}

.dropzone {
    position: relative;
    display: grid;
    min-height: 170px;
    place-items: center;
    gap: 6px;
    border: 1px dashed rgba(16, 21, 26, 0.34);
    border-radius: 8px;
    background: #f5f1e8;
    text-align: center;
}

.dropzone.active {
    border-color: var(--teal);
    background: #e6f0ef;
}

.dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone strong {
    font-size: 22px;
}

.dropzone span {
    color: var(--muted);
    font-size: 14px;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metadata-grid.tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.check-row input {
    width: auto;
}

.form-message {
    min-height: 20px;
    margin: 0;
    color: var(--teal);
    font-weight: 800;
}

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

.admin-card {
    overflow: hidden;
    cursor: grab;
}

.admin-card.dragging {
    opacity: 0.58;
}

.admin-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #d8d2c8;
}

.admin-card form {
    padding: 16px;
}

@media (max-width: 980px) {
    .intro-band,
    .contact-band,
    .capabilities,
    .metadata-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .photo-card,
    .photo-card.wide {
        grid-column: span 6;
    }

    .section-heading,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
    }

    nav {
        display: none;
    }

    .hero {
        min-height: 92vh;
        padding-top: 112px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-panel span {
        padding-top: 12px;
    }

    .gallery-grid {
        display: block;
    }

    .photo-card,
    .photo-card.wide {
        min-height: 380px;
        margin-bottom: 16px;
    }

    .photo-cover strong {
        font-size: 32px;
    }

    footer {
        flex-direction: column;
    }

    .dashboard {
        padding: 16px;
    }
}
