/* style.css - Premium Nudot-inspired Design System */

:root {
    --color-bg: #030303;
    --color-text: #ffffff;
    --color-muted: rgba(255, 255, 255, 0.45);
    --color-accent: #66fcf1;
    --color-accent-rgb: 102, 252, 241;
    --color-border: rgba(255, 255, 255, 0.12);
    
    --font-family-body: 'Manrope', sans-serif;
    --font-family-display: 'Unbounded', 'Manrope', sans-serif;
    --font-family-accent: 'IBM Plex Mono', monospace;
    --font-family-dot: 'Bitcount Grid Single', monospace;
    
    --text-2xs: clamp(0.6875rem, 0.66rem + 0.14vw, 0.75rem);
    --text-xs: clamp(0.75rem, 0.72rem + 0.22vw, 0.85rem);
    --text-sm: clamp(0.8125rem, 0.77rem + 0.28vw, 0.95rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.28vw, 1.05rem);
    --text-md: clamp(1rem, 0.94rem + 0.44vw, 1.2rem);
    --text-lg: clamp(1.125rem, 1.04rem + 0.8vw, 1.5rem);
    --text-display-xs: clamp(2rem, 3.5vw, 3.125rem);
    --text-display-sm: clamp(2.8rem, 4.6vw, 4.8rem);
    --text-display-md: clamp(3rem, 8vw, 5rem);
    --text-display-lg: clamp(4rem, 12vw, 9rem);
    --text-watermark: clamp(6rem, 16vw, 14rem);
    
    --thumb-width: 120px;
    --line-base-height: 15px;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: auto;
    overscroll-behavior-y: none;
    background-color: var(--color-bg);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family-body);
    font-size: var(--text-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Scrollbar */
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background: #000;
}
body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    transition: background-color .25s ease;
}
body::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Custom Cursor */
.custom-cursor, .custom-cursor-dot {
    display: none;
}

/* Preloader */
#nudot-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

#nudot-loader .nd-mask {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #030303;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

#nudot-loader .nd-mask.top {
    top: 0;
    transform-origin: top center;
}

#nudot-loader .nd-mask.bottom {
    bottom: 0;
    transform-origin: bottom center;
}

#nudot-loader .nd-logo {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#nudot-loader .nd-letter {
    font-family: var(--font-family-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

#nudot-loader .nd-letter.visible {
    opacity: 1;
    transform: translateY(0);
}

#nudot-loader .nd-icon {
    width: 80px;
    height: 80px;
    position: relative;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#nudot-loader .nd-icon.visible {
    opacity: 1;
    transform: scale(1);
}

#nudot-loader .loader-progress {
    position: absolute;
    bottom: 10%;
    font-family: var(--font-family-accent);
    font-size: 1.5rem;
    color: var(--color-accent);
    z-index: 10;
}

/* Scroll Engine */
.scroll-track {
    height: 600vh;
    position: relative;
    touch-action: pan-y;
}

.sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* WebGL canvas */
#webgl-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Grid Overlay & Crosses */
.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.grid-line {
    position: absolute;
    background-color: var(--color-border);
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

.grid-line.horizontal {
    height: 1px;
    width: 100%;
}

.grid-cross {
    position: absolute;
    font-family: var(--font-family-body);
    font-size: 12px;
    color: var(--color-muted);
    opacity: 0.35;
    transform: translate(-50%, -50%);
}

.c-tl { top: 2.5vw; left: 3vw; }
.c-tr { top: 2.5vw; right: 3vw; }
.c-bl { bottom: 2.5vw; left: 3vw; }
.c-br { bottom: 2.5vw; right: 3vw; }

/* Hero Section & UI overlay */
.hero-section {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: #000;
}

.overlay-ui {
    position: absolute;
    inset: 0;
    padding: 4.5vw 5vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
    mix-blend-mode: difference;
}

.overlay-ui a, 
.overlay-ui button {
    pointer-events: auto;
}

.overlay-top {
    width: 100%;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5vh;
}

.huge-text {
    font-family: var(--font-family-display);
    font-size: var(--text-display-md);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 0.9;
}

.small-tag {
    font-size: var(--text-2xs);
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.col-right {
    grid-column: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.services-list {
    list-style: none;
    font-size: var(--text-2xs);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.services-list.bordered li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2px;
    margin-bottom: 4px;
    text-align: right;
}

.services-list.bordered li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 4px;
}

/* Quick Links & Info Bottom */
.overlay-bottom {
    width: 100%;
}

.grid-section {
    margin-bottom: 4vh;
}

.hero-quick-links-row {
    align-items: center;
    margin-bottom: 15px;
}

.hero-quick-links {
    grid-column: 1 / -1;
    display: flex;
    gap: 4.5vw;
}

.hero-quick-links a {
    font-family: var(--font-family-display);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.hero-quick-links a:hover {
    color: var(--color-accent);
}

.border-top-line {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 12px;
    font-size: var(--text-2xs);
    color: var(--color-muted);
}

.border-top-line > div:nth-child(2),
.border-top-line > div:nth-child(3) {
    text-align: center;
}

.border-top-line > div:nth-child(4) {
    text-align: right;
}

.bottom-footer {
    font-size: var(--text-2xs);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

.bottom-footer .footer-links a {
    display: block;
    color: inherit;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.3s;
}

.bottom-footer .footer-links a:hover {
    color: #fff;
}

/* Bottom slider controls & wave lines */
.bottom-ui-container {
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    max-width: 90vw;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    mix-blend-mode: difference;
}

.slide-section {
    font-family: var(--font-family-accent);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.slide-counter {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    color: #fff;
    font-size: var(--text-xs);
    margin-bottom: 12px;
}

.counter-nav {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
    user-select: none;
    pointer-events: auto;
}

.counter-nav:hover {
    opacity: 1;
    color: var(--color-accent);
}

.counter-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-accent);
}

.counter-divider {
    opacity: 0.4;
}

.slide-title-container {
    height: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.slide-title {
    position: absolute;
    width: 100%;
    left: 0;
    color: #fff;
    font-family: var(--font-family-display);
    font-size: var(--text-sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s;
}

.slide-title.exit-up {
    transform: translateY(-24px);
    opacity: 0;
}

.slide-title.enter-up {
    transform: translateY(24px);
    opacity: 0;
}

.drag-indicator {
    width: 100%;
    height: 40px;
    margin-bottom: 8px;
}

.lines-container {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
}

.drag-line {
    width: 2px;
    background-color: rgba(255, 255, 255, 0.22);
    height: var(--line-base-height);
    transform-origin: bottom center;
    transition: height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.4s;
}

.thumbs-container {
    width: 100%;
    overflow: hidden;
    pointer-events: auto;
}

.slide-thumbs {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.slide-thumb {
    width: var(--thumb-width);
    height: 48px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.3s, border-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.slide-thumb:hover {
    opacity: 0.7;
}

.slide-thumb.active {
    opacity: 1;
    border-color: var(--color-accent);
}

.slides {
    display: none;
}

/* Dark wrapper curtain reveal */
.dark-wrapper-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    overflow: hidden;
    clip-path: inset(100% 0 0 0);
    -webkit-clip-path: inset(100% 0 0 0);
    will-change: clip-path;
}

.dark-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #020204;
    color: #ffffff;
    z-index: 1;
    overflow: hidden;
}

.glow-bottom-left {
    position: absolute;
    bottom: -20vh;
    left: -10vw;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
}

.glow-center-left {
    position: absolute;
    top: 15vh;
    left: 15vw;
    width: 45vw;
    height: 45vh;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.05) 0%, transparent 65%);
    filter: blur(80px);
    z-index: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.6;
}

.si-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.si-label {
    font-size: var(--text-2xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.si-line {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* Intro panel (opposite waves) */
.intro-panel {
    position: absolute;
    inset: 0;
    z-index: 16;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.ip-top-chapter1 {
    position: absolute;
    top: 18vh;
    font-size: var(--text-xs);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    z-index: 50;
    text-transform: uppercase;
    font-family: var(--font-family-display);
}

.ip-top-header {
    position: absolute;
    top: 22vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 50;
}

.ip-top-chapter {
    font-size: var(--text-2xs);
    letter-spacing: 0.1em;
    color: var(--color-accent);
    text-transform: uppercase;
    font-family: var(--font-family-display);
}

.dual-wave-wrapper {
    display: flex;
    width: 85%;
    max-width: 1200px;
    gap: 15vw;
    position: relative;
}

.wave-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 1.8vh, 1.2rem);
    font-size: clamp(1.4rem, 2.5vw, 2.5rem);
    font-weight: 300;
    font-family: var(--font-family-display);
    letter-spacing: -0.02em;
}

.wave-column-left {
    align-items: flex-start;
}

.wave-column-right {
    align-items: flex-end;
}

.animated-text {
    width: max-content;
    color: rgba(255, 255, 255, 0.22);
    text-transform: uppercase;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, color 0.3s, filter 0.45s ease;
    user-select: none;
    will-change: transform, opacity, filter;
    transform-origin: center;
    opacity: 0.48;
}

.animated-text.focused {
    color: #fff;
    font-weight: 500;
    opacity: 1;
    text-shadow: 0 0 22px rgba(102, 252, 241, 0.12);
}

.animated-text .flip-wrap {
    display: inline-flex;
    flex-direction: column;
    height: 1.1em;
    overflow: hidden;
    position: relative;
    vertical-align: bottom;
}

.animated-text .at-en {
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.animated-text .at-zh {
    display: block;
    color: var(--color-accent);
    font-size: 0.45em;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.animated-text.focused .at-en,
.animated-text.focused .at-zh {
    transform: translateY(-100%);
}

.image-thumbnail-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25vw;
    max-width: 320px;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ip-thumb-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.ip-thumb-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.image-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.85;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Marquee / Title reveal wrapper */
.section-2-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.marquee-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
}

.marquee-outer {
    overflow: hidden;
    width: 100%;
}

.marquee-inner {
    display: flex;
    align-items: center;
    transform: translate3d(0,0,0);
}

.marquee-set {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-block {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1.5vw;
}

.huge-title {
    font-family: var(--font-family-display);
    font-size: 8vw;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.04em;
    line-height: 1;
}

.marquee-label {
    font-family: var(--font-family-body);
    font-size: clamp(0.75rem, 1.2vw, 1.1rem);
    color: var(--color-muted);
    white-space: nowrap;
    margin-right: 4vw;
}

/* New text group */
.new-text-group {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
}

.new-text-group .subtitle {
    font-family: var(--font-family-display);
    font-size: var(--text-xs);
    color: var(--color-accent);
    letter-spacing: 0.25em;
    margin-bottom: 20px;
}

.new-text-group .huge-title {
    font-family: var(--font-family-display);
    font-size: 10vw;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.new-text-group .title-outline {
    font-weight: 100;
    opacity: 0.7;
}

.new-text-group .desc {
    font-size: var(--text-sm);
    color: var(--color-muted);
    max-width: 440px;
    text-align: center;
    line-height: 1.8;
    margin-top: 30px;
}

.title-reveal-wrap {
    overflow: hidden;
    display: block;
}

/* 3D Cube styles */
.scene-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 22;
    will-change: transform;
}

.scene {
    --scene-size: 180px;
    --scene-depth: 90px;
    width: var(--scene-size);
    height: var(--scene-size);
    perspective: 1000px;
    transition: width 0.1s, height 0.1s;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(-45deg);
    will-change: transform;
}

.face {
    position: absolute;
    width: var(--scene-size);
    height: var(--scene-size);
    background-color: #09090b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
    backface-visibility: hidden;
    transition: width 0.1s, height 0.1s;
}

.face-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.face.front  { transform: rotateY(  0deg) translateZ(var(--scene-depth)); }
.face.right  { transform: rotateY( 90deg) translateZ(var(--scene-depth)); }
.face.back   { transform: rotateY(180deg) translateZ(var(--scene-depth)); }
.face.left   { transform: rotateY(-90deg) translateZ(var(--scene-depth)); }
.face.top    { transform: rotateX( 90deg) translateZ(var(--scene-depth)); }
.face.bottom { transform: rotateX(-90deg) translateZ(var(--scene-depth)); }

/* Static Sections underneath scroll track */
.scroll-wrapper {
    position: relative;
    z-index: 22;
    width: 100%;
    background-color: var(--color-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* STM Scramble section */
.stm-section {
    padding: 15vh 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.stm-logo {
    font-family: var(--font-family-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.015);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 0.15em;
    pointer-events: none;
    user-select: none;
}

.stm-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 80%;
    max-width: 900px;
}

.stm-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.stm-el {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stm-el:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.05);
}

.stm-el--xl {
    font-family: var(--font-family-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    border: none;
    color: #fff;
    padding: 0;
}

.stm-el--xl:hover {
    background: none;
    color: var(--color-accent);
}

.stm-typing {
    border: none;
    color: var(--color-accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent }
    50% { color: var(--color-accent) }
}

/* Portfolio / Work section */
.work-section {
    padding: 15vh 0;
    border-top: 1px solid var(--color-border);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 25px;
    margin-bottom: 6vh;
}

.section-title {
    font-family: var(--font-family-display);
    font-size: var(--text-display-xs);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-head {
    margin-bottom: 28px;
}

.section-subtitle {
    max-width: 780px;
    margin-top: 14px;
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-muted);
}

.work-count {
    font-family: var(--font-family-accent);
    font-size: var(--text-sm);
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

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

.work-card {
    display: block;
    text-decoration: none;
    color: inherit;
    pointer-events: auto;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #060608;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    transition: border-color 0.4s ease;
    clip-path: inset(100% 0% 0% 0%);
    -webkit-clip-path: inset(100% 0% 0% 0%);
}

.card-img-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8) contrast(1.05) saturate(0.85);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s;
}

.card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--font-family-accent);
    font-size: var(--text-2xs);
    letter-spacing: 0.1em;
    color: #fff;
    mix-blend-mode: difference;
}

.work-card:hover .card-img-wrapper {
    border-color: rgba(var(--color-accent-rgb), 0.5);
}

.work-card:hover .card-img-inner {
    transform: scale(1.06);
    filter: brightness(1) contrast(1.02) saturate(1.05);
}

/* Practical services/cases section */
.practical-section {
    padding: 10vh 0 12vh;
    border-top: 1px solid var(--color-border);
    background: linear-gradient(180deg, #050505 0%, #030303 100%);
}

.practical-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: #020204;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 60px 0;
}

.practical-shell {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.practical-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.practical-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.practical-kicker {
    font-family: var(--font-family-accent);
    font-size: var(--text-2xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 18px;
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.service-card {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    min-width: 0;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--color-accent-rgb), 0.35);
    background: rgba(255, 255, 255, 0.035);
}

.service-name {
    font-family: var(--font-family-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.15;
    white-space: nowrap;
}

.service-desc {
    font-size: var(--text-2xs);
    line-height: 1.7;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.service-price {
    font-family: var(--font-family-accent);
    font-size: var(--text-sm);
    color: var(--color-accent);
    letter-spacing: 0.12em;
}

.case-list {
    display: grid;
    gap: 14px;
}

.case-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.case-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--color-accent-rgb), 0.35);
    background: rgba(255, 255, 255, 0.035);
}

.case-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    filter: saturate(0.9) contrast(1.02);
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.case-title {
    font-family: var(--font-family-display);
    font-size: var(--text-md);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.case-desc {
    font-size: var(--text-2xs);
    line-height: 1.6;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-price {
    font-size: var(--text-2xs);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

/* FAQ section */
.faq-section {
    padding: 10vh 0 12vh;
    border-top: 1px solid var(--color-border);
    background: linear-gradient(180deg, #040404 0%, #020202 100%);
}

.faq-list {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-family: var(--font-family-body);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--color-accent);
    font-family: var(--font-family-accent);
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-width: 880px;
    padding: 0 0 22px;
    margin-top: -4px;
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-muted);
}

.faq-item[open] summary {
    color: rgba(255, 255, 255, 0.96);
}

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

.card-title {
    font-family: var(--font-family-display);
    font-size: var(--text-md);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.card-category {
    font-size: var(--text-2xs);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact / Footer section */
.contact-section {
    padding: 15vh 0 4vh;
    border-top: 1px solid var(--color-border);
    background: linear-gradient(to bottom, #030303 0%, #000 100%);
}

.contact-wrapper {
    text-align: center;
    padding: 8vh 0;
}

.contact-tag {
    font-family: var(--font-family-display);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.contact-title {
    font-family: var(--font-family-dot);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 50px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
}

.btn-arrow {
    font-size: 16px;
    transition: transform 0.3s;
}

.contact-btn:hover {
    border-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.05);
    box-shadow: 0 10px 30px rgba(var(--color-accent-rgb), 0.1);
}

.contact-btn:hover .btn-arrow {
    transform: translateX(6px);
}

.footer-watermark {
    font-family: var(--font-family-display);
    font-size: var(--text-watermark);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.7;
    text-align: center;
    color: rgba(255, 255, 255, 0.008);
    pointer-events: none;
    user-select: none;
    margin-bottom: 6vh;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
    font-size: var(--text-2xs);
    color: var(--color-muted);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .work-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .practical-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    #nudot-loader {
        padding: 0 16px;
    }

    #nudot-loader .nd-logo {
        gap: 0.85rem;
    }

    #nudot-loader .nd-letter {
        font-size: clamp(2.6rem, 14vw, 4rem);
        line-height: 1;
    }

    #nudot-loader .nd-icon {
        width: 58px;
        height: 58px;
    }

    #nudot-loader .loader-progress {
        bottom: 8%;
        font-size: 1.1rem;
    }

    .sticky-container {
        height: auto;
        overflow: visible;
    }
    
    .scroll-track {
        height: auto;
    }
    
    .hero-section {
        position: relative;
        height: 100svh;
        width: 100vw;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.88) 100%);
    }
    
    .overlay-ui {
        padding: 12px;
        gap: 12px;
        justify-content: flex-start;
        mix-blend-mode: normal;
        background: transparent;
    }

    .overlay-top {
        width: 100%;
        padding: 12px 12px 14px;
        background: rgba(0, 0, 0, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 16px;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .overlay-bottom {
        width: 100%;
        margin-top: auto;
        padding: 12px;
        background: rgba(0, 0, 0, 0.34);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    }

    .text-blend {
        mix-blend-mode: normal;
    }
    
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
        width: 100%;
    }
    
    .huge-text {
        font-size: clamp(1.7rem, 8.4vw, 2.8rem);
        line-height: 0.95;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        white-space: normal;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .small-tag {
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 4px 8px;
        border-radius: 999px;
        letter-spacing: 0.08em;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .col-right {
        grid-column: 1;
        align-items: flex-start;
    }

    .services-list {
        color: rgba(255, 255, 255, 0.86);
        line-height: 1.65;
        letter-spacing: 0.03em;
    }

    .services-list.bordered li {
        text-align: left;
    }
    
    .hero-quick-links {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .hero-quick-links a {
        color: rgba(255, 255, 255, 0.92);
    }
    
    .border-top-line > div {
        text-align: left !important;
        margin-bottom: 5px;
    }

    .bottom-footer {
        color: rgba(255, 255, 255, 0.78);
    }
    
    .bottom-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .bottom-ui-container {
        display: none;
    }

    .slide-section,
    .slide-counter,
    .slide-title {
        color: #fff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
    }

    .slide-section {
        display: none;
    }

    .slide-counter {
        margin-bottom: 0;
        font-size: var(--text-2xs);
    }

    .slide-title-container {
        height: 22px;
        margin-bottom: 0;
    }

    .slide-title {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .counter-nav {
        font-size: 14px;
    }

    .counter-display {
        gap: 6px;
    }

    .drag-indicator {
        height: 28px;
    }

    .thumbs-container {
        width: 100%;
    }

    .slide-thumb {
        width: 30vw;
        height: 40px;
    }

    .grid-overlay {
        opacity: 0.35;
    }
    
    /* Dark wrapper on mobile: hide desktop sticky effects */
    .dark-wrapper-mask {
        display: none !important;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .practical-section {
        padding: 8vh 0 10vh;
    }

    .practical-overlay {
        position: relative !important;
        inset: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 20 !important;
        padding: 8vh 0 10vh !important;
        display: block !important;
        background: transparent !important;
    }

    .practical-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .practical-panel {
        padding: 20px;
    }

    .service-card-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 14px;
    }

    .case-card {
        grid-template-columns: 88px 1fr;
        gap: 12px;
    }

    .case-title {
        font-size: var(--text-sm);
    }

    .case-price {
        font-size: 11px;
    }
    
    .stm-content {
        width: 90%;
    }
    
    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .faq-section {
        padding: 6vh 0 10vh;
    }

    .section-head {
        margin-bottom: 20px;
    }

    .faq-item summary {
        padding: 18px 0;
        font-size: var(--text-sm);
        gap: 14px;
    }

    .faq-answer {
        padding: 0 0 18px;
    }

    .faq-answer,
    .section-subtitle {
        font-size: var(--text-sm);
    }

    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: min(100%, 320px);
        justify-content: center;
    }
}

/* ─── BURGER MENU ─── */
.burger-menu-btn {
    position: fixed;
    top: 40px;
    right: 3vw;
    width: 48px;
    height: 48px;
    background: rgba(15, 15, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.burger-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s;
}

.burger-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--color-accent-rgb), 0.5);
    transform: scale(1.05);
}

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

.burger-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

.burger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.4s;
}

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

.menu-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

.menu-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.burger-menu-overlay.active .menu-container {
    transform: translateY(0);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 60px;
}

.menu-link {
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    transition: color 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-link::before {
    content: attr(data-index);
    font-family: var(--font-family-accent);
    font-size: 0.9rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.menu-link span {
    position: relative;
}

.menu-link span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-link:hover {
    color: var(--color-accent);
}

.menu-link:hover::before {
    opacity: 1;
    transform: translateX(-5px);
}

.menu-link:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.menu-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-family-accent);
    font-size: var(--text-2xs);
    text-transform: uppercase;
    color: var(--color-muted);
    letter-spacing: 0.08em;
}

@media (max-width: 767px) {
    .menu-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .burger-menu-btn {
        top: 20px;
        right: 4vw;
    }
}
