/* ===================================================
   adhoc.quest — Styles
   Deep burgundy, inflated 3D, ma-negative-space
   =================================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #1a0a10;
    color: #f2e6e9;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f2e6e9;
}

h2 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    margin-bottom: 0.75rem;
}

.label {
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c4899a;
    margin-bottom: 1.5rem;
}

.body-text {
    color: #f2e6e9;
    max-width: 520px;
    margin-bottom: 1.25rem;
}

/* --- Scenes (sections) --- */
.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* --- Bubble Field --- */
#bubble-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 138, 0.3);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
    box-shadow: 0 0 12px rgba(107, 74, 255, 0.15), inset 0 0 8px rgba(255, 107, 138, 0.1);
    /* Iridescence gradient: #ff6b8a → #6b4aff → #4affea */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(74, 255, 234, 0.05) 40%, transparent 60%);
    will-change: transform;
    animation: bubble-rise var(--duration) linear infinite, bubble-sway var(--sway-duration) ease-in-out infinite alternate;
    opacity: 0.6;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(0);
        opacity: 0;
    }
}

@keyframes bubble-sway {
    0% {
        margin-left: calc(-1 * var(--sway));
    }
    100% {
        margin-left: var(--sway);
    }
}

/* --- Dot Navigation --- */
#dot-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c4899a;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    opacity: 0.5;
}

.dot.active {
    width: 20px;
    height: 8px;
    border-radius: 4px;
    background: #ff6b8a;
    opacity: 1;
    box-shadow: 0 0 16px rgba(255, 107, 138, 0.6);
}

/* --- Hero Section --- */
#hero {
    background: #1a0a10;
    align-items: center;
    z-index: 2;
}

.hero-sphere {
    width: clamp(200px, 35vw, 450px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #8b1a3a 0%, #6b1030 50%, #3d1a2b 100%),
        radial-gradient(circle at 70% 75%, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    box-shadow:
        0 20px 60px rgba(139, 26, 58, 0.5),
        inset 0 -10px 30px rgba(0, 0, 0, 0.3),
        0 0 120px rgba(139, 26, 58, 0.2);
    animation: sphere-pulse 4s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

@keyframes sphere-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.inflate-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.03em;
    margin-top: 3rem;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.char {
    display: inline-block;
    animation: inflate-char 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--i) * 0.06s + 0.5s);
    transform: scaleY(0.05) scaleX(1.2);
    opacity: 0;
    color: #f2e6e9;
}

.dot-char {
    color: #ff6b8a;
}

@keyframes inflate-char {
    0% {
        transform: scaleY(0.05) scaleX(1.2);
        opacity: 0;
    }
    60% {
        transform: scaleY(1.15) scaleX(0.95);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-tagline {
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: #c4899a;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fade-up 1s 1.5s ease forwards;
    position: relative;
    z-index: 3;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Concentric Rings --- */
.concentric-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.ring {
    position: absolute;
    border: 1px solid rgba(139, 26, 58, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ring-pulse 4s ease-in-out infinite;
}

.ring-1 {
    width: clamp(350px, 50vw, 650px);
    height: clamp(350px, 50vw, 650px);
    animation-delay: 0s;
}

.ring-2 {
    width: clamp(500px, 70vw, 900px);
    height: clamp(500px, 70vw, 900px);
    animation-delay: 1.3s;
}

.ring-3 {
    width: clamp(650px, 90vw, 1150px);
    height: clamp(650px, 90vw, 1150px);
    animation-delay: 2.6s;
}

@keyframes ring-pulse {
    0%, 100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* --- Manifesto Section --- */
#manifesto {
    background: #2d0f1e;
    padding: 12vw;
    position: relative;
}

.manifesto-content {
    max-width: 550px;
    position: relative;
    z-index: 3;
}

.manifesto-deco {
    position: absolute;
    right: 8vw;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    opacity: 0.6;
}

.zigzag-line {
    width: 100%;
    height: 100%;
}

/* --- Reveal Animations --- */
.reveal-block {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Capabilities Section --- */
#capabilities {
    background: #1a0a10;
    padding: 8vw 12vw;
    align-items: flex-start;
}

.section-label {
    margin-bottom: 3rem;
}

.orbs-container {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2rem, 4vw, 5rem);
    justify-content: center;
    width: 100%;
}

.orb {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 0 1 200px;
}

.orb:hover {
    transform: scale(1.12);
}

.orb-sphere {
    width: clamp(100px, 15vw, 180px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #8b1a3a 0%, #5c1228 60%, #2d0f1e 100%),
        radial-gradient(circle at 70% 75%, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
    box-shadow:
        0 15px 40px rgba(139, 26, 58, 0.4),
        inset 0 -8px 20px rgba(0, 0, 0, 0.3);
    animation: orb-breathe 3s ease-in-out infinite;
    transition: box-shadow 0.4s ease;
}

.orb:hover .orb-sphere {
    box-shadow:
        0 15px 50px rgba(139, 26, 58, 0.6),
        inset 0 -8px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 107, 138, 0.3);
}

.orb-sphere--alt {
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #d94f7a 0%, #8b1a3a 60%, #2d0f1e 100%),
        radial-gradient(circle at 70% 75%, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
}

.orb-sphere--accent {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, #ff6b8a 0%, #d94f7a 50%, #3d1a2b 100%),
        radial-gradient(circle at 75% 80%, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
}

.orb-sphere--iridescent {
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, #6b4aff 0%, #8b1a3a 60%, #1a0a10 100%),
        radial-gradient(circle at 70% 75%, rgba(0, 0, 0, 0.4) 0%, transparent 60%);
    box-shadow:
        0 15px 40px rgba(107, 74, 255, 0.4),
        inset 0 -8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes orb-breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.orb-label {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: #f2e6e9;
}

.orb-desc {
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #c4899a;
    max-width: 180px;
    line-height: 1.5;
}

/* --- Process Section --- */
#process {
    background: #2d0f1e;
    padding: 8vw 0 8vw 12vw;
}

.process-strip-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.process-strip-wrapper::-webkit-scrollbar {
    display: none;
}

.process-strip {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-right: 12vw;
    width: max-content;
}

.process-card {
    flex: 0 0 clamp(260px, 30vw, 380px);
    background:
        repeating-conic-gradient(#3d1a2b 0% 25%, transparent 0% 50%) 0 0 / 20px 20px,
        #2a0e1a;
    border-radius: 20px;
    padding: clamp(2rem, 3vw, 3rem);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 15, 30, 0.85) 0%, rgba(26, 10, 16, 0.95) 100%);
    border-radius: 20px;
}

.process-card > * {
    position: relative;
    z-index: 2;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 26, 58, 0.3);
}

.process-num {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 5vw, 5rem);
    color: rgba(255, 107, 138, 0.12);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.process-card h3 {
    color: #ff6b8a;
}

.process-card p {
    color: #c4899a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Signal / Contact Section --- */
#signal {
    background: #1a0a10;
    align-items: center;
    text-align: center;
    padding: 12vw;
}

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

.signal-content .body-text {
    text-align: center;
}

#signal-form {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 480px;
    width: 100%;
}

#signal-input {
    flex: 1;
    background: #2d0f1e;
    border: 1px solid #3d1a2b;
    border-right: none;
    border-radius: 40px 0 0 40px;
    padding: 1rem 1.5rem;
    color: #f2e6e9;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#signal-input::placeholder {
    color: #c4899a;
    opacity: 0.6;
}

#signal-input:focus {
    border-color: #8b1a3a;
    box-shadow: 0 0 0 3px rgba(139, 26, 58, 0.4);
}

#signal-btn {
    background: #8b1a3a;
    color: #f2e6e9;
    border: 1px solid #8b1a3a;
    border-radius: 0 40px 40px 0;
    padding: 1rem 2rem;
    font-family: 'Azeret Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

#signal-btn:hover {
    background: #d94f7a;
    box-shadow: 0 0 30px rgba(217, 79, 122, 0.4);
}

#signal-btn:active {
    transform: scale(0.97);
}

.signal-meta {
    margin-top: 1rem;
    opacity: 0.5;
}

.signal-rings {
    z-index: 1;
}

/* --- Retro Pattern overlays (halftone) --- */
#capabilities::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle, #3d1a2b 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.08;
    pointer-events: none;
    transform: perspective(500px) rotateX(45deg);
    transform-origin: center center;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .scene {
        min-height: auto;
        padding: 15vh 6vw;
    }

    #hero {
        min-height: 100vh;
        padding: 0 6vw;
    }

    #manifesto {
        padding: 15vh 6vw;
    }

    .manifesto-deco {
        display: none;
    }

    #capabilities {
        padding: 15vh 6vw;
    }

    .orbs-container {
        gap: 2.5rem;
    }

    .orb {
        flex: 0 1 140px;
    }

    #process {
        padding: 15vh 6vw;
    }

    .process-strip {
        padding-right: 6vw;
    }

    #signal {
        padding: 15vh 6vw;
    }

    #signal-form {
        flex-direction: column;
        gap: 1rem;
    }

    #signal-input {
        border-radius: 40px;
        border-right: 1px solid #3d1a2b;
    }

    #signal-btn {
        border-radius: 40px;
    }

    #dot-nav {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .inflate-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    h2 {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .orbs-container {
        flex-direction: column;
        align-items: center;
    }
}
