* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.publisher-page {
    min-height: 100vh;
    background: #111;
}

.publisher-shell {
    width: min(900px, calc(100% - 60px));
    margin: 0 auto;
    padding: 70px 0 100px;
}

.publisher-header {
    border-bottom: 1px solid #333;
    padding-bottom: 45px;
}

.publisher-header h1 {
    max-width: 700px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    margin: 25px 0;
}

.publisher-header p,
.publisher-note {
    max-width: 650px;
    color: #aaa;
    font-size: 17px;
    line-height: 1.7;
}

.publisher-form {
    display: grid;
    gap: 25px;
    padding-top: 45px;
}

.publisher-form label {
    display: grid;
    gap: 10px;
    color: #ccc;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.publisher-form input,
.publisher-form textarea,
.publisher-form select {
    width: 100%;
    border: 1px solid #444;
    border-radius: 4px;
    background: #0a0a0a;
    color: #fff;
    padding: 16px;
    font: inherit;
    text-transform: none;
}

.publisher-form input[type="file"] {
    padding: 12px;
}

.publisher-form input:focus,
.publisher-form textarea:focus,
.publisher-form select:focus {
    outline: 1px solid #fff;
    border-color: #fff;
}

.publisher-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.publish-button {
    justify-self: start;
    border: 0;
    padding: 16px 30px;
    background: #fff;
    color: #000;
    border-radius: 3px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.publish-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.publish-status {
    min-height: 24px;
    color: #c9e7c9;
}

.publisher-note {
    margin-top: 50px;
    border-top: 1px solid #333;
    padding-top: 25px;
    font-size: 14px;
}

.publisher-library {
    margin-top: 80px;
    border-top: 1px solid #333;
    padding-top: 40px;
}

.publisher-library h2 {
    font-size: clamp(32px, 5vw, 52px);
    margin: 18px 0 30px;
}

.photo-library {
    display: grid;
    gap: 16px;
}

.library-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 12px;
    border: 1px solid #333;
    background: #0a0a0a;
}

.library-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
}

.library-item strong,
.library-item span {
    display: block;
}

.library-item span {
    margin-top: 6px;
    color: #888;
    font-size: 13px;
}

.replace-button,
.delete-button {
    border: 1px solid #555;
    padding: 10px 14px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.replace-button input {
    display: none;
}

.delete-button:hover,
.replace-button:hover {
    border-color: #fff;
}

@media (max-width: 600px) {
    .publisher-shell {
        width: min(100% - 40px, 900px);
        padding-top: 40px;
    }

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

    .library-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .library-item img {
        width: 64px;
        height: 64px;
    }

    .replace-button,
    .delete-button {
        grid-row: 2;
    }

    .replace-button {
        grid-column: 1 / 2;
    }

    .delete-button {
        grid-column: 2 / 3;
        justify-self: start;
    }
}

/* Studio and editorial pages */
.studio-intro {
    max-width: 1000px;
    margin: 0 auto;
    padding: 150px 60px 130px;
}

.intro-kicker,
.project-number,
.project-tools,
.article-meta,
.journal-meta {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
}

.studio-intro h2,
.feature-copy h2,
.page-hero h1,
.inner-cta h2 {
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.05;
    margin: 25px 0;
}

.studio-intro p,
.feature-copy p,
.page-hero p {
    max-width: 650px;
    color: #bbb;
    font-size: 19px;
    line-height: 1.8;
}

.text-link {
    display: inline-block;
    margin-top: 30px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #888;
    padding-bottom: 8px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.text-link:hover {
    color: #ccc;
    border-color: #fff;
}

.architecture-preview {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 80px;
    padding: 100px 60px 150px;
    background: #151515;
}

.feature-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.feature-copy p {
    font-size: 17px;
}

.journal-preview {
    padding: 150px 60px;
    background: #0a0a0a;
}

.compact-header {
    margin-bottom: 70px;
}

.compact-header h2 {
    margin-top: 20px;
}

.journal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.journal-card {
    color: #fff;
    text-decoration: none;
}

.journal-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(25%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.journal-card:hover img {
    filter: grayscale(0);
    transform: translateY(-6px);
}

.journal-meta {
    display: block;
    margin-top: 20px;
    color: #888;
}

.journal-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 1.2;
    margin-top: 12px;
}

.journal-all-link {
    display: block;
    width: fit-content;
    margin: 65px auto 0;
}

.inner-page {
    background: #0a0a0a;
}

.inner-page nav {
    position: sticky;
}

.nav-wordmark {
    color: #fff;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-decoration: none;
}

.page-hero {
    max-width: 1100px;
    padding: 150px 60px 100px;
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 850px;
}

.project-list {
    display: grid;
    gap: 120px;
    padding: 0 60px 150px;
}

.project-feature {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 70px;
}

.project-feature-reverse {
    grid-template-columns: 0.65fr 1.35fr;
}

.project-feature-reverse img {
    order: 2;
}

.project-feature img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-copy h2 {
    font-size: 48px;
    margin: 20px 0;
}

.project-copy p {
    color: #bbb;
    line-height: 1.8;
    font-size: 17px;
}

.project-tools {
    display: block;
    margin-top: 25px;
    line-height: 1.8;
}

.inner-cta {
    padding: 120px 60px 150px;
    text-align: center;
    background: #151515;
}

.inner-cta h2 {
    max-width: 700px;
    margin: 25px auto;
}

.journal-heading {
    padding-bottom: 80px;
}

.article-list {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 30px 150px;
}

.journal-article {
    padding: 80px 0;
    border-top: 1px solid #333;
    scroll-margin-top: 100px;
}

.journal-article h2 {
    font-size: 48px;
    line-height: 1.1;
    margin: 20px 0 30px;
}

.journal-article p {
    color: #bbb;
    font-size: 18px;
    line-height: 1.9;
    margin-top: 25px;
}

.journal-article .article-lead {
    color: #fff;
    font-size: 22px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-text {
        min-width: 0;
    }

    .studio-intro,
    .architecture-preview,
    .journal-preview,
    .page-hero,
    .project-list,
    .inner-cta {
        padding-left: 30px;
        padding-right: 30px;
    }

    .studio-intro {
        padding-top: 100px;
        padding-bottom: 90px;
    }

    .architecture-preview,
    .project-feature,
    .project-feature-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-feature-reverse img {
        order: 0;
    }

    .journal-cards {
        grid-template-columns: 1fr;
    }

    .journal-article h2,
    .project-copy h2 {
        font-size: 36px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, .hero-title {
    font-family: 'Playfair Display', serif;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.preloader-content {
    text-align: center;
}

.logo-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    animation: logoSpin 2s ease-out;
}

.logo-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(1);
}

@keyframes logoSpin {
    from {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.loading-text h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

.loading-text p {
    font-size: 16px;
    letter-spacing: 12px;
    color: #888;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-bar {
    width: 300px;
    height: 2px;
    background: #222;
    margin: 50px auto 0;
    position: relative;
    overflow: hidden;
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    width: 0%;
    animation: loadProgress 2.5s ease-out forwards;
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 15px 60px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-dropdown-toggle:hover::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: 0;
    padding: 0;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
}

.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding: 14px 0;
    background: rgba(12, 12, 12, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
}

.nav-dropdown-menu a {
    padding: 10px 22px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Container for the new architecture button */
.nav-architecture-container {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

/* The new distinct Architecture button */
.nav-architecture-btn {
    background-color: #fff;
    color: #000 !important;
    padding: 8px 24px;
    border-radius: 4px;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-architecture-btn::after {
    display: none !important;
}

.nav-architecture-btn:hover {
    background-color: #ccc;
    color: #000 !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto; /* این خط اضافه شده تا دکمه‌ها را به راست هل دهد */
}

.lang-switch {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: #fff;
    color: #000;
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    border: 0;
    background: transparent;
}

.nav-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu-btn span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 96px;
    font-weight: 900;
    letter-spacing: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideUp 1.2s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 5px;
    opacity: 0;
    animation: slideUp 1.2s ease-out 0.6s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Categories */
.categories {
    padding: 150px 60px;
    background: #0a0a0a;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-header h2 {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: #888;
    letter-spacing: 3px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover img {
    transform: scale(1.15);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay h3 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 5px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.category-card:hover .category-overlay h3 {
    transform: translateY(0);
}

/* Gallery */
.gallery {
    padding: 150px 60px;
    background: #111;
}

/* Photo Sets (Grouped Photos) */
.gallery-sets {
    margin-bottom: 60px;
}

.photo-set {
    margin-bottom: 110px;
    padding: 0 0 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.photo-set-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.photo-set-kicker {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.photo-set-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.photo-set-subtitle {
    color: #888;
    font-size: 15px;
}

.photo-set-count {
    color: #777;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.photo-set-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.photo-set-item {
    position: relative;
    display: grid;
    gap: 12px;
    cursor: pointer;
}

.photo-set-frame {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.photo-set-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.photo-set-item:hover img {
    transform: scale(1.04);
}

.photo-set-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
}

.photo-set-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-set-item:hover .photo-set-overlay {
    opacity: 1;
}

/* Regular Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

.gallery-overlay p {
    font-size: 16px;
    color: #888;
    letter-spacing: 2px;
    transform: translateY(30px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* About */
.about {
    padding: 150px 60px;
    background: #0a0a0a;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-text h2 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: 5px;
}

.about-bio {
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
    white-space: pre-line;
}

.skills {
    margin: 40px 0;
}

.skills h3 {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    font-size: 14px;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.social-link {
    padding: 18px 40px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #888;
    transform: translateY(-5px);
}

/* Contact */
.contact {
    padding: 150px 60px;
    background: #111;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #888;
    letter-spacing: 2px;
}

.contact-item p {
    font-size: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.submit-btn {
    padding: 25px 80px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.submit-btn:hover {
    background: #888;
    transform: translateY(-5px);
}

.submit-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    text-align: center;
    min-height: 1.4em;
    color: #c9a3a3;
    letter-spacing: 1px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
}

.form-success p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    overflow-y: auto;
    padding: 60px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 36px;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 36px;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.modal.active .modal-nav {
    opacity: 1;
}

.modal-prev {
    left: 40px;
}

.modal-next {
    right: 40px;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.2);
}

.modal-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    max-width: 1600px;
    width: 100%;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    animation: modalIn 0.6s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
}

.modal-image img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.back-link {
    color: #aaa;
    text-decoration: none;
}

.back-link:hover {
    color: #fff;
}

.category-gallery {
    padding-top: 0;
}

.modal-info {
    padding: 60px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 50px;
    letter-spacing: 3px;
}

.info-section {
    margin-bottom: 50px;
}

.info-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 3px;
    color: #888;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-label {
    color: #888;
    font-size: 16px;
}

.info-value {
    font-weight: 500;
    font-size: 16px;
}

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

.tag {
    padding: 10px 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 50px 60px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

footer p {
    color: #666;
    font-size: 16px;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 72px;
    }

    .section-header h2 {
        font-size: 48px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .photo-set-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px 30px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 25px 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        background: rgba(10, 10, 10, 0.98);
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        left: 0;
        min-width: 0;
        margin-top: 10px;
        padding: 4px 0 4px 8px;
        background: transparent;
        border: 0;
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: grid;
    }

    .nav-architecture {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        padding-top: 8px;
    }

    .nav-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .categories,
    .gallery,
    .about,
    .contact {
        padding: 100px 30px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .about-text h2 {
        font-size: 42px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 30px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .modal-nav {
        display: none;
    }

    .modal-info {
        padding: 40px;
        max-height: none;
    }

    .modal-title {
        font-size: 32px;
    }
}

@media (max-width: 560px) {
    .photo-set-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .photo-set-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Editorial project grouping */
.category-page .gallery {
    padding-top: 90px;
}

.category-page .photo-set {
    position: relative;
    margin-bottom: 120px;
    padding: 30px 0 54px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-page .photo-set::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 72px;
    height: 2px;
    background: #fff;
}

.category-page .photo-set-header {
    margin-bottom: 34px;
}

.category-page .photo-set-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 0;
}

.category-page .photo-set-grid {
    gap: clamp(8px, 1.2vw, 18px);
}

.category-page .photo-set-frame {
    background: #0a0a0a;
}

.category-page .photo-set-caption {
    padding-top: 2px;
    color: #8d8d8d;
}

.gallery-empty {
    min-height: 340px;
    display: grid;
    place-content: center;
    gap: 12px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gallery-empty span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
}

.gallery-empty p {
    color: #888;
}

/* Branded Formspree feedback */
.form-success {
    position: relative;
    overflow: hidden;
}

.form-success::before {
    content: '';
    display: block;
    width: 42px;
    height: 1px;
    margin: 0 auto 24px;
    background: rgba(255,255,255,0.65);
}

.form-success-kicker,
.form-success-note {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 10px;
    color: #888;
}

.form-success p {
    margin: 14px auto;
    max-width: 24ch;
}

@media (max-width: 700px) {
    .category-page .photo-set {
        margin-bottom: 80px;
        padding-top: 24px;
    }

    .category-page .photo-set-header {
        align-items: flex-start;
    }

    .category-page .photo-set-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .category-page .photo-set-frame {
        aspect-ratio: 4 / 5;
    }
}


/* Navigation stability + dropdown behavior */
#navbar {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto auto;
    gap: clamp(16px, 2.2vw, 34px);
    align-items: center;
    padding: 20px clamp(24px, 4vw, 60px);
}

#navbar.scrolled {
    padding: 14px clamp(24px, 4vw, 60px);
}

.nav-brand {
    width: 120px;
    min-width: 120px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-brand img {
    display: block;
    width: 108px;
    max-width: 100%;
    height: auto;
    filter: invert(1);
}

.nav-links {
    justify-content: center;
    gap: clamp(18px, 2.3vw, 34px);
    min-width: 0;
}

.nav-dropdown {
    position: relative;
    padding: 12px 0;
    margin: -12px 0;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    height: 20px;
}

.nav-dropdown-menu {
    top: calc(100% + 16px);
}

.nav-architecture-container {
    margin-left: 0;
}

.nav-right {
    margin-left: 0;
}

@media (max-width: 1120px) {
    #navbar {
        grid-template-columns: 108px minmax(0, 1fr) auto auto;
        gap: 14px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-brand {
        width: 108px;
        min-width: 108px;
    }

    .nav-brand img {
        width: 96px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        font-size: 13px;
    }

    .nav-architecture-btn {
        padding: 8px 14px;
        letter-spacing: 1.4px;
    }
}

@media (max-width: 920px) {
    #navbar,
    #navbar.scrolled {
        grid-template-columns: 108px 1fr auto;
        padding: 16px 20px;
    }

    .nav-links {
        position: fixed;
        inset: 73px 0 auto 0;
        display: none;
        background: rgba(10, 10, 10, 0.985);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 24px 20px 32px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 73px);
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a,
    .nav-dropdown-toggle {
        width: 100%;
        padding: 14px 0;
        text-align: left;
        font-size: 14px;
    }

    .nav-dropdown {
        padding: 0;
        margin: 0;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: 0;
        padding: 0 0 8px 16px;
        border: 0;
        background: transparent;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: grid;
    }

    .nav-dropdown-menu a {
        padding: 11px 0;
    }

    .nav-architecture-container {
        justify-self: end;
    }

    .nav-architecture-btn {
        font-size: 11px;
        padding: 7px 10px;
        letter-spacing: 1.2px;
    }

    .nav-right {
        justify-self: end;
        gap: 12px;
    }

    .nav-menu-btn {
        display: flex;
    }

    .lang-switch {
        padding: 7px 10px;
        font-size: 12px;
    }
}

@media (max-width: 560px) {
    #navbar,
    #navbar.scrolled {
        grid-template-columns: 78px 1fr auto;
        gap: 8px;
        padding: 14px 14px;
    }

    .nav-brand,
    .nav-brand img {
        width: 76px;
        min-width: 76px;
    }

    .nav-architecture-container {
        display: none;
    }

    .nav-links {
        inset: 62px 0 auto 0;
        max-height: calc(100vh - 62px);
    }
}

/* Journal cards + article pages */
.journal-grid {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 120px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.journal-entry-card {
    display: grid;
    grid-template-rows: auto 1fr;
    color: #fff;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 14px;
}

.journal-entry-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 20px;
}

.journal-entry-card h2 {
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.14;
    margin: 10px 0 12px;
}

.journal-entry-card p {
    color: #aaa;
    line-height: 1.7;
}

.article-page-main {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
    padding: 150px 0 120px;
}

.article-page-main .article-kicker {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
}

.article-page-main h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.04;
    margin: 22px 0 28px;
}

.article-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 28px 0 42px;
}

.article-body {
    width: min(720px, 100%);
}

.article-body p {
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.85;
    color: #d0d0d0;
}

.article-source-note {
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.16);
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

.article-source-note a {
    color: #fff;
}

@media (max-width: 820px) {
    .journal-grid {
        grid-template-columns: 1fr;
        width: min(100% - 36px, 620px);
    }
}

/* Architecture preloader */
.arch-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #efe8dc;
    color: #1c1914;
    transition: opacity .55s ease, visibility .55s ease;
}

.arch-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.arch-preloader-inner {
    width: min(640px, calc(100% - 48px));
    text-align: center;
}

.arch-preloader-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 500;
    line-height: 1;
}

.arch-preloader-practice {
    margin-top: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    letter-spacing: .42em;
    text-transform: uppercase;
}

.arch-preloader-bar {
    height: 1px;
    margin-top: 34px;
    background: rgba(28,25,20,.18);
    overflow: hidden;
}

.arch-preloader-progress {
    width: 0;
    height: 100%;
    background: #1c1914;
    animation: archLoad 1.7s ease-out forwards;
}

@keyframes archLoad {
    to { width: 100%; }
}

.protected-download {
    display: inline-flex;
    margin-top: 18px;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.protected-download:hover {
    border-color: #fff;
}


/* v4 refinements */
:root {
    --header-inline: clamp(18px, 3vw, 48px);
}

#navbar {
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    column-gap: clamp(14px, 2vw, 28px);
    padding-inline: var(--header-inline);
}

.nav-brand,
.nav-brand img {
    width: 54px;
    min-width: 54px;
}

.nav-links {
    justify-self: center;
    justify-content: center;
}

@media (max-width: 1120px) {
    #navbar {
        grid-template-columns: 58px minmax(0, 1fr) auto auto;
    }

    .nav-brand,
    .nav-brand img {
        width: 48px;
        min-width: 48px;
    }
}

@media (max-width: 920px) {
    #navbar,
    #navbar.scrolled {
        grid-template-columns: 52px 1fr auto;
    }

    .nav-brand,
    .nav-brand img {
        width: 44px;
        min-width: 44px;
    }
}

@media (max-width: 560px) {
    #navbar,
    #navbar.scrolled {
        grid-template-columns: 44px 1fr auto;
    }

    .nav-brand,
    .nav-brand img {
        width: 40px;
        min-width: 40px;
    }
}

.reveal-motion {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}

.reveal-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-motion {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 28px 0 80px;
}

.load-more-button {
    border: 1px solid rgba(255,255,255,.32);
    background: transparent;
    color: #fff;
    padding: 13px 24px;
    font: inherit;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.load-more-button:hover {
    background: #fff;
    color: #111;
}

.project-card-grid {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 40px;
}

.project-card {
    display: block;
    color: #fff;
    text-decoration: none;
}

.project-card-media {
    overflow: hidden;
    background: #181818;
}

.project-card-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.project-card:hover img {
    transform: scale(1.025);
}

.project-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding-top: 16px;
}

.project-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 400;
}

.project-card small {
    color: #8d8d8d;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .project-card-grid {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 1240px);
        gap: 28px;
    }
}

.project-page-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 120px 0 130px;
}

.project-page-header {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 72px;
    padding-bottom: 70px;
    border-bottom: 1px solid #2d2d2d;
}

.project-page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(44px, 7vw, 88px);
    line-height: .98;
    font-weight: 400;
}

.project-story {
    color: #b7b7b7;
    font-size: 18px;
    line-height: 1.8;
}

.project-image-list {
    display: grid;
    gap: 70px;
    padding-top: 80px;
}

.project-image-button {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    color: inherit;
    cursor: zoom-in;
}

.project-image-button img {
    display: block;
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    background: #111;
}

.project-image-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 12px;
    color: #919191;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .project-page-main {
        width: min(100% - 30px, 1180px);
        padding-top: 90px;
    }
    .project-page-header {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    padding: 44px clamp(24px, 5vw, 72px);
    text-align: left;
}

.footer-identity {
    display: grid;
    gap: 8px;
}

.footer-identity strong {
    color: #e8e8e8;
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.footer-identity span {
    color: #747474;
    font-size: 13px;
    letter-spacing: .08em;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    justify-content: flex-end;
}

.footer-social a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: .08em;
}

.footer-social a:hover {
    color: #fff;
}

@media (max-width: 700px) {
    .site-footer {
        align-items: start;
        flex-direction: column;
    }
    .footer-social {
        justify-content: flex-start;
    }
}

.video-filter {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 44px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.video-filter button {
    border: 1px solid #353535;
    background: transparent;
    color: #aaa;
    padding: 10px 15px;
    cursor: pointer;
    font: inherit;
}

.video-filter button.active,
.video-filter button:hover {
    border-color: #fff;
    color: #fff;
}

.video-grid {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding-bottom: 80px;
}

.video-card {
    background: #111;
    border: 1px solid #222;
}

.video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-card-copy {
    padding: 18px;
}

.video-card-copy p {
    margin-top: 8px;
    color: #888;
}

@media (max-width: 760px) {
    .video-grid { grid-template-columns: 1fr; }
}

/* TV / 10-foot UI */
@media (min-width: 1600px) and (min-height: 800px) {
    #navbar {
        min-height: 84px;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        font-size: 16px;
    }

    .page-hero {
        max-width: 1240px;
    }
}

.project-photo-dialog{width:min(620px,calc(100% - 32px));border:1px solid #333;background:#0d0d0d;color:#fff;padding:34px;max-height:85vh}
.project-photo-dialog::backdrop{background:rgba(0,0,0,.86)}
.project-photo-dialog>button{position:absolute;right:18px;top:14px;background:0;border:0;color:#fff;font-size:28px;cursor:pointer}
.project-photo-dialog h2{font-family:'Playfair Display',serif;font-size:34px;margin-bottom:22px}
.project-photo-dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.project-photo-dialog dt{color:#777;font-size:11px;text-transform:uppercase;letter-spacing:.12em}.project-photo-dialog dd{margin:4px 0 0}.project-photo-dialog p{margin-top:24px;color:#aaa;line-height:1.7}

.article-full-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 36px;margin:40px 0 55px;padding:24px 0;border-top:1px solid #333;border-bottom:1px solid #333}
.article-full-meta>div{display:grid;gap:6px}.article-full-meta span{color:#777;font-size:11px;letter-spacing:.12em;text-transform:uppercase}.article-full-meta strong{font-weight:400;color:#ddd}.article-meta-tags{display:flex;gap:7px;flex-wrap:wrap}.article-meta-tags span{border:1px solid #333;padding:5px 8px;color:#aaa}
.journal-card-tags{display:block;margin-top:14px;color:#777;letter-spacing:.08em}
@media(max-width:640px){.article-full-meta{grid-template-columns:1fr}}

.footer-social a{display:inline-flex;align-items:center;gap:8px}
.social-mark{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid currentColor;border-radius:50%;font-size:12px;line-height:1}
.social-linkedin{border-radius:3px;font-weight:700;font-family:Arial,sans-serif}

@media (min-width: 1121px) {
    #navbar { position: relative; }
    #navbar .nav-links {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}


/* ==========================================
   V5 — Luxury project system + mobile polish
   ========================================== */

:root {
    --v5-page-pad: clamp(22px, 4vw, 72px);
    --v5-border: rgba(255, 255, 255, 0.12);
    --v5-muted: rgba(255, 255, 255, 0.58);
}

.category-page main,
.project-detail-page main {
    overflow: clip;
}

.project-card-grid {
    gap: clamp(26px, 4vw, 56px);
}

.project-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card-media {
    overflow: hidden;
    background: #111;
}

.project-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 400ms ease;
}

.project-card:hover .project-card-media img {
    transform: scale(1.018);
}

.project-card-meta {
    align-items: start;
    gap: 18px;
    padding-top: 14px;
}

.project-card-meta h2 {
    margin: 0;
    font-size: clamp(16px, 1.5vw, 23px);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.project-card-meta p {
    margin: 5px 0 0;
    color: var(--v5-muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-card-meta small {
    color: var(--v5-muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: .08em;
    white-space: nowrap;
}

.project-page-main {
    width: min(1480px, calc(100% - (var(--v5-page-pad) * 2)));
    margin: 0 auto;
    padding-top: clamp(120px, 13vw, 190px);
    padding-bottom: 100px;
}

.project-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(40px, 8vw, 130px);
    align-items: end;
    padding: clamp(44px, 6vw, 90px) 0;
    border-bottom: 1px solid var(--v5-border);
}

.project-page-header h1 {
    margin: 12px 0 0;
    max-width: 900px;
    font-size: clamp(46px, 7vw, 108px);
    line-height: .94;
    letter-spacing: -.045em;
    font-weight: 400;
}

.project-story {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: clamp(15px, 1.5vw, 19px);
    line-height: 1.75;
}

.project-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 26px;
    color: var(--v5-muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-image-list {
    display: grid;
    gap: clamp(34px, 7vw, 110px);
    padding-top: clamp(52px, 8vw, 120px);
}

.project-image-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: zoom-in;
}

.project-image-button img {
    display: block;
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    object-position: center;
    background: #090909;
}

.project-image-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 10px;
    color: var(--v5-muted);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.empty-projects {
    color: var(--v5-muted);
    padding: 30px 0;
}

.project-photo-dialog {
    width: min(600px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: #101010;
    color: #fff;
    padding: 28px;
}

.project-photo-dialog::backdrop {
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(8px);
}

.project-photo-dialog > button {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.project-photo-dialog dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px 24px;
    margin: 24px 0;
}

.project-photo-dialog dt {
    color: var(--v5-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.project-photo-dialog dd {
    margin: 4px 0 0;
    font-size: 13px;
}

@media (max-width: 1100px) {
    #navbar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-links {
        gap: clamp(18px, 2.4vw, 30px);
    }

    .nav-links a,
    .nav-dropdown-toggle {
        font-size: 12px;
    }

    .nav-brand img {
        max-width: 76px;
        height: auto;
    }

    .project-page-header {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
    }
}

@media (max-width: 820px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    #navbar {
        min-height: 72px;
        padding:
            max(12px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            12px
            max(16px, env(safe-area-inset-left));
    }

    .nav-brand {
        position: relative;
        z-index: 140;
        flex: 0 0 auto;
    }

    .nav-brand img {
        width: 62px;
        max-width: 62px;
    }

    .nav-right {
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        z-index: 130;
        width: 100%;
        height: 100dvh;
        padding:
            calc(94px + env(safe-area-inset-top))
            max(22px, env(safe-area-inset-right))
            calc(34px + env(safe-area-inset-bottom))
            max(22px, env(safe-area-inset-left));
        background: rgba(8,8,8,.985);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    .nav-links > a,
    .nav-dropdown-toggle {
        width: 100%;
        padding: 17px 0;
        border-bottom: 1px solid rgba(255,255,255,.09);
        font-size: 17px;
        text-align: left;
        letter-spacing: .02em;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        transform: none;
        padding: 4px 0 12px 18px;
        border: 0;
        background: transparent;
    }

    .nav-dropdown-menu a {
        padding: 11px 0;
        font-size: 12px;
    }

    .nav-architecture-container {
        margin-left: auto;
    }

    .nav-architecture-btn {
        display: none;
    }

    .category-heading {
        padding-left: max(22px, env(safe-area-inset-left));
        padding-right: max(22px, env(safe-area-inset-right));
    }

    .category-gallery {
        padding-left: max(22px, env(safe-area-inset-left));
        padding-right: max(22px, env(safe-area-inset-right));
    }

    .project-card-grid {
        grid-template-columns: 1fr;
    }

    .project-card-media {
        aspect-ratio: 4 / 5;
    }

    .project-page-main {
        width: calc(100% - 44px);
        padding-top: 105px;
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .project-page-header {
        padding: 34px 0 48px;
    }

    .project-page-header h1 {
        font-size: clamp(42px, 13vw, 72px);
    }

    .project-story {
        max-width: 36rem;
    }

    .project-image-list {
        gap: 54px;
        padding-top: 54px;
    }

    .project-image-button img {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-left: max(22px, env(safe-area-inset-left));
        padding-right: max(22px, env(safe-area-inset-right));
        padding-bottom: calc(34px + env(safe-area-inset-bottom));
    }

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

@media (max-width: 480px) {
    .project-page-main {
        width: calc(100% - 28px);
    }

    .project-photo-dialog {
        width: calc(100% - 20px);
        padding: 22px 18px;
    }

    .project-photo-dialog dl {
        grid-template-columns: 1fr;
    }

    .project-image-caption {
        gap: 10px;
        font-size: 9px;
    }

    .footer-social {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) and (pointer: coarse) {
    .project-card:hover .project-card-media img {
        transform: none;
    }

    .project-image-button {
        cursor: pointer;
    }
}

@media (min-width: 1600px) {
    .project-page-main {
        width: min(1640px, calc(100% - 144px));
    }

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

html.nav-open, body.nav-open { overflow: hidden !important; }


/* ==========================================
   V5.1 — exact header balance + architecture entry
   ========================================== */

#navbar,
#navbar.scrolled {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(18px, 2vw, 34px);
    padding-inline: clamp(20px, 3.5vw, 56px);
}

.nav-brand {
    grid-column: 1;
    justify-self: start;
    width: 54px;
    min-width: 54px;
}

.nav-brand img {
    width: 54px;
    max-width: 54px;
    height: auto;
}

.nav-links {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.nav-architecture-container,
.nav-right {
    margin-left: 0;
}

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

.nav-mobile-architecture {
    display: none !important;
}

@media (max-width: 1160px) {
    #navbar,
    #navbar.scrolled {
        grid-template-columns: 1fr auto;
        padding-inline: 22px;
    }

    .nav-brand {
        grid-column: 1;
        justify-self: start;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        z-index: 130;
        display: none;
        width: 100%;
        height: 100dvh;
        padding:
            calc(94px + env(safe-area-inset-top))
            max(22px, env(safe-area-inset-right))
            calc(34px + env(safe-area-inset-bottom))
            max(22px, env(safe-area-inset-left));
        background: rgba(8, 8, 8, 0.988);
        overflow-y: auto;
        overscroll-behavior: contain;
        white-space: normal;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .nav-actions {
        grid-column: 2;
        justify-self: end;
        gap: 10px;
    }

    .nav-architecture-container {
        display: none;
    }

    .nav-mobile-architecture {
        display: block !important;
        margin-top: 18px;
        padding-top: 22px !important;
        border-top: 1px solid rgba(255,255,255,.18);
        font-family: 'DM Mono', monospace;
        letter-spacing: .12em !important;
        text-transform: uppercase;
    }

    .nav-menu-btn {
        display: flex;
    }
}

@media (max-width: 560px) {
    #navbar,
    #navbar.scrolled {
        padding-inline:
            max(16px, env(safe-area-inset-left))
            max(16px, env(safe-area-inset-right));
    }

    .nav-brand,
    .nav-brand img {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
    }

    .lang-switch {
        padding: 7px 11px;
        font-size: 11px;
    }

    .nav-actions {
        gap: 8px;
    }
}


/* ==========================================
   V5.2 — fixed luxury header + square UI + compact footer
   ========================================== */

:root {
    --header-height: 84px;
    --header-height-scrolled: 68px;
    --ui-line: rgba(255, 255, 255, 0.16);
    --ui-muted: rgba(255, 255, 255, 0.58);
}

/* Header: always visible, viewport-centered navigation, right-aligned Architecture */
#navbar,
#navbar.scrolled {
    position: fixed !important;
    inset: 0 0 auto 0;
    width: 100%;
    min-height: var(--header-height);
    padding: 18px clamp(24px, 3vw, 56px);
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 300px;
    align-items: center;
    column-gap: 24px;
    background: rgba(7, 7, 7, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateZ(0);
    transition:
        min-height 220ms ease,
        padding 220ms ease,
        background 220ms ease,
        border-color 220ms ease;
    z-index: 1000;
}

#navbar.scrolled {
    min-height: var(--header-height-scrolled);
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(7, 7, 7, 0.965);
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.nav-brand {
    grid-column: 1;
    justify-self: start;
    width: 54px;
    min-width: 54px;
}

.nav-brand img {
    width: 54px;
    max-width: 54px;
    height: auto;
    display: block;
    transition: width 220ms ease, opacity 220ms ease;
}

#navbar.scrolled .nav-brand,
#navbar.scrolled .nav-brand img {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
}

#navbar .nav-links {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 2.15vw, 40px);
    width: max-content;
    max-width: calc(100vw - 760px);
    white-space: nowrap;
    z-index: 2;
}

#navbar .nav-links > a,
#navbar .nav-dropdown-toggle {
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.035em;
    font-weight: 600;
}

.nav-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    z-index: 3;
}

.nav-architecture-btn {
    min-width: 166px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 0 !important;
    background: #f4f4f2;
    color: #090909 !important;
    text-align: center;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lang-switch {
    min-width: 50px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 0 !important;
    background: transparent;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.nav-dropdown-menu {
    border-radius: 0 !important;
}

/* Prevent desktop menu collisions before the viewport becomes too narrow. */
@media (max-width: 1320px) {
    #navbar,
    #navbar.scrolled {
        grid-template-columns: 88px 1fr auto;
        min-height: 72px;
        padding: 13px 22px;
    }

    #navbar .nav-links {
        position: fixed !important;
        inset: 72px 0 0 0 !important;
        width: 100% !important;
        max-width: none;
        height: calc(100dvh - 72px);
        transform: none !important;
        display: none;
        padding:
            30px max(24px, env(safe-area-inset-right))
            calc(38px + env(safe-area-inset-bottom))
            max(24px, env(safe-area-inset-left));
        background: rgba(7,7,7,.985);
        overflow-y: auto;
        overscroll-behavior: contain;
        white-space: normal;
        border-top: 1px solid rgba(255,255,255,.10);
    }

    #navbar .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    #navbar .nav-links > a,
    #navbar .nav-dropdown-toggle {
        width: 100%;
        padding: 17px 0;
        border-bottom: 1px solid rgba(255,255,255,.09);
        font-size: 16px;
        text-align: left;
    }

    .nav-dropdown {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        transform: none;
        padding: 5px 0 12px 18px;
        border: 0;
        background: transparent;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: grid;
    }

    .nav-menu-btn {
        display: flex;
    }

    .nav-mobile-architecture {
        display: block !important;
        margin-top: 18px;
        padding-top: 22px !important;
        border-top: 1px solid rgba(255,255,255,.18);
        font-family: 'DM Mono', monospace;
        letter-spacing: .12em !important;
        text-transform: uppercase;
    }

    .nav-architecture-container {
        display: none;
    }

    .nav-actions {
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 66px;
        --header-height-scrolled: 60px;
    }

    #navbar,
    #navbar.scrolled {
        grid-template-columns: 54px 1fr auto;
        min-height: var(--header-height);
        padding:
            max(10px, env(safe-area-inset-top))
            max(14px, env(safe-area-inset-right))
            10px
            max(14px, env(safe-area-inset-left));
    }

    #navbar.scrolled {
        min-height: var(--header-height-scrolled);
    }

    .nav-brand,
    .nav-brand img,
    #navbar.scrolled .nav-brand,
    #navbar.scrolled .nav-brand img {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
    }

    #navbar .nav-links {
        inset: var(--header-height) 0 0 0 !important;
        height: calc(100dvh - var(--header-height));
    }

    #navbar.scrolled .nav-links {
        inset: var(--header-height-scrolled) 0 0 0 !important;
        height: calc(100dvh - var(--header-height-scrolled));
    }

    .lang-switch {
        min-width: 44px;
        padding: 8px 10px;
    }

    .nav-actions {
        gap: 9px;
    }
}

/* Compensate for the now-permanently fixed header on non-hero inner pages. */
.inner-page main,
.category-page main,
.project-detail-page main,
.journal-page main {
    scroll-margin-top: 90px;
}

/* About: social accounts belong to the footer, not the biography panel. */
.about .social-links {
    display: none !important;
}

/* Global square visual language for interactive UI. */
button,
input,
textarea,
select,
a.nav-architecture-btn,
.lang-switch,
.submit-btn,
.text-link,
.social-link,
.skill-tag,
.tag,
.category-card,
.about-image img,
.form-success,
.modal-content,
.modal-close,
.modal-nav,
.project-photo-dialog,
.project-photo-dialog > button,
.publisher-form input,
.publisher-form textarea,
.publisher-form select,
.publish-button,
.replace-button,
.delete-button,
.library-item,
.protected-download {
    border-radius: 0 !important;
}

/* Remove pill styling from informational chips. */
.skill-tag,
.tag {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.055);
}

/* Footer: compact, centered, quiet — inspired by the reference, with square icons. */
.site-footer {
    min-height: 250px;
    padding:
        54px max(24px, env(safe-area-inset-right))
        calc(42px + env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: #101010;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
}

.site-footer .footer-social {
    order: 1;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
}

.site-footer .footer-social a {
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 0 !important;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    background: transparent;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
    color: #fff;
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.04);
}

.footer-icon {
    display: inline-grid;
    place-items: center;
    width: auto;
    height: auto;
    border: 0 !important;
    border-radius: 0 !important;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1;
}

.footer-icon-linkedin {
    font-family: Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0;
}

.site-footer .footer-identity {
    order: 2;
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0;
}

.site-footer .footer-identity strong {
    color: rgba(255,255,255,.92);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.site-footer .footer-identity span {
    color: rgba(255,255,255,.46);
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .025em;
}

@media (max-width: 640px) {
    .site-footer {
        min-height: 230px;
        padding-top: 46px;
        gap: 24px;
    }

    .site-footer .footer-social {
        display: flex !important;
        gap: 10px;
    }

    .site-footer .footer-social a {
        width: 36px;
        height: 36px;
    }

    .site-footer .footer-identity strong {
        font-size: 10px;
        letter-spacing: .14em;
    }

    .site-footer .footer-identity span {
        max-width: 28ch;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #navbar,
    #navbar.scrolled,
    .nav-brand img {
        transition: none;
    }
}

.gallery-item, .social-mark, .social-linkedin, [class*="btn"], [class*="button"] { border-radius: 0 !important; }


/* ==========================================
   V5.3 — exact header centering, branded footer icons,
   stronger architecture contrast, refined scroll motion
   ========================================== */

/* Photography desktop nav: center against the viewport, not remaining grid space. */
@media (min-width: 1321px) {
    #navbar .nav-links {
        position: fixed !important;
        left: 50vw !important;
        right: auto !important;
        top: calc(var(--header-height) / 2) !important;
        transform: translate(-50%, -50%) !important;
        width: max-content;
        max-width: min(620px, calc(100vw - 760px));
    }

    #navbar.scrolled .nav-links {
        top: calc(var(--header-height-scrolled) / 2) !important;
    }
}

/* Real brand marks inside the square social controls. */
.footer-brand-icon {
    width: 17px;
    height: 17px;
    display: block;
    color: currentColor;
}

.site-footer .footer-social a {
    border-color: rgba(255,255,255,.34);
    color: rgba(255,255,255,.84);
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
    border-color: rgba(255,255,255,.9);
    color: #fff;
}

/* Stronger scroll-in motion, still restrained and editorial. */
.reveal-motion {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity .82s cubic-bezier(.2,.72,.2,1),
        transform .82s cubic-bezier(.2,.72,.2,1);
}

.reveal-motion.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.scroll-parallax {
    transform: translate3d(0, var(--scroll-shift, 0px), 0);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-parallax {
        transform: none !important;
    }
}


/* V5.4 — project image visibility hardening */
.project-image-button.reveal-motion {
    min-height: 1px;
}

.project-image-button img {
    opacity: 1;
    visibility: visible;
}

.project-image-button.image-load-error {
    min-height: 220px;
    border: 1px solid rgba(255,255,255,.16);
    display: grid;
    place-items: center;
}

.project-image-button.image-load-error::before {
    content: "Image could not be loaded";
    color: rgba(255,255,255,.56);
    font-family: "DM Mono", monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-image-button.image-load-error img {
    display: none;
}

/* V5.4 — minimalist social brand marks */
.site-footer .footer-social a {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 0 !important;
}

.site-footer .footer-brand-icon {
    width: 19px;
    height: 19px;
    display: block;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
    border-color: currentColor;
}


/* ==========================================
   V5.5 — final centered header, dense gallery, full lightbox
   ========================================== */

/* Equal outer tracks keep the main navigation on the true viewport axis. */
@media (min-width: 1321px) {
    #navbar,
    #navbar.scrolled {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    }

    #navbar .nav-brand {
        grid-column: 1;
        justify-self: start;
    }

    #navbar .nav-links,
    #navbar.scrolled .nav-links {
        position: static !important;
        inset: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        grid-column: 2;
        justify-self: center;
        transform: none !important;
        width: max-content;
        max-width: none;
        margin: 0;
    }

    #navbar .nav-actions {
        grid-column: 3;
        justify-self: end;
    }
}

.project-page-main {
    width: min(1680px, calc(100% - clamp(32px, 5vw, 96px)));
}

.project-gallery-section {
    width: 100%;
    margin-top: clamp(54px, 7vw, 112px);
    padding-bottom: clamp(70px, 8vw, 128px);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.project-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
    padding-top: 3px;
}

.project-photo-grid .project-image-button {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: #111;
    color: #fff;
    cursor: zoom-in;
    isolation: isolate;
}

.project-photo-grid .project-image-button[hidden] {
    display: none !important;
}

.project-photo-grid .project-image-button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.52),
            rgba(0, 0, 0, 0) 38%
        );
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.project-photo-grid .project-image-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 1;
    visibility: visible;
    transform: scale(1.001);
    transition:
        transform 650ms cubic-bezier(.2, .72, .2, 1),
        filter 300ms ease;
}

.project-image-index {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.94);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .12em;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 220ms ease,
        transform 220ms ease;
    pointer-events: none;
}

.project-photo-grid .project-image-button:hover img,
.project-photo-grid .project-image-button:focus-visible img {
    transform: scale(1.035);
    filter: brightness(.82);
}

.project-photo-grid .project-image-button:hover::after,
.project-photo-grid .project-image-button:focus-visible::after,
.project-photo-grid .project-image-button:hover .project-image-index,
.project-photo-grid .project-image-button:focus-visible .project-image-index {
    opacity: 1;
}

.project-photo-grid .project-image-button:hover .project-image-index,
.project-photo-grid .project-image-button:focus-visible .project-image-index {
    transform: translateY(0);
}

.project-photo-grid .project-image-button:focus-visible {
    outline: 1px solid #fff;
    outline-offset: -1px;
    z-index: 3;
}

.project-gallery-section .load-more-wrap {
    margin-top: clamp(30px, 4vw, 52px);
}

.project-gallery-section .load-more-button {
    min-width: 220px;
    border-radius: 0 !important;
}

/* Complete image viewer. */
html.lightbox-open,
body.lightbox-open {
    overflow: hidden !important;
}

.project-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0 !important;
    background: #070707;
    color: #f5f5f2;
}

.project-lightbox::backdrop {
    background: rgba(0, 0, 0, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.project-lightbox.is-fallback-open {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: block;
}

.project-lightbox-shell {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr);
    width: 100%;
    height: 100%;
    min-height: 0;
}

.project-lightbox-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #030303;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.project-lightbox-media {
    position: absolute;
    inset: 18px;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
}

.project-lightbox-media img {
    width: var(--lightbox-fit-width, auto) !important;
    height: var(--lightbox-fit-height, auto) !important;
    max-width: none !important;
    max-height: none !important;
    display: block;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 0;
    transform:
        translate3d(
            var(--lightbox-pan-x, 0px),
            var(--lightbox-pan-y, 0px),
            0
        )
        scale(var(--lightbox-zoom, 1));
    transform-origin: center center;
    transition:
        opacity 220ms ease,
        transform 180ms ease;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
    will-change: transform;
}

.project-lightbox-media img.is-ready {
    opacity: 1;
}

.project-lightbox.is-zoomed .project-lightbox-media img {
    cursor: grab;
}

.project-lightbox.is-dragging .project-lightbox-media img {
    cursor: grabbing;
    transition: opacity 220ms ease;
}

.project-lightbox-loading,
.project-lightbox-error {
    position: absolute;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.project-lightbox-loading::after {
    content: "";
    display: block;
    width: 64px;
    height: 1px;
    margin: 14px auto 0;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 22px 0 0 rgba(255, 255, 255, .92);
    animation: project-lightbox-progress 1s ease-in-out infinite alternate;
}

@keyframes project-lightbox-progress {
    to {
        box-shadow: inset 64px 0 0 rgba(255, 255, 255, .92);
    }
}

.project-lightbox-close,
.project-lightbox-nav {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 0 !important;
    background: rgba(6, 6, 6, .68);
    color: #fff;
    font-family: "DM Mono", monospace;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.project-lightbox-close:hover,
.project-lightbox-close:focus-visible,
.project-lightbox-nav:hover,
.project-lightbox-nav:focus-visible {
    background: #f4f4f0;
    color: #080808;
    border-color: #f4f4f0;
}

.project-lightbox-close {
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
}

.project-lightbox-prev {
    left: max(18px, env(safe-area-inset-left));
    top: 50%;
    transform: translateY(-50%);
}

.project-lightbox-next {
    right: max(18px, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
}

.project-lightbox-nav:disabled {
    display: none;
}

.project-lightbox-zoom {
    position: absolute;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 6;
    display: grid;
    grid-template-columns: 40px minmax(58px, auto) 40px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(6, 6, 6, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-lightbox-zoom button {
    min-width: 40px;
    height: 38px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: rgba(255, 255, 255, .88);
    font-family: "DM Mono", monospace;
    font-size: 12px;
    letter-spacing: .06em;
    cursor: pointer;
}

.project-lightbox-zoom button + button {
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.project-lightbox-zoom button:hover,
.project-lightbox-zoom button:focus-visible {
    background: #f4f4f0;
    color: #080808;
    outline: none;
}

.project-lightbox-zoom button:disabled {
    color: rgba(255, 255, 255, .28);
    cursor: default;
}

.project-lightbox-zoom button:disabled:hover {
    background: transparent;
    color: rgba(255, 255, 255, .28);
}

.project-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .68);
    font-family: "DM Mono", monospace;
    font-size: 10px;
    letter-spacing: .16em;
}

.project-lightbox-details {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding:
        max(72px, calc(env(safe-area-inset-top) + 54px))
        clamp(28px, 3vw, 54px)
        max(42px, calc(env(safe-area-inset-bottom) + 28px));
    background: #111;
}

.project-lightbox-details h2 {
    margin: 18px 0 34px;
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 3vw, 52px);
    font-weight: 400;
    line-height: 1.04;
}

.project-lightbox-details dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
    margin: 0 0 34px;
}

.project-lightbox-details dl > div[hidden] {
    display: none;
}

.project-lightbox-details dt {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .46);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-lightbox-details dd {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    line-height: 1.5;
}

.project-lightbox-description {
    margin: 0 0 34px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.8;
}

.project-lightbox-details .protected-download {
    width: 100%;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 0 !important;
    color: #fff;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: .1em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.project-lightbox-details .protected-download:hover,
.project-lightbox-details .protected-download:focus-visible {
    background: #f4f4f0;
    color: #080808;
    border-color: #f4f4f0;
}

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

@media (min-width: 1680px) {
    .project-photo-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .project-page-main {
        width: calc(100% - 24px);
        padding-top: 88px;
    }

    .project-gallery-section {
        margin-top: 46px;
    }

    .project-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
        padding-top: 2px;
    }

    .project-image-index {
        right: 7px;
        bottom: 7px;
        font-size: 8px;
    }

    .project-lightbox-shell {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 72dvh) minmax(0, 28dvh);
        overflow-y: auto;
    }

    .project-lightbox-stage {
        min-height: 72dvh;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .project-lightbox-media {
        inset:
            max(10px, env(safe-area-inset-top))
            max(10px, env(safe-area-inset-right))
            max(10px, env(safe-area-inset-bottom))
            max(10px, env(safe-area-inset-left));
    }

    .project-lightbox-close,
    .project-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .project-lightbox-prev {
        left: max(8px, env(safe-area-inset-left));
    }

    .project-lightbox-next {
        right: max(8px, env(safe-area-inset-right));
    }

    .project-lightbox-close {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
    }

    .project-lightbox-counter {
        left: 14px;
        bottom: 15px;
        transform: none;
    }

    .project-lightbox-zoom {
        right: 10px;
        bottom: 10px;
        grid-template-columns: 36px minmax(52px, auto) 36px;
    }

    .project-lightbox-zoom button {
        min-width: 36px;
        height: 36px;
    }

    .project-lightbox-details {
        min-height: 28dvh;
        padding:
            28px
            max(20px, env(safe-area-inset-right))
            max(34px, calc(env(safe-area-inset-bottom) + 20px))
            max(20px, env(safe-area-inset-left));
    }

    .project-lightbox-details h2 {
        margin: 13px 0 22px;
        font-size: clamp(26px, 8vw, 40px);
    }

    .project-lightbox-details dl {
        gap: 16px 14px;
        margin-bottom: 24px;
    }

    .project-lightbox-description {
        margin-bottom: 24px;
    }
}

@media (max-width: 420px) {
    .project-photo-grid {
        gap: 1px;
        padding-top: 1px;
    }

    .project-lightbox-media {
        inset:
            max(8px, env(safe-area-inset-top))
            max(8px, env(safe-area-inset-right))
            max(8px, env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left));
    }

    .project-lightbox-details dl {
        grid-template-columns: 1fr 1fr;
    }
}

@media (hover: none) {
    .project-photo-grid .project-image-button::after {
        opacity: .18;
    }

    .project-image-index {
        opacity: .74;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-photo-grid .project-image-button img,
    .project-lightbox-media img {
        transition: none !important;
    }

    .project-lightbox-loading::after {
        animation: none;
        box-shadow: inset 64px 0 0 rgba(255, 255, 255, .92);
    }
}


/* ==========================================
   V5.7 — Photography project sort + location filter
   ========================================== */
.category-project-controls {
    width: min(1480px, calc(100% - (var(--v5-page-pad, 48px) * 2)));
    margin: 0 auto;
    padding: 0 0 clamp(28px, 4vw, 48px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.category-control-group {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.category-control-label {
    display: grid;
    gap: 8px;
    min-width: 190px;
    color: rgba(255, 255, 255, 0.56);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-control-label select {
    min-height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: #090909;
    color: #f4f4f0;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.category-control-label select:hover,
.category-control-label select:focus-visible {
    border-color: rgba(255, 255, 255, 0.48);
    outline: none;
}

.category-project-count {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.48);
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
}

.category-filter-empty {
    margin: clamp(42px, 7vw, 90px) 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.project-card[hidden] {
    display: none !important;
}

@media (max-width: 820px) {
    .category-project-controls {
        width: auto;
        margin-left: max(22px, env(safe-area-inset-left));
        margin-right: max(22px, env(safe-area-inset-right));
        padding-bottom: 28px;
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .category-control-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 10px;
    }

    .category-control-label {
        min-width: 0;
    }

    .category-control-label select {
        width: 100%;
        min-width: 0;
        font-size: 11px;
    }

    .category-project-count {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .category-control-group {
        grid-template-columns: 1fr;
    }
}
