/* --- RESET & CORE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #111;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 400; }

/* Utility for scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    /* Increased distance (60px) and slight rotation for a more organic feel */
    transform: translateY(60px) skewY(1deg); 
    /* Longer duration (1.2s) with Quintic easing for smoothness */
    transition: 
        opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
}

/* Staggered Delays - Fine-tuned intervals */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }

@font-face {
  font-family: "PP Telegraf";
  src: url("../fonts/PPTelegraf-UltraLight.woff2") format("woff2"), url("../fonts/PPTelegraf-UltraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "PP Telegraf";
  src: url("../fonts/PPTelegraf-Regular.woff2") format("woff2"), url("../fonts/PPTelegraf-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "PP Telegraf";
  src: url("../fonts/PPTelegraf-UltraBold.woff2") format("woff2"), url("../fonts/PPTelegraf-UltraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
}
/* =========================================
   SECTION 1: HERO (REFINED)
   ========================================= */
.hero-section {
    position: relative;
    width: 100vw;
    min-height: 140vh; /* Extended height for breathing room */
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

/* Background Images */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: top;
    opacity: 0;
    transition: opacity 0.3s linear;
    z-index: 1;
    pointer-events: none;
}
.hero-bg.active { opacity: 1; }

.hero-tint {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 40, 60, 0.3);
    z-index: 2;
    pointer-events: none;
}

/* HEADER NAVIGATION */
.nav-header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 20px 50px;
    display: grid;
    grid-template-columns: 100px 1fr 1fr 100px;
    align-items: flex-start;
    z-index: 20;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    color: #fff;
    font-family: "PP Telegraf";
    text-align: center;
}
.nav-logo { grid-column: 1; width:60px; }
.nav-logo img{width: 100%;}
.nav-work { grid-column: 2; padding-left: 40%; margin-top: 4px; }
.nav-spec { grid-column: 3; padding-right: 10%; margin-top: 4px; }
.nav-contact { grid-column: 4; margin-top: 4px; }
.nav-header a{color: #fff; text-decoration: none;}

/* HERO TEXT LAYERS */
.text-layer {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    z-index: 5;
    pointer-events: none;
}

/* 1. Top Left Text - MOVED TO 20% LEFT */
.hero-subhead {
    position: absolute;
    top: 22vh; 
    left: 12%; /* Significant indent */
    max-width: 400px;
    font-size: 24px; /* Slightly larger per visual */
    line-height: 1.2;
    font-weight: 400;
}
.hero-subhead span {
    display: block; margin-top: 20px; font-size: 10px; opacity: 0.7; letter-spacing: 1px; text-transform: uppercase;
}

/* 2. Massive DESIGN Text - INCREASED SIZE + BLEED */
.hero-main-title {
    position: absolute;
    top: 55%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    text-align: center;
    white-space: nowrap;
}
.hero-main-title h1 {
    font-size: 39vw; /* Massive size to force bleed */
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.8;
    margin: 0; 
    margin-left: -5vw; /* Optical alignment */
    color: #fff;
}

/* 3. Bottom Info - MOVED TO 20% LEFT */
.bottom-left-info {
    position: absolute; 
    bottom: 80px; 
    left: 12%; /* Aligned with top text */
    max-width: 350px;
}
.bottom-left-info h3 {
    font-size: 24px; /* Larger headline */
    font-weight: 400; 
    margin-bottom: 25px; 
    line-height: 1.1;
}
.bottom-left-info p {
    font-size: 13px; line-height: 1.5; opacity: 0.8; max-width: 300px;
}

.bottom-right-info {
    position: absolute; bottom: 80px; right: 6%;
    text-align: right;
}
.tech-stack { font-size: 10px; margin-bottom: 10px; letter-spacing: 3px; opacity: 0.8; }
.role-title { font-size: 13px; opacity: 1; }

/* SHOWREEL BUTTON */
.showreel-box {
    position: absolute; top: 22vh; right: 6%;
    width: 180px; height: 110px;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    z-index: 30; cursor: pointer; pointer-events: auto;
    transition: transform 0.3s ease;
}
.showreel-box span {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #fff;
}
.showreel-box:hover { transform: translateX(-10px); }

/* INTERACTION GRID */
.interaction-grid {
    position: absolute; 
    top: 0; left: 0; width: 100vw; height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: row; 
}
.grid-column { height: 100%; flex: 1; }

/* SHOWREEL MODAL */
.video-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000; z-index: 100;
    display: none; flex-direction: column; align-items: center; justify-content: center;
}
.close-modal {
    position: absolute; top: 40px; right: 40px;
    font-size: 40px; cursor: pointer; color: #fff;
}
.video-frame { width: 80%; height: 80%; border: 1px solid #333; }

/* =========================================
   REMAINING SECTIONS
   ========================================= */
.section-padding { padding: 100px 5vw; position: relative; z-index: 2; background: #f4f3ef;}
.small-label {
    font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 40px; display: block; color: #111;
    font-family: "PP Telegraf";
}

.about-section { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.about-text { font-size: clamp(20px, 2.5vw, 40px); line-height: 1.2; color: #333; }
.highlight-text { color: #ff5722; }
.italic { font-family: 'Times New Roman', serif; font-style: italic; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.work-card { position: relative; cursor: pointer; }
.work-img-container {
    width: 100%; height: auto; overflow: hidden;
    background: none; border-radius: 8px; position: relative;
}
.work-img-container img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover img { transform: scale(1.1); }
.arrow-icon {
    position: absolute; top: 15px; right: 15px; background: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; z-index: 1;
}
.work-info { margin-top: 15px; font-size: 16px; font-family: "PP Telegraf";}
.work-info h3{margin-bottom: 5px;}
.work-info p{font-size: 14px;}

.services-section { background-color: #f4f3ef; min-height: 80vh; }
.services-container { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.services-list { flex: 1; z-index: 2; }
.service-item {
    font-size: clamp(40px, 6vw, 90px); line-height: 1;
    color: #ccc; cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-bottom: 10px; position: relative;
    font-family: "PP Telegraf";
}
.service-item:hover, .service-item.active { color: #111; transform: translateX(20px); }
.service-preview-box {
    position: sticky; top: 100px; width: 400px; height: 500px;
    background: #000; overflow: hidden; border-radius: 12px;
    opacity: 0; transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-preview-box.show { opacity: 1; transform: scale(1); }
.service-preview-img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; top: 0; left: 0;
    opacity: 0; transition: opacity 0.4s ease;
}
.service-preview-img.active { opacity: 1; }

footer { background: #000; color: #fff; padding: 100px 5vw; position: relative; z-index: 2;}
.footer-cta { font-size: clamp(60px, 15vw, 300px); line-height: 0.9; white-space: nowrap; letter-spacing: -0.05em; }
.footer-meta { display: flex; justify-content: space-between; margin-top: 50px; font-size: 12px; text-transform: uppercase; }

/* --- INNER PAGE SPECIFICS --- */
.inner-hero {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.full-banner {
    width: 100%;
    display: block;
}

.case-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Asymmetric split per screenshot */
    gap: 80px;
    align-items: start;
}

.premium-heading {
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 40px;
}

.detail-sub-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Visit Portfolio Button */
.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 7px 5px 10px 20px;
    border: 1px solid #111;
    border-radius: 50px;
    text-decoration: none;
    color: #111;
    font-size: 14px;
    transition: all 0.3s ease;
}

.visit-btn:hover {
    background: #000;
    color: #fff;
}

.arrow-circle {
    background: #000;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.visit-btn:hover .arrow-circle {
    background: #fff;
    color: #000;
    transform: rotate(-45deg);
}

/* --- PREMIUM FOOTER REDESIGN --- */
.premium-footer {
    background-color: #000;
    color: #f4f3ef; /* Off-white text matching your design */
    padding: 50px 0 40px 0;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: grid;
    width: 30vw; 
    margin-left: auto; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px;
    margin-bottom: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-column a {
    color: #f4f3ef;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 0.6;
}

/* The "Let's Talk" Typography */
.footer-main-cta {
    margin-top: -20px; /* Pulls text closer to links like the design */
    overflow: hidden;
}

.massive-text {
    font-size: clamp(100px, 32.2vw, 500px); /* Massive scaling */
    line-height: 0.8;
    font-weight: 400;
    letter-spacing: -0.05em;
    margin-left: -0.05em; /* Optical alignment for the 'l' */
    text-transform: lowercase;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 400;
    padding: 0 5vw;
}

.studio-name {
    text-align: right;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 0 20px;
        width: auto;
    }
    .massive-text {
        font-size: 32.6vw; margin-top: 20px; margin-left: -0.1em;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .case-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.padBotZero{padding-bottom: 0;}
.innerWrapper .work-grid{margin-top: 0;}

@media (max-width: 768px) {
    .nav-header { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; row-gap: 10px; }
    .nav-work, .nav-spec { display: none; }
    .nav-contact { grid-column: 2; }
    .hero-main-title h1 { font-size: 39vw; }
    .hero-subhead { left: 40px; } /* Reset indent on mobile */
    .bottom-left-info { left: 40px; } /* Reset indent on mobile */
    .hero-subhead, .bottom-left-info, .bottom-right-info { display: none; }
    .showreel-box { width: 200px; height: 130px; top: 15%; }
    .about-section { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .services-container { flex-direction: column-reverse; }
    .service-preview-box { position:relative; top:-20px; }
    .about-text{font-size: 1.8em;}
}

/* Update your main.css */
html.lenis {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

#scroll-wrapper {
    display: flex;
    flex-direction: column;
}

/* Ensure reveal animations reset if needed for the loop */
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
}

.nav-header {
    position: fixed; /* Must be fixed since it's outside the wrapper */
    top: 0; left: 0; width: 100%;
    z-index: 999;
}

.hero-tint {
    position: absolute; /* Changed from fixed */
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 40, 60, 0.3);
    z-index: 2;
}

.section-padding {
    background-color: #f4f3ef !important; /* Force stability */
}