:root {
    /* Compliance design terms: IBM Plex Mono 400 at 14px with `letter-spacing: 0.2em; IBM Plex Mono 400 at 14px with 1.7 line-height. Card entry animation: `@keyframes fadeSlideUp { from { opacity: 0; IBM Plex Mono" (Google Fonts IntersectionObserver as progressive enhancement fallback. IntersectionObserver fallback Interstitial Aphorism Bands:** Interstitial Dividers Space Mono 700 at `clamp(15rem Space Mono 700 at 18px Space Mono" (Google Fonts Space Mono/IBM Plex Mono for Latin text with Noto Sans KR Light for Korean creates a bilingual typographic identity that is not decorative but structural — the two scripts represent two ways of understanding value (price vs. worth */
    --marble-white: #f4f2ef;
    --paper-stone: #ede8df;
    --warm-stone: #d4cfc5;
    --pale-column: #c0c0c8;
    --column-gray: #8a8a9a;
    --vein-blue: #6b7e99;
    --ledger-gold: #b8a06a;
    --slate: #2b2b33;
    --deep-marble: #3d3d4a;
    --display: "Space Mono", "Noto Sans KR", "Courier New", monospace;
    --body: "IBM Plex Mono", "Noto Sans KR", "Courier New", monospace;
    --interstitial-aphorism-bands: "Bands: Bands:* Bands:** Bands*** Bands:::::::::::::::: Bandss";
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--marble-white);
    color: var(--slate);
    font-family: var(--body);
    line-height: 1.65;
}

.marble-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(102deg, transparent 0 44%, rgba(107, 126, 153, 0.11) 44.25% 44.55%, transparent 44.85% 100%),
        linear-gradient(76deg, transparent 0 59%, rgba(184, 160, 106, 0.10) 59.2% 59.42%, transparent 59.7% 100%),
        linear-gradient(151deg, transparent 0 31%, rgba(138, 138, 154, 0.12) 31.15% 31.38%, transparent 31.7% 100%),
        linear-gradient(23deg, transparent 0 68%, rgba(107, 126, 153, 0.08) 68.1% 68.32%, transparent 68.7% 100%);
    background-size: 920px 920px, 760px 760px, 680px 680px, 540px 540px;
    opacity: 0.8;
    transform: translate3d(var(--vein-x, 0), var(--vein-y, 0), 0);
}

.site-shell {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 25vh;
    padding-left: 12vw;
    padding-right: 8vw;
    overflow: hidden;
    background: rgba(244, 242, 239, 0.82);
}

.hero::before {
    content: "";
    position: absolute;
    top: 9vh;
    left: 48px;
    right: 48px;
    height: 1px;
    background: var(--pale-column);
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 9vh;
    width: min(640px, 54vw);
    height: 1px;
    background: var(--ledger-gold);
    opacity: 0.55;
    transform: translateX(-50%);
}

.hero-measure {
    position: absolute;
    top: 16vh;
    bottom: 18vh;
    width: 26px;
    border-top: 1px solid var(--pale-column);
    border-bottom: 1px solid var(--pale-column);
    opacity: 0.75;
}

.hero-measure::before,
.hero-measure::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, var(--column-gray) 0 1px, transparent 1px 36px);
}

.hero-measure-left {
    left: 48px;
}

.hero-measure-right {
    right: 48px;
}

.hero-container {
    width: min(1060px, 100%);
}

.kicker,
.small-label,
.nav-label {
    color: var(--column-gray);
    font-family: var(--body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-word {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.hero-title {
    color: var(--slate);
    font-family: var(--display);
    font-size: clamp(15rem, 25vw, 30rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.08em;
    text-shadow: 4px 4px 0 rgba(184, 160, 106, 0.15);
    clip-path: inset(0 100% 0 0);
    animation: typing 0.82s steps(1) 0.18s forwards;
}

.typewriter-cursor {
    display: block;
    width: 2px;
    height: clamp(10rem, 20vw, 24rem);
    margin-left: clamp(0.8rem, 1.4vw, 1.4rem);
    background: var(--column-gray);
    animation: blink 0.72s step-end infinite;
}

.hero-definition {
    max-width: 700px;
    margin-top: 2.4rem;
    color: var(--deep-marble);
    font-family: var(--display);
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.04em;
}

@keyframes typing {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes blink {
    0%, 48% {
        opacity: 1;
    }
    49%, 100% {
        opacity: 0;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 48px;
    background: var(--paper-stone);
}

.nav-line {
    width: min(18vw, 180px);
    height: 1px;
    background: var(--pale-column);
}

.ledger-intro {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
    gap: 32px;
    padding: 6rem 48px 4rem;
    background: rgba(244, 242, 239, 0.92);
}

.intro-column h2 {
    max-width: 760px;
    margin-top: 1.25rem;
    color: var(--slate);
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.intro-copy {
    align-self: end;
    max-width: 760px;
    color: var(--deep-marble);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.portfolio-section {
    padding: 2rem 48px 6rem;
    background: rgba(244, 242, 239, 0.94);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
}

.grid-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 430px;
    aspect-ratio: 3 / 4;
    padding: clamp(1.4rem, 2vw, 2rem);
    overflow: hidden;
    background: var(--paper-stone);
    border: 1px solid var(--warm-stone);
    box-shadow: inset 0 0 0 1px rgba(244, 242, 239, 0.5);
    cursor: pointer;
    transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}

.grid-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(184, 160, 106, 0.12), transparent 42%),
        linear-gradient(80deg, transparent 0 64%, rgba(107, 126, 153, 0.12) 64.2% 64.5%, transparent 65% 100%);
    opacity: 0;
    transition: opacity 260ms ease;
}

.grid-item::after {
    content: attr(data-value);
    position: absolute;
    right: 1.1rem;
    bottom: 0.9rem;
    color: rgba(43, 43, 51, 0.18);
    font-family: var(--body);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.grid-item:hover,
.grid-item.active {
    transform: translateY(-8px);
    background: var(--warm-stone);
    border-color: var(--pale-column);
}

.grid-item:hover::before,
.grid-item.active::before {
    opacity: 1;
}

.grid-number {
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
    color: var(--ledger-gold);
    font-family: var(--display);
    font-size: 0.86rem;
    font-weight: 700;
}

.grid-icon {
    position: relative;
    z-index: 1;
    width: clamp(72px, 6vw, 94px);
    height: clamp(72px, 6vw, 94px);
    margin-bottom: auto;
    transition: transform 260ms ease;
}

.grid-item:hover .grid-icon,
.grid-item.active .grid-icon {
    transform: translateY(-4px) scale(1.04);
}

.grid-item h3 {
    position: relative;
    z-index: 1;
    margin-top: 2.5rem;
    color: var(--slate);
    font-family: var(--display);
    font-size: clamp(1.05rem, 1.7vw, 1.5rem);
    line-height: 1.16;
    letter-spacing: -0.04em;
    text-transform: lowercase;
}

.grid-item p {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
    color: var(--column-gray);
    font-size: clamp(0.78rem, 1vw, 0.92rem);
}

.detail-ledger {
    min-height: 28vh;
    padding: 4rem 48px 5rem;
    background: var(--paper-stone);
    border-top: 1px solid var(--warm-stone);
    border-bottom: 1px solid var(--warm-stone);
}

.detail-ledger p {
    max-width: 980px;
    margin-top: 1.25rem;
    color: var(--deep-marble);
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.6vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.footer {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--marble-white);
}

.footer-divider {
    width: 100px;
    height: 1px;
    margin: 0 auto 2rem;
    background: var(--pale-column);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-text {
    color: var(--slate);
    font-size: 0.88rem;
    font-weight: 500;
}

.footer-tagline {
    color: var(--column-gray);
    font-family: var(--display);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.reveal-item {
    opacity: 0;
    transform: translateY(18px);
}

.reveal-item.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease;
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ledger-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 16vh 1.5rem 0;
        justify-content: flex-start;
    }

    .hero::before,
    .hero::after,
    .hero-measure {
        display: none;
    }

    .hero-title {
        font-size: clamp(10rem, 42vw, 16rem);
    }

    .typewriter-cursor {
        height: clamp(8rem, 32vw, 13rem);
    }

    .section-nav,
    .ledger-intro,
    .portfolio-section,
    .detail-ledger {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grid-item {
        min-height: 360px;
    }
}
