/* ==========================================================
   hangul.name — soft serif editorial × watercolor artistry
   Palette:
     Hanji Warm     #faf5ed   (page bg)
     Brush Ink      #2a2218   (text)
     Peony Rose     #c97b84   (primary accent)
     Indigo Wash    #4a5d7a   (secondary accent)
     Celadon Mist   #9bbaa8   (tertiary accent)
     Ink Wash Light #d8d0c4   (dividers / muted)
     Paper White    #ffffff   (cards)
   ========================================================== */

:root {
    --hanji: #faf5ed;
    --ink: #2a2218;
    --peony: #c97b84;
    --indigo: #4a5d7a;
    --celadon: #9bbaa8;
    --wash-light: #d8d0c4;
    --paper: #ffffff;

    --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
    --sans: "Noto Sans KR", "Inter", system-ui, -apple-system, sans-serif;
    --korean: "Nanum Myeongjo", "Noto Serif KR", serif;

    --max: 1240px;
    --gutter: clamp(20px, 4vw, 56px);
    --line: var(--wash-light);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--hanji);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body { position: relative; min-height: 100vh; }

/* ----- Hanji paper texture ----- */
.paper-texture {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    mix-blend-mode: multiply;
}

/* ----- Decorative watercolor washes ----- */
.wash {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.wash-hero {
    width: 720px;
    height: 720px;
    top: -80px;
    right: -200px;
}
.wash-mid {
    width: 560px;
    height: 560px;
    top: 1100px;
    left: -180px;
}
.wash-lower {
    width: 700px;
    height: 700px;
    top: 2100px;
    right: -240px;
}
.wash-foot {
    width: 540px;
    height: 540px;
    top: 3000px;
    left: -160px;
}

main, .topnav, .footer { position: relative; z-index: 2; }

/* ==========================================================
   TOP NAV
   ========================================================== */
.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 30;
    padding: 22px var(--gutter);
    transition: background 400ms ease, backdrop-filter 400ms ease, padding 400ms ease;
}
.topnav.scrolled {
    background: rgba(250, 245, 237, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px var(--gutter);
    border-bottom: 1px solid rgba(216, 208, 196, 0.4);
}
.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.logo {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 22px;
    letter-spacing: 0.18em;
    color: var(--ink);
    text-decoration: none;
    text-transform: lowercase;
}
.logo .dot { color: var(--peony); }
.logo.small { font-size: 16px; }

.nav-links {
    display: flex;
    gap: 40px;
}
.nav-links a {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 300ms ease;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--peony);
    transition: right 400ms ease;
}
.nav-links a:hover { color: var(--peony); }
.nav-links a:hover::after { right: 0; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    min-height: 100vh;
    padding: 160px var(--gutter) 80px;
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.hero-text { padding-right: 20px; }

.hero-name {
    font-family: var(--korean);
    font-weight: 700;
    font-size: clamp(5rem, 13vw, 10.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    display: flex;
    gap: clamp(8px, 1.5vw, 24px);
    margin: 0 0 28px;
}
.hero-name .char {
    display: inline-block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1000ms ease, transform 1000ms ease;
    will-change: opacity, transform;
}
.hero-name .char.in { opacity: 1; transform: scale(1); }

.hero-subtitle {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    letter-spacing: 0.15em;
    color: var(--ink);
    text-transform: none;
    margin: 0 0 28px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 900ms ease 300ms, transform 900ms ease 300ms;
}
.hero-subtitle.in { opacity: 1; transform: translateY(0); }

.hero-tagline {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--ink);
    line-height: 1.6;
    max-width: 460px;
    margin: 0 0 26px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 900ms ease 600ms, transform 900ms ease 600ms;
}
.hero.ready .hero-tagline { opacity: 0.85; transform: translateY(0); }

.brushline {
    width: 220px;
    height: 8px;
    display: block;
    margin: 0 0 28px;
    opacity: 0;
    transition: opacity 900ms ease 800ms;
}
.brushline-wide { width: 320px; }
.hero.ready .brushline { opacity: 1; }

.hero-meta {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9a9080;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 900ms ease 1000ms;
}
.hero.ready .hero-meta { opacity: 0.9; }
.meta-bullet { color: var(--peony); }

.hero-art {
    position: relative;
    aspect-ratio: 7 / 8;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
}
.art-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-scrollcue {
    position: absolute;
    bottom: 32px;
    left: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #a9a092;
    opacity: 0;
    transition: opacity 900ms ease 1300ms;
}
.hero.ready .hero-scrollcue { opacity: 1; }
.cue-line {
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, var(--peony), transparent);
    animation: cuepulse 2400ms ease-in-out infinite;
}
@keyframes cuepulse {
    0%, 100% { transform: scaleY(1); opacity: 0.9; }
    50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ==========================================================
   JOURNEY / TIMELINE
   ========================================================== */
.journey {
    max-width: var(--max);
    margin: 80px auto 0;
    padding: 60px var(--gutter) 80px;
    position: relative;
}
.journey-head {
    max-width: 720px;
    margin: 0 auto 80px;
    text-align: left;
    padding-left: clamp(0px, 6vw, 80px);
}
.eyebrow {
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--peony);
    margin: 0 0 16px;
    font-weight: 400;
}
.journey-title,
.section-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 22px;
}

.timeline {
    position: relative;
    padding-left: clamp(40px, 8vw, 120px);
}
.timeline-line {
    position: absolute;
    left: clamp(20px, 4vw, 60px);
    top: 0;
    bottom: 0;
    width: 40px;
    height: 100%;
}

.step {
    position: relative;
    margin: 0 0 100px;
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: start;
    gap: 0;
}
.step:last-child { margin-bottom: 0; }

.marker {
    position: relative;
    width: 60px;
    height: 30px;
    margin-top: 30px;
    margin-left: -30px;
    display: flex;
    align-items: center;
}
.marker-circle {
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--peony);
    background: var(--hanji);
    transition: background 600ms ease, transform 500ms ease;
    z-index: 2;
    overflow: hidden;
}
.marker-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--peony) 0%, var(--peony) 0%, transparent 0%);
    transition: background 600ms ease;
}
.step.in-view .marker-circle::before {
    background: conic-gradient(from 0deg, var(--peony) 0%, var(--peony) 100%, var(--peony) 100%);
}
.step.in-view .marker-circle {
    transform: translateY(-50%) scale(1.1);
}

.marker-alt .marker-circle { border-color: var(--indigo); }
.step.in-view .marker-alt .marker-circle::before {
    background: conic-gradient(from 0deg, var(--indigo) 0%, var(--indigo) 100%, var(--indigo) 100%);
}

.marker-connector {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--wash-light);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 700ms ease 200ms;
}
.step.in-view .marker-connector { transform: scaleX(1); }

.step-body {
    transform: translateX(20px);
    opacity: 0;
    transition: opacity 700ms ease, transform 700ms ease;
    margin-left: 70px;
    max-width: 640px;
}
.step.in-view .step-body { opacity: 1; transform: translateX(0); }

.step-body.card {
    background: var(--paper);
    padding: 44px 48px 40px;
    border-radius: 2px;
    box-shadow: 0 1px 0 rgba(42, 34, 24, 0.04),
                0 18px 40px -28px rgba(42, 34, 24, 0.18);
    border: 1px solid rgba(216, 208, 196, 0.5);
    width: 580px;
    max-width: 100%;
}
.step-body.open {
    background: transparent;
    padding: 16px 0;
    width: 720px;
    max-width: 100%;
}

.step-meta {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #a59b8c;
}
.step-num {
    font-size: 14px;
    color: var(--peony);
    font-weight: 500;
}
.step-kicker { color: var(--indigo); letter-spacing: 0.22em; }

.step-body h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--ink);
}
.step-body p {
    margin: 0 0 16px;
    color: var(--ink);
    opacity: 0.86;
}

.featurettes {
    list-style: none;
    padding: 0;
    margin: 24px 0 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.featurettes li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 14px;
    border: 1px solid var(--wash-light);
    background: rgba(255, 255, 255, 0.4);
}
.feat-glyph {
    font-family: var(--korean);
    font-size: 32px;
    color: var(--peony);
    line-height: 1;
}
.featurettes li span:last-child {
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--ink);
    opacity: 0.78;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--serif);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--peony);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 300ms ease, color 300ms ease;
}
.text-link:hover {
    color: var(--ink);
    border-bottom-color: var(--peony);
}

.quietnote {
    font-family: var(--serif);
    font-style: italic;
    color: var(--indigo);
    border-left: 2px solid var(--indigo);
    padding-left: 16px;
    margin: 18px 0;
    opacity: 0.85;
}

.hanja-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 12px;
}
.hanja-tile {
    background: var(--paper);
    border: 1px solid var(--wash-light);
    padding: 22px 14px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 400ms ease, transform 500ms ease, background 400ms ease;
}
.hanja-tile:hover {
    border-color: var(--peony);
    transform: translateY(-2px);
    background: #fffefb;
}
.hanja-glyph {
    font-family: var(--korean);
    font-size: 36px;
    line-height: 1;
    color: var(--ink);
}
.hanja-han {
    font-family: var(--korean);
    font-size: 16px;
    color: var(--peony);
    margin-top: 4px;
}
.hanja-en {
    font-family: var(--serif);
    font-style: italic;
    font-size: 13px;
    color: var(--ink);
    opacity: 0.7;
    letter-spacing: 0.04em;
}

/* ==========================================================
   NAMES SECTION
   ========================================================== */
.names {
    max-width: var(--max);
    margin: 0 auto;
    padding: 80px var(--gutter);
    position: relative;
}
.section-head {
    max-width: 680px;
    margin: 0 auto 60px;
    padding: 0 clamp(0px, 4vw, 40px);
}
.section-lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink);
    opacity: 0.78;
    line-height: 1.6;
    margin: 0;
    max-width: 540px;
}

.namecards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    margin-top: 40px;
}

.namecard {
    position: relative;
    background: var(--paper);
    margin: 0;
    padding: 56px 48px 44px;
    border: 0.5px solid var(--wash-light);
    transition: border-color 300ms ease, box-shadow 400ms ease, transform 500ms ease;
    will-change: transform;
    overflow: hidden;
}
.namecard:hover,
.namecard.touched {
    border-color: var(--peony);
    box-shadow: 0 30px 60px -40px rgba(201, 123, 132, 0.45),
                0 1px 0 rgba(42, 34, 24, 0.05);
    transform: translateY(-2px);
}
.namecard-corner {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 56px;
    height: 56px;
    pointer-events: none;
}
.lattice-rotate {
    transform-origin: 50% 50%;
    transform-box: fill-box;
    transition: transform 400ms ease;
}
.namecard:hover .lattice-rotate,
.namecard.touched .lattice-rotate {
    transform: rotate(45deg);
}

.namecard-name {
    font-family: var(--korean);
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 1;
    color: var(--ink);
    margin: 0 0 14px;
    transition: text-shadow 400ms ease;
}
.namecard:hover .namecard-name,
.namecard.touched .namecard-name {
    text-shadow: 0 0 22px rgba(201, 123, 132, 0.28);
}
.namecard-roman {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    color: var(--peony);
    margin: 0 0 22px;
}
.namecard-line {
    width: 56px;
    height: 1px;
    background: var(--wash-light);
    margin-bottom: 22px;
}
.namecard-meaning {
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.namecard-meaning > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: baseline;
    gap: 14px;
}
.namecard-meaning dt {
    font-family: var(--korean);
    font-size: 15px;
    color: var(--indigo);
    margin: 0;
}
.namecard-meaning dd {
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 15px;
    color: var(--ink);
    opacity: 0.82;
}
.namecard-note {
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
    opacity: 0.7;
    margin: 14px 0 0;
    border-top: 1px dashed var(--wash-light);
    padding-top: 14px;
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
    max-width: var(--max);
    margin: 60px auto 0;
    padding: 80px var(--gutter) 100px;
    position: relative;
}
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}
.about-text p {
    margin: 0 0 16px;
    color: var(--ink);
    opacity: 0.86;
    max-width: 520px;
}
.about-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.about-list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--ink);
}
.about-bullet {
    width: 8px;
    height: 8px;
    background: var(--celadon);
    border-radius: 50%;
    flex-shrink: 0;
    transform: translateY(2px);
}
.about-list li:nth-child(2) .about-bullet { background: var(--peony); }
.about-list li:nth-child(3) .about-bullet { background: var(--indigo); }

.about-aside {
    position: sticky;
    top: 120px;
    background: var(--paper);
    padding: 44px 40px;
    border: 0.5px solid var(--wash-light);
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}
.aside-quote {
    position: relative;
    padding-left: 8px;
}
.quote-mark {
    position: absolute;
    top: -28px;
    left: -10px;
    font-family: var(--serif);
    font-size: 90px;
    color: var(--peony);
    opacity: 0.35;
    line-height: 1;
}
.aside-quote p {
    font-family: var(--korean);
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.65;
    margin: 0 0 8px;
}
.quote-roman {
    font-family: var(--serif) !important;
    font-style: italic;
    font-size: 0.98rem !important;
    color: var(--indigo) !important;
    opacity: 0.85;
}
.quote-attr {
    display: block;
    margin-top: 14px;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #a59b8c;
}
.aside-stamp {
    width: 80px;
    height: 80px;
    align-self: flex-end;
    transform: rotate(-6deg);
    opacity: 0.9;
}

/* ==========================================================
   CLOSING
   ========================================================== */
.closing {
    padding: 100px var(--gutter) 120px;
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
    position: relative;
}
.closing-inner {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.closing-name {
    font-family: var(--korean);
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
    margin: 0 0 18px;
    display: flex;
    gap: 12px;
}
.closing-name .char {
    display: inline-block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1200ms ease, transform 1200ms ease;
}
.closing-name .char.in { opacity: 1; transform: scale(1); }
.closing-roman {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--indigo);
    margin: 0 0 24px;
}
.closing-cta {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
    opacity: 0.85;
    margin: 18px 0 16px;
}
.closing-link {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: var(--peony);
    text-decoration: none;
    border-bottom: 1px solid var(--peony);
    padding: 4px 2px;
    transition: color 300ms ease, border-color 300ms ease, background 300ms ease;
}
.closing-link:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    border-top: 1px solid var(--wash-light);
    padding: 30px var(--gutter);
    background: rgba(255, 255, 255, 0.3);
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.7;
}
.footer-mid { font-style: italic; text-transform: none; letter-spacing: 0.04em; opacity: 0.7; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
    .hero { padding-top: 130px; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-art {
        max-width: 360px;
        margin: 0 auto;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-aside { position: static; }
    .namecards { grid-template-columns: 1fr; }
    .step-body.card,
    .step-body.open { width: 100%; }
    .step-body { margin-left: 50px; }
    .featurettes { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .hanja-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    :root { --gutter: 18px; }
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 12px; letter-spacing: 0.18em; }
    .logo { font-size: 18px; letter-spacing: 0.14em; }
    .hero { padding-top: 110px; padding-bottom: 60px; }
    .timeline { padding-left: 30px; }
    .timeline-line { left: 8px; }
    .marker { margin-left: -22px; }
    .marker-connector { width: 30px; }
    .step-body { margin-left: 30px; }
    .step-body.card { padding: 28px 22px; }
    .featurettes { grid-template-columns: 1fr 1fr 1fr; }
    .hanja-grid { grid-template-columns: 1fr 1fr; }
    .namecard { padding: 44px 28px 32px; }
    .namecard-meaning > div { grid-template-columns: 70px 1fr; gap: 10px; }
    .hero-scrollcue { display: none; }
    .footer-inner { justify-content: center; text-align: center; }
}
