/* ============================================================
   FLUX | Digital Content Studio - Stylesheet
   Apple/NIKE-inspired minimal & powerful design
   ============================================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --gray: #333333;
    --light-gray: #888888;
    --white: #ffffff;
    --accent: #00e5ff;
    --accent-2: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00e5ff, #7c3aed);

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Noto Sans JP', 'Inter', sans-serif;
    --font-en: 'Inter', sans-serif;

    --nav-height: 72px;
    --container: 1200px;
    --phone-width: 260px;
    --phone-height: 520px;
    --prism-tz: 75px;
}

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

html {
    font-size: 16px;
    scroll-behavior: auto; /* Lenis handles smooth scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    cursor: none;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; color: inherit; cursor: none; font-family: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.accent { color: var(--accent); }

/* ---------- NOISE OVERLAY ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-dot.hover {
    width: 12px;
    height: 12px;
    background: var(--white);
}
.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner { text-align: center; }

.preloader-logo {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 80px);
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: 32px;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--gray);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: preloaderFill 1.5s ease-out forwards;
}

@keyframes preloaderFill {
    to { width: 100%; }
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 60px);
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.15em;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--light-gray);
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-contact {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 28px;
    border: 1px solid var(--gray);
    border-radius: 100px;
    transition: all 0.3s;
}

.nav-contact:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}

.nav-hamburger span {
    display: block;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s;
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

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

.mobile-menu-inner a {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 0.1em;
    color: var(--light-gray);
    transition: color 0.3s;
}

.mobile-menu-inner a:hover { color: var(--white); }

.mobile-contact-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 40px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 18px !important;
    color: var(--accent) !important;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    letter-spacing: 0.05em;
    line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1b2a 30%, #1b2838 50%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: heroGradient 12s ease infinite;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.hero-light-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -10%;
    right: -5%;
    animation: heroFloat1 8s ease-in-out infinite;
}

.hero-light-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -10%;
    left: -5%;
    animation: heroFloat2 10s ease-in-out infinite;
}

.hero-light-3 {
    width: 300px;
    height: 300px;
    background: #ff006e;
    top: 40%;
    left: 30%;
    animation: heroFloat3 12s ease-in-out infinite;
    opacity: 0.08;
}

@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 30px) scale(1.1); }
}
@keyframes heroFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.15); }
}
@keyframes heroFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(60px, -30px); }
    66% { transform: translate(-40px, 20px); }
}

.hero-video-note {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    opacity: 0;
}

.hero-tag-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-tag-text {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 10vw, 120px);
    line-height: 1.05;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line-inner {
    display: inline-block;
    transform: translateY(110%);
}

.hero-line-accent .hero-line-inner {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--light-gray);
    opacity: 0;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.hero-scroll-text {
    font-family: var(--font-en);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--light-gray);
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Reel CTA */
.hero-reel {
    position: absolute;
    bottom: 40px;
    right: clamp(20px, 4vw, 60px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light-gray);
    opacity: 0;
    transition: color 0.3s;
}

.hero-reel:hover { color: var(--white); }

.hero-reel-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.hero-reel:hover .hero-reel-icon {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--black);
}

.hero-reel-icon svg {
    width: 12px;
    height: 12px;
    margin-left: 2px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    padding: clamp(80px, 10vw, 160px) 0;
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    padding: clamp(32px, 3vw, 48px);
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    cursor: none;
    overflow: hidden;
    transition: all 0.4s;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 16px;
}

.service-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
}

.service-card:hover::before { opacity: 0.05; }

.service-card > * { position: relative; z-index: 1; }

.service-card-number {
    font-family: var(--font-display);
    font-size: 64px;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: 16px;
    right: 24px;
    z-index: 0 !important;
    line-height: 1;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--accent);
}

.service-card-icon svg {
    width: 100%;
    height: 100%;
}

.service-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-card-subtitle {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--light-gray);
    margin-bottom: 16px;
}

.service-card-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent);
    transition: gap 0.3s;
}

.service-card:hover .service-card-cta { gap: 14px; }

.service-card-cta .arrow {
    transition: transform 0.3s;
}

.service-card:hover .service-card-cta .arrow {
    transform: translateX(4px);
}

/* ============================================================
   SHOWCASE (Phone Mockup Rotation)
   ============================================================ */
.showcase {
    position: relative;
    height: 400vh; /* Extended for scroll animation */
    background: var(--black);
}

.showcase-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 6vw, 100px);
    padding: 0 clamp(20px, 4vw, 60px);
    overflow: hidden;
}

/* Phase Text */
.showcase-text-wrap {
    position: relative;
    flex: 0 0 auto;
    width: clamp(280px, 30vw, 400px);
}

.showcase-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none;
}

.showcase-text.active {
    opacity: 1;
    pointer-events: all;
    position: relative;
}

.showcase-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 16px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    margin-bottom: 24px;
}

.showcase-text h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.showcase-text p {
    font-size: 14px;
    font-weight: 300;
    color: var(--light-gray);
    line-height: 1.8;
}

/* Phones Container */
.phones-container {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    perspective: 1200px;
}

.phone-wrapper {
    transform: scale(0.85);
    opacity: 0.6;
    transition: transform 0.5s, opacity 0.5s;
}

.phone-wrapper.phone-center {
    transform: scale(1);
    opacity: 1;
}

/* Phone Frame */
.phone-frame {
    position: relative;
    width: var(--phone-width);
    height: var(--phone-height);
    background: #1c1c1e;
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 0 0 1.5px #3a3a3c,
        0 25px 60px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    transform-style: preserve-3d;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #1c1c1e;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #2c2c2e;
    border-radius: 50%;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: #000;
    position: relative;
    transform-style: preserve-3d;
    clip-path: inset(0 round 30px); /* clip without breaking 3D context */
    perspective: 800px;
}

/* 3D Prism */
.phone-prism {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.prism-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.face-1 { transform: rotateY(0deg) translateZ(var(--prism-tz)); }
.face-2 { transform: rotateY(120deg) translateZ(var(--prism-tz)); }
.face-3 { transform: rotateY(240deg) translateZ(var(--prism-tz)); }

/* YouTube App Mockup */
.app-yt {
    width: 100%;
    height: 100%;
    background: #0f0f0f;
    padding-top: 30px;
}

.yt-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.yt-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 16px;
    background: #ff0000;
    border-radius: 4px;
    font-size: 9px;
    color: #fff;
}

.yt-thumb {
    position: relative;
    margin: 8px 14px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.yt-thumb-bg {
    width: 100%;
    height: 100%;
    animation: ytThumbAnim 6s ease infinite;
}

.yt-bg-1 { background: linear-gradient(135deg, #1a237e, #00897b); }
.yt-bg-2 { background: linear-gradient(135deg, #b71c1c, #f57c00); }
.yt-bg-3 { background: linear-gradient(135deg, #4a148c, #e91e63); }

@keyframes ytThumbAnim {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 32px;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.yt-meta-area {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    align-items: flex-start;
}

.yt-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    flex-shrink: 0;
}

.yt-meta-text { flex: 1; }

.yt-vid-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
}

.yt-vid-info {
    font-size: 11px;
    color: #aaa;
}

.yt-thumb-sm {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    align-items: center;
}

.yt-thumb-sm-img {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    background: linear-gradient(135deg, #263238, #37474f);
    flex-shrink: 0;
}

/* TikTok App Mockup */
.app-tt {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.tt-top {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    z-index: 5;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.tt-video-bg {
    position: absolute;
    inset: 0;
    animation: ttVideoAnim 8s ease infinite;
}

.tt-bg-1 { background: linear-gradient(180deg, #1a0a2e, #00695c, #1a0a2e); background-size: 100% 200%; }
.tt-bg-2 { background: linear-gradient(180deg, #0d1b2a, #e91e63, #0d1b2a); background-size: 100% 200%; }
.tt-bg-3 { background: linear-gradient(180deg, #1b0000, #ff6f00, #1b0000); background-size: 100% 200%; }
.tt-bg-4 { background: linear-gradient(180deg, #0a0a2e, #2962ff, #0a0a2e); background-size: 100% 200%; }
.tt-bg-5 { background: linear-gradient(180deg, #1a002e, #aa00ff, #1a002e); background-size: 100% 200%; }
.tt-bg-6 { background: linear-gradient(180deg, #002e1a, #00e676, #002e1a); background-size: 100% 200%; }

@keyframes ttVideoAnim {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

.tt-sidebar {
    position: absolute;
    right: 12px;
    bottom: 180px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 5;
}

.tt-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 22px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.tt-icon span {
    font-size: 10px;
    color: #fff;
}

.tt-bottom-bar {
    position: absolute;
    bottom: 30px;
    left: 14px;
    right: 60px;
    z-index: 5;
}

.tt-user {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.tt-caption {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 6px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.tt-music {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Progress Dots */
.showcase-progress {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.showcase-progress.visible {
    opacity: 1;
}

.showcase-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
    transition: all 0.3s;
}

.showcase-progress-dot.active {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    transform: scale(1.3);
}

/* ============================================================
   WORKS
   ============================================================ */
.works {
    padding: clamp(80px, 10vw, 160px) 0;
    background: var(--dark);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: none;
}

.work-item.work-wide {
    grid-column: span 3;
}

.work-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.work-wide .work-thumb {
    aspect-ratio: 21/9;
}

.work-thumb-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
}

.work-item:hover .work-thumb-bg {
    transform: scale(1.05);
}

.work-bg-1 { background: linear-gradient(135deg, #0d1b2a, #1b3a4b, #006d77); }
.work-bg-2 { background: linear-gradient(135deg, #2d1b69, #5c2d91); }
.work-bg-3 { background: linear-gradient(135deg, #1a1a2e, #e94560); }
.work-bg-4 { background: linear-gradient(135deg, #0b3d0b, #00c853); }
.work-bg-5 { background: linear-gradient(135deg, #3e1929, #ff6f00); }

.work-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.work-play svg {
    margin-left: 3px;
}

.work-item:hover .work-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.work-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.work-info {
    padding: 16px 4px;
}

.work-info h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.work-info p {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--light-gray);
    letter-spacing: 0.05em;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
    padding: clamp(80px, 10vw, 160px) 0;
    background: var(--black);
}

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    top: 0;
    left: 24px;
    width: 1px;
    height: 100%;
    background: var(--gray);
}

.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--line-height, 0%);
    background: var(--accent-gradient);
}

.process-step {
    position: relative;
    padding-left: 72px;
    padding-bottom: 64px;
    opacity: 0.3;
    transition: opacity 0.5s;
}

.process-step:last-child { padding-bottom: 0; }

.process-step.active { opacity: 1; }

.process-step-marker {
    position: absolute;
    left: 12px;
    top: 4px;
}

.process-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--gray);
    background: var(--black);
    position: relative;
    transition: border-color 0.5s;
}

.process-step.active .process-step-dot {
    border-color: var(--accent);
}

.process-step.active .process-step-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}

.process-step-num {
    font-family: var(--font-display);
    font-size: 36px;
    color: rgba(255,255,255,0.1);
    margin-bottom: 4px;
    line-height: 1;
    transition: color 0.5s;
}

.process-step.active .process-step-num {
    color: rgba(0, 229, 255, 0.3);
}

.process-step-content h3 {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.process-step-content p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--light-gray);
}

/* ============================================================
   VISION
   ============================================================ */
.vision {
    position: relative;
    padding: clamp(120px, 15vw, 240px) 0;
    background: var(--dark);
    overflow: hidden;
}

.vision-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,229,255,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.06) 0%, transparent 60%);
}

.vision-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.vision-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.4;
    margin: 24px 0 32px;
}

.vision-line {
    display: block;
    overflow: hidden;
}

.vision-text {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 300;
    line-height: 2;
    color: var(--light-gray);
    margin-bottom: 64px;
}

.vision-stats {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 6vw, 80px);
}

.vision-stat {
    text-align: center;
}

.vision-stat-num {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 72px);
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vision-stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 40px);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vision-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--light-gray);
    margin-top: 8px;
    letter-spacing: 0.05em;
}

/* ============================================================
   COMPANY
   ============================================================ */
.company {
    padding: clamp(80px, 10vw, 160px) 0;
    background: var(--black);
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.company-dl {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.company-row {
    display: flex;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.company-row:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.company-row dt {
    flex: 0 0 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--light-gray);
}

.company-row dd {
    font-size: 14px;
    font-weight: 400;
}

.company-visual {
    display: flex;
    justify-content: center;
}

.company-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.company-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d1b2a, #1a2a3a);
    opacity: 0.6;
}

.company-image-placeholder span {
    position: relative;
    font-family: var(--font-en);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light-gray);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: clamp(80px, 10vw, 160px) 0 40px;
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-cta {
    text-align: center;
    margin-bottom: clamp(80px, 10vw, 120px);
}

.footer-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.1;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.footer-line { display: block; }

.footer-line.accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--light-gray);
    margin-bottom: 40px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    transition: all 0.3s;
}

.footer-btn:hover {
    background: var(--accent);
    color: var(--black);
}

.footer-btn .arrow {
    transition: transform 0.3s;
}

.footer-btn:hover .arrow {
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.15em;
}

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

.footer-links a {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--light-gray);
    transition: color 0.3s;
}

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

.footer-copy {
    font-family: var(--font-en);
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    padding: 40px;
}

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

.modal {
    display: none;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: clamp(32px, 4vw, 48px);
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s;
}

.modal-overlay.active .modal.active {
    display: block;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--light-gray);
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.modal-number {
    font-family: var(--font-display);
    font-size: 48px;
    color: rgba(0, 229, 255, 0.15);
    line-height: 1;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0 4px;
}

.modal-sub {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--light-gray);
    margin-bottom: 24px;
}

.modal-body > p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-feature {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.modal-feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--accent);
}

.modal-feature p {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--light-gray);
}

/* Modal scrollbar */
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 4px; }

/* ============================================================
   REVEAL ANIMATION CLASSES
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .showcase-inner {
        flex-direction: column;
        gap: 32px;
        padding-top: var(--nav-height);
    }

    .showcase-text-wrap {
        width: 100%;
        text-align: center;
    }

    .showcase-text h2 {
        font-size: 24px;
    }

    .phones-container {
        gap: 12px;
    }

    .phone-wrapper {
        transform: scale(0.7);
    }

    .phone-wrapper.phone-center {
        transform: scale(0.85);
    }

    :root {
        --phone-width: 200px;
        --phone-height: 400px;
        --prism-tz: 58px;
    }

    .works-grid {
        grid-template-columns: 1fr 1fr;
    }

    .work-item.work-wide {
        grid-column: span 2;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-contact { display: none; }
    .nav-hamburger { display: flex; }

    .hero-reel { display: none; }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .showcase { height: 350vh; }

    .showcase-inner {
        flex-direction: column;
        gap: 24px;
    }

    .phones-container {
        gap: 8px;
    }

    :root {
        --phone-width: 160px;
        --phone-height: 320px;
        --prism-tz: 46px;
    }

    .phone-frame { border-radius: 24px; padding: 6px; }
    .phone-screen { border-radius: 18px; clip-path: inset(0 round 18px); }
    .phone-notch { width: 64px; height: 18px; border-radius: 0 0 10px 10px; top: 6px; }

    .yt-bar { font-size: 11px; padding: 8px 10px; }
    .yt-thumb { height: 80px; margin: 4px 10px; }
    .yt-meta-area { padding: 6px 10px; }
    .yt-dot { width: 24px; height: 24px; }
    .yt-vid-title { font-size: 10px; }
    .yt-vid-info { font-size: 9px; }
    .yt-thumb-sm { padding: 6px 10px; }
    .yt-thumb-sm-img { width: 80px; height: 45px; }

    .tt-top { font-size: 11px; top: 30px; }
    .tt-sidebar { right: 8px; bottom: 120px; gap: 12px; }
    .tt-icon { font-size: 16px; }
    .tt-icon span { font-size: 8px; }
    .tt-bottom-bar { bottom: 20px; left: 10px; right: 40px; }
    .tt-user { font-size: 10px; }
    .tt-caption { font-size: 9px; }
    .tt-music { font-size: 8px; }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .work-item.work-wide {
        grid-column: span 1;
    }

    .vision-stats {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Hide custom cursor on touch */
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
    .service-card, .work-item, button, a { cursor: pointer; }
}

@media (max-width: 480px) {
    :root {
        --phone-width: 180px;
        --phone-height: 360px;
        --prism-tz: 52px;
    }

    /* Show only center phone on very small screens */
    .phone-wrapper { display: none; }
    .phone-wrapper.phone-center {
        display: block;
        transform: scale(1);
        opacity: 1;
    }

    .phones-container {
        justify-content: center;
    }
}
