/* ============================================
   THE LLALE — Cyberpunk Redesign
   Color System:
     --bg:       #0a0a0f (deep dark)
     --surface:  #12121a (card bg)
     --border:   #1e1e2e (subtle lines)
     --text:     #e0e0e8 (primary text)
     --text-dim: #6b6b80 (secondary text)
     --cyan:     #00f0ff (primary accent)
     --magenta:  #ff2d95 (secondary accent)
     --purple:   #8b5cf6 (tertiary)
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --border: #1e1e2e;
    --text: #e0e0e8;
    --text-dim: #6b6b80;
    --cyan: #00f0ff;
    --magenta: #ff2d95;
    --purple: #8b5cf6;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Scanline Overlay ---- */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.nav--scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav__logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-decoration: none;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.nav__links a:hover {
    color: var(--cyan);
}

.nav__cta {
    padding: 0.5rem 1.25rem !important;
    border: 1px solid var(--cyan) !important;
    color: var(--cyan) !important;
    transition: background 0.2s, color 0.2s !important;
}

.nav__cta:hover {
    background: var(--cyan) !important;
    color: var(--bg) !important;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav__burger.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--cyan);
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}

.btn--primary {
    background: var(--cyan);
    color: var(--bg);
}

.btn--primary:hover {
    background: #00d4e0;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* ---- Section Headers ---- */
.section__header {
    margin-bottom: 3.5rem;
}

.section__tag {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero__pre {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero__title span {
    display: block;
}

.hero__title--thin {
    font-weight: 300;
    color: var(--text-dim);
}

.hero__divider {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.5em;
    letter-spacing: 0.3em;
}

.hero__sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero__orb {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--purple), var(--cyan), var(--magenta));
    filter: blur(40px);
    opacity: 0.4;
    animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.55; }
}

.hero__code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    width: 100%;
    max-width: 320px;
}

.c-comment { color: var(--text-dim); opacity: 0.6; }
.c-key { color: var(--magenta); }
.c-val { color: #a5d6a7; }
.c-bool { color: var(--cyan); }

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero__scroll span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.hero__scroll-line {
    width: 40px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cyan);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* ---- Glitch Effect ---- */
.glitch {
    position: relative;
}

.glitch:hover {
    animation: glitchText 0.3s ease;
}

@keyframes glitchText {
    0% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--magenta); }
    25% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--magenta); }
    50% { text-shadow: 2px 2px var(--cyan), -2px -2px var(--magenta); }
    75% { text-shadow: -1px 0 var(--cyan), 1px 0 var(--magenta); }
    100% { text-shadow: none; }
}

/* ---- Services ---- */
.services {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.service-card--featured {
    border-color: rgba(0, 240, 255, 0.2);
}

.service-card__number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyan);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card__list li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    padding-left: 1rem;
    position: relative;
}

.service-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
}

.service-card__reel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.service-card__reel-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.75rem;
}

.service-card__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    transition: width 0.4s;
}

.service-card:hover .service-card__line {
    width: 100%;
}

/* ---- Video Embeds ---- */
.video-embed {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
    background: var(--bg);
}

.video-embed--16x9 {
    padding-top: 56.25%;
}

.video-embed--9x16 {
    padding-top: 177.78%;
}

.video-embed--4x3 {
    padding-top: 75%;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---- Work / Portfolio ---- */
.work {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work__category {
    margin-bottom: 4rem;
}

.work__category:last-child {
    margin-bottom: 0;
}

.work__category-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.work__category-intro {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.work__category-intro:last-of-type {
    margin-bottom: 1.5rem;
}

.work__disclaimer {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    opacity: 0.6;
    margin-top: 1.25rem;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

/* Gallery layouts */
.gallery {
    display: grid;
    gap: 2rem;
}

.gallery--audio {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.gallery--trio {
    grid-template-columns: repeat(3, 1fr);
}

.gallery__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.gallery__item:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

/* Portrait video: constrain width so it doesn't dominate */
.gallery__item--portrait {
    max-width: 360px;
}

.gallery__caption {
    padding: 1rem 1.25rem;
}

.gallery__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.35rem;
}

.gallery__caption p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ---- About ---- */
.about {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.about__bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.about__bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    border: none;
}

.about .section__header,
.about__grid {
    position: relative;
    z-index: 1;
}

.about__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about__lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.about__text p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about__lore {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border-left: 2px solid var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--text-dim);
    opacity: 0.7;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 0.5rem;
}

.stat {
    border-left: 2px solid var(--border);
    padding-left: 1.25rem;
}

.stat__num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ---- Contact ---- */
.contact {
    padding: 6rem 3rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.contact__bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

.contact__bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    border: none;
}

.contact__inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact__lead {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__group label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.form__group input,
.form__group select,
.form__group textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    backdrop-filter: blur(4px);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    border-color: var(--cyan);
}

.form__group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b80' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form__group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__alt {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact__alt p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.contact__email {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: text-shadow 0.2s;
}

.contact__email:hover {
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.contact__social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact__social a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.contact__social a:hover {
    color: var(--cyan);
}

/* ---- Footer ---- */
.footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

.footer__tagline {
    font-size: 0.8rem;
    color: var(--text-dim);
    opacity: 0.7;
    text-align: center;
    max-width: 400px;
    line-height: 1.5;
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.6;
}

/* ---- Fade-in Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .mobile-menu { display: flex; }

    .hero { padding: 7rem 1.5rem 3rem; }
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero__visual { order: -1; }
    .hero__orb { width: 180px; height: 180px; }
    .hero__scroll { display: none; }

    .services,
    .work,
    .about {
        padding: 4rem 1.5rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .gallery--audio {
        grid-template-columns: 1fr;
    }

    .gallery--trio {
        grid-template-columns: 1fr;
    }

    .gallery__item--portrait {
        max-width: 100%;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__stats {
        flex-direction: row;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .contact { padding: 4rem 1.5rem; }

    .form__row {
        grid-template-columns: 1fr;
    }

    .nav { padding: 1rem 1.5rem; }
    .footer { padding: 1.5rem; }
    .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .about__stats {
        flex-direction: column;
    }
}
