/* ============================================================
   chika.dev — Coastal Graffiti Digital Canvas
   Colors: Deep Navy #0A1520 | Offshore Teal #0EC4C4 | Neon Coral #FF4B6E
           Sunbleach Yellow #F5C842 | Neon Lime #B8FF3C | Salt Mist #D8E8EC
           Dusk Violet #7C3AED | Rust Burn #C1440E
   Fonts: Boogaloo (hero) | Righteous (sections) | Space Grotesk (body) | Azeret Mono (accent)
   ============================================================ */

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

:root {
    --deep-navy: #0A1520;
    --offshore-teal: #0EC4C4;
    --neon-coral: #FF4B6E;
    --sunbleach-yellow: #F5C842;
    --neon-lime: #B8FF3C;
    --salt-mist: #D8E8EC;
    --dusk-violet: #7C3AED;
    --rust-burn: #C1440E;
    --scroll-y: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-navy);
    color: var(--salt-mist);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.hero-headline {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(72px, 10vw, 120px);
    font-weight: 400;
    color: var(--neon-coral);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
    -webkit-text-stroke: 1.5px var(--deep-navy);
    animation: glow-pulse 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px var(--neon-coral)) drop-shadow(0 0 14px var(--neon-coral)) drop-shadow(0 0 28px #FF4B6E66);
}

.hero-sub {
    font-family: 'Righteous', cursive;
    font-size: clamp(18px, 2.5vw, 28px);
    color: var(--offshore-teal);
    margin-top: 16px;
    letter-spacing: 0.06em;
    filter: drop-shadow(0 0 8px var(--offshore-teal));
}

.section-headline {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 400;
    color: var(--offshore-teal);
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: -0.01em;
    -webkit-text-stroke: 1px var(--deep-navy);
    filter: drop-shadow(0 0 8px var(--offshore-teal));
    margin-bottom: 24px;
}

.body-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 400;
    color: var(--salt-mist);
    line-height: 1.7;
    margin-bottom: 16px;
}

.section-num {
    font-family: 'Azeret Mono', monospace;
    font-size: 11px;
    color: var(--neon-lime);
    letter-spacing: 0.15em;
    display: block;
}

.section-title {
    font-family: 'Righteous', cursive;
    font-size: 28px;
    color: var(--neon-lime);
    letter-spacing: 0.08em;
    filter: drop-shadow(0 0 6px var(--neon-lime));
}

/* ============================================================
   NEON GLOW ANIMATION
   ============================================================ */
@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 6px var(--neon-coral)) drop-shadow(0 0 14px var(--neon-coral)) drop-shadow(0 0 28px #FF4B6E66);
    }
    50% {
        filter: drop-shadow(0 0 10px var(--neon-coral)) drop-shadow(0 0 24px var(--neon-coral)) drop-shadow(0 0 48px #FF4B6E88);
    }
}

@keyframes teal-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px var(--offshore-teal)) drop-shadow(0 0 10px var(--offshore-teal));
    }
    50% {
        filter: drop-shadow(0 0 8px var(--offshore-teal)) drop-shadow(0 0 20px var(--offshore-teal));
    }
}

@keyframes rotate-tags {
    0%, 100% { opacity: 1; transform: translateY(0); }
    20% { opacity: 0; transform: translateY(-8px); }
    40% { opacity: 0; transform: translateY(8px); }
    60% { opacity: 1; transform: translateY(0); }
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-32px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(32px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   NAV STRIP
   ============================================================ */
.nav-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 32px;
    background: rgba(10, 21, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neon-coral);
}

.nav-logo {
    flex-shrink: 0;
}

.logo-mark {
    width: 32px;
    height: 32px;
    animation: teal-glow-pulse 2.8s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
}

.nav-link {
    font-family: 'Azeret Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--salt-mist);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.nav-link:hover {
    color: var(--offshore-teal);
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px var(--offshore-teal));
}

.nav-coords {
    margin-left: auto;
}

.nav-tag {
    font-family: 'Azeret Mono', monospace;
    font-size: 10px;
    color: var(--neon-lime);
    letter-spacing: 0.1em;
}

/* ============================================================
   MAIN LAYOUT — ASYMMETRIC THREE-ZONE GRID
   ============================================================ */
.layout {
    display: grid;
    grid-template-columns: 22vw 52vw 26vw;
    min-height: 100vh;
    padding-top: 44px;
    align-items: start;
}

/* ============================================================
   LEFT RAIL
   ============================================================ */
.rail-left {
    position: sticky;
    top: calc(44px + 20px);
    height: calc(100vh - 44px - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 32px 16px 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: rgba(14, 196, 196, 0.06);
    border-right: 1px solid rgba(14, 196, 196, 0.18);
}

.rail-left::-webkit-scrollbar {
    display: none;
}

.rail-identity {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rail-sitename {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(20px, 2.5vw, 30px);
    color: var(--salt-mist);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    animation: teal-glow-pulse 2.8s ease-in-out infinite;
}

.dot-dev {
    color: var(--offshore-teal);
}

.rail-rule {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--offshore-teal), transparent);
}

.rail-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-label {
    font-family: 'Righteous', cursive;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border-left: 2px solid currentColor;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 200ms ease;
    cursor: default;
}

.tag-label:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px currentColor);
}

.tag-coral { color: var(--neon-coral); }
.tag-lime { color: var(--neon-lime); }
.tag-teal { color: var(--offshore-teal); }
.tag-yellow { color: var(--sunbleach-yellow); }
.tag-violet { color: var(--dusk-violet); }

.rail-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.vert-text {
    font-family: 'Azeret Mono', monospace;
    font-size: 9px;
    color: rgba(216, 232, 236, 0.35);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.rail-swatch-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swatch:hover {
    transform: scale(1.3);
}

.rail-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-lime);
    animation: status-blink 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-text {
    font-family: 'Azeret Mono', monospace;
    font-size: 9px;
    color: var(--neon-lime);
    letter-spacing: 0.15em;
}

/* ============================================================
   CENTER FIELD
   ============================================================ */
.field-center {
    padding: 0;
    min-height: 100vh;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 48px 0 48px;
    position: relative;
    background: var(--deep-navy);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-drips {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    align-items: flex-start;
}

.drip {
    opacity: 0.85;
}

.drip-1 {
    width: 16px;
    height: 120px;
}

.drip-2 {
    width: 12px;
    height: 90px;
    margin-top: 20px;
}

.drip-3 {
    width: 22px;
    height: 160px;
    margin-top: 8px;
}

/* ============================================================
   WAVE DIVIDERS
   ============================================================ */
.wave-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: 80px;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

.wave-divider-footer {
    margin-top: 0;
    margin-bottom: 0;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
    padding: 100px 48px 40px 48px;
    position: relative;
}

.section-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(184, 255, 60, 0.2);
    padding-bottom: 12px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.content-block {
    position: relative;
}

.block-right {
    grid-column: 2;
    grid-row: 1;
}

/* Reveal animations */
.reveal-section .section-label,
.reveal-section .content-block,
.reveal-section .project-grid,
.reveal-section .process-steps,
.reveal-section .about-sidebar {
    opacity: 0;
    transform: translateX(-32px);
}

.reveal-section.revealed .section-label {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.reveal-section.revealed .content-block {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 400ms ease-out 80ms, transform 400ms ease-out 80ms;
}

.reveal-section.revealed .project-grid,
.reveal-section.revealed .process-steps,
.reveal-section.revealed .about-sidebar {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 400ms ease-out 160ms, transform 400ms ease-out 160ms;
}

.reveal-section .block-right {
    transform: translateX(32px);
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-card {
    background: rgba(14, 196, 196, 0.05);
    border: 1px solid rgba(14, 196, 196, 0.15);
    border-radius: 2px;
    padding: 20px;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 200ms ease;
    cursor: pointer;
}

.project-card:hover {
    transform: scale(1.04);
    box-shadow: 0 0 24px #FF4B6E66, 0 0 48px #FF4B6E33;
    border-color: rgba(255, 75, 110, 0.4);
}

.project-tag {
    font-family: 'Azeret Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.project-name {
    font-family: 'Righteous', cursive;
    font-size: 20px;
    color: var(--salt-mist);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.project-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    color: rgba(216, 232, 236, 0.7);
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.project-year,
.project-role {
    font-family: 'Azeret Mono', monospace;
    font-size: 10px;
    color: rgba(216, 232, 236, 0.5);
    letter-spacing: 0.08em;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px;
    border-left: 2px solid rgba(216, 232, 236, 0.1);
    transition: border-color 200ms ease, background 200ms ease;
}

.process-step:hover {
    border-color: var(--offshore-teal);
    background: rgba(14, 196, 196, 0.04);
}

.step-num {
    font-family: 'Boogaloo', cursive;
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
}

.step-content {
    flex: 1;
}

.step-name {
    font-family: 'Righteous', cursive;
    font-size: 18px;
    color: var(--salt-mist);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.step-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: rgba(216, 232, 236, 0.65);
    line-height: 1.6;
}

/* ============================================================
   ABOUT SIDEBAR
   ============================================================ */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pull-quote {
    border-left: 3px solid var(--sunbleach-yellow);
    padding: 16px 20px;
    background: rgba(245, 200, 66, 0.05);
}

.quote-text {
    font-family: 'Righteous', cursive;
    font-size: 20px;
    color: var(--sunbleach-yellow);
    opacity: 0.85;
    letter-spacing: 0.04em;
    line-height: 1.4;
    transform: rotate(-1deg);
    display: block;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-family: 'Azeret Mono', monospace;
    font-size: 11px;
    color: var(--offshore-teal);
    border: 1px solid rgba(14, 196, 196, 0.35);
    padding: 6px 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), background 200ms ease;
    cursor: default;
}

.skill-tag:hover {
    transform: scale(1.08);
    background: rgba(14, 196, 196, 0.08);
    filter: drop-shadow(0 0 6px var(--offshore-teal));
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    padding: 100px 48px 80px 48px;
    text-align: left;
    border-top: 1px solid rgba(255, 75, 110, 0.2);
    margin-top: 60px;
}

.contact-inner {
    max-width: 600px;
}

.contact-headline {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(48px, 7vw, 80px);
    color: var(--neon-coral);
    text-transform: uppercase;
    margin-bottom: 12px;
    -webkit-text-stroke: 1px var(--deep-navy);
    animation: glow-pulse 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px var(--neon-coral)) drop-shadow(0 0 14px var(--neon-coral));
}

.contact-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    color: rgba(216, 232, 236, 0.7);
    margin-bottom: 32px;
}

.contact-link {
    display: inline-block;
    font-family: 'Righteous', cursive;
    font-size: 24px;
    color: var(--offshore-teal);
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 200ms ease;
    filter: drop-shadow(0 0 6px var(--offshore-teal));
}

.contact-link:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 12px var(--offshore-teal)) drop-shadow(0 0 24px var(--offshore-teal));
}

.contact-social {
    display: flex;
    gap: 24px;
}

.social-link {
    font-family: 'Azeret Mono', monospace;
    font-size: 12px;
    color: rgba(216, 232, 236, 0.6);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(216, 232, 236, 0.2);
    padding-bottom: 2px;
    transition: color 200ms ease, border-color 200ms ease, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.social-link:hover {
    color: var(--neon-lime);
    border-color: var(--neon-lime);
    transform: scale(1.08);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    padding: 24px 48px;
    display: flex;
    gap: 32px;
    align-items: center;
    border-top: 1px solid rgba(216, 232, 236, 0.08);
}

.footer-copy,
.footer-coords,
.footer-year {
    font-family: 'Azeret Mono', monospace;
    font-size: 10px;
    color: rgba(216, 232, 236, 0.35);
    letter-spacing: 0.1em;
}

.footer-year {
    margin-left: auto;
}

/* ============================================================
   RIGHT GUTTER
   ============================================================ */
.gutter-right {
    position: sticky;
    top: calc(44px + 20px);
    height: calc(100vh - 44px - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 32px 16px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gutter-right::-webkit-scrollbar {
    display: none;
}

/* Gutter drips */
.gutter-drip-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 12px;
}

.gutter-drip {
    opacity: 0.8;
    transition: opacity 200ms ease;
    flex-shrink: 0;
}

.gd-1 { width: 18px; height: 140px; }
.gd-2 { width: 10px; height: 80px; margin-top: 30px; }
.gd-3 { width: 14px; height: 100px; margin-top: 10px; }
.gd-4 { width: 22px; height: 180px; margin-top: 20px; }
.gd-5 { width: 8px; height: 60px; margin-top: 50px; }
.gd-6 { width: 16px; height: 120px; margin-top: 5px; }

/* Gutter annotations */
.gutter-annotation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gutter-coord {
    font-family: 'Azeret Mono', monospace;
    font-size: 10px;
    color: var(--neon-lime);
    letter-spacing: 0.12em;
}

.gutter-spot {
    font-family: 'Azeret Mono', monospace;
    font-size: 9px;
    color: rgba(184, 255, 60, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 4px;
}

.gutter-pull-quote {
    font-family: 'Righteous', cursive;
    font-size: 22px;
    color: var(--sunbleach-yellow);
    opacity: 0.75;
    letter-spacing: 0.08em;
    line-height: 1.2;
    transform: rotate(4deg);
    filter: drop-shadow(0 0 6px rgba(245, 200, 66, 0.4));
}

.gutter-label {
    font-family: 'Azeret Mono', monospace;
    font-size: 9px;
    color: rgba(216, 232, 236, 0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.gutter-swatch-labels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.swatch-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swatch-entry span {
    font-family: 'Azeret Mono', monospace;
    font-size: 9px;
    color: rgba(216, 232, 236, 0.4);
    letter-spacing: 0.08em;
}

.swatch-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   SCROLLBAR CUSTOMIZATION
   ============================================================ */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--deep-navy);
}
::-webkit-scrollbar-thumb {
    background: rgba(14, 196, 196, 0.3);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 196, 196, 0.6);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS (basic)
   ============================================================ */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .rail-left,
    .gutter-right {
        position: relative;
        top: 0;
        height: auto;
        overflow-y: visible;
    }
    .rail-left {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid rgba(14, 196, 196, 0.18);
    }
    .section-grid {
        grid-template-columns: 1fr;
    }
    .block-right {
        grid-column: 1;
        grid-row: auto;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .gutter-right {
        display: none;
    }
    .hero-section {
        padding: 60px 24px 0 24px;
    }
    .content-section {
        padding: 60px 24px 40px 24px;
    }
    .contact-section {
        padding: 60px 24px 60px 24px;
    }
    .site-footer {
        padding: 24px;
        flex-wrap: wrap;
        gap: 16px;
    }
    .footer-year {
        margin-left: 0;
    }
    .nav-coords {
        display: none;
    }
}
