/* Matter Of Form Inspired Aesthetic */

:root {
    --bg-color: #f7f6f5;
    --bg-secondary: #f7f6f5;
    --text-primary: #492947;
    --text-secondary: #b5b5a9;
    --accent-gold: #b5b5a9;
    --border-color: rgba(255, 255, 255, 0.1);
    --container-width: 1600px;
    --spacing-section: 100px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Century Gothic';
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.luxury-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 60px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.luxury-nav.scrolled {
    padding: 16px 60px;
    background:
        linear-gradient(135deg, rgba(247, 246, 245, 0.82), rgba(235, 233, 228, 0.9));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo h1 {
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
}

.logo-image {
    display: block;
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 60px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-login {
    padding: 10px 30px;
    border-radius: 0;
    border: 1px solid #492947;
    background-color: #492947;
    color: rgba(245, 242, 235, 0.88);
    transition: all 0.3s ease;
}

.btn-login:hover {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold);
    color: #492947;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-bottom: 100px;
    background-color: var(--bg-color);
    background-size: cover;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-text {
    max-width: 70%;
}

.hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    display: block;
}

.hero-title {
    font-size: clamp(60px, 8vw, 120px);
    margin-bottom: 40px;
    color: var(--text-primary);
}

.hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.hero-title span:nth-child(2) {
    animation-delay: 0.2s;
    font-style: italic;
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 0;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1s ease 0.4s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 20px 50px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

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

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

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

/* Sections General */
section {
    padding: var(--spacing-section) 0;
    border-bottom: 1px solid var(--border-color);
}

/* Tighter spacing for portfolio / engagements section */
#portfolio {
    padding-top: 60px;
    padding-bottom: 80px;
    overflow-x: hidden;
}

#portfolio .section-header {
    margin-bottom: 60px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    #portfolio {
        padding-top: 40px;
        padding-bottom: 40px;
        overflow-x: hidden;
    }
    
    #portfolio .section-header {
        margin-bottom: 30px;
    }
}

.section-header {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 60px;
    max-width: 600px;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    display: block;
}

/* Cinematic motion typography block (services heading) */

body.js-motion-typography .motion-hero .motion-line {
    opacity: 0;
    transform: translate3d(0, 32px, 0) scale(0.96);
    filter: blur(14px);
}

.motion-hero {
    position: relative;
    overflow: hidden;
}

.motion-hero-lines {
    position: relative;
    z-index: 1;
}

.motion-title {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.15em;
}

.motion-title .motion-line {
    display: inline-block;
}

.motion-subcopy {
    margin-top: 18px;
    max-width: 460px;
    font-size: 16px;
    color: var(--text-secondary);
}

body.js-motion-typography .motion-hero.is-active .motion-line {
    animation: motion-line-in 880ms cubic-bezier(0.18, 0.64, 0.27, 0.99) forwards;
}

body.js-motion-typography .motion-hero.is-active .motion-line--1 { animation-delay: 0ms; }
body.js-motion-typography .motion-hero.is-active .motion-line--2 { animation-delay: 120ms; }
body.js-motion-typography .motion-hero.is-active .motion-line--3 { animation-delay: 260ms; }
body.js-motion-typography .motion-hero.is-active .motion-line--4 { animation-delay: 420ms; }
body.js-motion-typography .motion-hero.is-active .motion-line--5 { animation-delay: 620ms; }

@keyframes motion-line-in {
    0% {
        opacity: 0;
        transform: translate3d(0, 32px, 0) scale(0.96);
        filter: blur(18px);
    }
    55% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1.02);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 4px, 0) scale(1);
        filter: blur(0);
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.service-card {
    background: var(--bg-color);
    padding: 80px 40px;
    transition: background 0.3s ease, transform 0.7s ease, opacity 0.7s ease, filter 0.7s ease;
    position: relative;
}

.service-card:hover {
    background: var(--bg-secondary);
}

.service-number {
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    color: var(--accent-gold);
    margin-bottom: 40px;
    display: block;
    font-style: italic;
}

.service-card h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.service-features {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.service-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-link::after {
    content: '';
    transition: transform 0.3s ease;
}

.service-card:hover .service-link::after {
    transform: translateX(5px);
}

/* Sticky scroll layout for services */

.services-sticky {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    column-gap: 80px;
    align-items: flex-start;
}

.services-sticky-left {
    position: sticky;
    top: 140px;
    align-self: flex-start;
}

.services-sticky-right {
    min-height: 200vh;
    position: relative;
}

.services-grid--stacked {
    position: sticky;
    top: 140px;
    width: 100%;
    min-height: 600px;
    background: transparent;
    border: none;
}

.services-grid--stacked .service-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(12px);
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.18, 0.64, 0.27, 0.99),
                transform 1s cubic-bezier(0.18, 0.64, 0.27, 0.99),
                filter 1s cubic-bezier(0.18, 0.64, 0.27, 0.99);
    will-change: opacity, transform, filter;
    z-index: 1;
}

.services-grid--stacked .service-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
    z-index: 10;
}

.services-sticky-list {
    margin-top: 40px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-sticky-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.services-sticky-item-number {
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: var(--accent-gold);
    min-width: 32px;
}

.services-sticky-item-label {
    position: relative;
}

.services-sticky-item-label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.services-sticky-item.is-active {
    color: var(--text-primary);
}

.services-sticky-item.is-active .services-sticky-item-label::after {
    width: 100%;
}

@media (max-width: 1024px) {
    .services-sticky {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .services-sticky-left {
        position: static;
    }

    .services-sticky-right {
        min-height: auto;
    }

    .services-grid--stacked {
        position: static;
        min-height: auto;
    }

    .services-grid--stacked .service-card {
        position: static;
        margin-bottom: 40px;
        opacity: 1;
        transform: none;
        filter: none;
        pointer-events: auto;
    }

    .services-grid--stacked .service-card:last-child {
        margin-bottom: 0;
    }
}

/* Scroll-sequenced reveal for services cards */

body.js-motion-typography .services-grid .service-card {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.96);
    filter: blur(12px);
    pointer-events: none;
}

body.js-motion-typography .services-grid .service-card.is-visible {
    animation: service-card-in 820ms cubic-bezier(0.18, 0.64, 0.27, 0.99) forwards;
    animation-delay: calc(var(--motion-i, 0) * 140ms);
}

/* Only keep the currently active card fully visible; others fade away on scroll */
body.js-motion-typography .services-grid--stacked .service-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
    z-index: 10;
}

body.js-motion-typography .services-grid--stacked .service-card.is-visible:not(.is-active) {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(12px);
    z-index: 1;
}

@keyframes service-card-in {
    0% {
        opacity: 0;
        transform: translate3d(0, 40px, 0) scale(0.96);
        filter: blur(14px);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1.02);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 4px, 0) scale(1);
        filter: blur(0);
    }
}

/* Per-line description reveal inside each service card */

body.js-motion-typography .service-card.is-visible .service-features li {
    animation: feature-line-in 680ms cubic-bezier(0.18, 0.64, 0.27, 0.99) forwards;
    animation-delay: calc(var(--feature-i, 0) * 110ms + 260ms);
}

@keyframes feature-line-in {
    0% {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
        filter: blur(10px);
    }
    55% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 2px, 0);
        filter: blur(0);
    }
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-item:nth-child(even) {
    transform: translateY(80px);
}

.portfolio-image {
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    filter: grayscale(100%);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-info h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Partners Section */
.partners-section {
    background: var(--bg-color);
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.partners-section .section-header {
    margin-bottom: 40px;
}

.partners-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.partners-scroll-track {
    display: flex;
    gap: 60px;
    width: fit-content;
    animation: scroll-partners 30s linear infinite;
    will-change: transform;
}

.partners-scroll-track:hover {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 150px;
    padding: 20px 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-partner 0.8s ease forwards;
    animation-delay: calc(var(--partner-index, 0) * 0.1s);
}

.partner-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(73, 41, 71, 0.1);
}

.partner-item:hover .partner-logo {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(73, 41, 71, 0.2);
}

.partner-logo-initial {
    font-size: 32px;
    font-weight: 600;
    color: var(--bg-color);
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
}

.partner-name {
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.partner-item:hover .partner-name {
    color: var(--accent-gold);
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes fade-in-partner {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 40px 0;
    }
    
    .partners-section .section-header {
        margin-bottom: 30px;
    }
    
    .partners-scroll-track {
        gap: 40px;
        animation-duration: 25s;
    }
    
    .partner-item {
        min-width: 120px;
        padding: 15px 20px;
    }
    
    .partner-logo {
        width: 60px;
        height: 60px;
    }
    
    .partner-logo-initial {
        font-size: 24px;
    }
    
    .partner-name {
        font-size: 12px;
    }
}

/* Contact */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
    background-size: cover;
    background-attachment: fixed;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    position: relative;
    z-index: 2;
}

.contact-text h2 {
    font-size: 80px;
    margin-bottom: 40px;
}

.contact-text p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 400px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    color: var(--text-primary);
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    margin-bottom: 30px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.contact-form button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.contact-form button::after {
    content: '';
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.contact-form button:hover::after {
    transform: translateX(10px);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 100px 0 0;
    position: relative;
}

.footer-main {
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h2 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-links {
    display: contents;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-col a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-gold);
    padding-left: 8px;
}

.footer-col a:hover::before {
    width: 100%;
}

.footer-contact-item {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-item strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.footer-contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--accent-gold);
}

.footer-newsletter {
    margin-top: 8px;
}

.footer-newsletter p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.footer-newsletter-form button {
    padding: 12px 24px;
    border: 1px solid var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-newsletter-form button:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-copyright a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--accent-gold);
}

.footer-legal {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal li a {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal li a:hover {
    color: var(--accent-gold);
}

.powered-by {
    position: sticky;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    color: #ccc;
    text-align: center;
    padding: 12px 0;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.powered-by a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: #f5d76e;
    text-decoration: underline;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: rgba(245, 242, 235, 0.88);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Page Specific Styles - Consolidated */

/* About Page */
.page-header {
    padding: 200px 0 100px;
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 100px;
}

.about-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-item span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.team-member img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

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

.team-member h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-member span {
    color: var(--accent-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Page */
.service-detail {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.service-info h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 18px;
}

.capabilities-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.capability-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.capability-item:hover {
    border-color: var(--accent-gold);
    background: var(--bg-secondary);
}

.capability-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.capability-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Work Page */
.work-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 120px;
    margin-top: 100px;
}

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

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even) .project-info {
    direction: ltr;
}

.project-image {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.project-info h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--accent-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 500px;
}

.btn-project {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 5px;
}

/* Contact Page */
.contact-page-section {
    min-height: 100vh;
    padding-top: 150px;
    background: 
        linear-gradient(135deg, rgba(247, 246, 245, 0.85) 0%, rgba(235, 233, 228, 0.75) 50%, rgba(181, 181, 169, 0.6) 100%),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.contact-page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(247, 246, 245, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(181, 181, 169, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, rgba(247, 246, 245, 0.4) 0%, rgba(73, 41, 71, 0.1) 100%);
    z-index: 1;
}

.contact-page-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-details h1 {
    font-size: 80px;
    margin-bottom: 40px;
}

.contact-details p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 400px;
}

.contact-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.meta-item h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.meta-item p {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 60px;
    border: 1px solid var(--border-color);
}

/* Case Study Page */
.case-hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 100px;
}

.case-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.case-meta {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
}

.meta-item span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.meta-item p {
    font-size: 14px;
    color: var(--text-primary);
}

.case-content {
    max-width: 800px;
    margin: 0 auto 100px;
}

.case-section {
    margin-bottom: 80px;
}

.case-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.case-section p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.case-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
}

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

.full-width-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    margin-bottom: 100px;
}

.next-project {
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.next-project span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.next-project h2 {
    font-size: 60px;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.next-project:hover h2 {
    color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 50px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 80px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .portfolio-item:nth-child(even) {
        transform: none;
    }

    .about-grid {
        gap: 40px;
    }

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

    .contact-container {
        gap: 60px;
    }

    .contact-details h1 {
        font-size: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .luxury-nav {
        padding: 20px;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-title {
        font-size: 40px;
    }

    /* About Page Responsive */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .stat-row {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat-item {
        width: 50%;
    }

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

    /* Services Page Responsive */
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .capabilities-list {
        grid-template-columns: 1fr;
    }

    /* Work Page Responsive */
    .project-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card:nth-child(even) {
        direction: ltr;
    }

    .project-card:nth-child(even) .project-info {
        direction: ltr;
    }

    .project-image {
        height: 400px;
    }

    .project-info h2 {
        font-size: 36px;
    }

    /* Contact Page Responsive */
    .contact-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .contact-details h1 {
        font-size: 48px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    /* Case Study Responsive */
    .case-hero {
        height: 60vh;
    }

    .case-hero-overlay {
        padding: 30px;
    }

    .case-meta {
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .full-width-img {
        height: 300px;
    }

    /* Footer Responsive */
    .footer {
        padding: 60px 0 0;
    }

    .footer-main {
        padding-bottom: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-form button {
        width: 100%;
    }
}

/* ===== Team Sticky Section ===== */
.team-sticky-section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.team-sticky-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    column-gap: 80px;
    align-items: flex-start;
}

.team-sticky-left {
    position: sticky;
    top: 140px;
    align-self: flex-start;
}

.team-sticky-right {
    min-height: 200vh;
    position: relative;
}

.team-cards-container {
    position: sticky;
    top: 140px;
    width: 100%;
    min-height: 600px;
}

.team-person-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(12px);
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.18, 0.64, 0.27, 0.99),
                transform 1s cubic-bezier(0.18, 0.64, 0.27, 0.99),
                filter 1s cubic-bezier(0.18, 0.64, 0.27, 0.99);
    will-change: opacity, transform, filter;
    z-index: 1;
}

.team-person-card.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
    z-index: 10;
}

.team-person-image {
    width: 50%;
    flex-shrink: 0;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.team-person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    filter: grayscale(100%);
}

.team-person-card.is-active .team-person-image img {
    filter: grayscale(0%);
}

.team-person-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.team-person-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 20px;
}

.team-person-name {
    font-size: 48px;
    margin-bottom: 30px;
    color: var(--text-primary);
    line-height: 1.1;
}

.team-person-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
}

.team-sticky-list {
    margin-top: 40px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-sticky-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    cursor: pointer;
}

.team-sticky-item-number {
    font-family: 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: var(--accent-gold);
    min-width: 32px;
}

.team-sticky-item-label {
    position: relative;
}

.team-sticky-item-label::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.team-sticky-item.is-active {
    color: var(--text-primary);
}

.team-sticky-item.is-active .team-sticky-item-label::after {
    width: 100%;
}

@media (max-width: 1024px) {
    .team-sticky-wrapper {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .team-sticky-left {
        position: static;
    }

    .team-sticky-right {
        min-height: auto;
    }

    .team-cards-container {
        position: static;
        min-height: auto;
    }

    .team-person-card {
        position: static;
        flex-direction: column;
        margin-bottom: 60px;
        opacity: 1;
        transform: none;
        filter: none;
        pointer-events: auto;
    }

    .team-person-card:last-child {
        margin-bottom: 0;
    }

    .team-person-image {
        width: 100%;
        height: 500px;
        margin-bottom: 40px;
    }

    .team-person-content {
        padding: 0;
    }

    .team-person-name {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .team-sticky-section {
        padding: 60px 0;
        min-height: auto;
    }

    .team-person-card {
        flex-direction: column;
        gap: 30px;
    }

    .team-person-image {
        width: 100%;
        height: 400px;
        margin-bottom: 30px;
    }

    .team-person-content {
        padding: 0;
    }

    .team-person-name {
        font-size: 32px;
    }

    .team-person-description {
        font-size: 16px;
    }
}

/* ===== Recent Engagements 3D Fan Carousel ===== */

/* Geometry variables (precise values set via JS) */
:root {
    --cardW: 280px;
    --cardH: 480px;
    --radius: 250px;
    --z: 50px;
}

/* Section-scoped container (no longer fixed to viewport) */
.engagements-overlay {
    position: relative;
    width: 100vw;
    height: 500px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: #f9fafb;
    isolation: isolate;
}

/* Prevent overflow on mobile */
@media (max-width: 768px) {
    .engagements-overlay {
        overflow: hidden;
        height: 450px;
    }
}

/* Centered 3D scene container */
.engagements-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    transform-style: preserve-3d;

    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .engagements-overlay {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .engagements-scene {
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
}

.engagements-cards {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Individual card base */
.eng-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--cardW);
    height: var(--cardH);
    transform-style: preserve-3d;
    transform-origin: center center;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;

    /* per-card vars controlled by JS */
    --angle: 0deg;
    --norm: 0;
    --lift: 0px;
    --zLocal: var(--z);
    --opacityDim: 1;
    --scale: 1;
    --shadow-strength: 0.16;

    transition:
        box-shadow 220ms ease,
        filter 220ms ease;
}

/* Core transform sequence */
.eng-card {
    transform:
        translate3d(-50%, -50%, 0)
        rotateZ(var(--angle))
        translateX(calc(var(--norm) * var(--radius)))
        translateY(var(--lift))
        scale(var(--scale));
}

.eng-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, calc(var(--shadow-strength) * 0.8)),
        0 1px 3px rgba(0, 0, 0, calc(var(--shadow-strength) * 0.4));
    display: block;
    transform: translateZ(0);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.eng-card-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.eng-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.eng-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.eng-card-content {
    display: none;
}

.eng-card-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.eng-card-title {
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 600;
    color: #e5e7eb;
}

.eng-card-subtitle {
    font-size: 0.82rem;
    color: #9ca3af;
}

.eng-card-summary {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #cbd5f5;
    flex-grow: 1;
}

.eng-card-link {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #bfdbfe;
    align-self: flex-start;
    border-bottom: 1px solid rgba(191, 219, 254, 0.7);
    padding-bottom: 2px;
}

.eng-card-link:hover {
    color: #fff;
    border-color: #fff;
}

/* Active vs inactive visual states */
.eng-card {
    opacity: var(--opacityDim);
    filter: brightness(calc(0.92 + 0.08 * var(--opacityDim)));
}

/* Desktop tuning: adjust spacing between heading and cards */
@media (min-width: 1024px) {
    .engagements-overlay {
        margin-top: 0;
        height: 550px;
    }
    .eng-card {
        top: 50%;
    }
}

/* Small screens: tighten spacing, keep everything inside viewport */
@media (max-width: 768px) {
    .engagements-overlay {
        height: 380px;
        overflow: hidden;
        padding: 0 10px;
    }

    .engagements-scene {
        width: 100%;
        height: 100%;
        max-width: 100vw;
    }

    .engagements-cards {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .eng-card {
        --shadow-strength: 0.12;
    }

    .eng-card-content {
        padding: 0.9rem 1.1rem 1.1rem;
        gap: 0.3rem;
    }

    .eng-card-title {
        font-size: 0.95rem;
    }

    .eng-card-summary {
        font-size: 0.78rem;
    }
}

/* Extra small screens */
@media (max-width: 520px), (max-height: 520px) {
    .engagements-overlay {
        height: 350px;
        overflow: hidden;
        padding: 0 5px;
    }

    .engagements-scene {
        width: 100%;
        height: 100%;
    }
}

