/* ==========================================================================
   a6c.dev — Brutalist Frost Design System
   Colors: #0a0e14, #141c26, #6a9bc2, #b4d2e6, #cdd7e0, #c4956a
   Fonts: Cormorant Garamond, Inter, IBM Plex Mono
   ========================================================================== */

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

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: rgba(200, 215, 228, 0.88);
    background: #0a0e14;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #cdd7e0;
    opacity: 0;
}

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #6a9bc2;
    opacity: 0;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    letter-spacing: 0.12em;
    color: #cdd7e0;
    margin-bottom: 2rem;
}

.section-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: rgba(140, 175, 210, 0.7);
    display: inline-block;
    padding: 0.3em 1em;
    background: rgba(180, 210, 230, 0.08);
    border: 1px solid rgba(180, 210, 230, 0.15);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.body-text {
    color: rgba(200, 215, 228, 0.88);
    max-width: 600px;
}

/* --- Fixed Side Navigation --- */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 48px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(180, 210, 230, 0.08);
}

.side-nav__logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: #cdd7e0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-transform: uppercase;
}

.side-nav__indicators {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(180, 210, 230, 0.25);
    background: rgba(180, 210, 230, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.nav-dot.active {
    border-color: #c4956a;
    background: rgba(196, 149, 106, 0.3);
    box-shadow: 0 0 12px rgba(196, 149, 106, 0.4);
    animation: navPulse 2.5s ease-in-out infinite;
}

@keyframes navPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(196, 149, 106, 0.4); }
    50% { box-shadow: 0 0 20px rgba(196, 149, 106, 0.6); }
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #cdd7e0;
    z-index: 1000;
    padding: 0.4em 0.8em;
    background: rgba(180, 210, 230, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 210, 230, 0.12);
    border-radius: 4px;
}

/* --- Bokeh Layer --- */
.bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bokeh-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.bokeh-orb--1 {
    width: 400px;
    height: 400px;
    top: 5%;
    left: 10%;
    background: radial-gradient(circle, rgba(106, 155, 194, 0.08) 0%, transparent 70%);
    animation: bokehDrift1 20s ease-in-out infinite;
}

.bokeh-orb--2 {
    width: 300px;
    height: 300px;
    top: 30%;
    right: 15%;
    background: radial-gradient(circle, rgba(180, 210, 230, 0.05) 0%, transparent 70%);
    animation: bokehDrift2 25s ease-in-out infinite 2s;
}

.bokeh-orb--3 {
    width: 500px;
    height: 500px;
    bottom: 20%;
    left: 30%;
    background: radial-gradient(circle, rgba(106, 155, 194, 0.08) 0%, transparent 70%);
    animation: bokehDrift3 18s ease-in-out infinite 1s;
}

.bokeh-orb--4 {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 70%;
    background: radial-gradient(circle, rgba(196, 149, 106, 0.04) 0%, transparent 70%);
    animation: bokehDrift4 22s ease-in-out infinite 3s;
}

.bokeh-orb--5 {
    width: 350px;
    height: 350px;
    top: 10%;
    right: 40%;
    background: radial-gradient(circle, rgba(180, 210, 230, 0.05) 0%, transparent 70%);
    animation: bokehDrift5 17s ease-in-out infinite 5s;
}

.bokeh-orb--6 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(106, 155, 194, 0.08) 0%, transparent 70%);
    animation: bokehDrift6 23s ease-in-out infinite 4s;
}

.bokeh-orb--7 {
    width: 450px;
    height: 450px;
    top: 45%;
    left: 50%;
    background: radial-gradient(circle, rgba(180, 210, 230, 0.05) 0%, transparent 70%);
    animation: bokehDrift1 19s ease-in-out infinite 6s;
}

.bokeh-orb--8 {
    width: 280px;
    height: 280px;
    top: 75%;
    right: 25%;
    background: radial-gradient(circle, rgba(106, 155, 194, 0.08) 0%, transparent 70%);
    animation: bokehDrift2 21s ease-in-out infinite 7s;
}

.bokeh-orb--9 {
    width: 320px;
    height: 320px;
    top: 15%;
    left: 65%;
    background: radial-gradient(circle, rgba(196, 149, 106, 0.04) 0%, transparent 70%);
    animation: bokehDrift3 24s ease-in-out infinite 8s;
}

.bokeh-orb--10 {
    width: 380px;
    height: 380px;
    bottom: 30%;
    right: 50%;
    background: radial-gradient(circle, rgba(180, 210, 230, 0.05) 0%, transparent 70%);
    animation: bokehDrift4 16s ease-in-out infinite 2s;
}

.bokeh-orb--11 {
    width: 220px;
    height: 220px;
    top: 85%;
    left: 20%;
    background: radial-gradient(circle, rgba(106, 155, 194, 0.08) 0%, transparent 70%);
    animation: bokehDrift5 20s ease-in-out infinite 9s;
}

.bokeh-orb--12 {
    width: 340px;
    height: 340px;
    bottom: 50%;
    right: 10%;
    background: radial-gradient(circle, rgba(180, 210, 230, 0.05) 0%, transparent 70%);
    animation: bokehDrift6 15s ease-in-out infinite 3s;
}

@keyframes bokehDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 25px); }
}

@keyframes bokehDrift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-25px, 30px); }
    66% { transform: translate(35px, -15px); }
}

@keyframes bokehDrift3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, 35px); }
    66% { transform: translate(-30px, -20px); }
}

@keyframes bokehDrift4 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-35px, -25px); }
    66% { transform: translate(25px, 30px); }
}

@keyframes bokehDrift5 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, 40px); }
    66% { transform: translate(-40px, -10px); }
}

@keyframes bokehDrift6 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-20px, -35px); }
    66% { transform: translate(30px, 20px); }
}

/* --- Diagonal Sections --- */
.diagonal-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section-hero {
    min-height: 100vh;
    background: #0a0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    padding-bottom: 8vh;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.section-concept {
    min-height: 100vh;
    background: #141c26;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
    margin-top: -8vh;
    padding: 12vh 8vw;
    display: flex;
    align-items: center;
}

.section-work {
    min-height: 120vh;
    background: #0a0e14;
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    margin-top: -8vh;
    padding: 12vh 8vw;
    display: flex;
    align-items: center;
}

.section-signal {
    min-height: 80vh;
    background: #141c26;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
    margin-top: -8vh;
    padding: 12vh 8vw;
    display: flex;
    align-items: center;
}

.section-content {
    max-width: 1000px;
    margin-left: 80px;
    width: 100%;
}

/* --- Diagonal Seam Lines --- */
.diagonal-seam {
    position: relative;
    z-index: 2;
    height: 0;
    pointer-events: none;
}

.seam--lr::after {
    content: '';
    position: absolute;
    top: -4vh;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(180, 210, 230, 0.25);
    transform: rotate(-2deg);
    transform-origin: left center;
}

.seam--rl::after {
    content: '';
    position: absolute;
    top: -4vh;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(180, 210, 230, 0.25);
    transform: rotate(2deg);
    transform-origin: left center;
}

/* --- Frost Glass Cards --- */
.frost-card {
    background: rgba(180, 210, 230, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(180, 210, 230, 0.1);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.frost-card:hover {
    border-color: rgba(180, 210, 230, 0.25);
    box-shadow: 0 0 40px rgba(106, 155, 194, 0.06);
}

/* Backdrop-filter fallback */
@supports not (backdrop-filter: blur(1px)) {
    .frost-card {
        background: rgba(20, 28, 38, 0.92);
    }
    .side-nav {
        background: rgba(10, 14, 20, 0.95);
    }
    .mobile-logo {
        background: rgba(10, 14, 20, 0.95);
    }
    .nav-dot {
        background: rgba(20, 28, 38, 0.8);
    }
}

/* --- Bubbles --- */
.bubble {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(180, 210, 230, 0.04);
    border: 1px solid rgba(180, 210, 230, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.6s ease-out;
    z-index: 3;
    pointer-events: auto;
}

.bubble:hover {
    border-color: rgba(180, 210, 230, 0.3);
    box-shadow: inset 0 0 30px rgba(180, 210, 230, 0.08);
}

.bubble--decorative {
    pointer-events: none;
}

.bubble--content {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    pointer-events: auto;
}

.bubble-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #6a9bc2;
    letter-spacing: 0.05em;
}

/* --- Work Grid --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.work-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: #cdd7e0;
    margin-bottom: 0.8rem;
}

.work-card__tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(140, 175, 210, 0.7);
    padding: 0.2em 0.8em;
    background: rgba(180, 210, 230, 0.08);
    border: 1px solid rgba(180, 210, 230, 0.15);
    border-radius: 100px;
    margin-top: auto;
    display: inline-block;
}

/* --- Signal Section --- */
.signal-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.signal-text {
    margin-bottom: 2rem;
    text-align: center;
}

.signal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signal-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #6a9bc2;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.4em 0.8em;
    border: 1px solid rgba(180, 210, 230, 0.12);
    border-radius: 4px;
    background: rgba(180, 210, 230, 0.04);
}

.signal-link:hover {
    color: #c4956a;
    border-color: rgba(196, 149, 106, 0.3);
}

.signal-divider {
    color: rgba(140, 175, 210, 0.3);
    font-family: 'IBM Plex Mono', monospace;
}

/* --- Footer --- */
.footer-sliver {
    min-height: 10vh;
    background: #0a0e14;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    margin-top: -4vh;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(140, 175, 210, 0.4);
}

.footer-divider {
    font-size: 0.5rem;
    color: rgba(140, 175, 210, 0.25);
}

/* --- Thin HR Decorative Lines --- */
.frost-card + .frost-card {
    border-top: none;
    position: relative;
}

.frost-card + .frost-card::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: rgba(180, 210, 230, 0.1);
}

/* --- Animations --- */
.animate-bounce {
    opacity: 0;
    transform: translateY(40px);
}

.animate-bounce.visible {
    animation: bounceEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-fade {
    opacity: 0;
}

.animate-fade.visible {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes bounceEnter {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Hero-specific bounce from above */
.hero-title.animate-bounce {
    transform: translateY(-30px);
}

.hero-title.animate-bounce.visible {
    animation: heroBounceEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes heroBounceEnter {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .animate-bounce,
    .animate-fade {
        opacity: 1;
        transform: none;
        animation: none !important;
    }

    .bokeh-orb {
        animation: none !important;
    }

    .bubble--decorative {
        transform: none !important;
    }

    .hero-title,
    .hero-subtitle {
        opacity: 1;
    }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .side-nav {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .section-content {
        margin-left: 0;
        padding: 0 1.5rem;
    }

    .section-hero {
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }

    .section-concept {
        clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
        padding: 16vh 6vw;
    }

    .section-work {
        clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
        padding: 16vh 6vw;
    }

    .section-signal {
        clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
        padding: 16vh 6vw;
    }

    .signal-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .signal-divider {
        display: none;
    }

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

    .bubble--decorative {
        opacity: 0.5;
    }
}
