@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --black: #000;
    --white: #fff;
    --gray-400: #999;
    --gray-600: #666;
    --gray-800: #333;
}

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

html {
    overflow: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128' width='24' height='24' fill='white'%3E%3Cpath d='M91.2,38.2L16.2,8.8l-2.5,2.5,44.6,44.6,2.8-2.8c.8-.8,2-.8,2.8,0,.8.8.8,2,0,2.8h0l-8.4,8.4c-.8.8-2,.8-2.8,0s-.8-2,0-2.8h0l2.8-2.8L10.9,14.2l-2.5,2.5,29.3,75,33.2,6.5,26.9-26.9-6.5-33.2h0ZM119.2,80.4l-12.4-12.4-5.4,5.4h0s-28.4,28.4-28.4,28.4h0s-5.4,5.4-5.4,5.4l12.5,12.4,39.2-39.2Z'/%3E%3C/svg%3E") 0 0, auto;
}

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

::selection {
    background: var(--white);
    color: var(--black);
}

/* Loader */
.loader {
    display: none;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 200px;
    height: auto;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Cursor - Pen Tool */

/* Gradient Canvas */
.gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Header - Right Aligned */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 40px 250px 24px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.logo-img {
    height: 36px;
    width: auto;
}

.site-nav {
    display: flex;
    gap: 32px;
    margin-right: 32px;
}

.site-nav a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.site-nav a:hover, .site-nav a.active { opacity: 1; }

.cta {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    transition: all 0.3s;
}

.cta:hover {
    background: var(--white);
    color: var(--black);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.hamburger.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.mobile-menu-links a {
    font-size: 32px;
    font-weight: 600;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.mobile-menu-links a:hover { opacity: 1; }

.mobile-cta {
    font-size: 16px !important;
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    margin-top: 20px;
}

/* Main Wrapper */
#wrapper {
    display: flex;
    width: max-content;
    height: 100vh;
}

/* Panels */
.panel {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 80px;
    position: relative;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    gap: 40px;
}



.hero-overline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.hero-columns {
    display: flex;
    gap: 80px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.hero-left, .hero-center, .hero-right {
    flex: 1;
}

.hero-left-text, .hero-right-text {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -2px;
}

.hero-center {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gif {
    width: 700px;
    height: 700px;
    object-fit: contain;
    border-radius: 16px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.5s forwards;
}

.scroll-indicator span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-600);
}

.scroll-line {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-progress {
    width: 40%;
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollAnim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}

/* Intro */
.intro { max-width: 900px; }

.intro-text {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-400);
    margin-bottom: 64px;
}

.stats { display: flex; gap: 80px; }

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-600);
}

/* Project */
.project {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

.project-info { flex: 1; }

.project-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.project-title {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.project-desc {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.project-category {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-600);
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
}

.project-visual { flex: 1; cursor: pointer; }

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #111;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    overflow: hidden;
    position: relative;
}

.project-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.project-image:hover {
    background: #1a1a1a;
    transform: scale(1.02);
    border-color: rgba(255,255,255,0.1);
}

.hover-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-600);
    transition: color 0.3s;
}

.project-image:hover .hover-label { color: var(--white); }

/* Services */
.services { max-width: 1000px; width: 100%; }

.services-header { margin-bottom: 60px; }

.label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.services h2 {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    letter-spacing: -3px;
}

.services-list { display: flex; flex-direction: column; }

.service {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: padding-left 0.3s;
}

.service:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.service:hover { padding-left: 20px; }

.service-num {
    font-size: 48px;
    font-weight: 300;
    color: var(--gray-800);
    min-width: 80px;
    line-height: 1;
    transition: color 0.3s;
}

.service:hover .service-num { color: var(--gray-600); }

.service-body h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.service-body p {
    font-size: 15px;
    color: var(--gray-600);
}

/* About */
.about {
    display: flex;
    gap: 100px;
    max-width: 1100px;
    width: 100%;
}

.about-left { flex: 1; }

.about h2 {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 32px;
}

.about-text {
    font-size: 20px;
    color: var(--gray-400);
    line-height: 1.7;
}

.about-right { flex: 1; display: flex; align-items: center; }

.principles {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.principle {
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    transition: all 0.3s;
}

.principle:hover {
    border-color: rgba(255,255,255,0.15);
}

.principle-num {
    font-size: 12px;
    color: var(--gray-800);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: block;
}

.principle h4 {
    font-size: 20px;
    font-weight: 600;
}

/* Team */
.team { max-width: 1200px; width: 100%; }

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

.team-member {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background: #111;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s;
}

.team-member:hover .member-photo {
    background: #1a1a1a;
}

.member-name { font-size: 16px; font-weight: 600; }
.member-role { font-size: 13px; color: var(--gray-600); }

/* Contact */
.contact {
    display: flex;
    gap: 100px;
    max-width: 1100px;
    width: 100%;
}

.contact-left { flex: 1; }

.contact h2 {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1.1;
}

.contact h2 em {
    font-style: italic;
    color: var(--gray-600);
}

.contact-right { flex: 1; display: flex; align-items: center; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-800);
    font-weight: 600;
}

.contact-item a {
    font-size: 20px;
    color: var(--gray-400);
    transition: color 0.3s;
}

.contact-item a:hover { color: var(--white); }

.social-links { display: flex; gap: 24px; }

.social-links a {
    font-size: 14px;
    color: var(--gray-600);
    transition: color 0.3s;
}

.social-links a:hover { color: var(--white); }

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 101;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.modal.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.modal-bg {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
}

.modal-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow-y: auto;
    background: transparent;
    touch-action: pan-y;
}







.modal-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 160px 40px 80px;
}

.modal-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.modal-inner h2 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.modal-inner p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Modal Gallery */
.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.modal-image {
    width: 100%;
    background: #111;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
}

.modal-image:hover {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.08);
}

.modal-image { height: 400px; }

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-row .modal-image { height: 350px; }

.modal-next {
    display: inline-block;
    padding: 14px 28px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: none;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-next:hover {
    background: var(--white);
    color: var(--black);
}

/* ============================
   RESPONSIVE: 4K (2560px+)
   ============================ */
@media (min-width: 2560px) {
    .site-header { padding: 60px 500px 24px; }
    .panel-inner { padding: 140px 120px; }
    .hero-left-text, .hero-right-text { font-size: clamp(24px, 2.5vw, 40px); }
    .hero-gif { width: 700px; height: 700px; }
    .stat-number { font-size: 80px; }
    .project-title { font-size: 72px; }
    .service-num { font-size: 64px; }
    .team-grid { grid-template-columns: repeat(4, 1fr); gap: 48px; }
}

/* ============================
   RESPONSIVE: Desktop (1440px)
   ============================ */
@media (max-width: 1440px) {
    .panel-inner { padding: 100px 60px; }
}

/* ============================
   RESPONSIVE: Tablet (768px - 1024px)
   ============================ */
@media (max-width: 1024px) {
    .site-header { padding: 60px 24px 16px; }
    .site-nav, .site-header .cta { display: none; }
    .hamburger { 
        display: flex; 
        padding: 8px;
        margin-left: auto;
    }
    .hamburger span { width: 26px; }
    
    .panel-inner { padding: 80px 32px; }
    
    .hero { flex-direction: column; text-align: center; gap: 32px; }
    .hero-overline { font-size: 11px; letter-spacing: 2px; margin-bottom: 20px; }
    .hero-columns { flex-direction: column; gap: 24px; }
    .hero-left-text, .hero-right-text { font-size: clamp(22px, 3vw, 36px); }
    .hero-gif { width: 500px; height: 500px; }
    
    .intro-text { font-size: 24px; text-align: center; margin-bottom: 48px; }
    .stats { justify-content: center; gap: 40px; }
    .stat-number { font-size: 56px; }
    
    .project { flex-direction: column; gap: 32px; }
    .project-info { text-align: center; }
    .project-number { font-size: 13px; margin-bottom: 16px; }
    .project-title { font-size: 40px; margin-bottom: 10px; }
    .project-desc { font-size: 15px; margin-bottom: 16px; }
    .project-visual { width: 100%; max-width: 500px; }
    
    .services-header { margin-bottom: 48px; }
    .services h2 { font-size: clamp(40px, 6vw, 56px); }
    .service { gap: 24px; padding: 24px 0; }
    .service-num { font-size: 36px; min-width: 48px; }
    
    .about { flex-direction: column; gap: 32px; }
    .about-left { text-align: center; }
    .about h2 { font-size: clamp(40px, 6vw, 56px); margin-bottom: 24px; }
    .about-text { font-size: 18px; }
    
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    
    .contact { flex-direction: column; gap: 32px; }
    .contact-left { text-align: center; }
    .contact h2 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 24px; }
    .contact-info { gap: 28px; }
    
    /* Modal tablet */
    .modal-inner { padding: 140px 32px 60px; }
    .modal-inner h2 { font-size: 36px; margin-bottom: 18px; }
    .modal-inner p { font-size: 15px; margin-bottom: 28px; }
    .modal-gallery { gap: 16px; margin-bottom: 32px; }
    .modal-image { height: 300px; }
    .modal-row .modal-image { height: 250px; }
    
    /* Additional tablet improvements */
    .hamburger, .modal-hamburger { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
    .site-nav a, .modal-site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
    .btn, .cta, .modal-cta, .modal-next { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .project-image { width: 100%; }
    img { max-width: 100%; height: auto; }
    .modal-image { width: 100%; }
}

/* ============================
   RESPONSIVE: Mobile (max-width: 767px)
   ============================ */
@media (max-width: 767px) {
    html { overflow: auto; }
    body { overflow-x: hidden; overflow-y: auto; height: auto; }
    
    #wrapper {
        flex-direction: column;
        width: 100%;
        transform: none !important;
    }
    
    .panel {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }
    
    .panel-inner { padding: 80px 20px 40px; }
    
    /* Main header mobile */
    .site-header { padding: 60px 20px 12px; }
    .logo-img { height: 24px; }
    .hamburger { 
        display: flex; 
        padding: 8px;
        margin-left: auto;
    }
    .hamburger span { width: 24px; }
    
    /* Mobile menu */
    .mobile-menu { padding-top: 60px; }
    .mobile-menu-links { gap: 24px; }
    .mobile-menu-links a { font-size: 28px; }
    .mobile-cta { margin-top: 16px; }
    
    .hero { gap: 24px; }
    .hero-overline { font-size: 10px; letter-spacing: 2px; margin-bottom: 16px; }
    .hero-left-text, .hero-right-text { font-size: clamp(16px, 4vw, 24px); }
    .hero-columns { gap: 12px; }
    .hero-gif { width: 300px; height: 300px; }
    .scroll-indicator { display: none; }
    
    .intro-text { font-size: 18px; text-align: center; margin-bottom: 40px; }
    .stats { flex-direction: column; gap: 20px; align-items: center; }
    .stat-number { font-size: 36px; }
    .stat-label { font-size: 10px; }
    
    .project { flex-direction: column; gap: 24px; }
    .project-info { text-align: center; }
    .project-number { font-size: 12px; margin-bottom: 12px; }
    .project-title { font-size: 28px; margin-bottom: 8px; }
    .project-desc { font-size: 14px; margin-bottom: 12px; }
    .project-visual { width: 100%; }
    
    .services-header { margin-bottom: 40px; }
    .label { font-size: 10px; margin-bottom: 12px; }
    .services h2 { font-size: clamp(32px, 8vw, 48px); }
    .service { gap: 12px; padding: 16px 0; }
    .service-num { font-size: 24px; min-width: 36px; }
    .service-body h3 { font-size: 18px; margin-bottom: 4px; }
    .service-body p { font-size: 13px; }
    
    .about { flex-direction: column; gap: 32px; }
    .about-left { text-align: center; }
    .about h2 { font-size: clamp(32px, 8vw, 48px); margin-bottom: 20px; }
    .about-text { font-size: 16px; line-height: 1.6; }
    .principles { gap: 16px; }
    .principle { padding: 20px; }
    .principle-num { font-size: 10px; margin-bottom: 12px; }
    .principle h4 { font-size: 16px; }
    
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .team-member { gap: 8px; }
    .member-name { font-size: 14px; }
    .member-role { font-size: 11px; }
    
    .contact { flex-direction: column; gap: 32px; }
    .contact-left { text-align: center; }
    .contact h2 { font-size: clamp(28px, 7vw, 36px); margin-bottom: 20px; }
    .contact-info { gap: 24px; }
    .contact-label { font-size: 10px; }
    .contact-item a { font-size: 16px; }
    .social-links { gap: 16px; }
    .social-links a { font-size: 13px; }
    
    /* Modal mobile */
    .modal-inner { padding: 120px 16px 40px; }
    .modal-inner h2 { font-size: 28px; margin-bottom: 16px; }
    .modal-inner p { font-size: 14px; margin-bottom: 24px; }
    .modal-gallery { gap: 12px; margin-bottom: 24px; }
    .modal-image { height: 180px; }
    .modal-row .modal-image { height: 150px; }
    .modal-next { font-size: 12px; padding: 12px 20px; }
    
    /* Additional mobile improvements */
    .hamburger, .modal-hamburger { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
    .mobile-menu-links a, .modal-mobile-menu-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
    .btn, .cta, .modal-cta, .modal-next { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .project-visual { cursor: pointer; }
    .project-image { width: 100%; }
    img { max-width: 100%; height: auto; }
    .modal-image { width: 100%; }
}
