/* ============================================================
   busygirl.xyz — Brutalist Portfolio
   Palette: #080808 #0F0F0F #0A0A0A #1C1C1C #E5FF00 #FF2D78 #B4F0E0 #F7F7F7
   Font: Commissioner (variable, wdth 75–125, wght 200–900)
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #F7F7F7;
    font-family: 'Commissioner', sans-serif;
    font-variation-settings: 'wdth' 85, 'wght' 400;
    font-size: 15px;
    line-height: 1.5;
    cursor: none;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid #E5FF00;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 180ms ease, height 180ms ease, border-color 180ms ease, border-radius 180ms ease;
    will-change: transform;
}

.cursor.cursor-hover {
    width: 32px;
    height: 32px;
}

.cursor.cursor-crosshair {
    width: 24px;
    height: 24px;
    border-radius: 0;
    border-color: #E5FF00;
}

/* ── Column Rules (structural hairlines) ──────────────────── */
.column-rules {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.col-rule {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #E5FF00;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 48px;
    background: #080808;
    border-bottom: 1px solid #E5FF00;
    z-index: 1000;
    opacity: 0;
    transition: opacity 300ms ease, background 300ms ease, backdrop-filter 300ms ease;
}

.nav.nav-visible {
    opacity: 1;
}

.nav.nav-scrolled {
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

.nav-logo {
    font-variation-settings: 'wdth' 100, 'wght' 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #F7F7F7;
    cursor: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-variation-settings: 'wdth' 75, 'wght' 300;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #F7F7F7;
    cursor: none;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FF2D78;
    transition: width 250ms ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Hero Slab ──────────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 48px;
}

.hero-rule {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 1px;
    background: #E5FF00;
    transform: translateY(-50%);
    transition: width 600ms cubic-bezier(0.25, 0, 0, 1);
    z-index: 2;
}

.hero-rule.hero-rule-drawn {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0;
    opacity: 0;
    transform: scale(0.98);
    filter: blur(4px);
    transition: opacity 400ms ease, transform 400ms cubic-bezier(0.25, 0, 0, 1), filter 400ms ease;
}

.hero-content.hero-content-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.hero-title {
    display: block;
    font-size: clamp(80px, 16vw, 20vw);
    font-variation-settings: 'wdth' 100, 'wght' 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    line-height: 0.9;
    color: #F7F7F7;
    padding-left: 0;
    position: relative;
    user-select: none;
}

.hero-title-main {
    display: block;
    position: relative;
}

/* Glitch pseudo-elements */
.hero-title-main::before,
.hero-title-main::after {
    content: 'BUSYGIRL';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.hero-title-main::before {
    color: #FF2D78;
    clip-path: inset(0 0 50% 0);
}

.hero-title-main::after {
    color: #B4F0E0;
    clip-path: inset(50% 0 0 0);
}

.hero-title-main.glitching::before {
    opacity: 0.85;
    transform: translateX(-6px);
    animation: glitch-top 120ms steps(2) forwards;
}

.hero-title-main.glitching::after {
    opacity: 0.85;
    transform: translateX(6px);
    animation: glitch-bottom 120ms steps(2) forwards;
}

@keyframes glitch-top {
    0%   { transform: translateX(-6px); opacity: 0.85; }
    50%  { transform: translateX(4px);  opacity: 0.6; }
    100% { transform: translateX(0);    opacity: 0; }
}

@keyframes glitch-bottom {
    0%   { transform: translateX(6px);  opacity: 0.85; }
    50%  { transform: translateX(-4px); opacity: 0.6; }
    100% { transform: translateX(0);    opacity: 0; }
}

.hero-tagline {
    font-variation-settings: 'wdth' 75, 'wght' 300;
    font-size: clamp(12px, 1.2vw, 16px);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #F7F7F7;
    margin-top: 16px;
    padding-left: 4px;
}

.hero-corner {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 6px;
    height: 6px;
    background: #FF2D78;
    z-index: 10;
    opacity: 0;
    animation: hero-corner-blink 200ms 1100ms ease forwards;
}

@keyframes hero-corner-blink {
    0%   { opacity: 0; }
    40%  { opacity: 1; }
    70%  { opacity: 0; }
    100% { opacity: 1; }
}

/* ── Portfolio Grid ─────────────────────────────────────────── */
.portfolio {
    width: 100vw;
    background: #080808;
}

.grid-row {
    display: flex;
    width: 100%;
    gap: 0;
}

/* Column width system based on 12-col grid */
.col-3  { flex: 0 0 calc(100% * 3/12); }
.col-4  { flex: 0 0 calc(100% * 4/12); }
.col-5  { flex: 0 0 calc(100% * 5/12); }
.col-7  { flex: 0 0 calc(100% * 7/12); }
.col-9  { flex: 0 0 calc(100% * 9/12); }
.col-12 { flex: 0 0 100%; }

/* Row gaps — irregular industrial rhythm */
.row-1  { margin-top: 0; }
.row-2  { margin-top: 8px; }
.row-statement { margin-top: 64px; margin-bottom: 64px; }
.row-3  { margin-top: 24px; }
.row-4  { margin-top: 8px; }
.row-5  { margin-top: 24px; }
.row-6  { margin-top: 8px; }
.row-7  { margin-top: 24px; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    position: relative;
    background: #0F0F0F;
    border: 1px solid #1C1C1C;
    overflow: hidden;
    cursor: none;
    transition: transform 250ms cubic-bezier(0.25, 0, 0, 1),
                box-shadow 250ms ease;
    will-change: transform;
    opacity: 0;
    transform: translateY(24px);
}

.card.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms cubic-bezier(0.25, 0, 0, 1),
                transform 400ms cubic-bezier(0.25, 0, 0, 1),
                box-shadow 250ms ease;
}

.card.card-magnetic {
    transition: box-shadow 250ms ease;
}

.card:hover {
    box-shadow: inset 0 0 0 1px #E5FF00;
    z-index: 2;
}

/* Landscape ratio */
.card-landscape .card-image {
    aspect-ratio: 3/2;
}

/* Portrait ratio */
.card-portrait .card-image {
    aspect-ratio: 2/3;
}

.card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-img-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    transition: mix-blend-mode 350ms ease;
}

/* Photo cards — B&W with neon bleed */
.card-photo .card-img-inner {
    mix-blend-mode: luminosity;
}

.card-photo:hover .card-img-inner {
    mix-blend-mode: normal;
}

/* Photo backgrounds — editorial styled gradients as stand-ins */
.photo-1 {
    background:
        radial-gradient(ellipse at 20% 80%, #1C1C1C 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, #2a2a2a 0%, transparent 60%),
        linear-gradient(135deg, #0F0F0F 0%, #3a3a3a 50%, #1a1a1a 100%);
}
.photo-2 {
    background:
        radial-gradient(ellipse at 70% 30%, #252525 0%, transparent 60%),
        linear-gradient(160deg, #151515 0%, #404040 60%, #0F0F0F 100%);
}
.photo-3 {
    background:
        radial-gradient(ellipse at 30% 60%, #333333 0%, transparent 50%),
        linear-gradient(45deg, #0A0A0A 0%, #2e2e2e 40%, #181818 100%);
}
.photo-4 {
    background:
        linear-gradient(180deg, #1a1a1a 0%, #3a3a3a 50%, #0F0F0F 100%);
}
.photo-5 {
    background:
        radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0F0F0F 100%);
}
.photo-6 {
    background:
        linear-gradient(120deg, #181818 0%, #333 50%, #0a0a0a 100%);
}
.photo-7 {
    background:
        radial-gradient(ellipse at 10% 90%, #222 0%, transparent 50%),
        linear-gradient(200deg, #0F0F0F 0%, #2a2a2a 50%, #111 100%);
}

/* Neon tint on photo cards (bleed through luminosity) */
.card-photo {
    background: #0A0A0A;
}

.card-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229,255,0,0.06) 0%, rgba(255,45,120,0.04) 100%);
    z-index: 1;
    pointer-events: none;
}

.card-photo .card-image {
    z-index: 0;
}

/* Typography-as-image cards */
.card-typo .card-image {
    background: #0A0A0A;
}

.card-img-inner.typo-1,
.card-img-inner.typo-2,
.card-img-inner.typo-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
    gap: 8px;
    background: #0A0A0A;
}

.typo-big {
    display: block;
    font-variation-settings: 'wdth' 100, 'wght' 900;
    font-size: clamp(48px, 6vw, 96px);
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #F7F7F7;
    line-height: 0.9;
}

.typo-mid {
    display: block;
    font-variation-settings: 'wdth' 125, 'wght' 200;
    font-size: clamp(20px, 2.5vw, 40px);
    letter-spacing: 0.02em;
    text-transform: lowercase;
    color: #E5FF00;
}

.typo-small {
    display: block;
    font-variation-settings: 'wdth' 75, 'wght' 300;
    font-size: clamp(10px, 1.2vw, 18px);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #B4F0E0;
}

/* Texture cards */
.card-img-inner.texture-1,
.card-img-inner.texture-2,
.card-img-inner.texture-3 {
    background: #080808;
}

.texture-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
    background-size: cover;
    background-color: #0A0A0A;
    box-shadow: inset 0 0 40px rgba(229,255,0,0.08);
}

.texture-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
    background-size: cover;
    background-color: #0F0F0F;
    box-shadow: inset 0 0 40px rgba(255,45,120,0.06);
}

.texture-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
    background-size: cover;
    background-color: #080808;
    box-shadow: inset 0 0 40px rgba(180,240,224,0.06);
}

/* Process cards */
.card-img-inner.process-1,
.card-img-inner.process-2 {
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.process-grid {
    width: 100%;
    height: 100%;
    position: relative;
}

.pg-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #1C1C1C;
}

.pg-line:nth-child(1) { top: 25%; }
.pg-line:nth-child(2) { top: 50%; background: #E5FF00; opacity: 0.4; }
.pg-line:nth-child(3) { top: 75%; }

.pg-col {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #E5FF00;
    opacity: 0.25;
}

.pg-col:nth-child(4) { left: 33%; }
.pg-col:nth-child(5) { left: 66%; }

.type-spec {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ts-line {
    display: block;
    color: #F7F7F7;
    line-height: 1;
}

.ts-heavy {
    font-variation-settings: 'wdth' 100, 'wght' 900;
    font-size: clamp(40px, 5vw, 72px);
}

.ts-thin {
    font-variation-settings: 'wdth' 125, 'wght' 200;
    font-size: clamp(40px, 5vw, 72px);
    color: #E5FF00;
}

.ts-wide {
    font-variation-settings: 'wdth' 75, 'wght' 400;
    font-size: clamp(30px, 3.5vw, 54px);
    color: #B4F0E0;
    letter-spacing: 0.1em;
}

/* Card body */
.card-body {
    padding: 16px;
    border-top: 1px solid #1C1C1C;
    position: relative;
    z-index: 2;
}

.card-title {
    font-variation-settings: 'wdth' 100, 'wght' 700;
    font-size: clamp(18px, 2vw, 32px);
    letter-spacing: -0.02em;
    color: #F7F7F7;
    line-height: 1.1;
    margin-bottom: 4px;
}

.card-meta {
    font-variation-settings: 'wdth' 85, 'wght' 400;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #B4F0E0;
    text-transform: uppercase;
}

/* Hot Corner */
.hot-corner {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 6px;
    height: 6px;
    background: #FF2D78;
    z-index: 10;
    transition: width 200ms ease, height 200ms ease;
}

.card:hover .hot-corner {
    width: 10px;
    height: 10px;
}

/* ── Statement Cards ─────────────────────────────────────────── */
.statement-card {
    background: #080808;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #1C1C1C;
    border-bottom: 1px solid #1C1C1C;
}

.statement-text {
    font-variation-settings: 'wdth' 125, 'wght' 200;
    font-size: clamp(28px, 5vw, 72px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #F7F7F7;
    text-align: center;
    line-height: 1.1;
    opacity: 0;
    transition: opacity 300ms ease;
}

.statement-text.statement-visible .statement-char {
    opacity: 1;
}

.statement-char {
    display: inline-block;
    opacity: 0;
    transition: opacity 50ms ease;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    padding: 64px 24px 40px;
    text-align: center;
}

.footer-rule {
    width: 100%;
    height: 1px;
    background: #B4F0E0;
    margin-bottom: 24px;
    opacity: 0.4;
}

.footer-copy {
    font-variation-settings: 'wdth' 75, 'wght' 300;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #B4F0E0;
    opacity: 0.6;
}

/* ── Scroll-reveal base ──────────────────────────────────────── */
.card {
    opacity: 0;
    transform: translateY(24px);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .grid-row {
        flex-wrap: wrap;
    }

    .col-3, .col-4, .col-5, .col-7, .col-9 {
        flex: 0 0 100%;
    }

    .hero-title {
        font-size: clamp(60px, 18vw, 140px);
    }

    .column-rules {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 20px;
    }

    .statement-text {
        font-size: clamp(20px, 7vw, 40px);
    }
}
