/* =============================================
   JusDots — Cinematic Editorial Design
   Inspired by charlesleclerc.com
   ============================================= */

:root {
    --bg: #090909;
    --bg-elevated: #111111;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);
    --accent: #D5FF00;
    --pop-cyan: #00E5FF;
    --pop-pink: #FF007F;
    --pop-orange: #FF3E00;
    --accent-soft: rgba(213, 255, 0, 0.15);
    --border: rgba(255, 255, 255, 0.2);
    --border-strong: rgba(255, 255, 255, 0.4);
    --section-pad-x: 6%;
    --section-pad-y: 18vh;
    --font-serif: 'Outfit', -apple-system, sans-serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.86, 0, 0.07, 1);
}

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

html {
    scroll-behavior: smooth;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

main {
    width: min(1400px, 100%);
    margin: 0 auto;
}

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

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

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

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

/* ============================
   Custom Cursor
   ============================ */
@media (hover: hover) and (pointer: fine) {
    .cursor {
        position: fixed;
        width: 8px;
        height: 8px;
        background: var(--text-primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%);
        transition: transform 0.2s var(--ease-out), background 0.3s ease;
    }

    .cursor-trail {
        position: fixed;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: transform 0.4s var(--ease-out),
            width 0.4s var(--ease-out),
            height 0.4s var(--ease-out),
            border-color 0.3s ease;
    }

    body:has(a:hover) .cursor,
    body:has(button:hover) .cursor {
        transform: translate(-50%, -50%) scale(3);
        background: var(--accent);
    }

    body:has(a:hover) .cursor-trail,
    body:has(button:hover) .cursor-trail {
        width: 56px;
        height: 56px;
        border-color: rgba(213, 255, 0, 0.3);
    }
}

/* ============================
   Intro Screen
   ============================ */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.intro-logo {
    opacity: 0;
    transform: scale(0.9);
    position: relative;
    z-index: 2;
}

.intro-logo img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.intro-counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: clamp(6rem, 20vw, 16rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -6px;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.intro-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

/* ============================
   Navigation
   ============================ */
.staggered-menu-wrapper.fixed-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    pointer-events: none;
}

.staggered-menu-wrapper[data-open="true"] {
    pointer-events: auto;
}

.staggered-menu-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 5%;
    pointer-events: none;
    z-index: 3020;
    background: linear-gradient(to bottom, rgba(9, 9, 9, 0.95), transparent);
}

.staggered-menu-header>* {
    pointer-events: auto;
}

.sm-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.sm-logo:hover {
    opacity: 0.7;
}

.sm-logo img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: 8px;
}

.sm-logo span {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* Menu Toggle */
.sm-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: transparent;
    border: none;
    padding: 10px 0;
    cursor: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: opacity 0.3s ease;
}

.sm-toggle:hover {
    opacity: 0.6;
}

.sm-toggle-textWrap {
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

.sm-toggle-textInner {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease-out);
}

.sm-toggle-line {
    height: 1.2em;
    line-height: 1.2;
}

.sm-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-icon-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: currentColor;
}

.sm-icon-line-v {
    transform: rotate(90deg);
}

/* Menu Panel */
.staggered-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15%;
    z-index: 3010;
    pointer-events: auto;
    overflow-y: auto;
}

.sm-prelayers {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 3005;
}

.sm-prelayer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sm-panel-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sm-panel-list {
    list-style: none;
}

.sm-panel-itemWrap {
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.sm-panel-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    color: rgba(245, 242, 235, 0.6);
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 500;
    font-style: italic;
    text-decoration: none;
    line-height: 1.1;
    letter-spacing: -2px;
    position: relative;
    transition: color 0.4s ease, transform 0.4s var(--ease-out), text-shadow 0.4s ease;
}

.sm-panel-item:hover {
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.sm-panel-list[data-numbering] {
    counter-reset: smItem;
}

.sm-panel-item::before {
    counter-increment: smItem;
    content: counter(smItem, decimal-leading-zero);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    font-style: normal;
    color: var(--accent);
    letter-spacing: 2px;
    opacity: var(--sm-num-opacity, 0);
    transition: opacity 0.5s ease;
    flex-shrink: 0;
    padding-top: 0.8em;
}

.sm-socials {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.sm-socials-title {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.sm-socials-list {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.sm-socials-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

/* ============================
   Hero Section
   ============================ */
.hero {
    min-height: 100vh;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 0 var(--section-pad-x);
    position: relative;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.hero-content {
    max-width: 1000px;
    padding: 4rem 0;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 12vw, 11rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1;
    letter-spacing: -4px;
    margin-bottom: 4rem;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.hero-line {
    display: block;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100%);
}



.hero-sub {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    max-width: 540px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    line-height: 1.8;
}

.hero-sub em {
    color: var(--pop-cyan);
    font-style: italic;
    font-weight: 500;
}

.hero-sub strong {
    color: var(--accent);
    font-weight: 500;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    width: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    z-index: 20;
}

.scroll-hint-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-hint-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-primary), transparent);
    animation: scroll-pulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@keyframes scroll-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1.4);
    }
}

/* ============================
   Section Numbering
   ============================ */
.section-number {
    font-family: var(--font-serif);
    font-size: clamp(10rem, 25vw, 22rem);
    font-weight: 900;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 2px var(--pop-cyan);
    line-height: 0.8;
    letter-spacing: -10px;
    margin-bottom: 0;
    position: relative;
    z-index: 0;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
}

/* ============================
   Product Sections
   ============================ */
.product-section {
    min-height: 100vh;
    padding: var(--section-pad-y) var(--section-pad-x);
    display: flex;
    flex-direction: column;
    gap: 5rem;
    position: relative;
    width: min(1240px, 100%);
    margin: 0 auto;
}

/* Elegant top border with gradient fade */
.product-section>.section-border-top {
    display: none;
}

.product-section::before,
.product-section::after {
    display: none;
}

.product-section-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
}

.product-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -3px;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.product-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.3;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.product-tagline em {
    font-style: italic;
    color: var(--pop-pink);
    font-weight: 500;
}

.product-info>p:not(.product-tagline) {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 560px;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    background: rgba(232, 228, 222, 0.05);
    /* slightly increased opacity */
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 62, 0, 0.4);
    /* subtle orange glow */
    box-shadow: 0 0 15px rgba(255, 62, 0, 0.1);
    /* added glow */
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--pop-orange);
    margin-bottom: 1.5rem;
    transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.product-section:hover .badge {
    border-color: rgba(232, 228, 222, 0.25);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.feature-list {
    list-style: none;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.feature-list li {
    font-size: 1rem;
    font-weight: 400;
    padding: 14px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(232, 228, 222, 0.05);
    transition: color 0.3s ease, transform 0.4s var(--ease-out), padding-left 0.4s var(--ease-out);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    color: var(--text-primary);
    padding-left: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease, width 0.3s var(--ease-out);
}

.feature-list li:hover::before {
    opacity: 1;
    width: 16px;
}

/* Product Section Layout Variants */
.product-section.layout-split {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
}

/* Prevent pseudo-elements from becoming grid items */
.product-section.layout-split::before,
.product-section.layout-split::after,
.product-section.layout-split-reverse::before,
.product-section.layout-split-reverse::after {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    align-self: start;
    height: 0;
    overflow: visible;
}

.product-section.layout-split::before,
.product-section.layout-split-reverse::before {
    height: 1px;
}

.product-section.layout-split::after,
.product-section.layout-split-reverse::after {
    height: 3px;
    margin-top: 0;
}

.product-section.layout-split-reverse {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
}

.product-section.layout-split-reverse .product-visual {
    order: -1;
}

/* ============================
   Product Visuals — Cinematic Reveal
   ============================ */
.product-visual {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 580px;
    width: 100%;
    justify-self: center;
}

.image-reveal {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-elevated);
}

.image-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--ease-out);
}

.image-reveal:hover img {
    transform: scale(1.03);
}

/* Bounce Cards (DotNotes) */
.bounceCardsContainer {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    width: 180px;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 2px solid transparent;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    cursor: none;
    will-change: transform;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.card:hover {
    box-shadow: 0 25px 80px rgba(213, 255, 0, 0.15);
    border-color: var(--accent);
}

.card .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* App Image / Tilted Card */
.app-image-container {
    position: relative;
    width: auto;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 800px;
}

.tilted-card-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    border-radius: 12px;
    overflow: hidden;
}

.tilted-card-caption {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px;
    background: var(--text-primary);
    padding: 4px 12px;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bg);
    opacity: 0;
    z-index: 100;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Coming Soon Visual */
.coming-soon-visual {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(220, 38, 38, 0.1);
    animation: pulse-expand 3s ease-in-out infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 1s;
}

.pulse-ring.delay-2 {
    animation-delay: 2s;
}

.coming-soon-icon {
    font-size: 3rem;
    z-index: 1;
    animation: float 5s ease-in-out infinite;
}

@keyframes pulse-expand {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ============================
   Interstitials (Quiet Moments)
   ============================ */
.interstitial {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--section-pad-y) var(--section-pad-x);
    text-align: center;
    position: relative;
    width: min(1240px, 100%);
    margin: 0 auto;
}

/* Top & bottom gradient borders */
.interstitial::before,
.interstitial::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232, 228, 222, 0.1), transparent);
}

.interstitial::before {
    top: 0;
}

.interstitial::after {
    bottom: 0;
}

.interstitial-text {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-primary);
    max-width: 900px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.interstitial-text em {
    color: var(--accent);
    font-style: italic;
}

.interstitial-caption {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-top: 3.5rem;
    opacity: 0;
    transform: translateY(20px);
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.interstitial-label {
    font-family: var(--font-serif);
    font-size: clamp(8rem, 25vw, 22rem);
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    line-height: 0.8;
    letter-spacing: -12px;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.15);
}

.interstitial-short {
    min-height: 50vh;
}

/* ============================
   Section Divider
   ============================ */
.section-divider {
    display: none;
}

/* ============================
   Marquee Strip
   ============================ */
.marquee-strip {
    overflow: hidden;
    padding: 2.5rem 0;
    position: relative;
}

.marquee-strip::before,
.marquee-strip::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232, 228, 222, 0.1), transparent);
}

.marquee-strip::before {
    top: 0;
}

.marquee-strip::after {
    bottom: 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(232, 228, 222, 0.06);
    padding: 0 24px;
    transition: color 0.3s ease;
}

.marquee-track span:hover {
    color: rgba(232, 228, 222, 0.2);
}

.marquee-dot {
    font-size: 0.4rem !important;
    color: var(--accent) !important;
    opacity: 0.2;
    display: inline-flex;
    align-items: center;
}

.marquee-reverse {
    animation-direction: reverse;
}

.footer-marquee {
    border-top: 1px solid var(--border);
    border-bottom: none;
    padding: 1.5rem 0;
}

.footer-marquee .marquee-track span {
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    letter-spacing: 5px;
    color: rgba(232, 228, 222, 0.04);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================
   Team Section
   ============================ */
.team-section {
    padding: var(--section-pad-y) var(--section-pad-x);
    text-align: center;
    position: relative;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232, 228, 222, 0.1), transparent);
}

.team-header {
    margin-bottom: 6rem;
    text-transform: uppercase;
}

.team-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-style: normal;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.team-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    max-width: 400px;
    margin: 0 auto;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.driver-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.driver-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 8px 8px 0px var(--accent);
}

.driver-number {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--border-strong);
    line-height: 1;
    margin-bottom: 2rem;
    transition: color 0.4s ease;
}

.driver-card:hover .driver-number {
    color: var(--accent);
}

.driver-avatar {
    width: 100px;
    height: 100px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-strong);
    background: var(--bg);
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.driver-card:hover .driver-avatar {
    filter: grayscale(0%);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    display: block;
}

.driver-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.driver-name {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 6vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.driver-role {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin: 0;
}

.driver-hover-stat {
    margin-top: 2rem;
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1rem;
    color: #000;
    background: var(--accent);
    padding: 10px 20px;
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.driver-card:hover .driver-hover-stat {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Footer
   ============================ */
.main-footer {
    padding: 8rem var(--section-pad-x) 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(232, 228, 222, 0.1), transparent);
}

.footer-inner {
    max-width: 500px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 28px;
    width: 28px;
    border-radius: 8px;
    filter: grayscale(20%);
}

.footer-name {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.footer-philosophy {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

.footer-copy {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================
   Magnetic Utility
   ============================ */
.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s var(--ease-out);
}

/* Hidden elements for background (removed from design) */
.bg-canvas {
    display: none;
}

.grainient-container,
.bg-grid,
.bg-glow,
.bg-glow-2 {
    display: none;
}

/* ============================
   Section Accent Colors
   ============================ */
.dotnotes .section-number,
.dotnotes h2 {
    color: var(--text-primary);
}

.jusbrowse .section-number,
.jusbrowse h2 {
    color: var(--text-primary);
}

.mulberry .section-number,
.mulberry h2 {
    color: var(--text-primary);
}

.dotbuild .section-number,
.dotbuild h2 {
    color: var(--text-primary);
}

/* ============================
   DotBuild Banner (Brutalist)
   ============================ */
.dotbuild-banner {
    min-height: 62vh;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--accent);
    color: #000;
    overflow: hidden;
    position: relative;
    border-top: 4px solid var(--text-primary);
    border-bottom: 4px solid var(--text-primary);
}

.dotbuild-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

.dotbuild-banner .badge {
    background: #000;
    color: var(--accent);
    border-color: #000;
}

.massive-text {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 14vw, 12rem);
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 0.85;
    margin: 0;
    color: #111;
    -webkit-text-stroke: 1.5px #fff;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    position: relative;
    z-index: 5;
}

.massive-text::after {
    content: '';
    position: absolute;
    inset: 46% -4% -6% -4%;
    background: linear-gradient(to top, rgba(213, 255, 0, 0.98), rgba(213, 255, 0, 0));
    z-index: -1;
}

.banner-marquee {
    width: 100%;
    position: absolute;
    top: 62%;
    transform: translateY(-50%) rotate(-2deg);
    background: #050505;
    padding: 1rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 1;
    opacity: 0.92;
}

.banner-marquee .marquee-track span {
    color: var(--accent);
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: clamp(1.25rem, 3.4vw, 2rem);
    letter-spacing: 2px;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1000px) {

    main,
    .hero,
    .product-section,
    .interstitial,
    .team-section,
    .main-footer {
        width: 100%;
    }

    .product-section.layout-split,
    .product-section.layout-split-reverse {
        grid-template-columns: 1fr;
        padding: 10vh 5%;
        text-align: left;
    }

    .product-section.layout-split-reverse .product-visual {
        order: -1;
    }

    .product-section {
        padding: 5vh 5%;
    }

    .product-info {
        max-width: 640px;
        margin: 0 auto;
    }

    .product-info>p:not(.product-tagline) {
        padding-left: 1.2rem;
    }

    .feature-list li {
        justify-content: flex-start;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
        letter-spacing: -2px;
    }

    .hero-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 4px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 24px;
        margin: 0 auto;
    }

    .team-card {
        padding: 2.5rem 2rem 2rem;
    }

    .bounceCardsContainer {
        height: 320px;
    }

    .card {
        width: 140px;
        height: 280px;
    }

    .interstitial {
        min-height: 50vh;
        padding: 8vh 6%;
    }

    .interstitial-text {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .staggered-menu-panel {
        padding: 0 8%;
    }

    .sm-panel-item {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    /* Hide custom cursor on touch */
    .cursor,
    .cursor-trail {
        display: none;
    }

    html,
    body,
    .sm-toggle,
    .card,
    .driver-card {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .product-info h2 {
        font-size: 2rem;
    }

    .team-header h2 {
        font-size: 2rem;
    }

    .section-number {
        font-size: 5rem;
    }

    .sm-panel-item {
        font-size: 1.8rem;
    }

    .feature-list li {
        justify-content: center;
    }
}
