
/* =========================================
   DESIGN AFTER DARK — SWASTIK BASNET
   Experimental / Digital / Independent
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg: #10110f;
    --surface: #181a17;
    --text: #f0f0e8;
    --muted: #85877d;
    --accent: #c8ff00;
    --line: rgba(240, 240, 232, 0.15);
    --mono: 'Space Mono', monospace;
    --sans: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background: var(--accent);
    color: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

/* TEXTURE */

.noise {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* HEADER */

.topbar {
    height: 82px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.logo {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -2px;
}

.logo span {
    color: var(--accent);
    font-size: 12px;
    vertical-align: top;
    margin-left: 3px;
}

.availability,
.hero-meta,
.eyebrow,
.section-label,
.work-count,
.art-number,
.art-caption,
.project-info > span,
.work-note,
.about-mark,
.footer-bottom,
.discover,
#menuButton {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
}

.availability {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c6c7bd;
}

.availability i {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 1.8s infinite;
}

#menuButton {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 12px 17px;
    cursor: pointer;
    transition: 0.3s ease;
}

#menuButton:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

#menuButton span {
    margin-left: 10px;
}

/* HERO */

.hero {
    min-height: 720px;
    height: calc(100svh - 82px);
    max-height: 1000px;
    padding: 35px 5% 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    position: relative;
    z-index: 2;
}

#clock {
    color: var(--accent);
    margin-left: 12px;
}

.hero-title {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    margin-bottom: 30px;
}

.eyebrow {
    display: block;
    color: var(--accent);
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(65px, 12.5vw, 190px);
    line-height: 0.77;
    letter-spacing: -0.095em;
    font-weight: 700;
    position: relative;
    z-index: 2;
    overflow-wrap: anywhere;
}

.outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text);
    margin-top: 18px;
    transition: color 0.5s ease, -webkit-text-stroke-color 0.5s ease;
}

.hero h1:hover .outline {
    color: var(--accent);
    -webkit-text-stroke-color: var(--accent);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 3;
}

.hero-bottom p {
    font-size: clamp(17px, 2.1vw, 27px);
    line-height: 1.5;
    color: #a5a69d;
}

.hero-bottom p span {
    color: var(--text);
}

.discover {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 10px;
    transition: color 0.3s;
}

.discover span {
    color: var(--accent);
    font-size: 18px;
    margin-left: 20px;
}

.discover:hover {
    color: var(--accent);
}

/* ORBITAL ART */

.orb {
    position: absolute;
    z-index: 0;
    width: clamp(180px, 27vw, 390px);
    aspect-ratio: 1;
    top: 14%;
    right: 9%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 25%, #f0ff9e 0%, #c8ff00 7%, #789900 19%, #292d16 43%, #12130f 66%, transparent 70%);
    box-shadow:
        inset -25px -25px 60px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(200, 255, 0, 0.08);
    opacity: 0.85;
    animation: float 8s ease-in-out infinite;
}

.orbit {
    position: absolute;
    width: clamp(260px, 36vw, 520px);
    aspect-ratio: 1;
    border: 1px solid rgba(200, 255, 0, 0.22);
    border-radius: 50%;
    top: 6%;
    right: 3%;
    pointer-events: none;
    z-index: 1;
    transform: rotate(-25deg) scaleY(0.38);
}

.orbit-one {
    animation: orbit 20s linear infinite;
}

.orbit-two {
    width: clamp(310px, 43vw, 620px);
    border-color: rgba(240, 240, 232, 0.1);
    transform: rotate(55deg) scaleY(0.4);
    animation: orbit 30s linear infinite reverse;
}

.hero-index {
    position: absolute;
    bottom: 10px;
    left: 5%;
    font: 9px var(--mono);
    letter-spacing: 1px;
    color: #55574e;
}

/* MANIFESTO */

.manifesto {
    padding: 110px 8%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-label {
    color: var(--accent);
    display: block;
}

.manifesto p {
    margin-top: 45px;
    max-width: 1050px;
    font-size: clamp(32px, 6.4vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 600;
}

.manifesto p span {
    color: #62645a;
    display: block;
}

/* PROJECTS */

.work {
    padding: 120px 5%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-size: clamp(55px, 9vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.09em;
    margin-top: 24px;
}

.section-heading h2 span {
    color: var(--accent);
    font-size: 20px;
    letter-spacing: 0;
    vertical-align: top;
    margin-left: 5px;
}

.work-count {
    color: var(--muted);
    padding-bottom: 8px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 65px 24px;
}

.project {
    min-width: 0;
}

.project-art {
    position: relative;
    aspect-ratio: 1.16 / 1;
    overflow: hidden;
    isolation: isolate;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-radius 0.5s ease;
}

.project-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

.project:hover .project-art::before {
    transform: scale(1.07) rotate(-2deg);
}

.art-number,
.art-caption {
    position: absolute;
    z-index: 2;
    color: rgba(255, 255, 255, 0.65);
}

.art-number {
    top: 22px;
    left: 22px;
}

.art-caption {
    bottom: 22px;
    left: 22px;
    font-size: 8px;
}

.art-word {
    position: relative;
    z-index: 1;
    font-size: clamp(50px, 8vw, 110px);
    font-weight: 700;
    line-height: 0.78;
    letter-spacing: -0.09em;
    overflow-wrap: anywhere;
}

/* FOOTBALL POSTER */

.art-football {
    color: #f4f1e6;
    background: #1c2d22;
}

.art-football::before {
    background:
        radial-gradient(ellipse at 72% 35%, rgba(191, 255, 0, 0.75), transparent 18%),
        radial-gradient(ellipse at 70% 50%, #466844 0%, #1c3527 28%, transparent 48%),
        repeating-linear-gradient(115deg, transparent 0 25px, rgba(255, 255, 255, 0.035) 26px 27px),
        linear-gradient(140deg, #40593b, #101910 70%);
}

.art-football .art-word {
    color: var(--accent);
    transform: rotate(-6deg);
    text-shadow: 4px 5px 0 rgba(0, 0, 0, 0.25);
}

/* EXPERIMENTAL POSTER */

.art-experiment {
    color: #151515;
    background: #d5ff39;
}

.art-experiment::before {
    background:
        radial-gradient(ellipse at 75% 20%, #f6f8e8 0%, transparent 23%),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(0, 0, 0, 0.07) 19px 20px),
        linear-gradient(125deg, #b5f500, #edff87 55%, #85bd00);
}

.art-experiment .art-word {
    font-size: clamp(46px, 7vw, 95px);
    -webkit-text-stroke: 1px #151515;
}

/* MOTION POSTER */

.art-motion {
    color: #fff;
    background: #212046;
}

.art-motion::before {
    background:
        radial-gradient(ellipse at 65% 55%, rgba(255, 71, 166, 0.85), transparent 27%),
        radial-gradient(ellipse at 45% 45%, rgba(67, 80, 255, 0.95), transparent 40%),
        repeating-linear-gradient(120deg, transparent 0 19px, rgba(255, 255, 255, 0.09) 20px 21px),
        linear-gradient(140deg, #151329, #252255);
}

.art-motion .art-word {
    transform: rotate(-8deg);
    text-shadow: 5px 5px 0 rgba(255, 71, 166, 0.45);
}

/* FUTURE POSTER */

.art-future {
    color: #fff;
    background: #1c2730;
}

.art-future::before {
    background:
        radial-gradient(circle at 70% 42%, rgba(135, 242, 255, 0.95), transparent 4%),
        radial-gradient(ellipse at 70% 45%, #245e73 0%, transparent 34%),
        repeating-radial-gradient(ellipse at 70% 45%, transparent 0 15px, rgba(120, 232, 255, 0.13) 16px 17px),
        linear-gradient(130deg, #10171f, #192d37);
}

.art-future .art-word {
    color: #a6f2ff;
    font-size: clamp(48px, 7.5vw, 100px);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    padding-top: 18px;
}

.project-info h3 {
    font-size: clamp(12px, 1.5vw, 17px);
    letter-spacing: -0.03em;
}

.project-info > span {
    color: var(--muted);
    font-size: 8px;
    text-align: right;
}

.work-note {
    color: var(--muted);
    margin-top: 65px;
    text-align: center;
    line-height: 1.8;
}

/* ABOUT */

.about {
    background: var(--accent);
    color: var(--bg);
    padding: 110px 8% 90px;
}

.about .section-label {
    color: #3d4c00;
}

.about h2 {
    margin-top: 50px;
    font-size: clamp(44px, 8.7vw, 125px);
    letter-spacing: -0.085em;
    line-height: 0.87;
}

.about h2 span {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--bg);
}

.about-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-top: 65px;
    padding-top: 25px;
    border-top: 1px solid rgba(16, 17, 15, 0.3);
}

.about-bottom p {
    max-width: 480px;
    font-size: clamp(16px, 1.8vw, 21px);
    line-height: 1.7;
}

.about-mark {
    text-align: right;
    line-height: 1.8;
    flex-shrink: 0;
}

/* CONTACT */

.contact {
    padding: 120px 8% 30px;
}

.contact h2 {
    font-size: clamp(43px, 8vw, 110px);
    line-height: 0.95;
    letter-spacing: -0.08em;
    margin-top: 45px;
    margin-bottom: 55px;
}

.contact h2 span {
    color: #62645a;
}

#contactLink {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font: 12px var(--mono);
    letter-spacing: 1px;
    transition: color 0.3s;
}

#contactLink span {
    color: var(--accent);
    font-size: 24px;
}

#contactLink:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    margin-top: 60px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* NAVIGATION OVERLAY */

.menu-panel {
    position: fixed;
    z-index: 15;
    inset: 0;
    background: var(--accent);
    color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10%;
    gap: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.menu-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-panel a {
    font-size: clamp(30px, 7vw, 80px);
    font-weight: 700;
    letter-spacing: -0.07em;
    transition: opacity 0.2s;
}

.menu-panel a:hover {
    opacity: 0.55;
}

/* ANIMATIONS */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes orbit {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* TABLETS */

@media (max-width: 850px) {
    .hero {
        min-height: 620px;
    }

    .hero h1 {
        font-size: clamp(60px, 12vw, 105px);
    }

    .orb {
        top: 18%;
        right: 7%;
        opacity: 0.55;
    }

    .orbit {
        top: 12%;
        right: 0;
        opacity: 0.7;
    }

    .project-grid {
        gap: 45px 18px;
    }

    .project-info {
        flex-direction: column;
        gap: 8px;
    }

    .project-info > span {
        text-align: left;
    }
}

/* PHONES */

@media (max-width: 550px) {
    .topbar {
        height: 70px;
        padding: 0 6%;
    }

    .availability {
        font-size: 7px;
        letter-spacing: 0;
        gap: 6px;
    }

    #menuButton {
        padding: 10px;
        font-size: 9px;
    }

    .hero {
        height: auto;
        min-height: 690px;
        padding: 28px 6% 55px;
    }

    .hero-meta {
        font-size: 8px;
        gap: 15px;
    }

    .hero-meta > span:last-child {
        text-align: right;
    }

    .hero-title {
        margin-top: 70px;
        margin-bottom: 60px;
    }

    .eyebrow {
        font-size: 9px;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: clamp(49px, 12.2vw, 68px);
        letter-spacing: -0.09em;
    }

    .outline {
        margin-top: 14px;
        -webkit-text-stroke-width: 1px;
    }

    .orb {
        width: 200px;
        top: 23%;
        right: -15%;
        opacity: 0.38;
    }

    .orbit {
        width: 260px;
        top: 21%;
        right: -20%;
        opacity: 0.5;
    }

    .orbit-two {
        width: 310px;
    }

    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 35px;
    }

    .hero-bottom p {
        font-size: 19px;
    }

    .hero-index {
        left: 6%;
        bottom: 18px;
    }

    .manifesto {
        padding: 75px 6%;
    }

    .manifesto p {
        font-size: clamp(34px, 9vw, 52px);
        margin-top: 30px;
    }

    .work {
        padding: 80px 6%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 65px;
    }

    .work-count {
        font-size: 8px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .project-art {
        aspect-ratio: 1 / 0.92;
    }

    .art-word {
        font-size: clamp(65px, 16vw, 95px);
    }

    .art-experiment .art-word,
    .art-future .art-word {
        font-size: clamp(62px, 15vw, 90px);
    }

    .project-info {
        flex-direction: row;
        align-items: baseline;
    }

    .project-info h3 {
        font-size: 13px;
    }

    .project-info > span {
        font-size: 7px;
    }

    .work-note {
        font-size: 8px;
        margin-top: 45px;
    }

    .about {
        padding: 80px 6% 60px;
    }

    .about h2 {
        font-size: clamp(42px, 11vw, 65px);
        margin-top: 40px;
    }

    .about h2 span {
        -webkit-text-stroke-width: 1px;
    }

    .about-bottom {
        margin-top: 45px;
        align-items: flex-start;
        gap: 20px;
    }

    .about-bottom p {
        font-size: 15px;
    }

    .about-mark {
        font-size: 8px;
    }

    .contact {
        padding: 85px 6% 25px;
    }

    .contact h2 {
        font-size: clamp(39px, 10vw, 59px);
        margin-top: 38px;
        margin-bottom: 45px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
    }
}

/* SMALL PHONES */

@media (max-width: 360px) {
    .availability {
        display: none;
    }

    .hero h1 {
        font-size: 46px;
    }

    .project-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* SCROLL REVEAL */

.reveal-ready {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-ready.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
