@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Montserrat:wght@300;400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #2D1F1F;
    --dark: #402423;
    --pearl: #F2EDE9;
    --accent: #96603C;
    --pearl-10: rgba(242,237,233,0.1);
    --pearl-20: rgba(242,237,233,0.2);
    --pearl-40: rgba(242,237,233,0.4);
    --pearl-60: rgba(242,237,233,0.6);
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Montserrat', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: auto; }

body {
    font-family: var(--sans);
    background: var(--black);
    color: var(--pearl);
    overflow-x: hidden;
    cursor: none;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ================================
   CURSOR
================================ */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--dark);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 0.5px solid rgba(64,36,35,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease), height 0.4s var(--ease), background 0.4s, border-color 0.4s;
}

.cursor-ring.hovering {
    width: 64px;
    height: 64px;
    background: rgba(64,36,35,0.08);
    border-color: rgba(64,36,35,0.3);
}

.site-header.scrolled .cursor-dot {
    background: var(--pearl);
}

/* ================================
   PRELOADER
================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.preloader-logo {
    opacity: 0;
    transform: translateY(20px);
}

.preloader-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.preloader-counter {
    font-family: var(--serif);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    color: var(--pearl);
    opacity: 0;
    letter-spacing: -2px;
    line-height: 1;
}

.preloader-bar {
    width: 200px;
    height: 0.5px;
    background: var(--pearl-10);
    position: relative;
    overflow: hidden;
}

.preloader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--pearl);
    transition: width 0.05s linear;
}

/* ================================
   HEADER
================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 32px 48px;
    transition: background 0.6s var(--ease), padding 0.4s var(--ease);
}

.site-header.scrolled {
    background: rgba(45,31,31,0.92);
    backdrop-filter: blur(16px);
    padding: 20px 48px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: filter 0.4s;
}

.site-header.scrolled .site-logo img {
    filter: brightness(0) invert(1);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 12px;
    letter-spacing: 2.5px;
    color: #402423;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 0.5px;
    background: currentColor;
    transition: width 0.4s var(--ease);
}

.nav-menu a:hover::after { width: 100%; }

.site-header.scrolled .nav-menu a {
    color: rgba(242,237,233,0.6);
}

.site-header.scrolled .nav-menu a:hover {
    color: var(--pearl);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 0.5px;
    background: var(--dark);
    transition: transform 0.4s var(--ease), opacity 0.3s;
}

.site-header.scrolled .nav-toggle span {
    background: var(--pearl);
}

/* ================================
   MOBILE NAV
================================ */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}

.mobile-nav.open { opacity: 1; pointer-events: all; }

.mobile-nav ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.mobile-nav a {
    font-family: var(--serif);
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 300;
    color: var(--pearl);
    letter-spacing: 2px;
    transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--pearl-60); }

/* ================================
   HERO
================================ */
.s-hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 48px 56px;
    overflow: hidden;
}

.s-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.s-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(242,237,233,0.15) 0%,
        rgba(242,237,233,0.05) 30%,
        rgba(45,31,31,0.8) 100%
    );
    z-index: 1;
}

.s-hero__content, .s-hero__bottom { position: relative; z-index: 2; }
.s-hero__content { margin-top: auto; padding-bottom: 32px; }

.s-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 3.5px;
    color: rgba(64,36,35,0.7);
    margin-bottom: 24px;
    display: block;
    overflow: hidden;
}

.s-hero__title {
    font-family: var(--serif);
    font-size: clamp(64px, 9vw, 130px);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -2px;
    color: #402423;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.title-line { display: block; overflow: hidden; }

.s-hero__title em {
    font-style: italic;
    color: rgba(64,36,35,0.6);
}

.s-hero__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.s-hero__sub {
    font-size: 11px;
    color: rgba(64,36,35,0.6);
    letter-spacing: 1.5px;
    line-height: 2.2;
}

.s-hero__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 3px;
    color: #402423;
    border: 0.5px solid rgba(64,36,35,0.4);
    padding: 16px 28px;
    transition: background 0.4s, border-color 0.4s, color 0.4s;
    position: relative;
    overflow: hidden;
}

.s-hero__cta:hover {
    color: var(--pearl);
    border-color: #402423;
    background: #402423;
}

.s-hero__cta span, .s-hero__cta svg { position: relative; z-index: 1; }

.s-hero__scroll-indicator {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 0.5px;
    height: 64px;
    background: rgba(64,36,35,0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 100%;
    background: #402423;
    animation: scrollDown 1.8s ease infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ================================
   STATEMENT
================================ */
.s-statement {
    position: relative;
    height: 350vh;
    background: var(--black);
}

.s-statement__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: 40% 60%;
    overflow: hidden;
}

.s-statement__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 64px 0 48px;
    background: var(--black);
}

.s-statement__label {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--pearl-40);
    margin-bottom: 40px;
}

.s-statement__text {
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 300;
    line-height: 1.5;
    color: var(--pearl);
}

.s-statement__text .word {
    display: inline-block;
    opacity: 0.12;
    margin-right: 0.25em;
}

.s-statement__text .word--em {
    font-style: italic;
    color: var(--pearl-60);
}

.s-statement__right {
    position: relative;
    overflow: hidden;
}

.statement-img {
    position: absolute;
    inset: 0;
    clip-path: inset(100% 0 0 0);
}

.statement-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

/* ================================
   PROJECTS HORIZONTAL
================================ */
.s-projects {
    position: relative;
    background: #1a1010;
}

.s-projects__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.s-projects__track {
    display: flex;
    gap: 24px;
    padding: 0 48px;
    will-change: transform;
}

.s-project-card {
    position: relative;
    min-width: 75vw;
    height: 85vh;
    overflow: hidden;
    flex-shrink: 0;
    cursor: none;
}

.s-project-card__img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.s-project-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s var(--ease);
}

.s-project-card:hover .s-project-card__img img {
    transform: scale(1.0);
}

.s-project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(45,31,31,0.9) 0%,
        rgba(45,31,31,0.1) 50%,
        transparent 100%
    );
}

.s-project-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 48px;
    z-index: 2;
}

.card-num {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--pearl-40);
    display: block;
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--serif);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 300;
    color: var(--pearl);
    line-height: 1;
    margin-bottom: 12px;
}

.card-title em { font-style: italic; color: var(--pearl-60); }

.card-type {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--pearl-40);
    display: block;
}

.s-project-card--cta {
    min-width: 40vw;
    background: var(--dark);
    display: flex;
    align-items: center;
}

.s-project-card--cta .s-project-card__info {
    position: relative;
    padding: 48px;
    bottom: auto;
}

.card-cta {
    display: inline-block;
    margin-top: 24px;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--pearl-60);
    border-bottom: 0.5px solid var(--pearl-20);
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
}

.card-cta:hover { color: var(--pearl); border-color: var(--pearl); }

/* ================================
   STUDIO
================================ */
.s-studio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.s-studio__image {
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
}

.s-studio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.s-studio__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 80px;
    background: var(--dark);
}

.s-studio__label {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--pearl-40);
    margin-bottom: 32px;
}

.s-studio__title {
    font-family: var(--serif);
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    color: var(--pearl);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

.s-studio__title span { display: block; overflow: hidden; }
.s-studio__title em { font-style: italic; color: var(--pearl-60); }

.s-studio__body {
    font-size: 13px;
    line-height: 2.1;
    color: var(--pearl-40);
    margin-bottom: 48px;
    max-width: 380px;
}

.s-studio__link {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--pearl-60);
    border-bottom: 0.5px solid var(--pearl-20);
    padding-bottom: 4px;
    width: fit-content;
    transition: color 0.3s, border-color 0.3s;
}

.s-studio__link:hover { color: var(--pearl); border-color: var(--pearl); }

/* ================================
   SERVICES
================================ */
.s-services {
    padding: 160px 48px;
    background: var(--pearl);
}

.s-services__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 80px;
}

.s-services__label {
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(45,31,31,0.4);
    margin-bottom: 16px;
}

.s-services__title {
    font-family: var(--serif);
    font-size: clamp(48px, 6vw, 96px);
    font-weight: 300;
    line-height: 1;
    color: var(--black);
}

.s-services__title em {
    font-style: italic;
    color: rgba(45,31,31,0.5);
}

.s-services__list { list-style: none; }

.s-service {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    padding: 28px 0;
    border-top: 0.5px solid rgba(45,31,31,0.15);
    position: relative;
    overflow: hidden;
    transition: padding 0.4s var(--ease);
}

.s-service::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.s-service:last-child { border-bottom: 0.5px solid rgba(45,31,31,0.15); }
.s-service:hover::before { transform: scaleX(1); }
.s-service:hover { padding-left: 16px; }

.s-service__num {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(45,31,31,0.3);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.s-service__name {
    font-size: 15px;
    letter-spacing: 0.5px;
    color: rgba(45,31,31,0.7);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.s-service:hover .s-service__num,
.s-service:hover .s-service__name { color: var(--pearl); }

.s-service__arrow {
    font-size: 16px;
    color: rgba(45,31,31,0.2);
    position: relative;
    z-index: 1;
    transition: transform 0.4s var(--ease), color 0.3s;
    text-align: right;
}

.s-service:hover .s-service__arrow {
    transform: translate(4px, -4px);
    color: var(--pearl);
}

/* ================================
   CTA
================================ */
.s-cta {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

.s-cta__content { text-align: center; }

.s-cta__label {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--pearl-40);
    margin-bottom: 32px;
    display: block;
}

.s-cta__title {
    font-family: var(--serif);
    font-size: clamp(56px, 9vw, 140px);
    font-weight: 300;
    line-height: 0.95;
    color: var(--pearl);
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.cta-line { display: block; overflow: hidden; }
.cta-line--left { text-align: left; padding-left: 48px; }
.cta-line--right { text-align: right; padding-right: 48px; }
.s-cta__title em { font-style: italic; color: var(--pearl-60); }

.s-cta__btn {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 3.5px;
    color: var(--black);
    background: var(--pearl);
    padding: 20px 48px;
    position: relative;
    overflow: hidden;
    transition: color 0.5s;
}

.s-cta__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dark);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}

.s-cta__btn:hover { color: var(--pearl); }
.s-cta__btn:hover::before { transform: translateY(0); }
.s-cta__btn span { position: relative; z-index: 1; }

/* ================================
   FOOTER
================================ */
.site-footer {
    padding: 80px 48px 48px;
    border-top: 0.5px solid var(--pearl-10);
    background: var(--black);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

.footer-logo {
    display: block;
    margin-bottom: 12px;
}

.footer-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.footer-tagline {
    font-size: 11px;
    color: var(--pearl-40);
    letter-spacing: 1px;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }

.footer-nav a {
    font-size: 11px;
    color: var(--pearl-40);
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.footer-nav a:hover { color: var(--pearl); }

.footer-right { display: flex; flex-direction: column; gap: 10px; }

.footer-address, .footer-email, .footer-phone {
    font-size: 11px;
    color: var(--pearl-40);
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.footer-email:hover, .footer-phone:hover { color: var(--pearl); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 0.5px solid var(--pearl-10);
}

.footer-bottom p, .footer-bottom a {
    font-size: 10px;
    color: var(--pearl-20);
    letter-spacing: 1px;
}

.footer-bottom a:hover { color: var(--pearl-60); }

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
    .site-header { padding: 20px 24px; }
    .site-header.scrolled { padding: 16px 24px; }
    .site-nav { display: none; }
    .nav-toggle { display: flex; }

    .s-hero { padding: 0 24px 40px; }
    .s-hero__title { font-size: clamp(44px, 12vw, 72px); letter-spacing: -1px; }
    .s-hero__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }

    .s-statement { height: auto; }
    .s-statement__sticky {
        position: relative;
        height: auto;
        grid-template-columns: 1fr;
    }
    .s-statement__left { padding: 80px 24px; }
    .s-statement__right { height: 60vh; position: relative; }
    .statement-img { clip-path: inset(0) !important; }
    .statement-img:not(:first-child) { display: none; }

    .s-projects { height: auto; }
    .s-projects__sticky {
        position: relative;
        height: auto;
        overflow-x: auto;
    }
    .s-projects__track { padding: 40px 24px; }
    .s-project-card { min-width: 85vw; height: 70vh; }

    .s-studio { grid-template-columns: 1fr; }
    .s-studio__image { height: 50vh; clip-path: inset(0) !important; }
    .s-studio__content { padding: 64px 24px; }

    .s-services { padding: 80px 24px; }
    .s-services__header { grid-template-columns: 1fr; gap: 16px; }

    .s-cta { height: auto; padding: 120px 24px; }
    .cta-line--left { padding-left: 0; text-align: center; }
    .cta-line--right { padding-right: 0; text-align: center; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}