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

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

.portfolio-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 0 0 100px 0;
}

/* Category Navigation */
.filter-wrapper {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
    align-items: center;
}

.category-nav,
.sort-nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    align-items: center;
}

.category-link,
.sort-btn {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-link {
    text-decoration: none;
}

.sort-btn {
    background: transparent;
    border: none;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
}

.category-link:hover,
.sort-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.category-link.active,
.sort-btn.active {
    color: #fff;
    background: #000;
}

.mobile-only {
    display: none;
}

.nav-trigger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.nav-trigger-btn:hover {
    background: #000;
}

.nav-trigger-btn:hover span {
    background: #fff;
}

.nav-trigger-btn span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: #333;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.tiles-grid {
    position: relative;
    width: 100%;
}

.tile {
    position: absolute;
    width: 120px;
    height: 120px;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: fadeInTile 0.6s ease-out backwards;
    border: none;
    border-radius: 50%;
}

@keyframes fadeInTile {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tile:hover:not(.expanded) {
    z-index: 10;
}

.tile.expanded {
    width: 400px !important;
    height: 400px !important;
    z-index: 2000 !important;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

/* Logo tile specific styles */
.tile.logo-tile {
    background: #000000;
    border-color: #000000;
    width: 120px !important;
    height: 120px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile.logo-tile.expanded {
    width: 400px !important;
    height: 400px !important;
    z-index: 2000 !important;
}

.tile.logo-tile .tile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tile.logo-tile.expanded .tile-logo {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* Logo Menu */
.logo-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease 0.15s;
    z-index: 2;
    pointer-events: none;
}

.tile.logo-tile.expanded .logo-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.logo-menu-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.logo-menu-item:hover {
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 24px;
    transform: scale(1.1);
}

/* Project Detail Page */
.project-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    overflow-y: auto;
}

.project-detail.active {
    opacity: 1;
    pointer-events: all;
}

.detail-content {
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Back Button - Top Left */
.detail-back-button {
    position: fixed;
    top: 40px;
    left: 60px;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.detail-back-button:hover {
    opacity: 0.7;
}

.detail-top-button {
    position: fixed;
    bottom: 40px;
    left: 60px;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.detail-top-button.visible {
    opacity: 1;
    pointer-events: auto;
}

.detail-top-button:hover {
    opacity: 0.7;
}

.detail-back-button .back-text,
.detail-top-button .back-text {
    color: #000;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: lowercase;
}

/* Detail Header with Tiles */
.detail-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 60px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-tiles {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.detail-tile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.detail-tile:hover {
    transform: scale(1.05);
}

.detail-tile.pattern-tile {
    background: #f5f5f5;
}

.detail-tile.pattern-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-tile.logo-tile {
    background: #000;
}

.detail-tile.logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.detail-title-section {
    margin-top: 20px;
}

.detail-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #000;
}

.detail-category {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
}

/* Hero Grid */
.detail-hero-grid {
    display: grid;
    width: 100%;
}

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

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

.detail-hero-grid img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
}

/* Info Bar */
/* Detail Body */
.detail-body {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 60px;
}


/* Matrix blocks */
.detail-block {
    margin: 60px 0;
}

.detail-block-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Row */
.detail-image-grid {
    display: grid;
    gap: 6px;
    margin: 60px 0;
}

.detail-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
}

.detail-image-grid--1 {
    grid-template-columns: 1fr;
}

.detail-image-grid--1 img {
    aspect-ratio: 16/9;
    max-height: 70vh;
    object-fit: cover;
}

.detail-image-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.detail-image-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.detail-image-grid--4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Image + Text */
.detail-block-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail-block-image-text--right {
    direction: rtl;
}

.detail-block-image-text--right > * {
    direction: ltr;
}

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

.detail-block-caption {
    padding: 20px 0;
}

.detail-block-caption h2:first-child,
.detail-block-caption h3:first-child,
.detail-block-caption h4:first-child {
    margin-top: 0;
}

.detail-block-caption p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.9;
    color: #333;
}

.detail-stats {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 100px auto 0;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 20px;
    font-weight: 300;
    color: #000;
}

/* Navigation Modal */
.nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, background 0.5s ease-in-out;
}

.nav-modal.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.98);
    pointer-events: all;
}

.nav-content {
    max-width: 800px;
    width: 90%;
    color: #000000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.1s;
}

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

.nav-header {
    position: fixed;
    top: 48px;
    left: 60px;
    margin-bottom: 0;
    z-index: 3501;
}

.nav-logo {
    width: 150px;
    height: auto;
    margin-bottom: 0;
}

.nav-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.nav-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    opacity: 0.7;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
    align-items: center;
}

.nav-item {
    text-align: center;
    padding: 20px 40px;
    text-decoration: none;
    color: #000000;
    transition: all 0.3s ease-out;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    border-bottom: 2px solid transparent;
}

.nav-item:hover {
    border-bottom: 2px solid #000000;
    transform: translateX(10px);
}

.nav-item-work {
    cursor: default;
    border-bottom: none !important;
    transform: none !important;
}

.nav-item-work .nav-item-title {
    cursor: pointer;
}

.nav-item-work .nav-item-title:hover {
    opacity: 0.7;
}

.nav-item-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
}

.nav-item-desc {
    display: none;
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.nav-subitem {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    padding: 8px 20px;
    transition: all 0.3s ease-out;
}

.nav-subitem:hover {
    color: #000;
    transform: translateX(5px);
}

.nav-close {
    position: fixed;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-out;
    padding: 0;
    line-height: 1;
    z-index: 3502;
}

.nav-close:hover {
    color: #666;
    transform: rotate(90deg);
}

/* Mobile responsive for navigation */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }

    .nav-item {
        font-size: 20px;
        padding: 15px 30px;
    }

    .nav-item-title {
        font-size: 20px;
    }

    .nav-submenu {
        gap: 8px;
        margin-top: 12px;
    }

    .nav-subitem {
        font-size: 14px;
        padding: 6px 15px;
    }

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

    .nav-header {
        top: 30px;
        left: 20px;
    }

    .nav-logo {
        width: 140px;
    }

    .nav-close {
        top: 20px;
        right: 20px;
        font-size: 35px;
    }

    .logo-menu-item:hover {
        font-size: 19px;
        font-weight: 600;
        letter-spacing: 2.5px;
        transform: scale(1.08);
    }
}

.tile-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.tile.expanded .tile-icon {
    opacity: 0;
}

.tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tile.expanded .tile-bg {
    opacity: 1;
}

.tile-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out 0.15s;
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.tile.expanded .tile-content {
    opacity: 1;
    pointer-events: all;
}

.content-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.content-category {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 16px;
}

/* Copyright */
.copyright {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #999999;
    letter-spacing: 0.5px;
    padding: 40px 0 30px 0;
    margin-top: auto;
    z-index: 0;
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-container {
        padding: 0 0 100px 0;
    }

    .category-nav,
    .sort-nav {
        gap: 12px;
        padding: 10px 20px;
    }

    .category-link,
    .sort-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .tile {
        width: 100px;
        height: 100px;
    }

    .tile.logo-tile {
        width: 100px !important;
        height: 100px !important;
    }

    .tile.logo-tile.expanded {
        width: 380px !important;
        max-width: 85vw !important;
        height: 380px !important;
        z-index: 2000 !important;
    }

    .tile-icon {
        width: 100%;
        height: 100%;
    }

    .tile-icon svg {
        stroke-width: 1.8;
    }

    .tile.expanded {
        width: 380px !important;
        max-width: 85vw !important;
        height: 380px !important;
        z-index: 2000 !important;
    }
}

/* Detail Page Mobile Responsive */
@media (max-width: 768px) {
    .detail-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .detail-back-button {
        top: 30px;
        left: 30px;
    }

    .detail-back-button .back-text,
    .detail-top-button .back-text {
        font-size: 14px;
    }

    .detail-top-button {
        bottom: 30px;
        left: 30px;
    }

    .detail-header {
        padding: 80px 30px 40px;
    }

    .detail-tiles {
        gap: 15px;
    }

    .detail-tile {
        width: 60px;
        height: 60px;
    }

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

    .detail-category {
        font-size: 12px;
    }

    .detail-hero-grid--1,
    .detail-hero-grid--2 {
        grid-template-columns: 1fr;
    }

    .detail-hero-grid img {
        height: 50vh;
    }

    .detail-body {
        margin: 50px auto 40px;
        padding: 0 30px;
    }

    .copyright {
        padding-bottom: 80px;
    }


    .detail-text-section {
        margin: 60px auto;
    }

    .detail-text-section p {
        font-size: 16px;
    }

    .detail-image-full {
        margin: 60px 0;
    }

    .detail-image-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        margin: 40px 0;
    }

    .detail-image-grid--2,
    .detail-image-grid--4 {
        grid-template-columns: 1fr 1fr;
    }

    .detail-image-grid--3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .detail-image-grid--3 picture:first-child {
        grid-column: 1 / -1;
    }

    .detail-block {
        margin: 40px 0;
    }

    .detail-block-image-text {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-block-image-text--right {
        direction: ltr;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .portfolio-container {
        min-height: 100vh;
        height: auto;
        padding: 0 0 80px 0;
    }

    .filter-wrapper {
        bottom: 20px;
        flex-direction: row;
        gap: 10px;
        align-items: flex-end;
    }

    .nav-trigger-btn {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .category-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-width: calc(90vw - 58px);
        width: calc(90vw - 58px);
        background: rgba(255, 255, 255, 0.98);
        border-radius: 16px;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        align-items: stretch;
    }

    .category-nav.expanded {
        gap: 0;
        z-index: 9999;
    }

    .category-link {
        font-size: 14px;
        padding: 16px 20px;
        white-space: nowrap;
        text-align: left;
        border-radius: 0;
        min-width: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: none;
    }

    .category-link:last-of-type {
        border-bottom: none;
    }

    .category-link.active {
        display: block;
        background: transparent;
        color: #000;
        position: relative;
    }

    .category-link.active::after {
        content: '▲';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .category-nav.expanded .category-link.active::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .category-nav.expanded .category-link {
        display: block;
    }

    .mobile-only {
        display: none !important;
    }

    .category-nav.expanded .mobile-only {
        display: flex !important;
    }

    .sort-row-mobile {
        display: flex;
        gap: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin: 0;
        width: 100%;
    }

    .sort-link-mobile {
        flex: 1;
        padding: 16px 20px;
        text-align: center;
        text-decoration: none;
        color: #666;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        cursor: pointer;
        background: transparent;
        border: none;
    }

    .sort-link-mobile:first-child {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }

    .sort-link-mobile:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #000;
    }

    .sort-link-mobile.active {
        background: #000;
        color: #fff;
    }

    .sort-nav {
        display: none;
    }

    .tiles-grid {
        min-height: 100vh;
    }

    .tile {
        width: 70px;
        height: 70px;
    }

    .tile.logo-tile {
        width: 70px !important;
        height: 70px !important;
    }

    .tile.logo-tile.expanded {
        width: 200px !important;
        height: 200px !important;
        border-radius: 50%;
        z-index: 2000 !important;
    }

    .logo-menu {
        gap: 12px;
    }

    .logo-menu-item {
        font-size: 14px;
        padding: 0;
    }

    .tile-icon {
        width: 100%;
        height: 100%;
    }

    .tile-icon svg {
        stroke-width: 1.5;
    }

    .tile.expanded {
        width: 200px !important;
        height: 200px !important;
        border-radius: 50%;
        z-index: 2000 !important;
    }

    .tile-content {
        padding: 20px;
        padding-top: 45px;
    }

    .content-title {
        font-size: 16px;
        margin-bottom: 6px;
        font-weight: 500;
    }

    .content-category {
        font-size: 11px;
        opacity: 0.9;
    }

}


/* Small Mobile */
@media (max-width: 480px) {
    .category-nav {
        max-width: calc(85vw - 58px);
        width: calc(85vw - 58px);
    }

    .category-link {
        font-size: 13px;
        padding: 14px 18px;
    }

    .category-link.active::after {
        right: 18px;
    }

    .tile {
        width: 60px;
        height: 60px;
    }

    .tile.logo-tile {
        width: 60px !important;
        height: 60px !important;
    }

    .tile.logo-tile.expanded {
        width: 200px !important;
        height: 200px !important;
        border-radius: 50%;
        z-index: 2000 !important;
    }

    .logo-menu {
        gap: 10px;
    }

    .logo-menu-item {
        font-size: 12px;
        padding: 0;
    }

    .tile-icon {
        width: 100%;
        height: 100%;
    }

    .tile-icon svg {
        stroke-width: 1.5;
    }

    .tile.expanded {
        width: 200px !important;
        height: 200px !important;
        border-radius: 50%;
        z-index: 2000 !important;
    }

    .tile-content {
        padding: 15px;
        padding-top: 40px;
    }

    .content-title {
        font-size: 15px;
        margin-bottom: 5px;
        font-weight: 500;
    }

    .content-category {
        font-size: 10px;
        opacity: 0.9;
    }

}

/* ==================== Shared Page Content Styles ==================== */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 30px 80px;
    background: #fff;
    min-height: 100vh;
}


/* Studio Page Styles - Desktop */
.studio-magazine-section {
    margin-bottom: 0;
    padding: 0;
}

.section-first {
    margin-top: 50px;
}

.magazine-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.magazine-layout-reverse {
    direction: rtl;
}

.magazine-layout-reverse > * {
    direction: ltr;
}

/* Hide mobile-only first image on desktop */
.image-1-mobile {
    display: none;
}

.magazine-layout-reverse .magazine-image {
    max-width: 70%;
    margin: 0 auto;
}

.magazine-text {
    padding: 0;
}

.magazine-text p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.magazine-image {
    width: 100%;
}

.magazine-image img {
    width: 100%;
    height: auto;
    display: block;
}

.studio-team {
    margin-top: 0;
}

.studio-team .section-title {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 60px;
    text-align: left;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.team-member {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 80px;
    border-bottom: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
    .team-member {
        grid-template-columns: 1fr;
        grid-template-rows: 404px auto;
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
}

.team-member:last-child {
    border-bottom: none;
}

.team-photo {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    line-height: 0;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .team-photo {
        height: 404px;
        min-height: 404px;
        max-height: 404px;
    }

    .team-photo img {
        height: 404px !important;
        min-height: 404px !important;
        max-height: 404px !important;
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    .team-photo {
        aspect-ratio: 3/4;
    }
}

.team-photo img {
    width: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

.team-photo:hover img {
    filter: grayscale(0%);
}

.team-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .team-info {
        padding-top: 24px;
    }
}

.team-name {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    color: #000;
}

.team-credentials {
    font-size: 14px;
    font-weight: 300;
    color: #666;
    margin-bottom: 16px;
}

.team-role {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.6;
    min-height: 52px;
}

.team-info .team-contact {
    margin-bottom: 30px;
}

.team-contact p {
    font-size: 14px;
    line-height: 1.8;
    margin: 5px 0;
}

.team-contact a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-contact a:hover {
    color: #000;
}

.team-quote {
    margin: 30px 0 0 0;
    padding: 0;
    border: none;
}

.team-quote p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

.team-experience {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exp-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.exp-years {
    color: #999;
    font-weight: 300;
}

.exp-company {
    color: #333;
    font-weight: 300;
}

.exp-item.award .exp-company {
    font-style: italic;
    color: #666;
}

/* Page Content Mobile Responsive */
@media (max-width: 768px) {
    .page-content {
        padding: 140px 20px 80px;
    }

    .studio-intro p {
        font-size: 16px;
        line-height: 1.7;
    }

    .studio-team {
        margin-top: 0;
    }

    .team-grid {
        gap: 60px;
    }

    .team-member {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 60px;
    }

    .team-name {
        font-size: 24px;
    }

    .team-credentials {
        font-size: 13px;
    }

    .team-role {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .team-contact {
        margin-bottom: 24px;
    }

    .team-contact p {
        font-size: 13px;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 4px;
        font-size: 13px;
    }

    .exp-years {
        font-size: 12px;
    }
}

/* HQ Page Styles */
.hq-page {
    min-height: 100vh;
    background: #fff;
}

.hq-intro {
    margin-bottom: 80px;
}

.hq-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    font-weight: 300;
}

.hq-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
}

.hq-left {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.hq-left .section-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: left;
}

.contact-info {
    font-size: 16px;
    line-height: 1.8;
}

.contact-info a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.6;
}

.team-contacts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.team-contacts .team-contact {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.contact-name {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
}

.contact-email {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-email a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-email a:hover {
    opacity: 0.6;
}

.contact-role {
    font-size: 14px;
    color: #666;
    font-weight: 300;
}

.office-hours p {
    font-size: 16px;
    line-height: 1.8;
}

.hq-footer-text {
    margin-top: auto;
    padding-top: 40px;
}

.hq-footer-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
}

.contact-form-section {
    position: sticky;
    top: 180px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #000;
    background: transparent;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #666;
}

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

.submit-btn {
    padding: 15px 40px;
    background: #000;
    color: #fff;
    border: none;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #333;
}

/* HQ Responsive Styles */
@media (max-width: 1024px) {
    .hq-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .contact-form-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .hq-description {
        font-size: 16px;
    }

    .hq-grid {
        gap: 60px;
    }
}

/* ==================== Shared Page Header Styles ==================== */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.page-header.scrolled {
    padding: 14px 0;
}

.page-nav {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.page-header.scrolled .page-nav {
    gap: 10px;
}

.page-tile {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header.scrolled .page-tile {
    width: 50px;
    height: 50px;
}

.page-tile:hover {
    transform: scale(1.05);
}

.page-tile.pattern-tile {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.page-tile.logo-tile {
    background: #000;
}

.page-tile.logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.page-tile.back-tile {
    background: #000;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.page-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Journal Page Styles ==================== */
.journal-page {
    min-height: 100vh;
    background: #fff;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.journal-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.journal-thumbnail {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.journal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.journal-card:hover .journal-thumbnail img {
    transform: scale(1.05);
}

.journal-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.journal-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.journal-date {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.journal-tag {
    font-size: 12px;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.journal-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #000;
}

.journal-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.journal-read-more {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: letter-spacing 0.3s ease;
    margin-top: auto;
}

.journal-card:hover .journal-read-more {
    letter-spacing: 2px;
}

/* Pagination */
.pagination {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 60px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.pagination .page-numbers {
    padding: 12px 20px;
    background: #fff;
    color: #000;
    border: 1px solid #e0e0e0;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    text-decoration: none;
    display: inline-block;
}

.pagination .page-numbers:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination .prev,
.pagination .next {
    padding: 12px 24px;
    background: #f5f5f5;
    color: #999;
    border: 1px solid #e0e0e0;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #ebebeb;
    color: #666;
}

/* ==================== Post Page Styles ==================== */
.post-page {
    min-height: 100vh;
    background: #fff;
    padding: 80px 20px;
    position: relative;
}

.post-close {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.post-close:hover {
    transform: rotate(90deg);
    background: #333;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
}

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 5px;
}

.post-date {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.post-tag {
    font-size: 13px;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.post-thumbnail {
    width: 100%;
    height: 500px;
    margin-bottom: 40px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.post-body p {
    margin-bottom: 24px;
}

.post-body h3 {
    font-size: 28px;
    font-weight: 500;
    margin: 40px 0 20px;
    color: #000;
}

.post-body h4 {
    font-size: 22px;
    font-weight: 500;
    margin: 32px 0 16px;
    color: #000;
}

.post-footer {
    margin-top: 80px;
    padding-top: 0;
    border-top: none;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.post-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #f5f5f5;
    text-decoration: none;
    transition: background 0.3s ease;
    flex: 1;
    max-width: 45%;
}

.post-nav-btn:hover {
    background: #e8e8e8;
}

.post-nav-prev {
    align-items: flex-start;
}

.post-nav-next {
    align-items: flex-end;
    text-align: right;
}

.post-nav-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-nav-title {
    font-size: 16px;
    color: #000;
    font-weight: 400;
    line-height: 1.3;
}

.post-back-btn {
    padding: 16px 32px;
    background: #000;
    color: #fff;
    border: none;
    font-family: 'Figtree', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.post-back-btn:hover {
    background: #333;
}

/* Journal & Post Responsive */
@media (max-width: 1024px) {
    .journal-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }

    .pagination {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px 0;
    }

    .page-header.scrolled {
        padding: 10px 0;
    }

    .page-nav {
        padding: 0 20px;
        gap: 10px;
    }

    .page-tile {
        width: 60px;
        height: 60px;
    }

    .page-header.scrolled .page-tile {
        width: 60px;
        height: 60px;
    }

    .journal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .journal-thumbnail {
        height: 240px;
    }

    .journal-info {
        padding: 24px;
    }

    .journal-title {
        font-size: 20px;
    }

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

    .post-content {
        padding: 40px 24px;
    }

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

    .post-thumbnail {
        height: 300px;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h3 {
        font-size: 24px;
    }

    .pagination {
        padding: 0 20px;
        gap: 6px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .post-nav-btn {
        max-width: 100%;
    }

    .post-nav-next {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .page-nav {
        gap: 8px;
    }

    .page-tile {
        width: 50px;
        height: 50px;
    }

    .page-header.scrolled .page-tile {
        width: 50px;
        height: 50px;
    }

    .journal-thumbnail {
        height: 200px;
    }

    .journal-info {
        padding: 20px;
    }

    .journal-title {
        font-size: 18px;
    }

    .journal-excerpt {
        font-size: 14px;
    }

    .post-content {
        padding: 30px 20px;
    }

    .post-title {
        font-size: 26px;
    }

    .post-thumbnail {
        height: 240px;
    }

    .post-body {
        font-size: 15px;
    }

    .post-body h3 {
        font-size: 22px;
    }

    .post-nav-title {
        font-size: 14px;
    }
}

/* Studio Page Mobile Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 28px;
        letter-spacing: 3px;
        margin: 0 0 40px 0;
    }

    .studio-magazine-section {
        padding: 0;
        margin-bottom: 30px;
    }

    .section-first {
        margin-top: 0 !important;
    }

    /* First section: Text only (hide first image) */
    .section-first .magazine-layout {
        display: block;
    }

    .section-first .magazine-image {
        display: none;
    }

    /* Second section: Show as 2-column image grid */
    .section-second .magazine-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        direction: ltr;
    }

    /* Show mobile first image */
    .image-1-mobile {
        display: block !important;
        grid-column: 1;
        grid-row: 1;
    }

    .image-2 {
        grid-column: 2;
        grid-row: 1;
    }

    .section-second .magazine-text {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .magazine-layout-reverse .magazine-image {
        max-width: 100%;
        margin: 0;
    }

    .magazine-text {
        padding: 0;
    }

    .magazine-text p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .magazine-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .studio-footer-section {
        padding: 0 20px;
        margin-bottom: 60px;
    }

    .studio-footer-section p {
        font-size: 16px;
    }

}

/* ==================== Reduced Motion Override for Homepage Tiles ==================== */
/* Phone "Reduce Motion" setting disables animations globally.
   Re-enable tile interactions here since the homepage concept relies on them. */
@media (prefers-reduced-motion: reduce) {
    .tile {
        animation: none;
        transition: all 0.15s ease !important;
    }

    .tile-icon,
    .tile-bg,
    .tile-content {
        transition: all 0.15s ease !important;
    }
}
