/* yesang.xyz - Dark neubrutalism z-pattern with magnetic cursor */

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

:root {
    --black: #1c1a16;
    --dark-bg: #2a2620;
    --dark-brown: #3a3028;
    --mid-brown: #5a4838;
    --warm-brown: #6a5a4a;
    --muted: #8a7a6a;
    --gold: #a08060;
    --parchment: #c8bea8;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--parchment);
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

/* Cursor follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    opacity: 0.7;
}

.cursor-follower.active {
    width: 40px;
    height: 40px;
    border-color: var(--parchment);
    opacity: 1;
}

/* Sections */
.section {
    position: relative;
}

/* Classification Header */
.classification-header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}

.classification-stamp {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.classification-stamp.visible {
    opacity: 1;
}

.stamp-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 12px;
}

.stamp-divider {
    width: 40px;
    height: 1px;
    background: var(--warm-brown);
}

.stamp-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.hero-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--parchment);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.hero-domain.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-hangul {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 40px;
    opacity: 0;
    transition: opacity 1s ease 0.6s;
}

.hero-hangul.visible {
    opacity: 0.7;
}

.gradient-mesh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.gradient-mesh {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* Z-pattern sections */
.z-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 24px;
}

.z-left .section-content {
    margin-left: 5%;
    max-width: 55%;
}

.z-right .section-content {
    margin-left: 40%;
    max-width: 55%;
}

.section-marker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.marker-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.marker-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--parchment);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-body {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--muted);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section-body.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Circuit lines */
.circuit-line {
    margin-top: 32px;
    height: 40px;
}

.circuit-line svg {
    width: 100%;
    height: 100%;
}

/* Evidence Grid */
.evidence-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.evidence-item {
    border-left: 2px solid var(--mid-brown);
    padding-left: 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.evidence-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.evidence-index {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 6px;
}

.evidence-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    color: var(--muted);
}

/* Terminal Section */
.terminal-section {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.terminal-inner {
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--mid-brown);
    background-color: var(--dark-bg);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--mid-brown);
    background-color: var(--dark-brown);
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--warm-brown);
}

.terminal-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-left: 8px;
}

.terminal-body {
    padding: 24px;
    min-height: 120px;
}

.terminal-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gold);
}

.terminal-cursor {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--gold);
    animation: cursorBlink 1s step-end infinite;
    display: inline;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Colophon */
.colophon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 60px 24px;
    border-top: 1px solid var(--mid-brown);
}

.colophon-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.colophon-class {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--warm-brown);
}

.colophon-timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 300;
    color: var(--dark-brown);
    letter-spacing: 0.05em;
}

/* Gradient mesh animation */
@keyframes meshBreathe {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3px, -2px); }
    50% { transform: translate(-2px, 4px); }
    75% { transform: translate(4px, 2px); }
}

#mesh-blob-1 {
    animation: meshBreathe 12s ease-in-out infinite;
}

#mesh-blob-2 {
    animation: meshBreathe 12s ease-in-out infinite 3s;
}

/* Responsive */
@media (max-width: 768px) {
    .z-left .section-content,
    .z-right .section-content {
        margin-left: 5%;
        max-width: 90%;
    }
    body {
        cursor: auto;
    }
    .cursor-follower {
        display: none;
    }
}
