/* =====================================================
   ROOT
===================================================== */

:root {
    --black: #070809;
    --black-2: #0d1012;
    --black-3: #14191b;
    --cyan: #19d9e6;
    --cyan-dark: #087f89;
    --yellow: #e4d83b;
    --red: #e63946;
    --white: #f1f3f2;
    --gray: #a7b0b3;
    --gray-dark: #5e686b;
    --border: rgba(241, 243, 242, 0.12);
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--black2);
}

*::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 0px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}


/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    min-height: 100vh;
}

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

/* =====================================================
   TOP BAR
===================================================== */

.topbar {
    height: 58px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(7, 8, 9, 0.92);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.brand-main {
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.brand-separator {
    color: var(--gray-dark);
}

.top-status {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(25, 217, 230, 0.8);
}

.top-year {
    margin-left: 15px;
    color: var(--white);
}

/* =====================================================
   MAIN GRID
===================================================== */

.menu-grid {
    width: 100%;
    max-width: 1600px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: 1px;
    background-color: var(--black);
    background-image: linear-gradient(rgba(25, 217, 230, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 217, 230, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;

}

/* =====================================================
   TILE BASE
===================================================== */

.tile {
    position: relative;
    overflow: hidden;
    background: var(--black-2);
    border: none;
    isolation: isolate;
    transition:
        transform 0.4s ease, background 0.4s ease;
}

.tile:hover {
    z-index: 10;
    background: var(--black-3);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
    z-index: 20;
}

.tile:hover::after {
    border-color: var(--cyan);
}

/* =====================================================
   TILE CONTENT
===================================================== */

.tile-content {
    position: absolute;
    left: 25px;
    bottom: 25px;
    z-index: 10;
}

.category {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--gray);
    margin-bottom: 10px;
}

.tile h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 48px);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.tile p {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--gray);
    max-width: 220px;
}

/* =====================================================
   NUMBER
===================================================== */

.tile-number {
    position: absolute;
    top: 20px;
    left: 22px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray);
    z-index: 10;
}

.tile-number::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    background: var(--cyan);
}

/* =====================================================
   ARROW
===================================================== */

.tile-arrow {
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 25px;
    font-family: var(--font-display);
    color: var(--gray);
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 20;
}

.tile:hover .tile-arrow {
    color: var(--cyan);
    transform: translate(4px, -4px);
}

/* =====================================================
   HERO
===================================================== */

.tile-hero {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 501px;
    background: linear-gradient(130deg, #080a0b, #101719);
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 40%, rgba(25, 217, 230, 0.22), transparent 35%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0, transparent 80px, rgba(255, 255, 255, 0.025) 81px);
}

.tile-hero .tile-content {
    left: 45px;
    bottom: 40px;
}

.tile-index {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
}

.tile-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(65px, 9vw, 150px);
    line-height: 0.78;
    letter-spacing: -0.075em;
    font-weight: 700;
}

.tile-hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
}

.hero-description {
    margin-top: 30px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.8;
    color: var(--gray);
}

.hero-corner {
    position: absolute;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--gray-dark);
}

/* =====================================================
   PROJECTS
===================================================== */
.tile-projects {
    grid-column: span 5;
    background: linear-gradient(145deg, #111719, #080a0b);
}

.tile-projects::before {
    content: "SHOP";
    position: absolute;
    right: -15px;
    top: 35px;
    font-family: var(--font-display);
    font-size: 90px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.025);
}

/* =====================================================
   APPS
===================================================== */

.tile-apps {
    grid-column: span 3;
}

.ui-decoration {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--gray-dark);
    text-align: right;
}

.ui-decoration span:first-child {
    color: var(--yellow);
}

/* =====================================================
   WEBSITES
===================================================== */

.tile-websites {
    grid-column: span 4;
}

.web-lines {
    position: absolute;
    right: 20px;
    top: 55px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.web-lines span {
    display: block;
    height: 3px;
    background: var(--gray-dark);
}

.web-lines span:nth-child(1) {
    width: 80px;
}


.web-lines span:nth-child(2) {
    width: 55px;
}

.web-lines span:nth-child(3) {
    width: 100px;
}

/* =====================================================
   ANIME
===================================================== */

.tile-anime {
    grid-column: span 5;
    grid-row: span 2;
    min-height: 501px;
    background: #17191a;
}

.anime-background {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.25)), url("/assets/images/anime/anime.jpg");
    background-size: cover;
    background-position: center;
    filter: grayscale(20%) contrast(1.15);
    transition: transform 0.8s ease;
}

.tile-anime:hover .anime-background {
    transform: scale(1.06);
}

.anime-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
}

.anime-content {
    position: absolute;
    left: 30px;
    bottom: 35px;
    z-index: 10;
}

.japanese {
    display: block;
    font-family: var(--font-body);
    color: var(--yellow);
    font-size: 14px;
    margin-bottom: 15px;
}

.anime-content h2 {
    font-size: clamp(40px, 5vw, 70px);
}

.anime-label {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    z-index: 10;
}

.anime-label span:first-child {
    color: var(--yellow);
    font-size: 14px;
}

/* =====================================================
   PHOTO
===================================================== */

.tile-photo {
    grid-column: span 4;
    grid-row: span 1;
}

.photo-background {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(130deg, rgba(0, 0, 0, 0.8), rgba(0, 40, 45, 0.25)), url("images/photo.jpg");
    background-size: cover;
    background-position: center;
    filter: contrast(1.2) saturate(0.8);
    transition: transform 0.8s ease;
}


.tile-photo:hover .photo-background {
    transform: scale(1.06);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.8));
}

.photo-mark {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 6px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
}

.rec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.8);
}

/* =====================================================
   ABOUT
===================================================== */

.tile-about {
    grid-column: span 4;
}

.about-symbol {
    position: absolute;
    right: 30px;
    bottom: 15px;
    font-family: var(--font-display);
    font-size: 150px;
    font-weight: 700;
    color: rgba(25, 217, 230, 0.08);
    line-height: 1;
}


/* =====================================================
   SOCIAL
===================================================== */

.tile-social {
    grid-column: span 4;
}

.social-icons {
    position: absolute;
    right: 22px;
    bottom: 25px;
    display: flex;
    gap: 5px;
}

.social-icons span {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 9px;
    transition: border-color 0.3s, color 0.3s;
}

.tile-social:hover .social-icons span {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* =====================================================
   CONTACT
===================================================== */

.tile-contact {
    grid-column: span 4;
}

.contact-mark {
    position: absolute;
    right: 25px;
    bottom: 20px;
    font-size: 60px;
    font-family: var(--font-display);
    color: var(--cyan);
    transition: transform 0.4s ease;
}

.tile-contact:hover .contact-mark {
    transform: translateX(10px);
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
    height: 45px;
    max-width: 1600px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--gray-dark);
    letter-spacing: 0.08em;
}

#clock {
    color: var(--gray);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .menu-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .tile-hero {
        grid-column: span 6;
    }

    .tile-projects {
        grid-column: span 6;
    }

    .tile-apps {
        grid-column: span 3;
    }

    .tile-websites {
        grid-column: span 3;
    }

    .tile-anime {
        grid-column: span 6;
    }

    .tile-photo,
    .tile-about,
    .tile-social,
    .tile-contact {
        grid-column: span 3;
    }

}

@media (max-width: 600px) {

    .topbar {
        padding: 0 16px;
    }

    .top-year {
        display: none;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .tile-hero {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 441px;
    }


    .tile-hero .tile-content {
        left: 25px;
        bottom: 30px;
    }

    .tile-hero h1 {
        font-size: 60px;
    }

    .tile-projects,
    .tile-apps,
    .tile-websites,
    .tile-anime,
    .tile-photo,
    .tile-about,
    .tile-social,
    .tile-contact {
        grid-column: span 1;
    }

    .tile-anime {
        grid-column: span 2;
        grid-row: span 2;
        min-height: 441px;
    }

    .tile h2 {
        font-size: 30px;
    }

    .footer {
        display: none;
    }

}