@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap");
@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css");

:root {
    --bg: #f4e8d8;
    --bg-deep: #ebdcc7;
    --surface: rgba(255, 250, 242, 0.9);
    --surface-solid: #fffaf2;
    --ink: #16120f;
    --muted: #645849;
    --line: #1b1713;
    --accent: #e48d49;
    --accent-soft: #f0bf83;
    --mint: #d7e8dd;
    --peach: #f4c2a2;
    --cream: #f8f1e8;
    --shadow: 10px 10px 0 rgba(22, 18, 15, 0.95);
    --shadow-soft: 0 20px 45px rgba(64, 43, 24, 0.16);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --content-width: 1240px;
    --ease: 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "SUIT", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.55), transparent 28%),
        radial-gradient(circle at 85% 8%, rgba(228, 141, 73, 0.16), transparent 24%),
        linear-gradient(180deg, #f8efe3 0%, var(--bg) 45%, var(--bg-deep) 100%);
    line-height: 1.65;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(22, 18, 15, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 18, 15, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 72%);
    pointer-events: none;
    z-index: -3;
}

.page-noise {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(22, 18, 15, 0.08) 0.6px, transparent 0.6px),
        radial-gradient(rgba(22, 18, 15, 0.04) 0.5px, transparent 0.5px);
    background-position: 0 0, 16px 16px;
    background-size: 32px 32px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -2;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
    animation: drift 16s ease-in-out infinite alternate;
}

.orb-a {
    top: 8%;
    right: -4rem;
    width: 19rem;
    height: 19rem;
    background: rgba(228, 141, 73, 0.22);
}

.orb-b {
    bottom: 14%;
    left: -3rem;
    width: 16rem;
    height: 16rem;
    background: rgba(145, 171, 153, 0.24);
    animation-delay: -5s;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 18px 0;
    transition: padding var(--ease);
}

.site-header.is-scrolled {
    padding-top: 10px;
}

.site-nav {
    width: min(calc(100% - 16px), var(--content-width));
    margin: 0 auto;
    padding: 16px 22px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.82);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 8px 20px rgba(50, 31, 15, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 2px solid var(--line);
    background: var(--ink);
    color: #fff3e3;
    display: grid;
    place-items: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    font-weight: 700;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.brand-copy strong {
    font-size: 0.92rem;
    letter-spacing: 0.16em;
}

.brand-copy span {
    font-size: 0.82rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem 1.5rem;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.22rem;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--ink);
    transition: transform var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.site-main {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
    padding-bottom: 4rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.74fr);
    gap: 2rem;
    align-items: start;
    min-height: calc(100vh - 120px);
    padding: 3.4rem 0 2.2rem;
}

.hero-copy {
    padding-top: 4rem;
}

.eyebrow,
.card-kicker,
.section-kicker,
.panel-label {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.8rem, 10vw, 7.25rem);
    line-height: 0.93;
    letter-spacing: -0.06em;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 9ch;
}

.hero h1 span {
    color: var(--accent);
}

.hero h1 em {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero-lead {
    max-width: 42rem;
    margin: 1.8rem 0 0;
    font-size: 1.14rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    border: 2px solid var(--line);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-3px);
}

.button-dark {
    background: var(--ink);
    color: #fff5ea;
    box-shadow: 0 10px 24px rgba(22, 18, 15, 0.16);
}

.button-light {
    background: rgba(255, 250, 242, 0.76);
}

.hero-panel {
    position: relative;
    padding-top: 0.8rem;
    display: grid;
    gap: 1rem;
}

.panel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.panel-card {
    padding: 1.4rem;
    border: 2px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.panel-card-dark {
    background: var(--ink);
    color: #fff5ea;
    box-shadow: var(--shadow);
}

.panel-card-dark .panel-label,
.panel-card-dark p {
    color: rgba(255, 245, 234, 0.78);
}

.panel-card-dark h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 0.98;
    color: #fff8ee;
}

.panel-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.panel-card li + li {
    margin-top: 0.55rem;
}

.tilt-left {
    transform: rotate(-2.5deg);
}

.tilt-right {
    transform: rotate(2deg);
}

.accent-card {
    background: var(--accent-soft);
}

.memo-card {
    background: rgba(255, 250, 242, 0.72);
}

.stat-value {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    line-height: 0.92;
    font-weight: 800;
}

.stat-label {
    margin: 0.4rem 0 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.ticker {
    overflow: hidden;
    border-block: 2px solid var(--line);
    background: rgba(255, 248, 239, 0.72);
    margin: 1rem 0 6rem;
}

.ticker-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 1rem 0;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: tickerMove 24s linear infinite;
}

.ticker-track span {
    white-space: nowrap;
}

.section-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 2rem;
    padding: 0 0 6rem;
}

.section-side {
    position: sticky;
    top: 112px;
    align-self: start;
}

.section-side h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.section-side p:last-child {
    margin: 0;
    color: var(--muted);
}

.section-main {
    display: grid;
    gap: 1.4rem;
}

.story-card,
.experience-feature,
.stack-card,
.closing-card {
    border: 2px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    padding: 1.65rem;
    box-shadow: var(--shadow-soft);
}

.intro-card {
    background: rgba(255, 250, 242, 0.95);
}

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

.principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.principle-card {
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    padding: 1.4rem;
    box-shadow: 8px 8px 0 rgba(22, 18, 15, 0.1);
}

.principle-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    line-height: 1.08;
}

.experience-feature {
    background: rgba(255, 248, 239, 0.92);
}

.experience-feature.subtle {
    background: rgba(226, 237, 229, 0.72);
}

.experience-head {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.4rem;
}

.experience-head h3 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.experience-role,
.experience-note,
.experience-inline,
.experience-summary p,
.project-card p,
.closing-card p {
    color: var(--muted);
}

.experience-note {
    max-width: 18rem;
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.experience-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.experience-summary {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(22, 18, 15, 0.04);
}

.experience-summary ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

.timeline {
    display: grid;
    gap: 0.75rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(27, 23, 19, 0.12);
    background: rgba(255, 255, 255, 0.42);
}

.timeline-item span {
    font-weight: 700;
    color: var(--ink);
}

.timeline-item strong {
    font-size: 1.02rem;
}

.experience-inline {
    margin: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.project-card {
    min-height: 100%;
    border: 2px solid var(--line);
    border-radius: calc(var(--radius-xl) + 2px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform var(--ease), box-shadow var(--ease);
    box-shadow: var(--shadow-soft);
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: 14px 14px 0 rgba(22, 18, 15, 0.86);
}

.project-card-dark {
    background: var(--ink);
    color: #fff9f0;
}

.project-card-dark p,
.project-card-dark li,
.project-card-dark .card-kicker {
    color: rgba(255, 249, 240, 0.8);
}

.project-card-cream {
    background: var(--cream);
}

.project-card-peach {
    background: rgba(244, 194, 162, 0.5);
}

.project-card-mint {
    background: rgba(215, 232, 221, 0.74);
}

.project-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.project-top h3,
.stack-card h3,
.closing-card h3 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.project-top span {
    font-size: 1.7rem;
    font-weight: 700;
}

.project-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.project-card li + li {
    margin-top: 0.45rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
}

.chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1.8px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    font-weight: 700;
}

.project-card-dark .chip-row span {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 249, 240, 0.6);
}

.stack-layout,
.closing-grid {
    display: grid;
    gap: 1rem;
}

.stack-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-card {
    background: rgba(255, 250, 242, 0.78);
}

.stack-card.accent {
    background: rgba(228, 141, 73, 0.2);
}

.dense span {
    background: rgba(255, 250, 242, 0.82);
}

.closing-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.closing-card {
    background: rgba(255, 250, 242, 0.85);
}

.closing-block + .closing-block {
    margin-top: 1.3rem;
}

.closing-block p {
    margin-bottom: 0;
}

.closing-cta {
    grid-column: 1 / -1;
    background: var(--ink);
    color: #fff7ec;
    box-shadow: var(--shadow);
}

.closing-cta .card-kicker,
.closing-cta p {
    color: rgba(255, 247, 236, 0.78);
}

.site-footer {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto 1.5rem;
    padding: 1.2rem 0 2rem;
    border-top: 2px solid rgba(27, 23, 19, 0.22);
    color: var(--muted);
    font-size: 0.95rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(18px, -20px, 0) scale(1.08);
    }
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        padding-top: 2.5rem;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .section-side {
        position: static;
    }
}

@media (max-width: 900px) {
    .site-nav {
        border-radius: 32px;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .principles,
    .project-grid,
    .stack-layout,
    .closing-grid,
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-note {
        text-align: left;
        max-width: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

@media (max-width: 640px) {
    .site-main,
    .site-footer {
        width: min(calc(100% - 20px), var(--content-width));
    }

    .site-header {
        padding-inline: 10px;
    }

    .site-nav {
        padding: 14px 16px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-copy strong {
        font-size: 0.84rem;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 18vw, 4.7rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

    .panel-row {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .project-card,
    .story-card,
    .experience-feature,
    .stack-card,
    .closing-card,
    .panel-card {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .ticker {
        margin-bottom: 4rem;
    }

    .section-grid {
        padding-bottom: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
