:root {
    --ink: #1f1d1b;
    --muted: #6f6964;
    --paper: #fffaf5;
    --surface: #ffffff;
    --line: #e2d8ce;
    --red: #d71920;
    --teal: #0d8f9a;
    --blue: #78b8c8;
    --rose: #f5d8dd;
    --yellow: #f2c05a;
    --shadow: 0 20px 45px rgba(31, 29, 27, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 14px clamp(18px, 5vw, 64px);
    background: rgba(255, 250, 245, .88);
    border-bottom: 1px solid rgba(226, 216, 206, .8);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 300px;
}

.brand img {
    width: min(280px, 64vw);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 10px 14px;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 4px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    background: var(--rose);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: min(820px, 92vh);
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 122px clamp(18px, 5vw, 64px) 56px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 29, 27, .82), rgba(31, 29, 27, .42) 48%, rgba(31, 29, 27, .08));
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    color: #fff;
}

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

.hero .eyebrow {
    color: var(--yellow);
}

h1,
h2 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(3.6rem, 10vw, 8.5rem);
    font-weight: 850;
}

h2 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    max-width: 950px;
}

p {
    margin: 0;
}

.hero p:not(.eyebrow) {
    max-width: 610px;
    margin: 18px 0 28px;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    color: #fff;
    background: var(--red);
    border: 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(215, 25, 32, .25);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button.secondary {
    color: var(--ink);
    background: #fff;
    box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
    color: #fff;
    background: var(--teal);
    outline: 3px solid rgba(13, 143, 154, .22);
}

.inline-button {
    justify-self: start;
    margin-top: 8px;
}

.button:hover,
.button:focus-visible {
    background: #ab1218;
    outline: 3px solid rgba(215, 25, 32, .25);
}

.section-pad {
    padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 64px);
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: clamp(28px, 6vw, 86px);
    align-items: end;
    background: var(--surface);
}

.intro > p,
.feature-copy p,
.about-copy p,
.contact-copy p,
.page-hero p,
.selection-note p,
.teaser-card span:last-child {
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.page-hero {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: 150px clamp(18px, 5vw, 64px) clamp(64px, 8vw, 110px);
    background: var(--surface);
}

.page-hero.compact {
    min-height: 440px;
    align-items: end;
    background:
        linear-gradient(90deg, rgba(255, 250, 245, .96), rgba(255, 250, 245, .84)),
        url("../img/texture-bg.jpg") center / cover;
}

.page-hero.image-split {
    grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
}

.page-hero h1 {
    color: var(--ink);
    max-width: 100%;
    font-size: clamp(2.25rem, 5.5vw, 4.75rem);
    line-height: 1.12;
}

.page-hero h1 + p {
    margin-top: clamp(18px, 2.6vw, 30px);
}

.page-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
    min-height: 620px;
    background: #1f1d1b;
    color: #fff;
}

.feature-media {
    min-height: 520px;
}

.feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: clamp(44px, 8vw, 100px);
}

.feature-copy .eyebrow {
    color: var(--blue);
}

.feature-copy p {
    color: #e9ded6;
    max-width: 620px;
}

.gallery-section {
    background: var(--paper);
}

.works-pending {
    background: var(--paper);
}

.selection-note {
    display: grid;
    gap: 14px;
    max-width: 900px;
    padding: clamp(22px, 4vw, 34px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.selection-note strong {
    color: var(--ink);
}

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

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

.gallery-grid-large {
    display: block;
    columns: 3 280px;
    column-gap: 18px;
}

.gallery-item {
    min-width: 0;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: zoom-in;
}

.gallery-grid-large .gallery-item {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    break-inside: avoid;
    aspect-ratio: auto;
}

.gallery-item:nth-child(3n) {
    aspect-ratio: 3 / 4;
}

.gallery-grid-large .gallery-item:nth-child(3n) {
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-grid-large .gallery-item img {
    height: auto;
    object-fit: contain;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.04);
}

.gallery-item:focus-visible {
    outline: 3px solid rgba(13, 143, 154, .35);
}

.about {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: center;
    background: var(--surface);
}

.about-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.about-copy {
    display: grid;
    gap: 18px;
}

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

.teaser-card {
    display: grid;
    gap: 10px;
    min-height: 230px;
    align-content: end;
    padding: clamp(20px, 3vw, 30px);
    color: inherit;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(31, 29, 27, .08);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.teaser-card strong {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.05;
}

.teaser-card:hover,
.teaser-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(13, 143, 154, .55);
    box-shadow: var(--shadow);
    outline: none;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(320px, 560px);
    gap: clamp(32px, 7vw, 96px);
    align-items: start;
    background:
        linear-gradient(rgba(255, 250, 245, .9), rgba(255, 250, 245, .95)),
        url("../img/texture-bg.jpg") center / cover;
}

.contact-copy {
    position: sticky;
    top: 116px;
    display: grid;
    gap: 18px;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: clamp(22px, 4vw, 34px);
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 750;
}

input,
textarea {
    width: 100%;
    border: 1px solid #cfc2b6;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

input:focus,
textarea:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(13, 143, 154, .16);
}

.trap {
    position: absolute;
    left: -9999px;
}

.privacy-note {
    color: var(--muted);
    font-size: .9rem;
}

.form-message {
    padding: 12px 14px;
    border-radius: 4px;
    font-weight: 700;
}

.form-message.success {
    color: #145a34;
    background: #dff4e8;
}

.form-message.error {
    color: #7a1418;
    background: #f7d9dc;
}

.admin-section {
    display: grid;
    gap: 24px;
    background: var(--paper);
}

.admin-login {
    max-width: 520px;
}

.admin-toolbar {
    display: flex;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    padding: clamp(18px, 3vw, 28px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-toolbar label {
    min-width: min(100%, 360px);
}

.admin-gallery {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-gallery-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.admin-gallery-fields {
    display: grid;
    gap: 12px;
}

.admin-gallery-fields strong {
    overflow-wrap: anywhere;
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-check input {
    width: auto;
}

.admin-delete-list {
    display: grid;
    gap: 8px;
}

.admin-delete-list button,
.admin-logout button {
    border: 0;
    color: #7a1418;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
}

.admin-logout {
    margin-top: 24px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 5vw, 64px);
    background: var(--ink);
    color: #fff;
}

.site-footer a {
    text-decoration: none;
    font-weight: 800;
}

.lightbox {
    width: min(94vw, 1040px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #111;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, .72);
}

.lightbox img {
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: rgba(0, 0, 0, .7);
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 18px 18px;
        background: rgba(255, 250, 245, .98);
        border-bottom: 1px solid var(--line);
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .hero {
        min-height: 760px;
    }

    .hero::after {
        background: linear-gradient(0deg, rgba(31, 29, 27, .84), rgba(31, 29, 27, .2) 72%);
    }

    .intro,
    .feature-band,
    .about,
    .contact-section,
    .page-hero.image-split {
        grid-template-columns: 1fr;
    }

    .feature-band {
        min-height: 0;
    }

    .feature-media {
        min-height: 420px;
    }

    .section-heading {
        display: block;
    }

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

    .teaser-grid {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        position: static;
    }
}

@media (max-width: 560px) {
    .site-header {
        min-height: 68px;
        padding: 11px 14px;
    }

    .brand img {
        width: min(230px, 62vw);
    }

    .hero {
        min-height: 720px;
        padding: 104px 18px 42px;
    }

    h1 {
        font-size: 3.8rem;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.16;
    }

    .page-hero h1 + p {
        margin-top: 18px;
    }

    .form-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

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