:root {
    --bg: #0e0d0b;
    --panel: #171411;
    --panel-soft: #211c17;
    --text: #f3eee6;
    --muted: #a79d8f;
    --gold: #c7a266;
    --moss: #63705b;
    --wine: #4b2424;
    --line: rgba(243, 238, 230, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

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

.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg);
    display: grid;
    place-items: center;
    transition: opacity .45s ease, visibility .45s ease;
}

.preloader span {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-nav {
    padding: 22px 0;
    background: linear-gradient(to bottom, rgba(14, 13, 11, .82), rgba(14, 13, 11, 0));
    transition: background .3s ease, padding .3s ease;
}

.site-nav.scrolled {
    padding: 12px 0;
    background: rgba(14, 13, 11, .95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.navbar-brand {
    color: var(--text);
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.logo-brand img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
}

.admin-logo-brand img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
}

.navbar-brand:hover,
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--gold);
}

.site-nav .nav-link {
    color: var(--text);
    margin-left: 26px;
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: .12rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 24px;
}

.lang-link {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .08rem;
}

.lang-link.active,
.lang-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.navbar-toggler {
    border-color: var(--line);
}

.hero-slider,
.hero-slider .carousel-item {
    height: 100vh;
    min-height: 680px;
}

.hero-slider img,
.page-hero,
.project-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.hero-overlay,
.page-hero::before,
.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 13, 11, .82), rgba(14, 13, 11, .18)),
        linear-gradient(0deg, rgba(14, 13, 11, .8), rgba(14, 13, 11, .08) 45%);
}

.hero-slider .hero-overlay {
    background: transparent;
}

.carousel-caption {
    left: 7vw;
    right: auto;
    bottom: 17vh;
    max-width: 820px;
    text-align: left;
}

.carousel-caption h1,
.page-hero h1,
.project-hero h1,
.compact-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.4rem, 8vw, 8.7rem);
    line-height: .94;
    font-weight: 400;
}

.carousel-caption h1 {
    font-size: 72px;
    line-height: 1.15;
}

.hero-slider .carousel-item img {
    filter: none;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .18rem;
    font-size: .75rem;
    margin-bottom: 18px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    margin-top: 28px;
    text-transform: uppercase;
    letter-spacing: .12rem;
    font-size: .76rem;
}

.link-arrow:hover {
    color: var(--gold);
    transform: translateX(6px);
}

.carousel-control-prev,
.carousel-control-next {
    width: 64px;
    height: 64px;
    top: auto;
    bottom: 42px;
    border: 1px solid var(--line);
    color: var(--text);
    opacity: 1;
}

.carousel-control-prev {
    left: auto;
    right: 118px;
}

.carousel-control-next {
    right: 42px;
}

.section {
    padding: 110px 0;
}

.intro-section {
    background: linear-gradient(135deg, var(--panel), var(--bg) 55%, var(--wine));
}

.section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 4.5rem);
    line-height: 1.02;
    font-weight: 400;
}

.lead-text,
.rich-text {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.9;
}

.projects-band {
    background: var(--bg);
}

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

.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 430px;
    background: var(--panel-soft);
}

.project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(14, 13, 11, .9), rgba(14, 13, 11, .1) 60%);
}

.project-card span,
.project-card h3 {
    position: absolute;
    z-index: 1;
    left: 28px;
    right: 28px;
}

.project-card span {
    bottom: 92px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .14rem;
    font-size: .72rem;
}

.project-card h3 {
    bottom: 30px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.project-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.05);
}

.page-shell {
    padding-top: 0;
}

.page-hero,
.project-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: end;
    padding: 180px 0 90px;
}

.page-hero .container,
.project-hero .container {
    position: relative;
    z-index: 1;
}

.compact-hero {
    padding: 190px 0 80px;
    background: linear-gradient(135deg, var(--panel-soft), var(--bg) 60%, var(--moss));
}

.project-detail dl {
    border-left: 1px solid var(--gold);
    padding-left: 28px;
}

.project-detail dt {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .14rem;
    font-size: .72rem;
}

.project-detail dd {
    margin-bottom: 24px;
    color: var(--text);
}

.project-video-section,
.project-gallery-section {
    padding-top: 0;
}

.project-video {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
}

.project-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--panel-soft);
    cursor: pointer;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.gallery-tile:hover img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.05);
}

.gallery-modal .modal-content {
    background: rgba(14, 13, 11, .98);
}

.gallery-modal .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7vh 8vw;
}

.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.gallery-modal .carousel-control-prev {
    left: 28px;
    right: auto;
}

.gallery-modal .carousel-control-next {
    right: 28px;
}

.gallery-close {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 3;
    filter: invert(1);
    opacity: .9;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-location {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 14px;
}

.contact-phone {
    margin-bottom: 8px;
}

.contact-map-link {
    position: relative;
    display: block;
    width: min(360px, 100%);
    aspect-ratio: 4 / 3;
    margin-top: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
    overflow: hidden;
}

.contact-map-link iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(.85) invert(.9) contrast(.9);
    pointer-events: none;
}

.contact-map-link span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(14, 13, 11, .82);
    color: var(--gold);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08rem;
}

.form-control {
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    padding: 14px 16px;
}

.form-control:focus {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    border-color: var(--gold);
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(243, 238, 230, .5);
}

.btn-gold {
    border: 1px solid var(--gold);
    border-radius: 0;
    color: #171411;
    background: var(--gold);
    padding: 13px 24px;
    text-transform: uppercase;
    letter-spacing: .1rem;
    font-size: .78rem;
}

.btn-gold:hover {
    color: var(--text);
    background: transparent;
    border-color: var(--gold);
}

.site-footer {
    padding: 86px 0 34px;
    background: var(--panel);
    border-top: 1px solid var(--line);
}

.site-footer h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 5vw, 5.5rem);
}

.footer-logo {
    width: min(420px, 100%);
    height: auto;
    margin-top: 4px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--muted);
}

.site-footer a:hover,
.socials a:hover {
    color: var(--gold);
}

.socials {
    display: flex;
    gap: 16px;
    font-size: 1.2rem;
}

.footer-bottom {
    margin-top: 54px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
}

.reveal-up,
.reveal-card {
    opacity: 0;
    transform: translateY(28px);
}

.in-view {
    animation: reveal .7s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-screen,
.admin-body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(199, 162, 102, .15), transparent 28%), var(--bg);
    color: var(--text);
}

.login-screen {
    display: grid;
    place-items: center;
}

.login-card,
.admin-form,
.admin-panel,
.admin-table {
    background: rgba(23, 20, 17, .92);
    border: 1px solid var(--line);
}

.login-card {
    width: min(420px, calc(100vw - 30px));
    padding: 34px;
}

.login-card h1,
.admin-form h2 {
    font-family: Georgia, "Times New Roman", serif;
    margin-bottom: 24px;
}

.login-logo {
    width: min(270px, 100%);
    height: auto;
    margin: 0 auto 24px;
}

.login-card .form-control {
    margin-bottom: 14px;
}

.admin-nav {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 96px);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: calc(100vh - 96px);
    padding: 24px 18px;
    background: rgba(23, 20, 17, .96);
    border-right: 1px solid var(--line);
}

.admin-sidebar a {
    display: block;
    padding: 13px 14px;
    margin-bottom: 6px;
    color: var(--muted);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: .08rem;
    font-size: .76rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: var(--gold);
    border-color: var(--line);
    background: rgba(255, 255, 255, .035);
}

.admin-content {
    min-width: 0;
    padding: 32px;
}

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

.admin-panel {
    padding: 26px;
}

.admin-panel span {
    color: var(--muted);
}

.admin-panel strong {
    display: block;
    font-size: 2.7rem;
    color: var(--gold);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-form {
    padding: 26px;
}

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

.admin-form label {
    color: var(--muted);
    margin-top: 14px;
    margin-bottom: 7px;
}

.translation-block {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
}

.translation-block h2,
.translation-block h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--gold);
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 6px;
}

.upload-note {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(199, 162, 102, .45);
    background: rgba(199, 162, 102, .08);
    color: var(--muted);
}

.upload-note strong {
    display: block;
    color: var(--gold);
    margin-bottom: 8px;
}

.upload-note p {
    margin: 0 0 5px;
    font-size: .9rem;
}


.admin-gallery-item {
    display: block;
    border: 1px solid var(--line);
    padding: 8px;
    color: var(--muted);
}

.admin-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 8px;
}

.admin-map-picker {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
}

.admin-map-picker h3 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--gold);
}

.admin-map-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    margin-top: 16px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--panel);
}

.admin-map-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.admin-table {
    padding: 12px;
}

.note-editor.note-frame {
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255, 255, 255, .04);
    color: #171411;
}

.note-editor .note-toolbar {
    background: #f3eee6;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.note-editor .note-editable {
    min-height: 220px;
    background: #fff;
    color: #171411;
    line-height: 1.65;
}

.note-editor .dropdown-toggle::after {
    display: none;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--line);
}

@media (max-width: 991px) {
    .site-nav {
        background: rgba(14, 13, 11, .96);
    }

    .site-nav .nav-link {
        margin-left: 0;
        padding: 12px 0;
    }

    .language-switcher {
        margin-left: 0;
        padding: 12px 0;
    }

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

    .hero-slider,
    .hero-slider .carousel-item {
        min-height: 620px;
    }

    .carousel-caption {
        left: 24px;
        right: 24px;
        bottom: 120px;
    }

    .section {
        padding: 76px 0;
    }

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

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

    .admin-sidebar {
        position: static;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .admin-sidebar a {
        margin-bottom: 0;
    }

    .admin-content {
        padding: 22px 14px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1,
    .page-hero h1,
    .project-hero h1,
    .compact-hero h1 {
        font-size: 3rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 52px;
        height: 52px;
    }

    .carousel-control-prev {
        right: 84px;
    }

    .carousel-control-next {
        right: 22px;
    }

    .project-card {
        min-height: 360px;
    }
}
