:root {
    --bg: #f4efe8;
    --bg-soft: #ede6de;
    --panel: rgba(255, 255, 255, 0.72);
    --panel-strong: #ffffff;
    --text: #1d2227;
    --muted: #5e6872;
    --border: rgba(58, 74, 92, 0.12);
    --accent: #d16e2c;
    --accent-dark: #ab571f;
    --deep: #2f3d4c;
    --success: #2b7a4b;
    --error: #b53c2f;
    --shadow: 0 20px 50px rgba(28, 28, 28, 0.08);
    --radius: 24px;
    --header-height: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(209, 110, 44, 0.12), transparent 30%),
        linear-gradient(180deg, #f8f5f1 0%, var(--bg) 100%);
}

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

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

[hidden] {
    display: none !important;
}

.page-shell {
    min-height: 100vh;
    overflow: clip;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.site-header {
    background: rgba(244, 239, 232, 0.82);
}

.admin-header {
    background: rgba(47, 61, 76, 0.92);
}

.site-header-inner,
.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-height);
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    color: var(--text);
}

.brand-admin .brand-mark,
.brand-admin {
    color: #fff;
}

.brand-accent {
    color: var(--accent);
}

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

.site-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav a,
.admin-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.68);
}

.site-nav > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav a.is-active,
.admin-nav a:hover,
.site-nav a:hover {
    color: var(--accent);
}

.site-nav > a:hover,
.nav-dropdown.is-open .nav-dropdown-trigger {
    background: rgba(209, 110, 44, 0.08);
}

.site-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.64);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}

.site-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--deep);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger {
    color: var(--accent);
}

.nav-dropdown-caret {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-caret {
    transform: rotate(45deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    z-index: 30;
}

.nav-dropdown-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.nav-dropdown-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.35;
}

.nav-dropdown-panel a:hover {
    background: rgba(209, 110, 44, 0.08);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

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

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary {
    background: rgba(47, 61, 76, 0.08);
    color: var(--deep);
}

.button-danger {
    background: rgba(181, 60, 47, 0.1);
    color: var(--error);
}

.button-small {
    padding: 10px 16px;
    font-size: 0.92rem;
}

.hero-section {
    padding: 56px 0 56px;
}

.hero-grid,
.contact-grid,
.project-detail-grid,
.split-grid,
.admin-grid {
    display: grid;
    gap: 28px;
}

.hero-grid,
.contact-grid,
.project-detail-grid,
.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy,
.contact-copy,
.stack,
.prose {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-title,
.section-title {
    margin: 0;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.6rem);
}

.hero-title span {
    display: block;
}

.hero-title-accent {
    color: var(--accent);
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 400;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-text,
.section-text,
.prose p,
.card p,
.form-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions,
.hero-stats,
.meta-row,
.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-panel,
.card,
.gallery-card,
.project-main-image {
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-panel {
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(209, 110, 44, 0.08), rgba(47, 61, 76, 0.06));
    padding: 18px;
    position: relative;
    min-height: 520px;
}

.hero-panel img,
.project-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.hero-slides {
    position: relative;
    min-height: 484px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.28);
}

.story-wrap {
    margin-top: 36px;
}

.story-toggle {
    margin-bottom: 24px;
}

.story-panel {
    display: block;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 20px;
    margin-bottom: 24px;
}

.story-title {
    margin: 0 0 10px;
    font-size: 1.85rem;
    letter-spacing: -0.04em;
}

.story-cta {
    background: linear-gradient(160deg, rgba(47, 61, 76, 0.96), rgba(29, 34, 39, 0.96));
    color: #fff;
}

.story-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
}

.accordion-group {
    display: grid;
    gap: 14px;
}

.accordion-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-trigger {
    width: 100%;
    padding: 20px 24px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.accordion-plus {
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.accordion-card.is-open .accordion-plus {
    transform: rotate(45deg);
}

.accordion-panel {
    display: block;
}

.accordion-panel-inner {
    padding: 0 24px 22px;
}

.accordion-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.accordion-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.55;
}

.accordion-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    transform: translateY(-50%);
}

.accordion-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(209, 110, 44, 0.08);
    color: var(--deep);
}

.section-head,
.admin-page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.card-grid {
    display: grid;
    gap: 20px;
}

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

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

.card,
.gallery-card,
.sub-card {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 28px;
}

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

.repeater-list {
    display: grid;
    gap: 16px;
}

.repeater-item {
    border: 1px solid var(--border);
}

.repeater-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feature-card,
.value-card,
.admin-link-card {
    min-height: 220px;
}

.feature-card {
    position: relative;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(209, 110, 44, 0.12);
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 18px;
}

.gallery-card,
.project-card {
    padding: 0;
}

.feature-link {
    margin-top: auto;
}

.gallery-card-media img,
.project-card-media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-card-body,
.project-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-hero {
    padding-bottom: 20px;
}

.gallery-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-active {
    background: var(--accent);
    color: #fff;
}

.chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    font-size: 0.76rem;
}

.gallery-category-card .text-link {
    margin-top: auto;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(47, 61, 76, 0.08);
    color: var(--deep);
    font-size: 0.84rem;
    font-weight: 700;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-card,
.stat-block {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px 20px;
}

.stat-card strong,
.stat-block strong {
    display: block;
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.contact-grid,
.admin-grid {
    align-items: start;
}

.info-card,
.form-card {
    background: var(--panel-strong);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--deep);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(47, 61, 76, 0.14);
    border-radius: 18px;
    padding: 14px 16px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

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

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

.alert {
    margin: 0;
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 700;
}

.alert-success {
    background: rgba(43, 122, 75, 0.1);
    color: var(--success);
}

.alert-error {
    background: rgba(181, 60, 47, 0.1);
    color: var(--error);
}

.site-footer {
    margin-top: 64px;
    background: var(--deep);
    color: rgba(255, 255, 255, 0.84);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 0;
}

.footer-copy {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.58);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.74);
}

.auth-shell {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.auth-card {
    width: min(520px, 100%);
    padding: 32px;
    border-radius: 28px;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.admin-page {
    padding: 48px 0 72px;
}

.admin-section-card {
    background: rgba(255, 255, 255, 0.78);
}

.admin-section-title {
    margin: 0;
    font-size: 1.35rem;
}

.admin-disclosure {
    overflow: hidden;
}

.admin-disclosure-summary {
    list-style: none;
    cursor: pointer;
}

.admin-disclosure-summary::-webkit-details-marker {
    display: none;
}

.admin-disclosure summary + * {
    margin-top: 18px;
}

.admin-thumb {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.report-photo-wrap,
.thumbnail-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.report-photo {
    width: 100%;
    max-width: 380px;
    height: auto;
}

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

.thumbnail-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 960px) {
    .hero-grid,
    .contact-grid,
    .project-detail-grid,
    .split-grid,
    .admin-grid,
    .story-grid,
    .card-grid-2,
    .card-grid-3,
    .stat-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .site-header-inner,
    .admin-header-inner,
    .section-head,
    .admin-page-head,
    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-nav {
        gap: 12px;
    }

    .site-header-inner {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .site-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-header .button-small {
        display: none;
    }

    .site-nav-wrap {
        order: 3;
        width: 100%;
        display: none;
        padding-top: 2px;
    }

    .site-nav-wrap.is-open {
        display: block;
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--shadow);
    }

    .site-nav > a,
    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 13px 14px;
        border-radius: 18px;
    }

    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .nav-dropdown-panel {
        position: static;
        min-width: 0;
        margin-top: 6px;
        padding: 8px;
        border-radius: 18px;
        background: rgba(47, 61, 76, 0.04);
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 28px;
    }

    .container {
        width: min(100% - 20px, 1180px);
    }

    .section {
        padding: 56px 0;
    }

    .card,
    .auth-card,
    .sub-card {
        padding: 20px;
    }

    .gallery-card-body,
    .project-card-body {
        padding: 18px;
    }

    .hero-panel,
    .hero-slides {
        min-height: 300px;
    }

    .hero-actions,
    .hero-stats {
        flex-direction: column;
    }

    .site-header-inner,
    .admin-header-inner {
        min-height: 72px;
        padding: 10px 0;
    }
}
