/* ==========================================================================
   WRONG CIRCLE - CINEMATIC CSS ENGINE
   ========================================================================== */

/* 1. Theme Tokens & Variables */
:root {
    --bg-color: #060608;
    --card-bg: rgba(10, 10, 14, 0.65);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    /* Cyber Neon Gradients */
    --accent-red: #ff2a5f;
    --accent-blue: #00f2fe;
    --accent-glow-red: rgba(255, 42, 95, 0.2);
    --accent-glow-blue: rgba(0, 242, 254, 0.2);
    
    /* Design Typography */
    --text-primary: #f3f4f6;
    --text-secondary: #8e95a5;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    --header-height: 80px;
    --transition-speed: 0.3s;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Global Resets & Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to enable custom cursor */
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Typography Defaults */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

/* Custom Cursor */
.custom-cursor {
    width: 5px;
    height: 5px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100010;
    transition: width 0.1s, height 0.1s;
}

.custom-cursor-glow {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100009;
    transition: transform 0.05s linear, width 0.3s var(--easing), height 0.3s var(--easing), border-color 0.3s;
}

body.custom-cursor-hover .custom-cursor-glow {
    width: 48px;
    height: 48px;
    border-color: var(--accent-red);
    background: rgba(255, 42, 95, 0.04);
}

/* 3. Common Components & UI classes */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 2px;
    transition: border-color var(--transition-speed) var(--easing), box-shadow var(--transition-speed) var(--easing);
}

.glass-card:hover {
    border-color: var(--border-hover);
}

.section-tag {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent-blue);
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 8px var(--accent-glow-blue);
}

/* Primary Button */
.btn {
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-speed) var(--easing);
    outline: none;
}

.btn-primary {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.btn-primary:hover {
    background: white;
    color: var(--bg-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.btn-secondary {
    border: 1px solid var(--accent-red);
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow-red);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--accent-red);
    box-shadow: none;
}

/* 4. Canvas Container */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

#animation-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 5. Navigation Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 6, 8, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo a {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.logo-accent {
    color: var(--accent-red);
    position: relative;
    text-shadow: 0 0 10px var(--accent-glow-red);
}

.logo-accent span {
    color: var(--accent-blue);
    text-shadow: 0 0 10px var(--accent-glow-blue);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link-anchor {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link-anchor:hover {
    color: white;
}

.nav-link-anchor.active {
    color: white;
}

.nav-link-anchor.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.cart-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    text-shadow: 0 0 6px var(--accent-glow-blue);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 242, 254, 0.1);
    background: rgba(0, 242, 254, 0.02);
    transition: border-color 0.3s;
}

.cart-trigger:hover {
    border-color: var(--accent-blue);
}

.cart-count-badge {
    background-color: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 1px;
    text-shadow: none;
    box-shadow: 0 0 5px var(--accent-red);
}

/* 6. Page Sections - General */
.scroll-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
}

.scroll-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding: var(--header-height) 4rem 4rem 4rem;
}

/* 7. Section 1: Hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    margin-left: 2rem;
}

.sub-heading {
    font-size: 0.9rem;
    color: var(--accent-blue);
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px var(--accent-glow-blue);
}

.main-heading {
    font-size: 6.5rem;
    line-height: 0.9;
    letter-spacing: -0.06em;
    margin-bottom: 2rem;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hint-text {
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.hint-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    position: relative;
    overflow: hidden;
}

.hint-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    animation: flowLine 2.5s infinite;
}

@keyframes flowLine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* 8. Section 2: Pinned Clothes Showcase (Scrollytelling) */
.clothes-section {
    width: 100vw;
    height: 400vh; /* Scroll headroom for transitions */
    position: relative;
    background-color: #060608;
}

.clothes-sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clothes-bg-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.clothes-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 15% 20%, white, transparent),
        radial-gradient(2px 2px at 45% 65%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 80% 30%, white, transparent);
    background-size: 500px 500px;
    opacity: 0.35;
}

.clothes-vector-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 242, 254, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 254, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(60deg) translateY(-10%);
    opacity: 0.5;
    transition: filter 1s var(--easing);
}

.clothes-bg-text {
    position: absolute;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 10vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.025);
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.005);
    user-select: none;
    line-height: 0.8;
    letter-spacing: -0.05em;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.6);
    will-change: transform, opacity;
}

.clothes-viewport-container {
    position: absolute;
    bottom: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.clothing-item-wrapper {
    position: absolute;
    height: 85%;
    max-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    will-change: transform, opacity, filter;
    transition: filter 0.5s ease;
}

.clothing-item-wrapper.active-glow {
    filter: drop-shadow(0 0 50px var(--accent-glow-blue));
}

.clothing-display-img {
    height: 100%;
    object-fit: contain;
    mix-blend-mode: normal; /* Transparent PNGs do not need lighten blend mode */
    filter: brightness(1.05) contrast(1.05);
}

.clothes-hud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.clothes-hud-layer .clothes-hud-reticle {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px dashed rgba(0, 242, 254, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    will-change: transform, opacity;
}

.clothes-hud-layer .clothes-hud-reticle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.clothes-hud-layer .clothes-hud-scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0.15;
    animation: scanLine 8s linear infinite;
}

.clothes-hud-layer .clothes-hud-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(255, 255, 255, 0.15);
    border-style: solid;
}

.clothes-hud-layer .clothes-hud-corner.top-left { top: 2rem; left: 2rem; border-width: 1px 0 0 1px; }
.clothes-hud-layer .clothes-hud-corner.top-right { top: 2rem; right: 2rem; border-width: 1px 1px 0 0; }
.clothes-hud-layer .clothes-hud-corner.bottom-left { bottom: 2rem; left: 2rem; border-width: 0 0 1px 1px; }
.clothes-hud-layer .clothes-hud-corner.bottom-right { bottom: 2rem; right: 2rem; border-width: 0 1px 1px 0; }

/* Clothes Floating Description Card in viewport corner */
.clothes-narrative-container {
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    width: 380px;
    height: 220px;
    pointer-events: auto;
}

.clothes-narrative-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 8, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clothes-narrative-card.active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.clothes-narrative-card .narrative-tag {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent-blue);
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.5rem;
}

.clothes-narrative-card .narrative-heading {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.clothes-narrative-card .narrative-body {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.clothes-spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-family: monospace;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.25rem;
}

.clothes-spec-row .spec-label {
    color: var(--text-secondary);
}

.clothes-spec-row .spec-value {
    color: var(--accent-red);
    font-weight: 700;
}

/* Progress HUD Tracker */
.clothes-hud-tracker {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
}

.hud-item-idx {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.hud-item-idx span {
    color: var(--accent-blue);
    font-weight: 700;
}

.hud-bar-track {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.hud-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 33.3%;
    background-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    will-change: width;
    transition: width 0.3s var(--easing);
}

/* 9. Section 3: Fabric Details */
.features-section {
    width: 100vw;
    height: 200vh; /* Horizontal sliding scroll path length */
    position: relative;
    background-color: var(--bg-color);
}

.features-sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    padding: var(--header-height) 4rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-title {
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    margin-left: 2rem;
}

.features-slider-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    padding-left: 2rem;
    will-change: transform;
}

.feature-card {
    width: 320px;
    height: 400px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.card-num {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: monospace;
}

.card-title {
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
}

.card-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    z-index: 5;
}

.card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: var(--accent-red);
    filter: blur(80px);
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    opacity: 0.15;
    transition: opacity 0.5s;
}

.feature-card:hover .card-glow {
    opacity: 0.35;
}

/* 10. Section 4: Squad Lookbook */
.agents-section {
    padding: 8rem 4rem;
    position: relative;
}

.agents-container {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.agent-details-column {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
}

.agent-viewport-column {
    flex: 0 0 53%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

/* Selector Tabs */
.agent-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.agent-tab {
    background: rgba(12, 12, 16, 0.4);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-speed) var(--easing);
    position: relative;
    overflow: hidden;
}

.agent-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--easing);
}

.agent-tab:hover {
    color: white;
    border-color: var(--border-hover);
    background: rgba(12, 12, 16, 0.7);
}

.agent-tab.active {
    color: white;
    border-color: rgba(255, 42, 95, 0.4);
    background: rgba(255, 42, 95, 0.05);
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.1);
}

.agent-tab.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.agent-tab .tab-index {
    font-size: 0.65rem;
    display: block;
    color: var(--accent-blue);
    margin-bottom: 0.25rem;
    font-family: monospace;
}

/* Agent Info Card */
.agent-card {
    min-height: 280px;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.agent-info-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s var(--easing), transform 0.5s var(--easing);
}

.agent-info-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.agent-card-name {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: white;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.agent-card-role {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.15em;
    font-family: monospace;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.agent-card-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Stats meters */
.agent-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-secondary);
    width: 90px;
    letter-spacing: 0.05em;
}

.stat-bar-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.stat-val {
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 700;
    color: var(--text-primary);
    width: 35px;
    text-align: right;
}

/* 3D PARALLAX VIEWPORT */
.agent-viewport {
    width: 100%;
    height: 560px;
    background: radial-gradient(circle at center, rgba(12, 12, 16, 0.7) 0%, rgba(8, 8, 10, 0.95) 100%);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s;
}

.agent-viewport:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Grid overlay background inside viewport */
.agent-hud-grid-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    transform: translateZ(-150px) rotateX(15deg);
    opacity: 0.75;
}

/* Parallax Layers */
.agent-parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
    will-change: transform;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Layer 1: Background Name Text */
.agent-parallax-layer.bg-text-layer {
    font-size: 13rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.01);
    letter-spacing: -0.05em;
    user-select: none;
    line-height: 1;
    z-index: 1;
    transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -12px), -80px) rotateX(calc(var(--rx) * -0.5deg)) rotateY(calc(var(--ry) * -0.5deg));
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Layer 2: Main Portrait image */
.agent-parallax-layer.image-layer {
    z-index: 2;
    transform: translate3d(calc(var(--mx) * 15px), calc(var(--my) * 15px), 0px) rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.agent-display-image {
    height: 94%;
    max-height: 520px;
    object-fit: contain;
    mix-blend-mode: lighten;
    filter: brightness(1.05) contrast(1.05);
    animation: agentFloat 6s ease-in-out infinite alternate;
    mask-image: linear-gradient(to bottom, black 80%, transparent 98%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 98%);
}

/* Layer 3: Foreground HUD details */
.agent-parallax-layer.hud-layer {
    z-index: 3;
    transform: translate3d(calc(var(--mx) * 28px), calc(var(--my) * 28px), 60px) rotateX(calc(var(--rx) * 1.5deg)) rotateY(calc(var(--ry) * 1.5deg));
    transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.agent-hud-data-box {
    position: absolute;
    bottom: 3.5rem;
    right: 3rem;
    border-left: 2px solid var(--accent-blue);
    background: rgba(12, 12, 16, 0.7);
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.agent-hud-data-box .agent-hud-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
}

.agent-hud-data-box .agent-hud-value {
    color: var(--accent-blue);
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-glow-blue);
}

/* static HUD overlays in viewport border */
.agent-hud-tag {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    opacity: 0.6;
    pointer-events: none;
}

/* HUD corners */
.agent-hud-corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: rgba(255, 255, 255, 0.25);
    border-style: solid;
    pointer-events: none;
}

.agent-hud-corner.top-left { top: 1.5rem; left: 1.5rem; border-width: 1px 0 0 1px; }
.agent-hud-corner.top-right { top: 1.5rem; right: 1.5rem; border-width: 1px 1px 0 0; }
.agent-hud-corner.bottom-left { bottom: 1.5rem; left: 1.5rem; border-width: 0 0 1px 1px; }
.agent-hud-corner.bottom-right { bottom: 1.5rem; right: 1.5rem; border-width: 0 1px 1px 0; }

/* HUD crosshair */
.agent-hud-reticle {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    opacity: 0.4;
}

.agent-hud-reticle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.agent-hud-reticle::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px dashed var(--accent-blue);
    border-radius: 50%;
    animation: rotateReticle 24s linear infinite;
}

/* HUD Scanning line */
.agent-hud-scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0.25;
    pointer-events: none;
    animation: scanLine 8s linear infinite;
    z-index: 5;
}

/* Glitch Overlay */
.viewport-glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 42, 95, 0.15);
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: color-dodge;
}

.viewport-glitch-overlay.glitch-active {
    animation: glitchTrigger 0.35s steps(2) forwards;
}

/* Animations */
@keyframes agentFloat {
    0% { transform: translateY(5px) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes rotateReticle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scanLine {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

@keyframes glitchTrigger {
    0% { opacity: 0.8; clip-path: inset(40% 0 30% 0); background: rgba(0, 242, 254, 0.2); }
    20% { opacity: 0.5; clip-path: inset(10% 0 80% 0); background: rgba(255, 42, 95, 0.2); }
    40% { opacity: 0.9; clip-path: inset(70% 0 10% 0); }
    60% { opacity: 0.3; clip-path: inset(30% 0 45% 0); background: rgba(0, 242, 254, 0.15); }
    80% { opacity: 0.7; clip-path: inset(5% 0 90% 0); }
    100% { opacity: 0; clip-path: inset(0 0 0 0); }
}

/* 11. Section 5: Shop Collection */
.shop-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-heading {
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    margin-left: 2rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0 2rem;
}

.product-item {
    height: 480px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.p-image-box {
    width: 100%;
    height: 68%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.p-image {
    max-width: 110%;
    max-height: 110%;
    object-fit: contain;
    transition: transform 0.6s var(--easing);
}

.product-item:hover .p-image {
    transform: scale(1.1);
}

.p-details {
    display: flex;
    flex-direction: column;
}

.p-status {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--accent-red);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 5px var(--accent-glow-red);
}

.p-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.p-price {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent-blue);
    text-shadow: 0 0 6px var(--accent-glow-blue);
    margin-bottom: 1.5rem;
}

.product-item .btn {
    width: 100%;
}

/* 12. Section 6: Join Access & Footer */
.join-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
}

.join-content {
    margin-top: 15vh;
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    text-align: center;
}

.join-title {
    font-size: 3rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.join-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 14, 0.4);
    padding: 0.25rem;
    border-radius: 2px;
}

.newsletter-form .input-group:focus-within {
    border-color: var(--accent-blue);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 1.5rem;
    color: white;
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.newsletter-form .btn-secondary {
    padding: 0.75rem 1.75rem;
}

.form-feedback {
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.form-feedback.success {
    color: var(--accent-blue);
    text-shadow: 0 0 6px var(--accent-glow-blue);
}

.form-feedback.error {
    color: var(--accent-red);
    text-shadow: 0 0 6px var(--accent-glow-red);
}

/* Footer layout */
.footer {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 0 0;
    margin-top: auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-copy {
    font-size: 0.7rem;
    font-family: monospace;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.25);
}

/* 13. Shopping Bag Drawer overlay */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--easing);
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 460px;
    height: 100vh;
    background: rgba(6, 6, 8, 0.95);
    border-left: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.5s var(--easing);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 2.5rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-title {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    color: white;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-close-btn:hover {
    color: white;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-empty-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cart-item-image-wrapper {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-shadow: 0 0 5px var(--accent-glow-blue);
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 24px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
}

.qty-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.qty-val {
    font-family: monospace;
    font-size: 0.8rem;
    color: white;
    padding: 0 0.5rem;
}

.cart-remove-btn {
    background: transparent;
    border: none;
    color: var(--accent-red);
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.3s;
}

.cart-remove-btn:hover {
    opacity: 0.7;
}

.cart-drawer-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 14, 0.85);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    color: white;
}

.cart-shipping-notice {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    border: 1px solid var(--accent-red);
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 8px 25px var(--accent-glow-red);
}

.checkout-btn:hover {
    background-color: white;
    color: var(--bg-color);
    border-color: white;
    box-shadow: none;
}

/* 14. Responsive Layout Adaptations */
@media (max-width: 1024px) {
    .header { padding: 0 2rem; }
    .logo a { font-size: 1.25rem; }
    .nav-menu { gap: 1.5rem; }
    
    .scroll-section { padding: var(--header-height) 2rem 2rem 2rem; }
    .main-heading { font-size: 5rem; }
    
    /* Cinematic Walk */
    .cinematic-bg-text { font-size: 25vw; }
    .cinematic-character-img { max-height: 480px; }
    .tag-hood { top: 22%; left: 10%; }
    .tag-print { top: 48%; right: 10%; }
    .tag-pocket { top: 72%; left: 12%; }
    .cinematic-narrative { bottom: 2rem; left: 2rem; max-width: 320px; }
    
    /* Features sliding details */
    .features-section { padding: var(--header-height) 2rem 2rem 2rem; }
    .features-title { font-size: 2.5rem; }
    
    /* Lookbook Squad */
    .agents-section { padding: 6rem 2rem; }
    .agents-container { flex-direction: column-reverse; gap: 3rem; }
    .agent-details-column { width: 100%; flex: unset; }
    .agent-viewport-column { width: 100%; flex: unset; }
    .agent-viewport { height: 480px; }
    .bg-text-layer { font-size: 9rem; }
    
    /* Shop collection */
    .shop-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    
    /* Join details */
    .join-content { margin-top: 8vh; }
    .footer { flex-direction: column; gap: 2rem; text-align: center; padding: 2rem; }
}

@media (max-width: 640px) {
    .header { height: 70px; }
    .logo a { font-size: 1.15rem; }
    .nav-menu { display: none; } /* Stash links on mobile screens */
    .main-heading { font-size: 3.5rem; }
    
    /* Pinned Cinematic details - turn off line pointers on mobile to clear view */
    .detail-tag .tag-line { display: none; }
    .detail-tag { border: 1px solid var(--border-color); background: rgba(8, 8, 10, 0.9); }
    .tag-hood { top: 15%; left: 5%; right: 5%; }
    .tag-print { top: 40%; left: 5%; right: 5%; }
    .tag-pocket { top: 65%; left: 5%; right: 5%; }
    .cinematic-narrative { bottom: 1rem; left: 1rem; right: 1rem; max-width: 100%; padding: 1.25rem; }
    
    /* Features details card sizes */
    .feature-card { width: 280px; height: 350px; }
    .features-title { font-size: 2rem; }
    
    /* Lookbook Squad details */
    .agent-viewport { height: 380px; }
    .bg-text-layer { font-size: 5.5rem; }
    .agent-hud-data-box { bottom: 2rem; right: 2rem; }
    .agent-selector { flex-wrap: wrap; }
    
    /* Shop items */
    .shop-grid { grid-template-columns: 1fr; }
    .product-item { height: 420px; }
    
    /* Cart drawer width */
    .cart-drawer { width: 100%; right: -100%; }
}

/* ==========================================================================
   VIDEO LOADER COMPONENT
   ========================================================================== */
.video-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s var(--easing), visibility 1s var(--easing);
    overflow: hidden;
}

.video-loader-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-loader-container video.loaded {
    opacity: 1;
}

.loader-skip {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    background: rgba(6, 6, 8, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--easing);
    z-index: 100001;
}

.loader-skip:hover {
    color: white;
    border-color: var(--accent-red);
    text-shadow: 0 0 8px var(--accent-glow-red);
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.1);
}

.video-loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   T-SHIRT TRANSFORMATION SECTION
   ========================================================================== */
.tshirt-transform-section {
    width: 100vw;
    height: 300vh; /* scroll range */
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
}

.tshirt-sticky-container {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tshirt-glow {
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(255, 42, 95, 0.02) 0%, rgba(0, 242, 254, 0.01) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.tshirt-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#tshirt-canvas {
    width: 100%;
    height: 100%;
    display: block;
    mix-blend-mode: lighten;
}

.tshirt-text-container {
    position: absolute;
    width: 100%;
    max-width: 1300px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
}

.tshirt-overlay-text {
    position: absolute;
    width: 340px;
    z-index: 10;
    pointer-events: none;
    will-change: transform, opacity;
}

.tshirt-overlay-text.left {
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
}

.tshirt-overlay-text.right {
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
}

#text-round-neck {
    opacity: 1;
}

#text-collar-neck {
    opacity: 0;
}

#text-hoodie-neck {
    opacity: 0;
}

.tshirt-sec-tag {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent-blue);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 8px var(--accent-glow-blue);
}

.tshirt-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    color: white;
    line-height: 1;
    letter-spacing: -0.03em;
}

.tshirt-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tshirt-bullet-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tshirt-bullet-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-red);
}

.tshirt-bullet-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-family: monospace;
}

.tshirt-hud-details {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    pointer-events: none;
}

.tshirt-hud-seq-info {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.tshirt-hud-progress-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 1px;
    overflow: hidden;
}

.tshirt-hud-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    box-shadow: 0 0 8px var(--accent-blue);
}

/* Responsive adjustments for T-shirt Scrollytelling */
@media (max-width: 1024px) {
    .tshirt-overlay-text {
        width: 85%;
        left: 50% !important;
        right: unset !important;
        top: auto !important;
        bottom: 6rem !important;
        transform: translateX(-50%) !important;
        background: rgba(5, 5, 5, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.75rem;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    }
    
    .tshirt-overlay-text.right {
        opacity: 0;
    }
    
    .tshirt-title {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }
    
    .tshirt-desc {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .tshirt-hud-details {
        width: 85%;
        bottom: 2rem;
    }
}

