/* ===========================================
   addrproxy.com — Muji x Aurora Borealis
   =========================================== */

:root {
    --bg-parchment: #f7f5f0;
    --deep-ground: #1a1a1e;
    --aurora-emerald: #2dd4a8;
    --aurora-violet: #7c3aed;
    --aurora-rose: #e879a8;
    --muted-slate: #9ca3af;
    --accent-gold: #d4a053;
    --aurora-gradient: linear-gradient(135deg, #2dd4a8 0%, #7c3aed 50%, #e879a8 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--deep-ground);
    background-color: var(--bg-parchment);
    overflow: hidden;
}

/* === Aurora Backdrop === */
.aurora-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.aurora-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    will-change: transform;
}

.aurora-layer-1 {
    background: radial-gradient(ellipse at 30% 50%, rgba(45, 212, 168, 0.08) 0%, transparent 70%);
    animation: aurora-drift-1 12s ease-in-out infinite;
}

.aurora-layer-2 {
    background: radial-gradient(ellipse at 70% 40%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
    animation: aurora-drift-2 12s ease-in-out infinite;
    animation-delay: -4s;
}

.aurora-layer-3 {
    background: radial-gradient(ellipse at 50% 60%, rgba(232, 121, 168, 0.04) 0%, transparent 50%);
    animation: aurora-drift-3 12s ease-in-out infinite;
    animation-delay: -8s;
}

@keyframes aurora-drift-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(1deg); }
    66% { transform: translate(-20px, 15px) rotate(-0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes aurora-drift-2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 20px) rotate(-1deg); }
    66% { transform: translate(15px, -25px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes aurora-drift-3 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 10px); }
    100% { transform: translate(0, 0); }
}

/* === Dot Grid Overlay === */
.dot-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: radial-gradient(circle, var(--muted-slate) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* === Address Particles === */
.address-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--muted-slate);
    opacity: 0.05;
    white-space: nowrap;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.particle-1 { top: 12%; left: -10%; animation: particle-float-1 65s linear infinite; }
.particle-2 { top: 28%; left: -15%; animation: particle-float-2 72s linear infinite; }
.particle-3 { top: 45%; left: -8%; animation: particle-float-3 58s linear infinite; }
.particle-4 { top: 62%; left: -12%; animation: particle-float-4 80s linear infinite; }
.particle-5 { top: 78%; left: -10%; animation: particle-float-5 68s linear infinite; }
.particle-6 { top: 18%; left: -14%; animation: particle-float-6 75s linear infinite; }
.particle-7 { top: 52%; left: -9%; animation: particle-float-7 62s linear infinite; }
.particle-8 { top: 88%; left: -11%; animation: particle-float-8 70s linear infinite; }

@keyframes particle-float-1 { 0% { transform: translateX(0); } 100% { transform: translateX(120vw); } }
@keyframes particle-float-2 { 0% { transform: translateX(0); } 100% { transform: translateX(125vw); } }
@keyframes particle-float-3 { 0% { transform: translateX(0); } 100% { transform: translateX(118vw); } }
@keyframes particle-float-4 { 0% { transform: translateX(0); } 100% { transform: translateX(122vw); } }
@keyframes particle-float-5 { 0% { transform: translateX(0); } 100% { transform: translateX(130vw); } }
@keyframes particle-float-6 { 0% { transform: translateX(0); } 100% { transform: translateX(124vw); } }
@keyframes particle-float-7 { 0% { transform: translateX(0); } 100% { transform: translateX(119vw); } }
@keyframes particle-float-8 { 0% { transform: translateX(0); } 100% { transform: translateX(126vw); } }

.particle.near {
    opacity: 0.12;
}

/* === Wordmark === */
.wordmark {
    position: fixed;
    top: 2rem;
    left: 3rem;
    z-index: 100;
    font-family: 'Poiret One', cursive;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--deep-ground);
}

.pane-visual-break .wordmark-visible,
body.pane-dark .wordmark {
    color: var(--bg-parchment);
}

/* === Navigation Dots === */
.pane-nav {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: var(--muted-slate);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-dot:hover {
    width: 10px;
    height: 10px;
    margin: -2px;
    background: var(--aurora-emerald);
    box-shadow: 0 0 12px rgba(45, 212, 168, 0.4);
}

.nav-dot.active {
    width: 8px;
    height: 8px;
    margin: -1px;
    background: var(--aurora-emerald);
    box-shadow: 0 0 12px rgba(45, 212, 168, 0.4), 0 0 24px rgba(124, 58, 237, 0.2);
}

/* === Scroll Container === */
.scroll-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* === Pane Base === */
.pane {
    height: 100vh;
    width: 100%;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pane-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 3rem;
}

.parallax-layer {
    transition: transform 0.1s linear;
}

/* === Typography === */
h1 {
    font-family: 'Poiret One', cursive;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.15;
    color: var(--deep-ground);
}

h2 {
    font-family: 'Poiret One', cursive;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--deep-ground);
    margin-bottom: 1.5rem;
}

p {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--deep-ground);
    max-width: 540px;
}

/* === Hero Pane === */
.pane-hero {
    background: transparent;
}

.pane-hero .pane-content {
    text-align: center;
}

.hero-headline {
    margin-bottom: 3rem;
}

.hero-rule {
    display: flex;
    justify-content: center;
}

.hero-rule-line {
    width: 120px;
    height: 1px;
    background: var(--aurora-gradient);
    position: relative;
    overflow: hidden;
}

.hero-rule-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* === Concept Pane === */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    min-height: 60vh;
}

.concept-block-left {
    align-self: start;
    padding-top: 4vh;
}

.concept-block-right {
    align-self: end;
    padding-bottom: 4vh;
}

/* === Deco Frame Brackets === */
.deco-frame {
    position: relative;
    padding: 2.5rem;
}

.deco-bracket {
    position: absolute;
    width: 40px;
    height: 40px;
    transition: all 0.4s ease-out;
}

.deco-bracket-tl {
    top: 0;
    left: 0;
    border-top: 1px solid var(--accent-gold);
    border-left: 1px solid var(--accent-gold);
}

.deco-bracket-br {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--accent-gold);
    border-right: 1px solid var(--accent-gold);
}

.deco-frame:hover .deco-bracket-tl {
    width: calc(100% - 0px);
    height: calc(100% - 0px);
}

.deco-frame:hover .deco-bracket-br {
    width: calc(100% - 0px);
    height: calc(100% - 0px);
}

/* === Features Pane === */
.feature-stack {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item {
    padding-bottom: 2rem;
}

.feature-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--aurora-emerald);
    display: block;
    margin-bottom: 0.75rem;
}

.feature-aurora-line {
    width: 0;
    height: 2px;
    margin-top: 1.5rem;
    background: var(--aurora-gradient);
    transition: width 0.6s ease-out;
}

.feature-item.visible .feature-aurora-line {
    width: 60px;
}

/* === Visual Break Pane === */
.pane-visual-break {
    background: var(--deep-ground);
}

.pane-visual-break .pane-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.duotone-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    background:
        linear-gradient(135deg, rgba(45, 212, 168, 0.4) 0%, rgba(124, 58, 237, 0.4) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(45, 212, 168, 0.05) 20px,
            rgba(45, 212, 168, 0.05) 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(124, 58, 237, 0.03) 40px,
            rgba(124, 58, 237, 0.03) 41px
        );
}

.visual-break-text {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.6;
    color: var(--bg-parchment);
    position: relative;
    z-index: 10;
    max-width: 100%;
}

/* === Resolution Pane === */
.pane-resolution {
    background: transparent;
}

.resolution-content {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.resolution-content h2 {
    margin-bottom: 2rem;
}

.resolution-content p {
    margin: 0 auto 2.5rem;
    text-align: center;
}

.resolution-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--muted-slate);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--accent-gold);
    border-radius: 0;
}

.mono-line {
    display: block;
}

.aurora-text {
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

/* === Stagger-in Animations === */
.stagger-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Link Styles (aurora underline) === */
a {
    color: var(--deep-ground);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aurora-gradient);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* === Dark Pane Overrides === */
.pane-visual-break .parallax-layer {
    z-index: 10;
}

/* === Responsive === */
@media (max-width: 768px) {
    .wordmark {
        top: 1.5rem;
        left: 1.5rem;
    }

    .pane-nav {
        right: 1.5rem;
    }

    .pane-content {
        padding: 0 1.5rem;
    }

    .concept-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .concept-block-left,
    .concept-block-right {
        padding: 0;
    }

    .deco-frame {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-layer,
    .particle,
    .hero-rule-line::after {
        animation: none;
    }

    .stagger-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-dot,
    .deco-bracket,
    .feature-aurora-line {
        transition: none;
    }
}
