/* ================================================
   NUA STUDIO - Premium Stylesheet
   ================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    --color-bg: #0d0d0d;
    --color-bg-elevated: #141414;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d4d4d4;
    --color-gray-400: #a3a3a3;
    --color-gray-500: #737373;
    --color-gray-600: #525252;
    --color-gray-700: #404040;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    --color-accent: #a855f7;
    --color-accent-light: #c084fc;
    --color-accent-dark: #7c3aed;

    --font-display: 'Wanted Sans Variable', 'Wanted Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Wanted Sans Variable', 'Wanted Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    --z-footer: 0;
    --z-scene: 1;
    --z-main: 10;
    --z-navbar: 100;
    --z-dots: 100;
    --z-cursor: 9998;
    --z-preloader: 9999;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
    height: auto;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--color-bg);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

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

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

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

/* ==================== CUSTOM CURSOR ==================== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-out-expo),
                width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo);
    opacity: 0;
}

.cursor.visible {
    opacity: 1;
}

.cursor.hover {
    width: 60px;
    height: 60px;
}

@media (max-width: 1024px) {
    .cursor { display: none; }
}

/* ==================== PRELOADER (HORIZONTAL BLINDS) ==================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    overflow: hidden;
}

.preloader-strips {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.preloader-strip {
    width: 100%;
    height: 20%;
    background: var(--color-bg);
    transform-origin: top center;
    will-change: transform;
}

.preloader-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    color: var(--color-gray-500);
}

.preloader-word-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(5rem, 15vw, 12rem);
    overflow: hidden;
}

.preloader-word {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px clamp(24px, 5vw, 60px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: var(--z-navbar);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.6s ease, backdrop-filter 0.6s ease, padding 0.3s ease, border-color 0.6s ease;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 18px clamp(24px, 5vw, 60px);
}

/* Light theme navbar for white background pages */
.navbar.light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar.light .logo-text,
.navbar.light .nav-link {
    color: #111;
}

.navbar.light .nav-link:hover {
    color: #a855f7;
}

.navbar.light.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-logo a {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-width: 120px;
}

.navbar-logo .logo-text {
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.navbar-logo .logo-img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    height: 18px;
    width: auto;
    opacity: 0;
    filter: invert(1) blur(4px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.navbar-logo a:hover .logo-text {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
}

.navbar-logo a:hover .logo-img {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: invert(1) blur(0);
}

.navbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--color-white);
}

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

.nav-pricing {
    color: rgba(255, 255, 255, 0.7);
}

.btn-join {
    padding: 8px 18px;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.btn-join::after {
    display: none;
}

.btn-join:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.btn-contact {
    padding: 12px 28px;
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    transition: all 0.3s ease;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--color-white);
    color: var(--color-bg);
}

@media (max-width: 1024px) {
    .navbar {
        grid-template-columns: 1fr 1fr;
    }
    .navbar-center { display: none; }
}

@media (max-width: 768px) {
    .navbar-right { display: none; }
    .navbar {
        grid-template-columns: 1fr;
    }
}

/* ==================== NAVIGATION DOTS (REFERENCE STYLE) ==================== */
.nav-dots {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-dots);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

.nav-dots.visible {
    opacity: 1;
}

.nav-dot {
    width: 44px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
}

/* Progressive thickness - thicker as you go down (matching reference) */
.nav-dot:nth-child(1) { height: 2px; }
.nav-dot:nth-child(2) { height: 3px; }
.nav-dot:nth-child(3) { height: 4px; }
.nav-dot:nth-child(4) { height: 5px; }
.nav-dot:nth-child(5) { height: 6px; }

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Active state - longer width and purple */
.nav-dot.active {
    width: 70px;
    background: var(--color-accent) !important;
}

@media (max-width: 1024px) {
    .nav-dots { display: none; }
}

/* ==================== 3D SCENE ==================== */
.scene-3d {
    position: fixed;
    inset: 0;
    z-index: var(--z-scene);
    pointer-events: auto;
    background-color: var(--color-bg);
    transition: opacity 0.5s ease;
    touch-action: pan-y;
}

.scene-3d spline-viewer {
    width: 100%;
    height: 100%;
    pointer-events: auto;
    transform: translateX(10%);
    cursor: default !important;
    touch-action: pan-y;
}

/* Spline canvas cursor fix */
.scene-3d spline-viewer::part(canvas) {
    cursor: default !important;
}

/* Mobile/Tablet: disable Spline touch interaction, allow scroll */
@media (max-width: 1024px) {
    .scene-3d {
        pointer-events: none;
    }
    .scene-3d spline-viewer {
        pointer-events: none;
    }
}

/* ==================== MAIN WRAPPER ==================== */
.main-wrapper {
    position: relative;
    z-index: var(--z-main);
    background: transparent;
    pointer-events: none;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(3rem, 8vw, 8rem);
    position: relative;
    background: transparent;
    z-index: 1;
    cursor: default;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    pointer-events: none;
    position: relative;
    z-index: 20;
    padding-top: 0;
    margin-top: -5vh;
}

/* Hero Eyebrow - Accent label */
.hero-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    color: var(--color-accent-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    margin-left: 0.25em;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-white);
    overflow: hidden;
    opacity: 0;
}

.title-line em {
    font-style: normal;
    color: var(--color-accent-light);
}

.title-line em:last-child {
    color: var(--color-white);
}

/* Vertical flowing text */
.hero-text-flow {
    position: relative;
    height: 2.5em;
    overflow: hidden;
    margin-top: var(--space-sm);
    margin-left: 0.25em;
    opacity: 0;
    transform: translateY(30px);
}

.flow-word {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 3vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-gray-400);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s ease-out, opacity 0.6s ease-out;
    white-space: nowrap;
}

.flow-word.active {
    opacity: 1;
    transform: translateY(0);
}

.flow-word.exit {
    opacity: 0;
    transform: translateY(-40px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}

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

.scroll-dot {
    width: 100%;
    height: 20px;
    background: var(--color-accent);
    position: absolute;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { top: -20px; }
    50% { top: 60px; }
}

@media (max-width: 768px) {
    .hero { padding: var(--space-lg) var(--space-sm); }
    .title-rotator-line {
        flex-direction: column;
        gap: 0;
    }
}

/* ==================== CONTENT SECTIONS (Solid Background to cover 3D) ==================== */
.content-wrapper {
    background: var(--color-bg);
    position: relative;
    z-index: 20;
    margin-top: 0;
    pointer-events: auto;
}

/* ==================== SECTION HEADER ==================== */
.section-header {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.section-header.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent);
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: var(--space-xs);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    overflow: hidden;
}

.section-title .title-inner {
    display: block;
}

.section-subtitle {
    margin-left: auto;
    align-self: flex-end;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--color-gray-400);
}

/* ==================== CAREER CYLINDER ==================== */
.cylinder-section {
    width: 100%;
    position: relative;
    background: var(--color-bg);
}

.cylinder-wrapper {
    width: 100%;
    height: 100vh;
    position: relative;
    perspective: 70vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


@media screen and (max-width: 768px) {
    .cylinder-wrapper {
        perspective: 400px;
    }
}

.cylinder-track {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    text-align: center;
    list-style: none;
}

.cylinder-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    backface-visibility: hidden;
    color: var(--color-white);
    white-space: nowrap;
    opacity: 0.9;
    transition: opacity 0.3s;
}

/* S-tier: large, heavy bold */
.cylinder-item.tier-s {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

/* A-tier: medium size, medium weight */
.cylinder-item.tier-a {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.2vw, 2.8rem);
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 0;
}

/* B-tier: smaller, light weight */
.cylinder-item.tier-b {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

@media screen and (max-width: 768px) {
    .cylinder-item.tier-s {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
    }
    .cylinder-item.tier-a {
        font-size: clamp(1rem, 4.5vw, 1.6rem);
    }
    .cylinder-item.tier-b {
        font-size: clamp(0.8rem, 3.5vw, 1.2rem);
    }
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: var(--space-xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-bg);
    position: relative;
    z-index: 2;
}

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

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr 50px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}

.service-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:hover {
    background: rgba(168, 85, 247, 0.05);
}

.service-index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-600);
    transition: color 0.3s ease;
}

.service-item:hover .service-index {
    color: var(--color-accent);
}

.service-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    transition: transform 0.3s var(--ease-out-expo);
}

.service-item:hover .service-title {
    transform: translateX(10px);
}

.service-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-gray-300);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
    line-height: 1.6;
}

.service-item:hover .service-desc {
    max-height: 100px;
    opacity: 1;
    margin-top: var(--space-xs);
}

.service-icon {
    color: var(--color-gray-600);
    transition: all 0.3s var(--ease-out-expo);
}

.service-item:hover .service-icon {
    color: var(--color-accent);
    transform: rotate(45deg);
}

/* ==================== WORKS SECTION ==================== */
.works {
    padding: var(--space-xl) 0;
    overflow: hidden;
    background: var(--color-bg);
}

.works .section-header {
    padding: 0 clamp(2rem, 8vw, 8rem);
    max-width: 1400px;
    margin: 0 auto var(--space-lg);
}

.works-row {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding: 0 clamp(2rem, 8vw, 8rem);
}

.works-row.reverse {
    flex-direction: row-reverse;
}

.works-info {
    flex-shrink: 0;
    width: 220px;
    padding: 0;
    position: relative;
    z-index: 20;
    background: var(--color-bg);
}

.works-info.right {
    text-align: right;
}

.works-category {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
    letter-spacing: 0.05em;
}

.works-label {
    font-size: 0.8125rem;
    color: var(--color-gray-400);
    line-height: 1.5;
}

.works-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-left: var(--space-lg);
}

.works-row.reverse .works-marquee {
    margin-left: 0;
    margin-right: var(--space-lg);
}

.works-marquee::before,
.works-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 10;
    pointer-events: none;
}

.works-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
}

.works-marquee::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, var(--color-bg) 100%);
}

.marquee-content {
    display: flex;
    gap: var(--space-md);
    width: max-content;
}

.work-card {
    flex-shrink: 0;
    width: 450px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s var(--ease-out-expo);
}

.work-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.work-card.placeholder {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 100%);
    border: 1px dashed rgba(255,255,255,0.08);
}

@media (max-width: 1024px) {
    .works-row {
        flex-direction: column;
        gap: var(--space-md);
        padding: 0 var(--space-md);
    }
    .works-row.reverse { flex-direction: column; }
    .works-info {
        width: 100%;
        text-align: left !important;
        margin-bottom: var(--space-sm);
    }
    .works-marquee {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .work-card { width: 330px; height: 220px; }
}

/* ==================== EXPERIENCE SECTION ==================== */
.experience {
    padding: var(--space-xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-bg);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
}

.experience-sticky {
    position: sticky;
    top: var(--space-lg);
}

.year-display {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.year-start {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1;
}

.year-dash {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-gray-600);
}

.year-end {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-accent);
}

.experience-intro {
    font-size: 1rem;
    color: var(--color-gray-500);
    max-width: 280px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.timeline-item {
    display: flex;
    gap: var(--space-md);
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: var(--color-gray-700);
    border-radius: 50%;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 5px;
    width: 1px;
    height: calc(100% - 12px);
    background: linear-gradient(to bottom, var(--color-gray-700) 0%, transparent 100%);
}

.timeline-item:last-child .timeline-marker::after {
    display: none;
}

.timeline-item:hover .timeline-marker {
    background: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

.timeline-content {
    flex: 1;
    padding-bottom: var(--space-md);
}

.timeline-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.timeline-desc {
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.timeline-tags span {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    transition: all 0.3s ease;
}

.timeline-tags span:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

@media (max-width: 1024px) {
    .experience-grid { grid-template-columns: 1fr; }
    .experience-sticky { position: relative; top: 0; margin-bottom: var(--space-md); }
}


/* ==================== WHY NUA SECTION (ACCORDION) ==================== */
.why-nua {
    padding: var(--space-xl) clamp(2rem, 8vw, 8rem);
    background: var(--color-bg);
    max-width: 1000px;
    margin: 0 auto;
}

.why-nua-header {
    margin-bottom: var(--space-lg);
}

.why-nua-label {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    font-style: italic;
    color: var(--color-accent);
}

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

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover .accordion-title {
    color: var(--color-white);
}

.accordion-title {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--color-gray-400);
    transition: color 0.3s ease;
}

.accordion-item.active .accordion-title {
    font-weight: 600;
    color: var(--color-white);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--color-accent);
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.accordion-icon::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.accordion-item.active .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.accordion-subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.accordion-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.accordion-desc {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--color-gray-300);
    line-height: 1.8;
    max-width: 800px;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .why-nua {
        padding: var(--space-lg) var(--space-md);
    }
    .accordion-header {
        padding: 1.25rem 0;
    }
}

/* ==================== ORB INTERSTITIAL ==================== */
.orb-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl) var(--space-md);
    background: var(--color-bg);
    overflow: hidden;
}

.orb-scene {
    position: relative;
    width: 360px;
    height: 360px;
    margin-bottom: 56px;
    opacity: 0;
    transform: scale(0.3) translateY(120px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.orb-section.in-view .orb-scene {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 구체 — 앰버→보라→시안 색상 순환 */
.orb-container-lg {
    position: relative;
    width: 100%;
    height: 100%;
    animation: orb-color-shift 12s ease-in-out infinite;
}

.orb-lg {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 25%),
        radial-gradient(circle at 65% 70%, rgba(0,0,0,0.35) 0%, transparent 30%),
        radial-gradient(circle at 35% 35%,
            #fde68a 0%,
            #fbbf24 15%,
            #f59e0b 30%,
            #d97706 50%,
            #92400e 75%,
            #451a03 100%
        );
    box-shadow:
        0 0 80px rgba(245, 158, 11, 0.35),
        0 0 160px rgba(245, 158, 11, 0.12),
        inset 0 -30px 60px rgba(0, 0, 0, 0.5),
        inset 0 12px 35px rgba(251, 191, 36, 0.12);
    animation: orb-lg-float 6s ease-in-out infinite;
}

.orb-lg::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 18%;
    width: 32%;
    height: 18%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.08) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
}

.orb-lg::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(255, 220, 120, 0.1) 15%,
        transparent 30%,
        rgba(255, 180, 60, 0.08) 50%,
        transparent 65%,
        rgba(255, 200, 80, 0.06) 80%,
        transparent 100%
    );
    animation: orb-lg-shimmer 5s linear infinite;
}

.orb-ring-lg {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 50%;
    animation: orb-lg-ring-spin 8s linear infinite;
}
.orb-ring-lg::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--color-accent);
}

.orb-ring-outer-lg {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(245, 158, 11, 0.06);
    border-radius: 50%;
    animation: orb-lg-ring-spin 14s linear infinite reverse;
}
.orb-ring-outer-lg::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 30%;
    width: 4px;
    height: 4px;
    background: rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.orb-glow-lg {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(245, 158, 11, 0.06) 0%,
        rgba(245, 158, 11, 0.02) 40%,
        transparent 70%
    );
    animation: orb-lg-pulse 5s ease-in-out infinite;
}

.orb-reflection-lg {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    filter: blur(10px);
    animation: orb-lg-float 6s ease-in-out infinite;
}

/* 타이핑 텍스트 */
.orb-typing {
    font-family: var(--font-body);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 300;
    color: var(--color-gray-200);
    letter-spacing: 0.04em;
    text-align: center;
    min-height: 1.6em;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.8s, transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.orb-section.in-view .orb-typing {
    opacity: 1;
    transform: translateY(0);
}

.orb-cursor {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background: var(--color-accent);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: orb-cursor-blink 0.8s step-end infinite;
}

/* 색상 순환: 앰버 → 보라 → 시안 → 앰버 */
@keyframes orb-color-shift {
    0%   { filter: hue-rotate(0deg); }
    33%  { filter: hue-rotate(240deg); }
    66%  { filter: hue-rotate(160deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes orb-lg-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes orb-lg-ring-spin {
    to { transform: rotate(360deg); }
}

@keyframes orb-lg-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes orb-lg-shimmer {
    to { transform: rotate(360deg); }
}

@keyframes orb-cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .orb-section {
        min-height: 80vh;
    }
    .orb-scene {
        width: 240px;
        height: 240px;
        margin-bottom: 40px;
    }
}

/* ==================== SOLUTIONS ==================== */
/* SOLUTIONS (WORKS 섹션 안에 인라인) */
.sol-inline {
    padding: var(--space-xl) 0 0;
    margin-top: var(--space-xl);
    border-top: 1px solid var(--color-gray-800);
}

/* ===== sol-works: 큰 이미지 지그재그 + 텍스트 겹침 ===== */
.sol-works {
    display: flex;
    flex-direction: column;
    gap: clamp(60px, 8vw, 120px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 4vw, 4.5rem);
}

/* 각 행: 이미지 + 텍스트 겹침 */
.sol-row {
    position: relative;
    min-height: clamp(400px, 50vw, 700px);
}

/* 이미지: 동일 크기, 크게 */
.sol-media {
    position: absolute;
    width: 55%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sol-row:hover .sol-media {
    transform: scale(1.02);
}

/* 지그재그: 홀수(left) 이미지 좌측, 짝수(right) 이미지 우측 */
.sol-row--left .sol-media {
    left: 0;
    top: 0;
}
.sol-row--right .sol-media {
    right: 0;
    top: 0;
}

/* 초대형 텍스트: 이미지 반대편에서 겹치며 튀어나옴 */
.sol-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(5rem, 12vw, 12rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--color-white);
    margin: 0;
    position: absolute;
    z-index: 2;
}
.sol-line {
    display: block;
}

/* left행: 텍스트 우측에서 이미지 아래쪽으로 겹침 */
.sol-row--left .sol-title {
    right: 0;
    top: 45%;
    text-align: right;
}
/* right행: 텍스트 좌측에서 이미지 아래쪽으로 겹침 */
.sol-row--right .sol-title {
    left: -8%;
    top: 45%;
    text-align: left;
}

/* 메타: 타이틀 위쪽 빈 공간 */
.sol-meta {
    position: absolute;
    z-index: 3;
}
.sol-row--left .sol-meta {
    right: 12%;
    top: 8%;
    text-align: right;
}
.sol-row--right .sol-meta {
    left: 6%;
    top: 8%;
    text-align: left;
}
.sol-meta-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--color-gray-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.sol-meta-desc {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.6;
    color: var(--color-gray-400);
    margin: 0;
}

/* placeholder */
.sol-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-gray-600);
    letter-spacing: 0.1em;
}
.sol-placeholder-sub {
    font-size: 10px;
    color: var(--color-gray-700);
}

/* ---- 반응형 ---- */
@media (max-width: 1024px) {
    .sol-title {
        font-size: clamp(4rem, 10vw, 8rem);
    }
    .sol-media {
        width: 58%;
    }
}
@media (max-width: 768px) {
    .sol-inline { padding: var(--space-lg) 0 0; }
    .sol-works { padding: 0 16px; gap: 60px; }
    .sol-title { font-size: clamp(3rem, 14vw, 5rem); }
    .sol-media { width: 70%; }
    .sol-row { min-height: 250px; }
}

/* ==================== FOOTER / CONTACT ==================== */
.footer {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #c084fc 0%, #e879f9 50%, #f0abfc 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-xl) var(--space-md);
    overflow: hidden;
    pointer-events: auto;
    z-index: 30;
}

.footer-bg-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.footer-marquee {
    display: flex;
    white-space: nowrap;
    animation: footerMarquee 15s linear infinite;
}

.footer-marquee span {
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 900;
    color: rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

.footer-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.footer-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--color-bg);
    text-transform: uppercase;
}

.footer-subtitle {
    font-size: 1rem;
    color: #000;
    margin-top: var(--space-xs);
}

.footer-socials {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--color-bg);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-white);
    color: var(--color-bg);
    transform: scale(1.05);
}

.footer-form {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.form-group {
    position: relative;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: var(--space-sm) 0;
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-bg);
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #000;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-bg);
}

.form-submit {
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    background: var(--color-bg);
    color: var(--color-white);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-expo);
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-info p {
    font-size: 0.875rem;
    color: #000;
    margin-bottom: 0.25rem;
}

.footer-copyright p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #000;
}

.footer-badge {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 80px;
    height: 80px;
    animation: spin 15s linear infinite;
}

.footer-badge text {
    font-family: var(--font-mono);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    fill: rgba(0, 0, 0, 0.5);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .footer { padding: var(--space-lg) var(--space-sm); }
    .footer-top { flex-direction: column; gap: var(--space-md); }
    .form-row { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }
    .footer-bottom { flex-direction: column; gap: var(--space-md); align-items: flex-start; }
    .footer-badge { display: none; }
}
