@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    /* High-Fidelity Neutral Palette */
    --tough-black: #010204;
    /* CMYK C88 M78 Y61 K96 approximation */
    --footer-bg: rgba(1, 2, 4, 0.9);
    --bg-neutral: #F9F9F7;
    --text-main: #111111;
    --text-muted: #666666;
    --accent-gold: #C5A982;
    --line: rgba(0, 0, 0, 0.08);
    --white: #FFFFFF;

    /* Typography — Pretendard Only */
    --font-sans: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', Arial, sans-serif;

    /* Spacing & Motion */
    --container: 1400px;
    --gutter: 60px;
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-neutral);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 7vw, 5rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 600;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(249, 249, 247, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px var(--gutter);
    border-bottom: 1px solid var(--line);
}

.logo img {
    height: 35px;
    filter: grayscale(1) contrast(1.2);
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    opacity: 1;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    /* Above mobile menu overlay */
    padding: 0;
}

.mobile-toggle .m-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-main);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Header Override */
@media (max-width: 900px) {
    .mobile-toggle {
        display: flex;
    }

    #main-header nav {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100vw;
        height: 100vh;
        background: var(--bg-neutral);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 2000;
        border-left: 1px solid var(--line);
    }

    #main-header nav.open {
        right: 0;
    }

    #main-header nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    #main-header nav a {
        font-size: 1.5rem;
        opacity: 1;
        letter-spacing: 0.15em;
        color: var(--text-main);
    }

    #main-header nav a:hover {
        color: var(--accent-gold);
    }

    /* Change hamburger to 'X' */
    .mobile-toggle.open .m-line:nth-child(1) {
        transform: translateY(7.25px) rotate(45deg);
    }

    .mobile-toggle.open .m-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.open .m-line:nth-child(3) {
        transform: translateY(-7.25px) rotate(-45deg);
    }
}

/* ========================================
   MAGAZINE COVER — index.html
======================================== */

/* Full-viewport cover layout */
.cover-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cover grid: left headline + right deck, fills remaining height */
.cover-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: 1fr auto;
    gap: 0;
    padding: 140px var(--gutter) 60px;
    position: relative;
}

/* LEFT: Main headline column */
.cover-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.cover-headline {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-main);
    word-break: keep-all;
    overflow-wrap: break-word;
    max-width: 14ch;
}

/* RIGHT: Deck / Caption column */
.cover-deck {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
    padding-left: 40px;
    border-left: 1px solid var(--line);
}

.deck-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 8px;
}

.deck-body {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.7;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* BOTTOM: Tagline row spanning both columns */
.cover-tagline-row {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.cover-tagline {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .cover-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 120px 30px 40px;
    }

    .cover-deck {
        grid-column: 1;
        grid-row: 2;
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .cover-left {
        padding-bottom: 20px;
    }

    .cover-tagline-row {
        grid-row: 3;
    }
}

/* Page Components */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 180px var(--gutter) 100px;
}

.about-section-block {
    margin-bottom: 120px;
}

.section-title-line {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 10px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.block-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
    max-width: 800px;
    margin-bottom: 20px;
    word-break: keep-all;
}

.block-subtitle {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 30px 0 15px;
    font-style: normal;
    letter-spacing: -0.01em;
}

.block-list {
    list-style: none;
    margin-bottom: 30px;
}

.block-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.block-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.block-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.block-table td:first-child {
    width: 180px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Logo Grid */
.logo-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.logo-card {
    padding: 40px;
    background: white;
    text-align: center;
    border: 1px solid var(--line);
    transition: var(--transition);
}

.logo-card:hover {
    border-color: var(--text-main);
}

.logo-card img {
    max-width: 100%;
    margin-bottom: 20px;
}

.logo-card span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Services (Kind Design Style) */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.kind-service-block {
    grid-column: span 6;
    margin-bottom: 100px;
    border-top: 1px solid var(--text-main);
    padding-top: 30px;
}

.kind-title {
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    font-style: normal;
    letter-spacing: -0.02em;
}

.kind-body {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.kind-list {
    list-style: none;
    margin-top: 20px;
}

.kind-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.kind-list li::before {
    content: '→';
    position: absolute;
    left: 0;
}

/* Project Page Tabs & Pillars */
.project-tabs {
    justify-content: flex-start;
    margin-bottom: 80px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.08em;
    margin-right: 40px;
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition);
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    opacity: 1;
    border-bottom-color: var(--text-main);
}

.pillar-description-block {
    margin-bottom: 60px;
}

.pillar-brand-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.pillar-main-title {
    font-size: 3rem;
    margin: 10px 0 20px;
}

.pillar-desc-verbatim {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.bucket-group {
    margin-bottom: 60px;
    border-left: 1px solid var(--line);
    padding-left: 30px;
}

.bucket-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.project-mini-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px;
}

.p-item {
    padding: 15px;
    background: white;
    border: 1px solid var(--line);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.p-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-gold);
}

.p-page {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--accent-gold);
    min-width: 40px;
}

/* Archive Verbatim P78 */
.archive-section-verbatim {
    margin-top: 150px;
    padding: 80px 0;
    border-top: 1px solid var(--text-main);
}

.archive-p78-header h3 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.archive-p78-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    list-style: none;
}

.archive-p78-list li {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Page Layout */
.contact-table-main {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}

.contact-table-main th,
.contact-table-main td {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.contact-table-main th {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 250px;
}

.contact-table-main td {
    font-size: 1.4rem;
    font-weight: 300;
}

.insta-link-wrapper {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.insta-link-wrapper span {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.insta-link-wrapper a {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

/* Footer — 4 lines, uniform style */
footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px var(--gutter);
}

.footer-line {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.7);
}

/* Transition Utilites */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .asymmetric-grid .kind-service-block {
        grid-column: span 12;
    }

    .hero-headline {
        font-size: 3.5rem;
    }
}