@font-face {
    font-family: "Bariol";
    src:
        local("Bariol"),
        local("Bariol Regular"),
        url("../assets/fonts/Bariol-Regular.woff2") format("woff2"),
        url("../assets/fonts/Bariol-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bariol";
    src:
        local("Bariol Bold"),
        url("../assets/fonts/Bariol-Bold.woff2") format("woff2"),
        url("../assets/fonts/Bariol-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bariol";
    src:
        local("Bariol Thin"),
        url("../assets/fonts/Bariol-Thin.woff2") format("woff2"),
        url("../assets/fonts/Bariol-Thin.woff") format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

:root {
    /* --bg: #f7f7f4; */
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #0f0f0f;
    --text-soft: #6e6e6e;
    --text-faint: #9a9a9a;
    --line: #e6e6e2;
    --deep: #111111;
    --glass: rgba(255, 255, 255, 0.42);
    --glass-line: rgba(255, 255, 255, 0.36);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.16);

    --max-w: 1920px;
    --pad: clamp(18px, 3vw, 52px);
    /* --pad: 100px; */
    --section-pad: clamp(72px, 10vw, 160px);

    --font-head: "Gowun Batang", serif;
    --font-body: "Bariol", "Manrope", sans-serif;

    --ease-main: 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
    letter-spacing: -0.01em;
}

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

.film-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.28;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(0, 0, 0, 0.4) 0.5px, transparent 0.5px),
        radial-gradient(circle at 75% 60%, rgba(0, 0, 0, 0.3) 0.4px, transparent 0.4px),
        radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.35) 0.45px, transparent 0.45px);
    background-size: 4px 4px, 3px 3px, 5px 5px;
    mix-blend-mode: multiply;
}

.section {
    min-height: 100vh;
    padding: clamp(48px, 6vh, 80px) var(--pad);
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    color: var(--text-faint);
}

.section-title {
    margin: 8px 0 0;
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-size: clamp(28px, 4vw, 56px);
}

.section-head {
    max-width: var(--max-w);
    margin: 0 auto 32px;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.split-line {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

body.loaded .split-line {
    opacity: 1;
    transform: translateY(0);
    transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: -3px;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: -20px;
    transition: width 0.35s cubic-bezier(0.19, 1, 0.22, 1),
                height 0.35s cubic-bezier(0.19, 1, 0.22, 1),
                top 0.35s cubic-bezier(0.19, 1, 0.22, 1),
                left 0.35s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.cursor.is-hovering .cursor-ring {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
    border-color: rgba(255, 255, 255, 0.8);
}

.cursor.is-hovering .cursor-dot {
    transform: scale(0);
}

@media (pointer: coarse) {
    .cursor { display: none; }
}
