@charset "UTF-8";
/* ==========================================================================
   PRATIK RAUNDALE — PEAK ANIMATION STYLESHEET
   Version: 3.0
   Architecture: High-Performance CSS with GSAP-ready classes
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Core Colors */
    --black: #000000;
    --black-soft: #050505;
    --black-mute: #0a0a0a;
    --black-surface: #111111;
    --white: #ffffff;
    --white-soft: #f5f5f5;

    /* Neutrals */
    --gray-100: #e0e0e0;
    --gray-200: #bababa;
    --gray-300: #888888;
    --gray-400: #444444;
    --gray-500: #1f1f1f;
    --gray-border: rgba(255, 255, 255, 0.1);

    /* Accent & Glow */
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.15);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', "Fira Code", "Courier New", monospace;

    /* Fluid Type Scale (Clamp) */
    --text-h1: clamp(3.5rem, 8vw, 8rem);
    --text-h2: clamp(2.5rem, 5vw, 4.5rem);
    --text-h3: clamp(1.5rem, 3vw, 2.2rem);
    --text-body: clamp(1rem, 1.2vw, 1.15rem);
    --text-small: clamp(0.75rem, 0.9vw, 0.85rem);

    /* Easing Functions (Physics Based) */
    --ease-out-expo: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
    --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --container-max: 1400px;
    --px-pad: clamp(1.5rem, 5vw, 4rem);
    --py-pad: clamp(4rem, 10vw, 12rem);

    /* Z-Index Layers */
    --z-bg: -1;
    --z-base: 1;
    --z-overlay: 100;
    --z-nav: 500;
    --z-cursor: 9999;
    --z-loader: 10000;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    font-size: 16px;
    background-color: var(--black);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Hide default cursor on desktop for custom cursor */
    cursor: none;
    background-color: var(--black);
}

@media (max-width: 1024px) {
    body {
        cursor: auto;
    }
}

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

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

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

ul {
    list-style: none;
}

/* Font Utilities */
.playfair {
    font-family: var(--font-serif);
}

.italic {
    font-style: italic;
}

.mono {
    font-family: var(--font-mono);
}

.bold {
    font-weight: 700;
}

.black {
    font-weight: 900;
}

/* Layout Utilities */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--px-pad);
}

.container.xl {
    max-width: var(--container-max);
}

.section {
    padding: var(--py-pad) 0;
    position: relative;
}

.border-t {
    border-top: 1px solid var(--gray-border);
}

.border-b {
    border-bottom: 1px solid var(--gray-border);
}

.border-tb {
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

/* Lenis Smooth Scroll Recommended */
html.lenis {
    height: auto;
}

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

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

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. GLOBAL EFFECTS & NOISE
   -------------------------------------------------------------------------- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-bg);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. CUSTOM MAGNETIC CURSOR
   -------------------------------------------------------------------------- */
.cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-fluid), height 0.3s var(--ease-fluid), opacity 0.3s;
}

.cursor-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: width 0.4s var(--ease-fluid), height 0.4s var(--ease-fluid), transform 0.1s linear;
}

.cursor-svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    stroke-width: 1px;
    transition: stroke-width 0.3s, transform 0.5s var(--ease-out-back);
}

.cursor-text {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--black);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
}

/* Cursor States */
body.cursor-hover-active .cursor-dot {
    opacity: 0;
}

body.cursor-hover-active .cursor-outline {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

body.cursor-hover-active .cursor-svg {
    stroke: transparent;
    transform: scale(1.1);
}

body.cursor-text-active .cursor-dot {
    opacity: 0;
}

body.cursor-text-active .cursor-outline {
    width: 90px;
    height: 90px;
    background: var(--white);
    border: none;
}

body.cursor-text-active .cursor-svg {
    stroke: transparent;
}

body.cursor-text-active .cursor-text {
    opacity: 1;
}

body.cursor-magnetic-active .cursor-outline {
    width: 60px;
    height: 60px;
    stroke-width: 2px;
}

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

/* --------------------------------------------------------------------------
   5. PRELOADER & TERMINAL BOOT SEQUENCE
   -------------------------------------------------------------------------- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--black);
    z-index: var(--z-loader);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1.4s var(--ease-out-expo);
    transform-origin: top;
}

.loader-container.hide {
    transform: translateY(-100%);
    pointer-events: none;
}

.loader-content {
    width: 80%;
    max-width: 600px;
}

.loader-progress-wrap {
    width: 100%;
    height: 2px;
    background: var(--gray-500);
    margin-bottom: 1rem;
    overflow: hidden;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--white);
    transition: width 0.1s linear;
}

.loader-text-wrap {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-200);
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.loader-terminal {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-300);
    line-height: 1.8;
}

.loader-terminal p {
    opacity: 0;
    transform: translateY(10px);
}

.loader-blink {
    color: var(--white) !important;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   6. MAIN NAVIGATION
   -------------------------------------------------------------------------- */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--px-pad);
    z-index: var(--z-nav);
    mix-blend-mode: difference;
    color: var(--white);
    transition: transform 0.4s var(--ease-fluid);
}

.header-nav.scrolled-down {
    transform: translateY(-100%);
}

.header-nav.scrolled-up {
    transform: translateY(0);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.nav-brand-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    display: inline-block;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 3vw;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 0.5rem;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0.5rem;
    color: var(--white);
    transition: transform 0.4s var(--ease-out-back);
    font-weight: 800;
}

.nav-link:hover .nav-link-inner {
    transform: translateY(-150%);
    opacity: 0;
}

.nav-link:hover::before {
    transform: translateY(-100%);
}

.nav-link-inner {
    display: inline-block;
    transition: transform 0.4s var(--ease-out-back), opacity 0.3s;
}

.nav-info {
    text-align: right;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--gray-200);
}

.nav-info-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.hi-status {
    width: 8px;
    height: 8px;
    background: #00ff66;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

/* Hamburger */
.menu-toggle {
    display: none;
    width: 50px;
    height: 50px;
    z-index: 501;
    position: relative;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger .line {
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 0;
    transition: all 0.4s var(--ease-fluid);
}

.line-1 {
    top: 0;
}

.line-2 {
    top: 9px;
}

.line-3 {
    top: 18px;
}

.menu-toggle.active .line-1 {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .line-2 {
    opacity: 0;
}

.menu-toggle.active .line-3 {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.8s var(--ease-out-expo);
}

.mobile-menu-overlay.active .mobile-menu-bg {
    transform: scaleY(1);
}

.mobile-menu-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--px-pad);
    opacity: 0;
    transition: opacity 0.4s 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-inner {
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-link {
    font-size: 3rem;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    color: var(--gray-400);
    transition: color 0.3s;
}

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

.mobile-link .link-num {
    font-size: 1rem;
    font-family: var(--font-mono);
}

.mobile-menu-footer {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-top: 1px solid var(--gray-500);
    padding-top: 2rem;
}

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

    .nav-info {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   7. CORE ANIMATION UTILITIES (DOM Wrapping)
   -------------------------------------------------------------------------- */
.line-wrap {
    overflow: hidden;
    display: block;
}

.line-inner {
    transform: translateY(115%) rotate(2deg);
    transform-origin: top left;
}

.anim-text-up {
    transition: transform 1.2s var(--ease-out-expo), opacity 1s;
}

.anim-text-up.is-visible {
    transform: translateY(0) rotate(0);
    opacity: 1;
}

.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-fluid), transform 1s var(--ease-fluid);
}

.anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-fade-down {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s var(--ease-fluid), transform 1s var(--ease-fluid);
}

.anim-fade-down.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-stagger-up>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-fluid);
}

.anim-stagger-up.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

.anim-stagger-up.is-visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.anim-stagger-up.is-visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.anim-stagger-up.is-visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.anim-stagger-up.is-visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.anim-stagger-up.is-visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

/* Masking Clip Paths for Images */
.gs-reveal-img {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s var(--ease-out-expo);
}

.gs-reveal-img.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Glitch Effect on Hover */
.glitch-hover:hover {
    animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--white);
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
        text-shadow: 0 0 0;
    }

    20% {
        transform: translate(-2px, 2px);
        text-shadow: 1px -1px 0 rgba(255, 0, 0, 0.8), -1px 1px 0 rgba(0, 255, 255, 0.8);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
        text-shadow: -1px -1px 0 rgba(255, 0, 0, 0.8), 1px 1px 0 rgba(0, 255, 255, 0.8);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
        text-shadow: 0 0 0;
    }
}

/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 15vh;
    padding-bottom: 5vh;
}

.hero-container {
    width: 100%;
    padding: 0 var(--px-pad);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    justify-content: space-between;
    position: relative;
    z-index: var(--z-base);
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-ambient-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
}

.hero-top-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-300);
    text-transform: uppercase;
}

.meta-item i {
    margin-right: 0.5rem;
    color: var(--white);
}

.hero-title-container {
    margin-bottom: 4rem;
    max-width: 1100px;
    position: relative;
    z-index: 2;
}

.greeting-wrap {
    margin-bottom: 1rem;
}

.greeting {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--gray-200);
    font-style: italic;
}

.hero-h1 {
    font-size: var(--text-h1);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero-h1 .playfair {
    font-weight: 400;
    text-transform: none;
    color: var(--gray-200);
}

.hero-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: end;
    max-width: 1100px;
    border-top: 1px solid var(--gray-border);
    padding-top: 3rem;
}

.hero-desc p {
    font-size: var(--text-body);
    color: var(--gray-200);
    font-weight: 300;
    max-width: 450px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

.hero-tag-pill {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--gray-500);
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--gray-100);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hero-tag-pill:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* 3D Cluster */
/* HERO TERMINAL HUB */
.hero-terminal-wrap {
    flex: 0 0 520px;
    perspective: 2000px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-terminal {
    width: 100%;
    height: 380px;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1400px) rotateY(-12deg) rotateX(4deg);
    transition: transform 0.8s var(--ease-out-expo), box-shadow 0.8s;
    position: relative;
    pointer-events: all;
}

.hero-terminal:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateZ(30px);
    border-color: rgba(255, 255, 255, 0.2);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.t-dot.red {
    background: #ff5f56;
}

.t-dot.yellow {
    background: #ffbd2e;
}

.t-dot.green {
    background: #27c93f;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-400);
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 20px 25px;
    height: calc(100% - 44px);
    overflow: hidden;
}

.terminal-content {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-300);
}


.t-row {
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
}

.t-prompt {
    color: #27c93f;
    font-weight: bold;
}

.t-cmd {
    color: var(--white);
}

.t-success {
    color: #27c93f;
    opacity: 0.9;
}

.t-blink {
    animation: terminal-blink 1s step-end infinite;
}

@keyframes terminal-blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.terminal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

/* Code Modules will be added here */


.c-3 {
    width: 300px;
    height: 190px;
    top: 280px;
    right: 0;
    transform: translateZ(40px) rotateY(-20deg);
}

/* Remove generic hover on cluster to fix "blank" issue. The JS mouse tracking handles interactivity */

.scroll-indicator {
    position: absolute;
    bottom: 4vh;
    right: var(--px-pad);
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-300);
}

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

.scroll-dot {
    width: 100%;
    height: 30%;
    background: var(--white);
    position: absolute;
    top: -30%;
    animation: scroll-down 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scroll-down {
    0% {
        top: -30%;
    }

    100% {
        top: 100%;
    }
}

@media (max-width: 1024px) {
    .hero-bottom-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }

    .hero-tags {
        justify-content: flex-start;
    }

    /* Shrink terminal on tablet */
    .hero-terminal-wrap {
        flex: 0 0 380px;
    }

    .hero-terminal {
        height: 300px;
        transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
    }
}

@media (max-width: 768px) {
    :root {
        --px-pad: 5vw;
        --py-pad: 6vh;
    }

    /* Stack hero vertically on mobile */
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .hero-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-bottom-grid {
        align-items: center;
        justify-content: center;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-terminal-wrap {
        width: 100%;
        max-width: 450px;
        flex: none;
        margin-top: 2rem;
    }

    .hero-terminal {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
        height: 260px;
        margin: 0 auto;
    }

    .hero-ambient-glow {
        width: 150vw;
        height: 150vw;
    }
}

@media (max-width: 480px) {
    .hero-terminal-wrap {
        /* Do NOT display:none as requested for 100% responsiveness/desktop mode */
        max-width: 100%;
    }

    .hero-terminal {
        height: 220px;
        font-size: 0.75rem;
        /* scale down terminal text */
        padding: 15px;
    }

    .hero-top-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

/* --------------------------------------------------------------------------
   9. GLOBAL MARQUEE (PURE CSS SYNC)
   -------------------------------------------------------------------------- */
.marquee-wrapper {
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
}

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

.bg-white .border-tb {
    border-color: var(--gray-100);
}

.marquee-inner {
    display: flex;
    width: max-content;
}

.marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.m-text {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    display: inline-flex;
    align-items: center;
}

.m-dot {
    width: 20px;
    height: 20px;
    background: var(--gray-500);
    border-radius: 50%;
    display: inline-block;
    margin: 0 4vw;
}

.m-item {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-right: 4vw;
}

.m-item i {
    color: var(--gray-300);
}

.dark-text .m-item {
    color: var(--black);
}

/* Animation defined in JS explicitly for buttery smooth sub-pixel rendering */

/* --------------------------------------------------------------------------
   10. SECTION DIVIDERS (EDITORIAL FEEL)
   -------------------------------------------------------------------------- */
.sec-divider {
    padding: 1.5rem var(--px-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@media (max-width: 768px) {
    .sec-divider {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   11. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 6vw;
    align-items: start;
}

.about-visuals {
    position: relative;
}

.img-mask {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    border-radius: 4px;
}

.img-mask img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 1s;
}

.img-mask:hover img {
    filter: grayscale(0%);
}

.img-overlay {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    animation: scan 3s linear infinite;
    pointer-events: none;
}

.img-mask:hover .scanline {
    opacity: 1;
}

@keyframes scan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.visual-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-300);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rec-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
    animation: blink 1s infinite alternate;
}

.about-content {
    padding-top: 2vw;
}

.about-h2 {
    font-size: var(--text-h2);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
}

.about-text {
    font-size: var(--text-body);
    color: var(--gray-200);
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--gray-border);
    padding-top: 3rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bg-circle {
    fill: none;
    stroke: var(--gray-500);
    stroke-width: 4;
}

.progress-circle {
    fill: none;
    stroke: var(--white);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 2s var(--ease-out-expo);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    z-index: 2;
    display: flex;
    align-items: baseline;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-300);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-visuals {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --------------------------------------------------------------------------
   12. EXPERTISE SECTION
   -------------------------------------------------------------------------- */
.services-header {
    margin-bottom: 6rem;
}

.services-header h2 {
    font-size: var(--text-h2);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 6rem;
}

.service-card {
    position: relative;
    padding-top: 3rem;
}

.srv-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.6s var(--ease-out-expo);
}

.service-card:hover .srv-border-top {
    width: 100%;
}

.srv-icon-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.5rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
    transition: color 0.4s;
}

.service-card:hover .srv-icon-wrap {
    color: var(--white);
}

.srv-num {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--gray-500);
}

.srv-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.srv-desc {
    font-size: var(--text-body);
    color: var(--gray-300);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
}

.srv-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.srv-tools li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-200);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--gray-500);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

/* --------------------------------------------------------------------------
   13. EXPERIENCE SECTION
   -------------------------------------------------------------------------- */
.history-list {
    border-top: 1px solid var(--gray-border);
}

.interaction-row {
    border-bottom: 1px solid var(--gray-border);
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr 2fr 80px;
    gap: 4rem;
    position: relative;
    transition: background 0.4s;
}

.interaction-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gray-500);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease-out-expo);
    z-index: -1;
}

.interaction-row:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.interaction-row:hover .hist-role {
    color: var(--white);
    transform: translateX(10px);
}

.hist-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hist-year {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
}

.hist-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-200);
}

.hist-loc {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.hist-role {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    transition: transform 0.4s, color 0.4s;
}

.hist-desc p {
    color: var(--gray-200);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hist-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.hist-bullets li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--gray-300);
    font-weight: 300;
}

.hist-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gray-500);
}

.hist-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hist-tags span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-300);
    text-transform: uppercase;
}

.hist-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.view-btn {
    width: 60px;
    height: 60px;
    border: 1px solid var(--gray-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    transition: background 0.4s;
}

.interaction-row:hover .view-btn {
    background: var(--white);
    color: var(--black);
    transform: rotate(-45deg);
}

@media (max-width: 1024px) {
    .interaction-row {
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
        padding: 3rem 0;
    }

    .hist-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .interaction-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hist-role {
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   14. PROJECTS SECTION
   -------------------------------------------------------------------------- */
.work-grid {
    display: flex;
    flex-direction: column;
    padding-bottom: 30vh;
    /* Extra space for the last card to scroll */
}

/* Stacking Interaction Logic */
.work-card {
    position: sticky;
    top: 10vh;
    /* Base sticky position */
    background-color: var(--black-surface);
    border: 1px solid var(--gray-border);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 8vh;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s var(--ease-fluid);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .work-card {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        /* keep centered instead of stretch */
        gap: 4vw;
        padding: 4rem 4vw;
    }

    .w-info {
        flex: 1 1 45%;
        order: 1;
        padding-right: 2vw;
    }

    .w-img-wrap {
        flex: 1 1 55%;
        max-width: 55%;
        /* Ensure it doesn't take over the card */
        order: 2;
        border-radius: 20px;
    }
}


@media (max-width: 1023px) {
    .work-card {
        display: flex;
        /* Explicitly set to flex for stacking */
        flex-direction: column;
        gap: 2rem;
        /* Adjust gap for stacked layout */
    }
}


.work-card[data-card-index="1"] {
    top: 10vh;
}

.work-card[data-card-index="2"] {
    top: 12vh;
}

.work-card[data-card-index="3"] {
    top: 14vh;
}

.work-card[data-card-index="4"] {
    top: 16vh;
}



.w-img-wrap {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Aspect ratio restored to prevent extreme vertical stretching on ultrawides, 16/9 is great for landscape screenshots */
    aspect-ratio: 16 / 9;
}

.w-img-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.w-img-inner img {
    width: 100%;
    height: 100%;
    /* Restored 100% since no extreme parallax */
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    filter: grayscale(70%) brightness(0.5);
    transition: filter 0.8s, opacity 0.8s;
    opacity: 0.95;
}

.work-card:hover .w-img-inner img {
    filter: grayscale(20%) brightness(0.8);
    opacity: 1;
}

/* Glassmorphic Code Module (Floating Overlay) */
.w-code-module {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(1200px) rotateY(-8deg) rotateX(4deg);
    width: 80%;
    max-width: 460px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: transform 0.8s var(--ease-out-expo), box-shadow 0.8s, border-color 0.4s;
    pointer-events: none;
}

.work-card:hover .w-code-module {
    transform: translate(-50%, -50%) perspective(1200px) rotateY(0deg) rotateX(0deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.code-dot:nth-child(1) {
    background: #ff5f56;
}

.code-dot:nth-child(2) {
    background: #ffbd2e;
}

.code-dot:nth-child(3) {
    background: #27c93f;
}

.code-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray-400);
    letter-spacing: 0.05em;
}

.code-content {
    padding: 15px 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gray-300);
    white-space: pre;
    overflow: hidden;
}

/* Syntax Highlighting */
.code-keyword {
    color: #c678dd;
    font-weight: 600;
}

.code-string {
    color: #98c379;
}

.code-variable {
    color: #d19a66;
}

.code-comment {
    color: #5c6370;
    font-style: italic;
}

.code-function {
    color: #61afef;
}


.w-info {
    margin-top: 0;
    order: 1;
    /* Description on left (primary focus) */
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.w-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.w-num {
    color: var(--white);
    font-weight: 700;
}

.w-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.w-desc {
    font-size: 1.25rem;
    /* Increased size */
    line-height: 1.6;
    color: var(--gray-200);
    font-weight: 300;
    max-width: 100%;
    /* Take available space */
    margin-bottom: 2.5rem;
}


.w-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.tech-pill {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-500);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-300);
}

.view-case-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--white);
    padding-bottom: 0.5rem;
    transition: gap 0.3s;
}

.view-case-btn:hover {
    gap: 1.5rem;
}

/* Stacking Effect: Scale down cards slightly as they are covered */
.work-card:not(:last-child) {
    transform: scale(0.98);
}

.work-card:hover {
    transform: scale(1) translateY(-10px);
    z-index: 10;
}

/* Card Specific Aesthetics */
.work-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}


/* --------------------------------------------------------------------------
   15. CERTIFICATIONS
   -------------------------------------------------------------------------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    perspective: 1500px;
}

.perspective-wrap {
    perspective: 1000px;
}

.cert-tilt-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    transition: transform 0.6s var(--ease-out-expo), background 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.cert-tilt-inner:hover {
    transform: translateZ(20px) rotateX(4deg) rotateY(-4deg);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Shine Effect */
.cert-tilt-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    transform: skewX(-25deg);
    transition: 0.8s;
    pointer-events: none;
}

.cert-tilt-inner:hover::before {
    left: 150%;
}

.c-icon {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 2rem;
    transition: transform 0.4s var(--ease-out-expo);
}

.cert-tilt-inner:hover .c-icon {
    transform: translateZ(40px) scale(1.1);
}

.c-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    color: var(--white);
}

.c-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-item-inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.3s ease;
}

.c-list li:hover .c-item-inner {
    transform: translateX(10px);
}

.c-name {
    font-weight: 600;
    color: var(--gray-100);
    font-size: 1rem;
}

.c-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-200);
    /* Brightened from gray-400 to 'dark white' */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.c-date i {
    font-size: 0.8rem;
    color: var(--gray-300);
    /* Brightened icon */
}


@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --------------------------------------------------------------------------
   16. CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
    padding: 15vw 0;
    text-align: center;
    overflow: hidden;
}

#cta-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.cta-h2 {
    font-size: var(--text-h1);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 4rem;
}

.cta-h2 .playfair {
    font-weight: 400;
    text-transform: none;
    color: var(--gray-200);
}

.massive-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--white);
    color: var(--black);
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s;
}

.btn-icon {
    width: 50px;
    height: 50px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.massive-btn:hover {
    transform: scale(1.05);
}

.cta-links {
    margin-top: 6rem;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.c-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--gray-300);
    text-transform: uppercase;
    transition: color 0.3s;
}

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

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    padding: 3rem 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f-logo {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.f-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    display: inline-block;
}

.f-copy {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-400);
}

.f-quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gray-300);
    font-size: 1.1rem;
}

.back-to-top {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--gray-500);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: background 0.3s;
}

.back-to-top:hover {
    background: var(--white);
    color: var(--black);
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .work-card {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        top: 10vh !important;
        /* Adjust sticky for mobile */
    }

    .w-img-wrap {
        height: auto;
        aspect-ratio: 16 / 9;
        max-width: 100%;
        order: 1;
    }

    .w-info {
        order: 2;
    }

    .w-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .w-desc {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .view-case-btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .work-card {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .w-title {
        font-size: 1.5rem;
    }

    .tech-pill {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .f-logo {
        font-size: 1rem;
    }

    .massive-btn {
        font-size: 1rem;
        padding: 0.8rem 0.8rem 0.8rem 2rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }
}

/* --------------------------------------------------------------------------
   18. REVEAL ANIMATIONS (Triggered by JS Observers)
   -------------------------------------------------------------------------- */
.gs-reveal-text .line-inner {
    transform: translateY(115%) rotate(2deg);
    transition: transform 1.6s var(--ease-out-expo);
}

.gs-reveal-text.is-visible .line-inner {
    transform: translateY(0) rotate(0);
}

/* Adding small delays for multi-line */
.gs-reveal-text.is-visible .line-wrap:nth-child(1) .line-inner {
    transition-delay: 0s;
}

.gs-reveal-text.is-visible .line-wrap:nth-child(2) .line-inner {
    transition-delay: 0.1s;
}

.gs-reveal-text.is-visible .line-wrap:nth-child(3) .line-inner {
    transition-delay: 0.2s;
}

.gs-reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-reveal-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gs-reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gs-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-stagger.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

.gs-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.gs-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.gs-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.gs-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

/* End of heavily scaled 1500+ lines target CSS logic injected here */