/* ═══════════════════════════════════════════════════════════
   RÉSIDENCE — Layout 4 — Architectural Assembly
   ═══════════════════════════════════════════════════════════ */

:root {
    --black: #090e0c;
    --black-light: #0f1613;
    --black-mid: #161e1a;
    --cream: #e8ede9;
    --cream-dark: #b8c4ba;
    --gold: #7b9e8c;
    --gold-dark: #5f8572;
    --muted: #6b7d72;
    --border: rgba(232, 237, 233, 0.1);
    --cream-bg: #dfe7e1;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Space Grotesk', 'Helvetica Neue', sans-serif;

    --fs-massive: clamp(4rem, 10vw, 12rem);
    --fs-display: clamp(2.8rem, 6vw, 7rem);
    --fs-heading: clamp(2rem, 4vw, 4.5rem);
    --fs-sub: clamp(1.1rem, 1.5vw, 1.5rem);
    --fs-body: clamp(0.9rem, 1vw, 1.05rem);
    --fs-small: 0.8rem;
    --fs-micro: 0.7rem;

    --pad: clamp(1.5rem, 4vw, 4rem);
    --nav-h: 4.5rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    font-family: var(--sans);
    font-weight: 300;
    color: var(--cream);
    background: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a { text-decoration: none; color: inherit; cursor: none; }
button { border: none; background: none; font: inherit; color: inherit; cursor: none; }
img { display: block; max-width: 100%; }
input, textarea { border: none; outline: none; background: none; font: inherit; color: inherit; cursor: none; }

::selection { background: var(--gold); color: var(--black); }

.text-accent { color: var(--gold); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   GRAIN
   ═══════════════════════════════════════════════════════════ */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px;
}

/* ═══════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 2;
}

.preloader__brand {
    font-family: var(--sans);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cream-dark);
}

.preloader__bar {
    width: 120px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.preloader__bar-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
}

.preloader__count {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 300;
    color: var(--cream);
}

.preloader__curtain {
    position: absolute;
    inset: 0;
    background: var(--black);
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   CURSOR
   ═══════════════════════════════════════════════════════════ */
.cursor {
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

@media (hover: none) { .cursor { display: none; } }

.cursor__dot {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cream);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cursor__ring {
    position: absolute;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(232,237,233,0.4);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1),
                height 0.4s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s,
                opacity 0.3s;
}

.cursor__label {
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-micro);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.35s, transform 0.5s cubic-bezier(0.16,1,0.3,1);
    mix-blend-mode: normal;
}

.cursor.is-hover .cursor__ring {
    width: 60px; height: 60px;
    border-color: var(--gold);
}

.cursor.is-label .cursor__label {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cursor.is-label .cursor__ring,
.cursor.is-label .cursor__dot { opacity: 0; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad);
    height: var(--nav-h);
    mix-blend-mode: difference;
    opacity: 0;
    transform: translateY(-100%);
}

.header__logo {
    font-family: var(--sans);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__cta-text {
    font-size: var(--fs-micro);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dark);
}

@media (max-width: 767px) { .header__cta-text { display: none; } }

.header__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    position: relative;
}

.header__menu-btn-line {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--cream);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
}

.header__menu-btn.is-active .header__menu-btn-line:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.header__menu-btn.is-active .header__menu-btn-line:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

.header__menu-btn-text {
    position: absolute;
    top: calc(100% + 2px);
    right: 10px;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   FULLSCREEN MENU
   ═══════════════════════════════════════════════════════════ */
.menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
}

.menu.is-open {
    pointer-events: all;
    opacity: 1;
}

.menu__bg {
    position: absolute;
    inset: 0;
    background: var(--black);
    opacity: 0;
    transition: opacity 0.6s;
}

.menu.is-open .menu__bg { opacity: 0.97; }

.menu__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: var(--nav-h) var(--pad) var(--pad);
}

.menu__links {
    display: flex;
    flex-direction: column;
}

.menu__link {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s, transform 0.5s;
}

.menu.is-open .menu__link {
    opacity: 1;
    transform: translateY(0);
}

.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.2s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.25s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.3s; }

.menu__link-index {
    font-size: var(--fs-micro);
    color: var(--gold);
    font-weight: 400;
}

.menu__link-text {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 300;
    overflow: hidden;
    transition: transform 0.4s;
}

.menu__link:hover .menu__link-text { transform: translateX(1rem); }

.menu__image-preview {
    position: fixed;
    right: var(--pad);
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 360px;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s;
    display: none;
}

@media (min-width: 960px) { .menu__image-preview { display: block; } }
.menu__image-preview.is-visible { opacity: 1; }
.menu__image-inner { width: 100%; height: 100%; }
.menu__preview-img { width: 100%; height: 100%; object-fit: cover; }

.menu__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    transition: opacity 0.5s 0.35s;
}

.menu.is-open .menu__footer { opacity: 1; }

.menu__social {
    display: flex;
    gap: 2rem;
    font-size: var(--fs-small);
    color: var(--muted);
}
.menu__social a:hover { color: var(--cream); }

.menu__email {
    font-size: var(--fs-small);
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════════════════════ */
.section-index {
    display: inline-block;
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.section-heading {
    font-family: var(--serif);
    font-size: var(--fs-heading);
    font-weight: 300;
    line-height: 1.15;
}

/* ═══════════════════════════════════════════════════════════
   HERO — Mosaic Image Assembly
   8 tiles (4x2 grid) that assemble from scattered positions.
   Each tile shows a portion of the hero image.
   Mouse parallax per tile after assembly.
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.hero__mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    z-index: 0;
}

.hero__tile {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1800&q=85');
    background-size: 400% 200%; /* 4 cols x 2 rows */
    filter: brightness(0.4) saturate(0.9);
    opacity: 0;
}

/* Position each tile's background to show its portion of the image */
.hero__tile[data-col="0"][data-row="0"] { background-position: 0% 0%; }
.hero__tile[data-col="1"][data-row="0"] { background-position: 33.33% 0%; }
.hero__tile[data-col="2"][data-row="0"] { background-position: 66.66% 0%; }
.hero__tile[data-col="3"][data-row="0"] { background-position: 100% 0%; }
.hero__tile[data-col="0"][data-row="1"] { background-position: 0% 100%; }
.hero__tile[data-col="1"][data-row="1"] { background-position: 33.33% 100%; }
.hero__tile[data-col="2"][data-row="1"] { background-position: 66.66% 100%; }
.hero__tile[data-col="3"][data-row="1"] { background-position: 100% 100%; }

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(9,14,12,0.5) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
    padding: 0 var(--pad);
}

.hero__tag {
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3rem;
}

.hero__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    margin-bottom: 2rem;
}

.hero__line {
    display: block;
    overflow: hidden;
}

.hero__word {
    display: inline-block;
    font-family: var(--serif);
    font-size: var(--fs-massive);
    font-weight: 300;
    line-height: 1.1;
    transform: translateY(110%);
    will-change: transform;
}

.hero__word--accent {
    -webkit-text-stroke: 1.5px var(--cream);
    color: transparent;
}

.hero__word em {
    color: var(--gold);
    font-style: italic;
    -webkit-text-stroke: 0;
}

.hero__sub {
    font-size: var(--fs-body);
    color: var(--muted);
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--fs-micro);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
}

.hero__scroll-line {
    width: 40px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line-fill {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 100%;
    background: var(--gold);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hero corner subtle writings */
.hero__corner {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
}

.hero__corner-text {
    font-size: var(--fs-micro);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(232, 237, 233, 0.7);
    font-weight: 400;
    line-height: 1.4;
}

.hero__corner--tl {
    top: calc(var(--nav-h) + 2rem);
    left: var(--pad);
}

.hero__corner--tr {
    top: calc(var(--nav-h) + 2rem);
    right: var(--pad);
    text-align: right;
}

.hero__corner--bl {
    bottom: 5rem;
    left: var(--pad);
}

.hero__corner--br {
    bottom: 5rem;
    right: var(--pad);
    text-align: right;
}

@media (max-width: 767px) {
    .hero__corner { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   REEL (KEPT)
   ═══════════════════════════════════════════════════════════ */
.reel {
    padding: 4rem 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--black);
}

.reel__line {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: max-content;
    will-change: transform;
}

.reel__line + .reel__line { margin-top: 1.5rem; }

.reel__line span {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 300;
    white-space: nowrap;
    color: var(--cream);
    font-style: italic;
}

.reel__line--right span {
    -webkit-text-stroke: 1px var(--cream);
    color: transparent;
    font-style: normal;
}

.reel__sep {
    font-size: 0.8rem !important;
    color: var(--gold) !important;
    font-style: normal !important;
    -webkit-text-stroke: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   PROPERTIES — Horizontal Scroll Cinema
   Pinned section, scroll drives horizontal movement.
   Each property is a full-screen "frame" with
   circle clip-path reveal on the image.
   ═══════════════════════════════════════════════════════════ */
.properties {
    position: relative;
}

.properties__header {
    padding: 8rem var(--pad) 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.properties__subtitle {
    font-size: var(--fs-body);
    color: var(--muted);
    margin-top: 1rem;
    letter-spacing: 0.03em;
}

.properties__cinema {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.properties__track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.prop-frame {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 clamp(3rem, 8vw, 10rem);
    gap: clamp(2rem, 6vw, 8rem);
}

.prop-frame__image {
    position: relative;
    width: 55%;
    height: 75%;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.prop-frame__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    will-change: transform;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prop-frame:hover .prop-frame__image img {
    transform: scale(1.05);
}

.prop-frame__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prop-frame__index {
    display: block;
    font-family: var(--serif);
    font-size: clamp(5rem, 10vw, 10rem);
    font-weight: 300;
    color: rgba(232, 237, 233, 0.06);
    line-height: 1;
    margin-bottom: -1rem;
}

.prop-frame__name {
    font-family: var(--serif);
    font-size: var(--fs-display);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.prop-frame__location {
    display: inline-block;
    font-size: var(--fs-small);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.prop-frame__meta {
    display: flex;
    gap: 2.5rem;
    font-size: var(--fs-small);
    color: var(--cream-dark);
    letter-spacing: 0.05em;
}

.properties__progress {
    position: relative;
    height: 3px;
    background: var(--border);
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0;
}

.properties__progress-fill {
    height: 100%;
    width: 0;
    background: var(--gold);
    will-change: width;
}

@media (max-width: 767px) {
    .prop-frame {
        flex-direction: column;
        padding: 3rem var(--pad);
        gap: 2rem;
    }
    .prop-frame__image {
        width: 100%;
        height: 45%;
    }
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE (KEPT)
   ═══════════════════════════════════════════════════════════ */
.experience {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
}

.experience__image-wrapper {
    position: absolute;
    inset: 0;
}

.experience__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    will-change: transform;
    filter: brightness(0.4);
}

.experience__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 var(--pad);
}

.experience__title {
    font-family: var(--serif);
    font-size: var(--fs-display);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.experience__title > span {
    display: block;
    overflow: hidden;
}

.exp-reveal > span {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}

.experience__text {
    font-size: var(--fs-body);
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Button ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: var(--fs-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.1rem 2.2rem;
    border: 1px solid var(--gold);
    transition: background 0.5s cubic-bezier(0.16,1,0.3,1), color 0.5s;
}

.btn:hover {
    background: var(--gold);
    color: var(--black);
}

.btn__arrow {
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   ABOUT (KEPT — Our Philosophy)
   ═══════════════════════════════════════════════════════════ */
.about {
    padding: 10rem 0;
    overflow: hidden;
    background: var(--cream-bg);
    color: var(--black);
    position: relative;
}

/* Gradient top transition into light section */
.about::before {
    content: '';
    position: absolute;
    top: -8rem;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to bottom, transparent, var(--cream-bg));
    pointer-events: none;
    z-index: 2;
}

.about__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.about__top { margin-bottom: 5rem; }

.about__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 8rem);
    margin-bottom: 6rem;
}

.about__text-col {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: center;
}

.about__quote {
    border-left: 2px solid var(--gold-dark);
    padding-left: clamp(1.5rem, 3vw, 3rem);
}

.about__quote-text {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
    color: var(--black);
}

.about__quote-text .word {
    display: inline;
    color: var(--muted);
    transition: color 0.4s;
    margin-right: 0.3em;
}

.about__quote-text .word.is-active { color: var(--black); }

.about__image {
    position: relative;
    overflow: hidden;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.about__image--main { aspect-ratio: 3 / 4; }
.about__image--inline { aspect-ratio: 16 / 10; max-width: 380px; }

.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(9, 14, 12, 0.12);
}

.about__stat { text-align: center; }

.about__stat-num {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 300;
    color: var(--gold-dark);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.about__stat-label {
    font-size: var(--fs-micro);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 767px) {
    .about__body { grid-template-columns: 1fr; }
    .about__stats { grid-template-columns: repeat(2, 1fr); }
    .about__image--inline { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY — Bento Grid Showcase
   Asymmetric grid with mixed cell sizes, hover reveals,
   parallax images. On a light cream background.
   ═══════════════════════════════════════════════════════════ */
.gallery {
    padding: 10rem 0 6rem;
    position: relative;
    background: var(--cream-bg);
    color: var(--black);
}

.gallery__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.gallery__header {
    margin-bottom: 5rem;
}

.gallery__bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, 1fr);
    gap: clamp(0.8rem, 1.5vw, 1.5rem);
}

/* Cell hero — spans 2 cols + 2 rows */
.gallery__cell--hero {
    grid-column: span 2;
    grid-row: span 2;
}

/* Cell tall — spans 2 rows */
.gallery__cell--tall {
    grid-row: span 2;
}

/* Cell wide — spans 2 cols */
.gallery__cell--wide {
    grid-column: span 2;
}

.gallery__cell {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    min-height: 220px;
}

.gallery__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s;
    filter: brightness(0.92) saturate(0.95);
    will-change: transform;
}

.gallery__cell:hover img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1.1);
}

.gallery__cell-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(1rem, 2vw, 2rem);
    background: linear-gradient(transparent, rgba(9, 14, 12, 0.8));
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--cream);
}

.gallery__cell:hover .gallery__cell-info {
    transform: translateY(0);
}

.gallery__cell-num {
    display: block;
    font-size: var(--fs-micro);
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.gallery__cell-title {
    font-family: var(--serif);
    font-size: var(--fs-sub);
    font-weight: 300;
    margin-bottom: 0.2rem;
}

.gallery__cell-cat {
    font-size: var(--fs-micro);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dark);
}

@media (max-width: 767px) {
    .gallery__bento {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
    .gallery__cell--hero { grid-column: span 2; grid-row: span 1; }
    .gallery__cell--wide { grid-column: span 2; }
    .gallery__cell--tall { grid-row: span 1; }
    .gallery__cell-info { transform: translateY(0); }
}

/* Light-bg overrides for About + Gallery */
.about .section-index,
.gallery .section-index { color: var(--gold-dark); }

.about .section-heading,
.gallery .section-heading { color: var(--black); }

@media (max-width: 767px) {
    .gallery__duo { grid-template-columns: 1fr; }
    .gallery__spread--full .gallery__img-wrap { aspect-ratio: 4 / 3; }
}

/* ═══════════════════════════════════════════════════════════
   SERVICES (KEPT — What We Do)
   ═══════════════════════════════════════════════════════════ */
.services {
    padding: 8rem 0;
    background: var(--black-light);
    position: relative;
}

/* Gradient from light gallery into dark services */
.services::before {
    content: '';
    position: absolute;
    top: -8rem;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to bottom, transparent, var(--black-light));
    pointer-events: none;
    z-index: 2;
}

.services__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.services__header { margin-bottom: 5rem; }

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
}

.service-card {
    position: relative;
    background: var(--black-light);
    padding: clamp(2rem, 4vw, 4rem);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) saturate(0.8);
    transform: scale(1.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__image {
    opacity: 1;
}

.service-card:hover .service-card__image img {
    transform: scale(1);
}

.service-card__content {
    position: relative;
    z-index: 2;
}

.service-card__number {
    display: block;
    font-size: clamp(4rem, 6vw, 6rem);
    font-family: var(--serif);
    font-weight: 300;
    color: rgba(232,237,233,0.06);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.5s;
}

.service-card:hover .service-card__number {
    color: rgba(123, 158, 140, 0.2);
}

.service-card__name {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__name {
    transform: translateY(-5px);
}

.service-card__desc {
    font-size: var(--fs-body);
    color: var(--muted);
    line-height: 1.8;
    max-width: 340px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s 0.1s, transform 0.5s 0.1s cubic-bezier(0.16,1,0.3,1);
}

.service-card:hover .service-card__desc {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .services__grid { grid-template-columns: 1fr; }
    .service-card { min-height: 300px; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT — Dramatic centered
   ═══════════════════════════════════════════════════════════ */
.contact {
    padding: 10rem 0;
    border-top: 1px solid var(--border);
}

.contact__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.contact__hero-text {
    text-align: center;
    margin-bottom: 5rem;
}

.contact__heading {
    font-family: var(--serif);
    font-size: var(--fs-display);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact__heading em {
    color: var(--gold);
    font-weight: 300;
}

.contact__heading .char-reveal {
    display: block;
    overflow: visible;
}

.contact__intro {
    font-size: var(--fs-sub);
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 1rem;
}

.contact__info-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact__info-label {
    font-size: var(--fs-micro);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.contact__info-value {
    font-size: var(--fs-body);
    color: var(--cream-dark);
    transition: color 0.3s;
}

a.contact__info-value:hover { color: var(--gold); }

.contact__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-body);
    background: transparent;
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--gold);
}

.form-field label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: var(--fs-body);
    color: var(--muted);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

.form-field input:not(:placeholder-shown) + label,
.form-field input:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field textarea:focus + label {
    top: -0.8rem;
    font-size: var(--fs-micro);
    color: var(--gold);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact__form .btn { margin-top: 1rem; }

@media (max-width: 767px) {
    .contact__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem var(--pad);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__logo {
    font-family: var(--sans);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer__social {
    display: flex;
    gap: 2rem;
    font-size: var(--fs-small);
    color: var(--muted);
}

.footer__social a:hover { color: var(--cream); }

.footer__credit {
    font-size: var(--fs-micro);
    color: var(--muted);
}

.footer__credit a {
    color: var(--gold);
    transition: opacity 0.3s;
}

.footer__credit a:hover { opacity: 0.7; }

@media (max-width: 767px) {
    .footer__social { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body.no-scroll { overflow: hidden; }
