@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    --dark: #0e0e0e;
    --dark-2: #161616;
    --dark-3: #1c1c1c;
    --light: #ececec;
    --light-2: #d4d4d4;
    --gray: #6e6e6e;
    --gray-light: #3a3a3a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 3px; }

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--light);
    overflow: hidden;
}

.loader-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: loaderReveal 0.6s ease forwards;
}

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

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 502;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
}

.logo em {
    font-style: italic;
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.7rem;
    letter-spacing: 1px;
    display: block;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--light);
    transition: width 0.4s var(--ease);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 501;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 1px;
    background: var(--light);
    transition: all 0.4s var(--ease);
}

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

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

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark-2);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease);
}

.mobile-menu.active .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) a { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) a { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) a { transition-delay: 0.4s; }

/* ===== HERO SECTION (Sticky + Ghost Typography) ===== */
.hero-wrapper {
    position: relative;
    height: 200vh;
}

.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark);
}

/* Ghost / Watermark Typography */
.ghost-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 18vw;
    font-weight: 700;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--gray-light);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.02em;
    line-height: 0.85;
    opacity: 0;
    animation: ghostIn 2s var(--ease) 1.8s forwards;
}

.ghost-text-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 18vw;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark-3);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.02em;
    line-height: 0.85;
    margin-top: 14vw;
    opacity: 0;
    animation: ghostIn 2s var(--ease) 2s forwards;
}

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

/* Hero Main Content */
.hero-main {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s ease 2.2s forwards;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--light);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-name .line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 1s var(--ease) forwards;
}

.hero-name .line:nth-child(1) { animation-delay: 2.3s; }
.hero-name .line:nth-child(2) { animation-delay: 2.5s; }

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeUp 1s ease 2.8s forwards;
}

.hero-tags span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    position: relative;
}

.hero-tags span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--gray-light);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Scroll Indicator */
.scroll-cue {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
    opacity: 0;
    animation: fadeUp 1s ease 3.2s forwards;
}

.scroll-cue span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
}

.scroll-cue .line {
    width: 1px;
    height: 50px;
    background: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.scroll-cue .line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    animation: scrollPulse 2.5s infinite var(--ease);
}

@keyframes scrollPulse {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ===== MAIN CONTENT (covers hero) ===== */
.main-content {
    position: relative;
    z-index: 10;
    background: var(--dark);
}

/* ===== MARQUEE STRIP ===== */
.marquee {
    padding: 1.8rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: flex;
    gap: 4rem;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-inner span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
    flex-shrink: 0;
}

.marquee-inner span .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gray);
    border-radius: 50%;
    margin: 0 2rem;
    vertical-align: middle;
}

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

/* ===== ABOUT SECTION ===== */
.about {
    padding: 10rem 5vw;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
}

.about-left {
    position: relative;
}

.about-label {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 2rem;
}

.about-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
    color: var(--light);
    margin-bottom: 2.5rem;
}

.about-heading em {
    font-style: italic;
    color: var(--gray);
}

.about-description {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 2rem;
}

.about-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--light-2);
    padding-left: 2rem;
    border-left: 2px solid var(--gray-light);
    margin-top: 3rem;
}

.about-right {
    position: relative;
}

.about-image-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.05);
    transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}

.about-image-wrap:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-light);
}

.stat-item .stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--light);
    display: block;
}

.stat-item .stat-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 0.3rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 8rem 5vw;
    border-top: 1px solid var(--gray-light);
}

.services-header {
    max-width: 1400px;
    margin: 0 auto 5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.services-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--light);
}

.services-header p {
    font-size: 0.85rem;
    color: var(--gray);
    max-width: 400px;
    text-align: right;
    line-height: 1.7;
}

.services-list {
    max-width: 1400px;
    margin: 0 auto;
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    cursor: default;
    transition: all 0.5s var(--ease);
}

.service-row:hover {
    padding-left: 1.5rem;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gray);
}

.service-name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--light);
    transition: color 0.4s ease;
}

.service-row:hover .service-name {
    color: var(--light-2);
    font-style: italic;
}

.service-desc {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PORTFOLIO / CATEGORIES ===== */
.portfolio {
    padding: 10rem 5vw;
}

.portfolio-header {
    max-width: 1400px;
    margin: 0 auto 5rem;
    text-align: center;
}

.portfolio-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--light);
    margin-bottom: 1rem;
}

.portfolio-header p {
    font-size: 0.85rem;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 380px);
    gap: 1rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Span specific items for visual variety */
.portfolio-item:nth-child(1) { grid-row: span 2; }
.portfolio-item:nth-child(4) { grid-column: span 2; }
.portfolio-item:nth-child(7) { grid-column: span 2; }

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease), filter 0.6s ease;
    filter: grayscale(40%);
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,14,14,0.95) 0%, rgba(14,14,14,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}

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

.portfolio-overlay .cat-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--light);
    transform: translateY(20px);
    transition: transform 0.6s var(--ease);
}

.portfolio-item:hover .portfolio-overlay .cat-name {
    transform: translateY(0);
}

.portfolio-overlay .cat-tag {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.6s var(--ease) 0.1s;
}

.portfolio-item:hover .portfolio-overlay .cat-tag {
    transform: translateY(0);
}

.portfolio-overlay .cat-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-10px) rotate(-45deg);
    opacity: 0;
    transition: all 0.5s var(--ease) 0.2s;
}

.portfolio-item:hover .portfolio-overlay .cat-arrow {
    opacity: 1;
    transform: translateY(0) rotate(-45deg);
}

.cat-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--light);
    fill: none;
    stroke-width: 2;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 8rem 5vw;
    border-top: 1px solid var(--gray-light);
}

.testimonials-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-label {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 3rem;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.6;
    color: var(--light);
    margin-bottom: 3rem;
}

.testimonial-author {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 10rem 5vw;
    text-align: center;
    position: relative;
}

.cta-ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 15vw;
    font-weight: 700;
    color: var(--dark-3);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    border: 1px solid var(--gray);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    background: transparent;
    cursor: pointer;
    transition: all 0.5s var(--ease);
    text-decoration: none;
}

.cta-btn:hover {
    background: var(--light);
    color: var(--dark);
    border-color: var(--light);
}

.cta-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--ease);
}

.cta-btn:hover svg {
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
footer {
    padding: 4rem 5vw;
    border-top: 1px solid var(--gray-light);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--light); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about { grid-template-columns: 1fr; gap: 4rem; padding: 7rem 5vw; }
    .portfolio { padding: 7rem 5vw; }
    .services { padding: 7rem 5vw; }
    .testimonials { padding: 7rem 5vw; }
    .cta { padding: 7rem 5vw; }
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .portfolio-item:nth-child(1) { grid-row: span 1; }
    .portfolio-item:nth-child(4) { grid-column: span 1; }
    .portfolio-item:nth-child(7) { grid-column: span 1; }
    .portfolio-grid .portfolio-item { min-height: 300px; }
    .services-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .services-header p { text-align: left; }
}

@media (max-width: 768px) {
    nav { 
        padding: 1.5rem 5vw; 
        mix-blend-mode: normal; 
        background: rgba(14, 14, 14, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    
    .hero-wrapper { height: 130vh; }
    .hero-name { font-size: 3rem; }
    .ghost-text, .ghost-text-2 { font-size: 28vw; }
    
    .about { padding: 5rem 5vw; gap: 3rem; }
    .about-heading { font-size: 2rem; }
    
    .services { padding: 5rem 5vw; }
    .services-header h2 { font-size: 2rem; }
    .service-row { grid-template-columns: 40px 1fr; gap: 1rem; padding: 1.5rem 0; }
    .service-desc { display: none; }
    .service-name { font-size: 1.2rem; }
    
    .portfolio { padding: 5rem 5vw; }
    .portfolio-header h2 { font-size: 2rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-grid .portfolio-item { min-height: 300px; }
    .portfolio-overlay { 
        opacity: 1; 
        background: linear-gradient(to top, rgba(14,14,14,0.9) 0%, transparent 70%);
    }
    .portfolio-overlay .cat-name,
    .portfolio-overlay .cat-tag,
    .portfolio-overlay .cat-arrow {
        transform: translateY(0);
        opacity: 1;
    }
    
    .about-stats { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .stat-item:nth-child(3) { grid-column: span 2; text-align: center; }
    .stat-item .stat-num { font-size: 2rem; }
    
    .testimonials { padding: 5rem 5vw; }
    .testimonial-quote { font-size: 1.2rem; }
    
    .cta { padding: 5rem 5vw; }
    .cta h2 { font-size: 2rem; }
    .cta-ghost { font-size: 22vw; }
    
    footer { padding: 3rem 5vw; }
    .footer-inner { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
}
