:root {
    /* Fonts: Fraunces, Noto Serif KR, Source Serif 4" (Google Fonts); Interactions:** IntersectionObserver on the hero section with threshold array `[0 IntersectionObserver. The vine's path follows a gentle S-curve. */
    --warm-parchment: #f5eed6;
    --golden-cream: #f7f0e3;
    --burnt-umber: #2c1810;
    --walnut: #5c4033;
    --raw-honey: #c8943e;
    --autumn-leaf: #a85d32;
    --deep-loam: #1a120b;
    --pale-saffron: #ecdbb4;
    --ratio: 1.618rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--warm-parchment);
    color: var(--burnt-umber);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 350;
    line-height: 1.72;
    overflow-x: hidden;
}

.scroll-wash {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(245, 238, 214, var(--wash-top, 1)) 0%, rgba(247, 240, 227, var(--wash-mid, .42)) 48%, rgba(236, 219, 180, var(--wash-low, .18)) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse at 18% 12%, rgba(200, 148, 62, 0.12), transparent 28%),
        radial-gradient(ellipse at 82% 84%, rgba(168, 93, 50, 0.10), transparent 31%);
}

p {
    max-width: 65ch;
}

h1,
h2,
.logotype {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
}

h1,
h2 {
    color: var(--burnt-umber);
    letter-spacing: 0.02em;
    margin: 0;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 8rem);
    line-height: 0.92;
    font-weight: 700;
    font-variation-settings: "WONK" 1, "SOFT" 100, "opsz" 144;
    transition: font-variation-settings 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s ease;
}

h1:hover {
    font-variation-settings: "WONK" 0, "SOFT" 0, "opsz" 144;
    transform: translateY(-2px);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 700;
}

.caption,
.annotation {
    font-family: "Caveat", "Comic Sans MS", "Segoe Print", cursive;
    font-weight: 400;
    color: var(--walnut);
}

.hero {
    --letterbox-height: 8vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    display: block;
    height: var(--letterbox-height);
    background: var(--deep-loam);
    flex-shrink: 0;
    transition: height 0.6s ease;
}

.hero-frame {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: 0 clamp(2rem, 6vw, 6rem);
    background: linear-gradient(135deg, #f5eed6 0%, #f7f0e3 50%, #ecdbb4 100%);
    position: relative;
}

.hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 13% 18%, rgba(200, 148, 62, 0.18), transparent 22%),
        linear-gradient(110deg, rgba(255,255,255,0.18), transparent 42%);
    pointer-events: none;
}

.logotype {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin: clamp(1.1rem, 2vh, 2rem) 0 0;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 0.78;
    letter-spacing: 0.02em;
    font-variation-settings: "WONK" 1, "SOFT" 100, "opsz" 144;
    transition: font-variation-settings 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.logotype:hover {
    font-variation-settings: "WONK" 0, "SOFT" 0, "opsz" 144;
    transform: translateY(-4px);
}

.hangul-mark {
    grid-column: 1;
    grid-row: 2 / 4;
    justify-self: start;
    font-family: "Noto Serif KR", "Source Han Serif KR", Georgia, serif;
    font-size: clamp(8rem, 18vw, 16rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: var(--burnt-umber);
    text-shadow: 0 18px 40px rgba(26, 18, 11, 0.10);
    z-index: 1;
}

.hero-statement {
    grid-column: 2 / 4;
    grid-row: 2;
    align-self: center;
    z-index: 1;
}

.hero-statement .caption {
    margin: 0 0 var(--ratio);
    opacity: 0.76;
    font-size: clamp(1rem, 1.5vw, 1.45rem);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-statement .caption:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.hero-copy {
    color: var(--walnut);
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
    margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

.hero-leaf {
    grid-column: 3;
    grid-row: 1 / 4;
    justify-self: center;
    width: clamp(8rem, 16vw, 15rem);
    opacity: 0.84;
    filter: drop-shadow(0 18px 24px rgba(26, 18, 11, 0.11));
    animation: sway 6s ease-in-out infinite;
    transform-origin: 50% 80%;
    z-index: 1;
}

@keyframes sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.market-scene {
    min-height: 80vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(4rem, 8vh, 8rem) clamp(2rem, 6vw, 6rem);
    background:
        radial-gradient(circle at 88% 18%, rgba(200, 148, 62, 0.12), transparent 18rem),
        linear-gradient(180deg, #f5eed6 0%, #f7f0e3 100%);
    position: relative;
}

.market-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 12% 22%, rgba(44, 24, 16, 0.04) 0 1px, transparent 2px),
        radial-gradient(ellipse at 74% 68%, rgba(168, 93, 50, 0.06) 0 2px, transparent 3px);
    background-size: 7rem 9rem, 11rem 8rem;
    pointer-events: none;
}

.value-card {
    position: relative;
    background: #f7f0e3;
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(26, 18, 11, 0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    z-index: 1;
}

.value-card:hover {
    transform: translateY(-8px) rotate(0deg);
    box-shadow: 0 20px 40px rgba(26, 18, 11, 0.12);
}

.card-one {
    grid-column: 1 / 7;
    grid-row: 1;
    transform: rotate(-2deg);
}

.card-two {
    grid-column: 6 / 11;
    grid-row: 2;
    transform: rotate(0deg);
}

.card-three {
    grid-column: 2 / 6;
    grid-row: 3;
    transform: rotate(1deg);
}

.sketch-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.corner-leaf,
.small-icon {
    position: absolute;
    right: clamp(1rem, 2vw, 1.8rem);
    top: clamp(1rem, 2vw, 1.8rem);
    width: clamp(3.6rem, 6vw, 5.8rem);
    height: auto;
}

.pine {
    right: clamp(1.1rem, 2.5vw, 2.4rem);
}

.annotation {
    display: inline-block;
    margin: 0 0 var(--ratio);
    font-size: clamp(0.85rem, 1.1vw, 1.1rem);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .annotation {
    opacity: 1;
    transform: translateY(-4px);
}

.value-card h2 {
    max-width: 10ch;
    margin-bottom: var(--ratio);
}

.value-card p:not(.annotation) {
    margin: 0 0 var(--ratio);
    color: var(--walnut);
}

.value-card p:last-child {
    margin-bottom: 0;
}

.ledger {
    min-height: 60vh;
    position: relative;
    display: flex;
    justify-content: center;
    padding: clamp(4rem, 8vh, 8rem) clamp(2rem, 6vw, 6rem);
    background: #f7f0e3;
    overflow: hidden;
}

.ledger::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30vw;
    background: linear-gradient(90deg, rgba(236, 219, 180, 0.62), transparent);
    pointer-events: none;
}

.ledger-vine {
    position: absolute;
    left: clamp(1rem, 5vw, 4rem);
    top: clamp(2rem, 4vh, 4rem);
    bottom: clamp(2rem, 4vh, 4rem);
    height: calc(100% - clamp(4rem, 8vh, 8rem));
    width: min(9vw, 7.5rem);
    overflow: visible;
}

.vine-line {
    stroke-dasharray: var(--vine-length, 1000);
    stroke-dashoffset: var(--vine-offset, 1000);
}

.vine-leaf {
    fill: #a85d32;
    opacity: 0;
    stroke: #2c1810;
    stroke-width: 1.2;
    transition: opacity 0.6s ease 0.2s;
}

.ledger-content {
    width: min(100%, 720px);
    position: relative;
    z-index: 1;
}

.section-heading {
    margin-bottom: clamp(2rem, 4vh, 4rem);
}

.section-heading .caption {
    margin: 0 0 0.6rem;
    font-size: clamp(1rem, 1.3vw, 1.3rem);
}

.ledger-entry {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    margin-bottom: clamp(3rem, 6vh, 6rem);
}

.ledger-entry:last-child {
    margin-bottom: 0;
}

.entry-num {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--raw-honey);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    font-weight: 900;
    line-height: 1;
    border: 1.5px solid rgba(200, 148, 62, 0.45);
    border-radius: 999px;
    background: rgba(245, 238, 214, 0.48);
}

.entry-num.one { transform: rotate(-3deg); }
.entry-num.two { transform: rotate(2deg); }
.entry-num.three { transform: rotate(-1deg); }
.entry-num.four { transform: rotate(3deg); }

.leaf-divider {
    width: min(45vw, 180px);
    height: auto;
    display: block;
    margin: 0 0 0.7rem;
}

.ledger-entry p {
    margin: 0;
    color: var(--walnut);
}

.closing {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 8vh, 8rem) clamp(2rem, 6vw, 6rem);
    background: linear-gradient(180deg, #f7f0e3 0%, #ecdbb4 100%);
    overflow: hidden;
}

.closing-watermark {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    font-family: "Noto Serif KR", "Source Han Serif KR", Georgia, serif;
    font-size: clamp(20rem, 40vw, 50rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(44, 24, 16, 0.06);
    filter: blur(0.2px);
}

.closing-content {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    text-align: center;
}

.closing-content .caption {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.closing-content h2 {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.closing-content p:last-child {
    margin: 0 auto;
    color: var(--walnut);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
}

.closing-vine {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(1rem, 3vh, 2rem);
    width: 100%;
    height: clamp(5rem, 12vh, 8rem);
}

@media (max-width: 768px) {
    .hero {
        --letterbox-height: 4vh;
    }

    .hero-frame {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        padding: clamp(1.5rem, 5vw, 2.5rem);
    }

    .logotype,
    .hangul-mark,
    .hero-statement {
        grid-column: 1;
        justify-self: center;
    }

    .logotype { grid-row: 1; }
    .hangul-mark { grid-row: 2; }
    .hero-statement { grid-row: 3; }

    .hero-leaf {
        display: none;
    }

    h1 {
        font-size: clamp(2.8rem, 14vw, 5rem);
    }

    .market-scene {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .card-one,
    .card-two,
    .card-three {
        grid-column: 1;
        transform: none;
    }

    .card-one { grid-row: 1; }
    .card-two { grid-row: 2; }
    .card-three { grid-row: 3; }

    .ledger-vine {
        left: 6vw;
        right: 6vw;
        top: auto;
        bottom: 1.25rem;
        width: 88vw;
        height: 4.5rem;
        transform: rotate(-90deg) translateX(-40%);
        transform-origin: left center;
        opacity: 0.45;
    }

    .ledger-entry {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}
