:root {
    --mono-bg: #FFFFFF;
    --mono-surface: #F8F8F8;
    --mono-text: #222222;
    --mono-muted: #7B7B7B;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--mono-text);
    background-color: var(--mono-bg);
    letter-spacing: 1px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    z-index: 100;
    border-bottom: 1px solid #efefef;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 1.8vw, 1.3rem);
    width: 100%;
    max-width: 1200px;
}

.site-title {
    font-size: 1.05rem;
    color: var(--mono-text);
    letter-spacing: 0.08em;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.header-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}

.header-links a {
    text-decoration: none;
    color: var(--mono-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.header-links a:hover {
    color: var(--mono-text);
    opacity: 0.85;
}

/* Navigation Menu */
.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    z-index: 2001;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: black;
    position: relative;
    transition: all 0.3s ease;
}

.menu-button span::before,
.menu-button span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    transition: all 0.3s ease;
}

.menu-button span::before {
    transform: translateY(-6px);
}

.menu-button span::after {
    transform: translateY(6px);
}

.menu-button.active span {
    background: transparent;
}

.menu-button.active span::before {
    transform: rotate(45deg);
}

.menu-button.active span::after {
    transform: rotate(-45deg);
}

body:not(.index-page) .menu-button {
    display: none;
}

.drawer-nav {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    padding: 80px 2rem;
    transition: right 0.3s ease;
    z-index: 2000;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.drawer-nav.active {
    right: 0;
}

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

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #333;
}

/* Social Links */
.social-links {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 10;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #666;
    transition: fill 0.3s ease;
}

.social-icon:hover {
    fill: #333;
}

/* Home Page */
.hero-shell {
    min-height: 100vh;
    position: relative;
    padding: 2rem clamp(1rem, 4vw, 3.2rem) 2.4rem;
    background: var(--mono-bg);
}

.hero-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-46%, -50%);
    font-size: clamp(6rem, 17vw, 16rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--mono-surface);
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-height: 56px;
}

.hero-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.hero-logo span {
    width: 26px;
    height: 26px;
    border: 2px solid var(--mono-text);
    display: inline-block;
    transform: rotate(45deg);
}

.hero-nav-links {
    display: flex;
    gap: clamp(0.8rem, 2vw, 2rem);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: static;
    inset: auto;
    height: auto;
    max-width: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.hero-nav-links a {
    text-decoration: none;
    color: var(--mono-text);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.hero-nav-links a:hover {
    opacity: 0.65;
}

.hero-nav-spacer {
    width: 46px;
    height: 46px;
}

.hero-main {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 120px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2rem);
}

.hero-left {
    padding-left: 1rem;
}

.hero-title {
    font-size: clamp(4.8rem, 14vw, 12rem);
    line-height: 0.9;
    font-weight: 200;
    letter-spacing: -0.02em;
    color: var(--mono-text);
    margin-bottom: 1.15rem;
}

.hero-title span {
    display: block;
}

.hero-title-top {
    letter-spacing: 0.022em;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--mono-muted);
    letter-spacing: 0.01em;
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-portrait {
    width: min(460px, 90%);
    aspect-ratio: 3 / 4;
    background: var(--mono-surface);
    border: 1px solid #ececec;
    border-radius: 20px;
    overflow: hidden;
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1);
    display: block;
}

/* Portfolio Page */
.portfolio-container {
    display: block;
    min-height: 100vh;
    padding: 7rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

.visuals-title {
    text-align: center;
    color: var(--mono-text);
    font-weight: 300;
    letter-spacing: 0.12em;
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    margin-bottom: 2rem;
}

.portfolio-wrapper {
    height: auto;
    overflow: visible;
    padding: 0;
    max-width: 1300px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.portfolio-item {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    overflow: hidden;
    border: 1px solid #eee;
}

.portfolio-item img,
.portfolio-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.05);
}

/* Enemies Page */
.enemies-container {
    min-height: 100vh;
    padding: 8.5rem 1rem 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.enemies-list-wrap {
    width: fit-content;
    max-width: 560px;
    text-align: left;
}

.enemies-list-wrap h1 {
    font-size: 2.4rem;
    letter-spacing: 2px;
    color: #4b4b4b;
    margin-bottom: 1.5rem;
    margin-left: -1ch;
}

.enemies-list {
    display: block;
    text-align: left;
    padding-left: 0;
    list-style-position: inside;
    line-height: 1.9;
    font-size: 1.08rem;
    color: #5a5a5a;
}

.enemies-list li {
    margin-bottom: 0.2rem;
}

/* Links Page */
.links-page {
    min-height: 100vh;
}

.links-container {
    min-height: 100vh;
    width: 100%;
    padding: 5.5rem 1.5rem 1.5rem;
    max-width: none;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.links-title {
    font-size: 2.5rem;
    font-weight: normal;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 0;
    padding-top: 1rem;
}

.links-soon {
    font-size: clamp(2.4rem, 7.2vw, 5.3rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--mono-text);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.links-page .social-links {
    display: none;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.link-button {
    text-decoration: none;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.link-button:hover {
    transform: translateY(-5px);
}

.link-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.link-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Essentials Page */
.essentials-page {
    min-height: 100vh;
    padding: 4.75rem clamp(0.9rem, 3vw, 1.5rem) 4rem;
    background: var(--mono-bg);
}

.essentials-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.essentials-watermark {
    position: absolute;
    left: 50%;
    top: 4.45rem;
    transform: translateX(-50%);
    font-size: clamp(4.5rem, 15vw, 11rem);
    letter-spacing: 0.08em;
    color: var(--mono-surface);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.essentials-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 42vw);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: start;
    min-height: auto;
    position: relative;
    z-index: 1;
}

.essentials-copy {
    color: var(--mono-text);
    padding-left: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.essentials-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mono-muted);
    margin-bottom: 1rem;
}

.essentials-title {
    font-size: clamp(3.9rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 200;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.essentials-title span {
    display: block;
}

.essentials-description {
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--mono-muted);
}

.essentials-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.85rem 0 2rem;
}

.essentials-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.85rem 1.2rem;
    text-decoration: none;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.essentials-button:hover {
    transform: translateY(-1px);
    opacity: 0.75;
}

.essentials-button-primary {
    background: var(--mono-text);
    color: #ffffff;
    border: 1px solid var(--mono-text);
}

.essentials-button-secondary {
    border: 1px solid #dddddd;
    color: var(--mono-text);
}

.essentials-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid #ececec;
    max-width: 560px;
}

.essentials-stats dt {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mono-muted);
    margin-bottom: 0.45rem;
}

.essentials-stats dd {
    font-size: 0.96rem;
    line-height: 1.45;
    color: var(--mono-text);
}

.essentials-artwork-wrap {
    display: flex;
    justify-content: center;
}

.essentials-artwork-frame {
    width: 100%;
    background: #ffffff;
    padding: 0.8rem;
    border: 1px solid #ececec;
    border-radius: 18px;
}

.essentials-artwork-frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(1) contrast(1.02);
    border-radius: 10px;
}

.essentials-player-card {
    margin-top: 1.5rem;
    background: #ffffff;
    border: 1px solid #ececec;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(1rem, 2.6vw, 1.75rem);
    align-items: center;
    border-radius: 18px;
}

.essentials-player-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mono-muted);
    margin-bottom: 0.65rem;
}

.essentials-player-copy h2 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--mono-text);
    font-weight: 300;
    margin-bottom: 0.9rem;
}

.essentials-player-copy p {
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.72;
    color: var(--mono-muted);
}

.essentials-embed-wrap {
    min-width: 0;
}

.essentials-embed-wrap iframe {
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
}

.essentials-page .social-links {
    position: static;
    transform: none;
    justify-content: center;
    margin: 2rem auto 0;
}

@media (max-width: 1100px) {
    .hero-main {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
        min-height: auto;
        padding-top: 1.5rem;
    }

    .hero-title {
        font-size: clamp(4.2rem, 11vw, 8rem);
    }

    .hero-portrait {
        width: min(420px, 100%);
    }

    .essentials-page {
        padding-top: 4.25rem;
    }

    .essentials-watermark {
        top: 4rem;
        font-size: clamp(4rem, 12vw, 8rem);
    }

    .essentials-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
        align-items: center;
    }

    .essentials-title {
        font-size: clamp(3.2rem, 8vw, 6rem);
    }

    .essentials-player-card {
        grid-template-columns: 1fr;
    }

    .essentials-player-copy p {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 0.7rem 0.85rem;
    }

    .header-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .site-title {
        font-size: 0.94rem;
    }

    .header-links a {
        font-size: 0.62rem;
    }

    .hero-main,
    .essentials-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        min-height: auto;
        gap: 1.4rem;
        padding-top: 1.1rem;
    }

    .hero-left {
        padding-left: 0;
    }

    .hero-right {
        justify-content: flex-start;
    }

    .hero-portrait {
        width: min(360px, 100%);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.15rem;
    }

    .essentials-page {
        padding-top: 4rem;
    }

    .essentials-watermark {
        top: 3.8rem;
    }

    .essentials-copy {
        padding-left: 0;
    }

    .essentials-description,
    .essentials-player-copy p {
        max-width: none;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-shell {
        padding: 1.15rem 1rem 1.25rem;
    }

    .header {
        padding: 0.6rem 0.75rem;
    }

    .header-bar {
        gap: 0.4rem;
        flex-direction: column;
    }

    .site-title {
        font-size: 0.88rem;
    }

    .header-links {
        gap: 0.5rem;
    }

    .header-links a {
        font-size: 0.56rem;
        letter-spacing: 0.06em;
    }

    .hero-watermark {
        top: 52%;
        font-size: 5rem;
    }

    .hero-nav {
        min-height: 44px;
    }

    .hero-logo {
        width: 34px;
        height: 34px;
    }

    .hero-logo span {
        width: 18px;
        height: 18px;
        border-width: 1.5px;
    }

    .hero-nav-links {
        gap: 0.7rem;
    }

    .hero-nav-links a {
        font-size: 0.62rem;
        letter-spacing: 0.02em;
    }

    .hero-nav-spacer {
        width: 34px;
        height: 34px;
    }

    .hero-main {
        grid-template-columns: 1fr;
        align-items: start;
        min-height: auto;
        gap: 1.2rem;
        padding-top: 1.2rem;
    }

    .hero-left {
        padding-left: 0;
    }

    .hero-title {
        font-size: clamp(3.8rem, 26vw, 5.8rem);
        margin-bottom: 0.65rem;
    }

    .hero-subtitle {
        font-size: 0.86rem;
    }

    .hero-right {
        justify-content: flex-start;
    }

    .hero-portrait {
        width: min(320px, 95%);
        border-radius: 14px;
    }

    .portfolio-container {
        padding: 6.7rem 1rem 2rem;
    }

    .portfolio-wrapper {
        height: auto;
        padding: 0;
    }

    .portfolio-grid {
        gap: 1rem;
    }

    .links-container {
        padding: 7rem 1rem 2rem;
    }

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

    .essentials-page {
        padding: 5.2rem 0.85rem 2rem;
    }

    .essentials-grid,
    .essentials-player-card,
    .essentials-stats {
        grid-template-columns: 1fr;
    }

    .essentials-watermark {
        top: 4.5rem;
        font-size: 4.2rem;
    }

    .essentials-copy {
        padding-left: 0;
    }

    .essentials-title {
        font-size: clamp(2.8rem, 15vw, 4.6rem);
    }

    .essentials-description,
    .essentials-player-copy p {
        max-width: none;
    }

    .essentials-artwork-frame {
        padding: 0.65rem;
    }

    .essentials-player-card {
        margin-top: 1rem;
        padding: 1rem;
    }

    .essentials-embed-wrap iframe {
        height: 500px;
    }

    .drawer-nav {
        width: 100%;
        max-width: 100%;
    }

    .menu-button {
        top: 15px;
        right: 15px;
    }

    .header {
        padding: 1rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .enemies-container {
        padding: 7.2rem 1rem 4.75rem;
        align-items: flex-start;
    }

    .enemies-list-wrap h1 {
        font-size: 1.95rem;
    }

    .enemies-list {
        font-size: 1rem;
        line-height: 1.75;
    }

}
