:root {
    --bg-void: #0A0A0A;
    --bg-charcoal: #1C1C1E;
    --neon-magenta: #FF2E97;
    --neon-chartreuse: #CCFF00;
    --neon-blue: #5B5EFF;
    --neon-cyan: #00F0FF;
    --text-ice: #F5F5F5;
    --text-dark: #1A1A1A;
    --text-smoke: #888888;
    --font-display: "Outfit", sans-serif;
    --font-body: "Albert Sans", sans-serif;
    --font-mono: "Space Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-void);
    color: var(--text-ice);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    letter-spacing: 0.01em;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ============================
   HERO SECTION
   ============================ */
#hero {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-void);
    position: relative;
    overflow: hidden;
}

.ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-text {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-ice);
    white-space: nowrap;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.hero-caption {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-smoke);
    margin-top: 3rem;
    letter-spacing: 0.01em;
    text-align: center;
    padding: 0 1rem;
}

/* Blinking cursor */
.blink-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--neon-chartreuse);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

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

/* ============================
   STRIPE DIVIDERS
   ============================ */
.stripe {
    border: none;
    height: 1px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.stripe-magenta { background: var(--neon-magenta); }
.stripe-chartreuse { background: var(--neon-chartreuse); }
.stripe-blue { background: var(--neon-blue); }
.stripe-cyan { background: var(--neon-cyan); }

/* ============================
   PORTFOLIO GRID
   ============================ */
#grid-section {
    background: var(--bg-void);
    padding: 2px;
}

.licence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 2px;
    background: var(--bg-void);
}

.licence-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
    border-radius: 0;
    overflow: hidden;
}

.licence-cell:hover {
    transform: scale(1.05);
    z-index: 2;
}

.cell-magenta { background: var(--neon-magenta); }
.cell-chartreuse { background: var(--neon-chartreuse); }
.cell-blue { background: var(--neon-blue); }
.cell-cyan { background: var(--neon-cyan); }

/* Corner marks */
.corner-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.corner-tl { position: absolute; top: 4px; left: 4px; }
.corner-tr { position: absolute; top: 4px; right: 4px; }
.corner-bl { position: absolute; bottom: 4px; left: 4px; }
.corner-br { position: absolute; bottom: 4px; right: 4px; }

.cell-icon {
    margin-bottom: 12px;
}

.cell-label {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1A1A1A;
}

/* Hover description reveal */
.licence-cell .cell-description {
    position: absolute;
    bottom: 12%;
    left: 10%;
    right: 10%;
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    letter-spacing: 0.05em;
    color: #0A0A0A;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.licence-cell:hover .cell-description {
    opacity: 1;
}

/* ============================
   TYPEWRITER NARRATIVE
   ============================ */
#narrative {
    background: var(--bg-void);
    padding-block: 15vh;
    display: flex;
    justify-content: center;
}

.narrative-inner {
    max-width: 680px;
    width: 100%;
    padding: 0 2rem;
}

.typewriter-line {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 400;
    color: #E0E0E0;
    letter-spacing: 0.01em;
    line-height: 1.65;
    margin-bottom: 2rem;
    overflow: hidden;
    visibility: hidden;
}

.typewriter-line.revealed {
    visibility: visible;
}

.typewriter-line .tw-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--neon-chartreuse);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

/* ============================
   NEON FOOTER
   ============================ */
#footer {
    height: 64px;
    background: var(--neon-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.0;
    color: #FFFFFF;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    .licence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .licence-grid {
        grid-template-columns: 1fr;
    }

    .ticker-track {
        animation: none;
    }

    .ticker-text {
        white-space: normal;
        font-size: clamp(2rem, 6vw, 3rem);
        display: block;
        text-align: center;
        padding: 0 1rem;
    }

    .ticker-text:nth-child(2) {
        display: none;
    }

    .licence-cell {
        aspect-ratio: auto;
        padding: 3rem 1.5rem;
    }
}
