
/* =========================
   DESIGN SYSTEM
========================= */

:root {
    --color-background: #17191C;
    --color-surface: #252A30;
    --color-text: #E9E4DA;
    --color-muted: #A6A69B;
    --color-accent: #B58A69;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1400px;
    --page-padding: 6%;

    --transition: 0.3s ease;
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   FONTS
========================= */
@font-face {
    font-family: 'Norwester';
    src: url('../assets/fonts/norwester/norwester-latin-400-normal.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Belleza';
    src: url('../assets/fonts/belleza/belleza-latin-400-normal.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Fredoka';
    src: url('../assets/fonts/fredoka/fredoka.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('../assets/fonts/bebas-neue/bebas-neue.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/montserrat/montserrat.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KN Yuanmo SC';
    src: url('../assets/fonts/kn-yuanmo/kn-yuanmo.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.sundial-page .type-display,
.sundial-page .identity-type .type-name {
    font-family: 'Norwester', sans-serif;
}

.sundial-page .type-secondary h4,
.sundial-page .type-secondary .type-name {
    font-family: 'Belleza', sans-serif;
}

.eclipse-page .type-display.type-fredoka,
.eclipse-page .type-name.type-fredoka {
    font-family: 'Fredoka', sans-serif;
}

.eclipse-page .type-secondary h4.type-bebas,
.eclipse-page .type-secondary .type-name.type-bebas {
    font-family: 'Bebas Neue', sans-serif;
}

.invisible-page .type-display.type-montserrat,
.invisible-page .type-name.type-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.invisible-page .type-secondary h4.type-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.invisible-page .type-secondary h4.type-outline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.04em;
    margin: 30px 0 12px;
}

.invisible-page .type-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text);
}

.shinigami-page .type-display.type-yuanmo,
.shinigami-page .type-name.type-yuanmo {
    font-family: 'KN Yuanmo SC', sans-serif;
}

.shinigami-page .type-secondary h4.type-montserrat,
.shinigami-page .type-secondary .type-name.type-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.one-piece-page .type-display.type-montserrat,
.one-piece-page .type-name.type-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* =========================
   SHARED ELEMENTS
========================= */

.eyebrow {
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

h1, h2 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h3, h4 {
    font-family: var(--font-heading);
}
/* =========================
   NAVIGATION
========================= */

.site-header {
    width: 100%;
    padding: 30px var(--page-padding);
    border-bottom: 1px solid var(--color-surface);
}

.navigation {
    max-width: var(--container-width);
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.05;
}

.wordmark span:last-child {
    color: var(--color-accent);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    position: relative;
    font-size: 0.85rem;
    color: var(--color-muted);
    transition: color var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================
   HERO
========================= */

.hero {
    max-width: var(--container-width);
    margin: auto;
    padding: 160px var(--page-padding) 140px;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    margin: 25px 0 40px;
}

.hero h1 span {
    display: block;
    color: var(--color-accent);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.hero-bottom p {
    max-width: 350px;
    color: var(--color-muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: color var(--transition);
}

.text-link:hover {
    color: var(--color-text);
}

/* =========================
   PORTFOLIO
========================= */

.work-section {
    max-width: var(--container-width);
    margin: auto;
    padding: 80px var(--page-padding);
}

.section-heading h2,
.about-section h2,
.contact-section h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-top: 15px;
}

/* PROJECT GRID */

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px 30px;
}

.project-card {
    display: block;
    min-width: 0;
}

.project-large {
    grid-column: span 7;
}

.project-small {
    grid-column: span 5;
}

.project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-surface);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 6px;
}
.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 18px;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color var(--transition);
}

.project-card:hover .project-info h3,
.project-card:focus-visible .project-info h3 {
    color: var(--color-accent);
}
.project-info p {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.project-number {
    color: var(--color-accent);
    font-size: 0.8rem;
}

/* ABOUT SECTION */

.about-section {
    max-width: var(--container-width);
    margin: auto;
    padding: 140px var(--page-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-heading h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-top: 20px;
    letter-spacing: -0.04em;
}

.about-content {
    padding-top: 35px;
}

.about-content p {
    color: var(--color-muted);
    margin-bottom: 25px;
    max-width: 520px;
}

.about-content .about-intro {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.5;
}

.about-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 35px 0;
}

.about-specialties span {
    border: 1px solid var(--color-surface);
    border-radius: 30px;
    padding: 9px 16px;
    color: var(--color-muted);
    font-size: 0.75rem;
}

/* CONTACT SECTION */

.contact-section {
    max-width: var(--container-width);
    margin: auto;
    padding: 140px var(--page-padding);
    border-top: 1px solid var(--color-surface);
}

.contact-content {
    margin-top: 40px;
}

.contact-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.contact-content p {
    color: var(--color-muted);
    max-width: 380px;
    margin: 30px 0;
}

.contact-link {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 6px;
    transition: color var(--transition);
}

.contact-link:hover {
    color: var(--color-text);
}

/* FOOTER */

.site-footer {
    padding: 30px var(--page-padding);
    border-top: 1px solid var(--color-surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.site-footer a {
    color: var(--color-accent);
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--color-text);
}

/* CASE STUDY INTRO */

.case-intro {
    max-width: var(--container-width);
    margin: auto;
    padding: 120px var(--page-padding) 80px;
}

.case-intro h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -0.055em;
    line-height: 1.05;
    margin: 25px 0;
}

.case-description {
    max-width: 550px;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.case-details {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 65px;
}

.case-details span {
    color: var(--color-accent);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.case-details p {
    margin-top: 8px;
    font-size: 0.85rem;
}


/* IMAGE PLACEHOLDERS */

.case-hero,
.case-identity,
.case-development,
.case-promotional,
.case-applications {
    max-width: var(--container-width);
    margin: auto;
    padding: 80px var(--page-padding);
}
.case-image-placeholder{
    min-height: 350px;
    background: var(--color-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.case-hero .case-image-placeholder {
    min-height: 550px;
}


/* CASE STUDY CONTENT */

.case-overview {
    max-width: var(--container-width);
    margin: auto;
    padding: 120px var(--page-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.case-overview h2,
.case-identity h2,
.case-development h2,
.case-applications h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-top: 20px;
}

.case-overview > div:last-child p,
.case-development .section-heading > p:last-child,
.case-promotional .section-heading > p:last-child {
    color: var(--color-muted);
    max-width: 550px;
    line-height: 1.8;
}

.case-development > p:last-child {
    margin-top: 30px;
}

.case-identity .identity-placeholder,
.case-applications .application-placeholder {
    margin-top: 50px;
}


/* CASE STUDY MOBILE */

@media (max-width: 768px) {

    .case-intro {
        padding: 90px var(--page-padding) 60px;
    }

    .case-details {
        gap: 30px;
    }

    .case-hero .case-image-placeholder {
        min-height: 300px;
    }

    .case-overview {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 80px var(--page-padding);
    }

}


/* CASE STUDY — VISUAL IDENTITY */

.case-identity {
    padding: 100px var(--page-padding);
}

.section-heading {
    max-width: 650px;
    margin-bottom: 60px;
}

.section-label {
    color: var(--color-accent);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

.section-heading > p:last-child {
    color: var(--color-muted);
    line-height: 1.8;
}

.identity-primary {
    margin-bottom: 24px;
}

.identity-image {
    background: #e9e1d2;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.identity-main-logo {
    min-height: 340px;
}

.identity-image img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.identity-main-logo img {
    max-width: 90%;
    max-height: 300px;
}

.image-caption,
.identity-item figcaption {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

.identity-variants {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 100px;
}

.identity-item {
    min-width: 0;
}

.identity-item .identity-image {
    min-height: 200px;
}

.identity-guidelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.identity-type > p:not(.section-label),
.type-secondary > p:last-child {
    color: var(--color-muted);
    line-height: 1.8;
}

.type-display {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -0.06em;
    margin: 30px 0 8px;
}

.type-name {
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.type-secondary {
    border-top: 1px solid rgba(233, 228, 218, 0.15);
    margin-top: 50px;
    padding-top: 35px;
}

.type-secondary h4 {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.identity-colors {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.color-placeholder {
    display: flex;
    align-items: center;
    gap: 18px;
}

.color-swatch {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 4px;
}

.case-promotional,
.case-reflection {
    max-width: var(--container-width);
    margin: auto;
}

/* INVISIBLE CAMPAIGN VISUALS */

.invisible-identity .identity-variants {
    gap: 30px;
}

.invisible-identity .identity-item .identity-image {
    background: transparent;
    min-height: 0;
    padding: 0;
    display: block;
}

.invisible-identity .identity-item .identity-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    object-fit: contain;
}

.swatch-gold {
    background: #D9B77A;
}

.swatch-brown {
    background: #3B2A24;
}

.swatch-cream {
    background: #F7F1E3;
}

.swatch-sage {
    background: #8A9A7B;
}

.swatch-terracotta {
    background: #B86B4B;
}

.color-placeholder h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.color-placeholder p {
    color: var(--color-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .case-identity,
    .case-development,
    .case-promotional {
        padding: 70px var(--page-padding);
    }
}

@media (max-width: 768px) {
    .identity-variants {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 70px;
    }

    .identity-guidelines {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .identity-main-logo {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .identity-variants {
        grid-template-columns: 1fr;
    }
}

/* HERO IMAGE */

.case-hero-image {
    width: 100%;
    overflow: hidden;
}

.case-hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* CASE STUDY — BRAND APPLICATIONS */

.case-applications {
    padding: 70px var(--page-padding);
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 24px;
}

.application-card {
    min-width: 0;
}

.application-feature {
    grid-column: span 2;
}

.application-image{
    background: #e9e1d2;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.application-feature .application-image {
    min-height: 460px;
}

.application-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
}

.application-card figcaption {
    margin-top: 18px;
}

.application-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.application-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 450px;
}

.application-card-final {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
}

@media (max-width: 768px) {
    .case-applications {
        padding: 70px 0;
    }

    .application-grid {
        gap: 35px 16px;
    }

    .application-feature .application-image {
        min-height: 300px;
    }

    .application-image {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .application-grid {
        grid-template-columns: 1fr;
    }

    .application-feature {
        grid-column: span 1;
    }

    .application-card-final {
    width: 100%;
    }
}


/* CASE STUDY — PROJECT REFLECTION */

.case-reflection {
    padding: 100px var(--page-padding) 120px;
    border-top: 1px solid rgba(233, 228, 218, 0.15);
}

.reflection-content {
    max-width: 750px;
    margin: 30px 0 60px;
}

.reflection-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 30px;
}

.reflection-content p {
    color: var(--color-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.back-to-work {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.back-to-work:hover {
    color: var(--color-text);
}

@media (max-width: 768px) {
    .case-reflection {
        padding: 70px var(--page-padding) 90px;
    }
}


/* CASE STUDY — DESIGN DEVELOPMENT */

.case-development {
    padding: 100px var(--page-padding);
}

.development-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px 24px;
}

.development-card {
    min-width: 0;
}

.development-large {
    grid-column: span 2;
}

.development-image {
    background: var(--color-surface);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.development-card-final {
    grid-column: 1 / -1;
    width: calc(50% - 12px);
    justify-self: center;
}

.development-large .development-image {
    min-height: 400px;
}

.development-image img {
    display: block;
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.development-card figcaption {
    margin-top: 18px;
    color: var(--color-text);
}

.development-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.development-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 450px;
}

@media (max-width: 768px) {
    .development-large .development-image {
        min-height: 280px;
    }

    .development-image {
        min-height: 220px;
    }
}

@media (max-width: 480px) {
    .development-grid {
        grid-template-columns: 1fr;
    }

    .development-large {
        grid-column: span 1;
    }

    .development-card-final {
    width: 100%;
}
}


/* ECLIPSE ANIME EXPO — COLOR SWATCHES */

.eclipse-swatch-1 {
    background: #171c23;
}

.eclipse-swatch-2 {
    background: #E57739;
}

.eclipse-swatch-3 {
    background: #5E649E;
}

.eclipse-swatch-4 {
    background: #DB5792;
}

.eclipse-swatch-5 {
    background: #34375F;
}


/* ECLIPSE ANIME EXPO — PROMOTIONAL MATERIALS */

.case-promotional {
    padding: 100px var(--page-padding);
}

/* INVISIBLE CAMPAIGN COLOR PALETTE */

.invisible-swatch-1 {
    background: #F8F6F1;
}

.invisible-swatch-2 {
    background: #A8B89A;
}

.invisible-swatch-3 {
    background: #3D4147;
}

/* INVISIBLE CAMPAIGN POSTCARD */

.postcard-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    align-items: center;
}

.postcard-pair img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* INVISIBLE CAMPAIGN POSTER */
.invisible-poster .application-image {
    padding: 15px;
}

.invisible-poster .application-image img {
    width: 100%;
    height: auto;
    max-height: 1000px;
    object-fit: contain;
}

/* SHINIGAMI CAMPAIGN COLOR PALETTE*/
.shinigami-swatch-1 {
    background: #F5F1E7;
}

.shinigami-swatch-2 {
    background: #F5BE5D;
}

.shinigami-swatch-3 {
    background: #FEF1C1;
}

.shinigami-swatch-4 {
    background: #202020;
}

.shinigami-swatch-5 {
    background: #E14949;
}

/* SHINIGAMI LOGO PRESENTATION */

.shinigami-logo-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 35px;
    align-items: stretch;
}

.shinigami-logo-layout .identity-primary .identity-image {
    min-height: 500px;
}

.shinigami-logo-layout .identity-variants {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.shinigami-logo-layout .identity-primary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ONE PIECE CARD DESIGN SYSTEM */

.card-system {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.card-system-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.card-system-number {
    min-width: 0;
}

.card-system .identity-image {
    background: var(--color-surface);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.card-system .identity-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.card-system figcaption {
    margin-top: 18px;
}

.card-system figcaption h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card-system figcaption p,
.card-system-heading > p:last-child {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 450px;
}

.card-system-heading {
    max-width: 650px;
    margin-bottom: 40px;
}

.card-system-heading h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.card-character-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px 30px;
}

.card-character {
    grid-column: span 2;
}

.card-character .identity-image {
    min-height: 300px;
    padding: 18px;
}

.card-character .identity-image img {
    max-height: 380px;
}

.card-character:nth-child(4) {
    grid-column: 2 / 4;
}

.card-character:nth-child(5) {
    grid-column: 4 / 6;
}


/* PLAYING CARD ILLUSTRATION COMPARISONS */

.card-comparisons {
    display: flex;
    flex-direction: column;
    gap: 65px;
}

.card-comparison h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.comparison-card {
    min-width: 0;
}

.comparison-card .development-image {
    min-height: 380px;
}

.comparison-card .development-image img {
    display: block;
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.comparison-card figcaption {
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .card-comparisons {
        gap: 45px;
    }

    .comparison-card .development-image {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-card .development-image {
        min-height: 250px;
    }
}


/* PLAYING CARD BACK */

.case-cardback {
    max-width: var(--container-width);
    margin: auto;
    padding: 100px var(--page-padding);
}

.cardback-feature {
    width: 100%;
}

.cardback-image {
    background: var(--color-surface);
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.cardback-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: contain;
}

.cardback-feature figcaption {
    margin-top: 18px;
}

.cardback-feature h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.cardback-feature p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 550px;
}

@media (max-width: 768px) {
    .case-cardback {
        padding: 70px var(--page-padding);
    }

    .cardback-image {
        min-height: 300px;
        padding: 25px;
    }
}

.case-packaging {
    max-width: var(--container-width);
    margin: auto;
    padding: 100px var(--page-padding);
}

.packaging-feature {
    width: 100%;
}

.packaging-image {
    background: var(--color-surface);
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.packaging-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.packaging-feature figcaption {
    margin-top: 18px;
}

.packaging-feature h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.packaging-feature p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 550px;
}

@media (max-width: 768px) {
    .case-packaging {
        padding: 70px var(--page-padding);
    }

    .packaging-image {
        padding: 20px;
    }
}

.case-final {
    max-width: var(--container-width);
    margin: auto;
    padding: 100px var(--page-padding);
}

.final-deck-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 45px 24px;
}

.final-deck-card {
    grid-column: span 2;
    min-width: 0;
}

.final-deck-image {
    background: var(--color-surface);
    min-height: 300px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-deck-image img {
    display: block;
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.final-deck-card figcaption {
    margin-top: 16px;
}

.final-deck-card h3 {
    font-size: 1.1rem;
}

.final-deck-card:nth-child(4) {
    grid-column: 2 / 4;
}

.final-deck-card:nth-child(5) {
    grid-column: 4 / 6;
}

@media (max-width: 768px) {
    .case-final {
        padding: 70px var(--page-padding);
    }

    .final-deck-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .final-deck-card,
    .final-deck-card:nth-child(4),
    .final-deck-card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .final-deck-image {
        min-height: 230px;
        padding: 12px;
    }

    .final-joker {
        width: 100%;
    }
}

.development-note {
    color: var(--color-muted);
    max-width: 750px;
    line-height: 1.8;
    margin-top: 45px;
}

.social-banner-pair {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 20px;
    align-items: center;
}

.social-banner-pair .application-image {
    min-width: 0;
}

.social-banner-pair img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.eclipse-applications .social-banner-pair .application-image {
    padding: 10px;
}

.eclipse-applications .application-feature {
    grid-column: 1 / -1;
}

.eclipse-applications .application-feature .application-image {
    min-height: 0;
    padding: 20px;
}

.eclipse-applications .application-feature img {
    display: block;
    width: 100%;
    max-width: 1100px;
    max-height: 750px;
    height: auto;
    margin: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .social-banner-pair {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: auto;
    }
}

@media (max-width: 768px) {
    .card-system {
        gap: 70px;
    }

    .card-system-feature {
        gap: 20px;
    }

    .card-system .identity-image {
        min-height: 300px;
    }

    .card-character-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .card-system-feature {
        grid-template-columns: 1fr;
    }

    .card-character-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-character .identity-image {
        min-height: 250px;
    }
}


@media (max-width: 768px) {
    .shinigami-logo-layout {
        grid-template-columns: 1fr;
    }

    .shinigami-logo-layout .identity-variants {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .shinigami-logo-layout .identity-variants {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE DESIGN */

@media (max-width: 768px) {

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .project-large,
    .project-small {
        grid-column: span 2;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

        /* NAVIGATION */

    .site-header {
        padding: 22px var(--page-padding);
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    /* HERO */

    .hero {
        padding: 100px var(--page-padding) 90px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 9vw, 4.5rem);
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

        /* ABOUT SECTION */

    .about-section {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 90px var(--page-padding);
    }

    .about-content {
        padding-top: 0;
    }

    .about-content .about-intro {
        font-size: 1.2rem;
    }

        /* FOOTER */

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

}

/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 16, 18, 0.95);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-display {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 20px;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: none;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--transition);
}

.lightbox-close {
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    padding: 15px;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 42, 48, 0.75);
    transition: background var(--transition), color var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-surface);
    color: var(--color-accent);
}

.lightbox-image {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.lightbox-image:hover {
    transform: scale(1.02);
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 50px 20px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
    }

    .lightbox-display {
        max-height: 75vh;
    }
}

.lightbox-image:focus {
    outline: none;
}

.lightbox-image:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 5px;
}