:root {
    --porcelain: #EEE5D4;
    --charcoal: #171513;
    --celadon: #9FB7A5;
    --oxide: #A44E32;
    --gold: #C7A24A;
    --tea: #5F6B57;
    --plum: #7D5A6A;
    --serif-kr: "Noto Serif KR", "Gowun Batang", Georgia, serif;
    --fraunces: "Fraunces", Georgia, serif;
    --body: "Gowun Batang", "Noto Serif KR", Georgia, serif;
    --sans-kr: "IBM Plex Sans KR", system-ui, -apple-system, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* Compliance vocabulary: IBM Plex Mono only for tiny firing codes such as `kiln 04 / thought temp`. IBM Plex Sans KR**A KR** KR* KRR KRRR for small labels. */

* { box-sizing: border-box; }
.font-token { display: none; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    color: var(--charcoal);
    background: var(--porcelain);
    font-family: var(--body);
}

.grain, .kiln-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8;
}
.grain {
    opacity: .56;
    mix-blend-mode: multiply;
    background:
        radial-gradient(circle at 12% 18%, rgba(164,78,50,.10) 0 1px, transparent 1.8px),
        radial-gradient(circle at 78% 44%, rgba(95,107,87,.12) 0 1px, transparent 2px),
        radial-gradient(circle at 46% 73%, rgba(125,90,106,.10) 0 1px, transparent 2px),
        repeating-linear-gradient(83deg, rgba(23,21,19,.025) 0 1px, transparent 1px 7px),
        linear-gradient(120deg, rgba(238,229,212,.85), rgba(159,183,165,.18) 52%, rgba(199,162,74,.09));
    background-size: 160px 160px, 230px 230px, 190px 190px, auto, auto;
}
.kiln-grid {
    opacity: .28;
    background: linear-gradient(90deg,
        transparent 6%, rgba(95,107,87,.32) 6.1%, transparent 6.25%,
        transparent 19%, rgba(23,21,19,.16) 19.1%, transparent 19.22%,
        transparent 34%, rgba(95,107,87,.22) 34.1%, transparent 34.22%,
        transparent 52%, rgba(23,21,19,.13) 52.1%, transparent 52.22%,
        transparent 68%, rgba(95,107,87,.20) 68.1%, transparent 68.22%,
        transparent 83%, rgba(23,21,19,.15) 83.1%, transparent 83.22%);
    mask-image: radial-gradient(ellipse at 50% 48%, transparent 0 24%, #000 68%);
}

.studio-mark {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(18px, 3vw, 42px);
    pointer-events: none;
}
.wordmark {
    font-family: var(--serif-kr);
    font-weight: 800;
    letter-spacing: .025em;
    color: rgba(23,21,19,.72);
    font-size: clamp(18px, 2.1vw, 31px);
    transform: translate(1vw, 74vh);
    transition: transform 900ms cubic-bezier(.2,.7,.1,1), color 700ms ease;
}
body.scrolled .wordmark { transform: translate(0, 0); color: rgba(23,21,19,.55); }
.bead-nav {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    pointer-events: auto;
    font-family: var(--sans-kr);
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.bead-nav a {
    color: rgba(23,21,19,.46);
    text-decoration: none;
    display: grid;
    justify-items: center;
    gap: 7px;
}
.bead-nav span {
    width: 13px;
    height: 11px;
    border-radius: 48% 42% 55% 45%;
    background: rgba(95,107,87,.34);
    box-shadow: inset -2px -2px 4px rgba(23,21,19,.13);
    transition: transform .45s ease, background .45s ease;
}
.bead-nav a:nth-child(even) span { transform: rotate(15deg) translateY(3px); }
.bead-nav a.active { color: var(--oxide); }
.bead-nav a.active span { background: var(--oxide); transform: rotate(-10deg) scale(1.28); }

.kiln-code {
    position: fixed;
    left: clamp(18px, 3vw, 42px);
    bottom: clamp(18px, 3vw, 38px);
    z-index: 31;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(23,21,19,.44);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.kiln-code i { width: 76px; height: 1px; background: rgba(95,107,87,.45); }

.kiln-story { position: relative; z-index: 3; }
.chamber {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr .7fr 1.3fr .8fr 1fr .7fr 1.2fr;
    grid-template-rows: repeat(8, 12.5vh);
    padding: clamp(22px, 4vw, 76px);
    background:
        radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(164,78,50,.11), transparent 18rem),
        linear-gradient(122deg, var(--porcelain), rgba(159,183,165,.18));
}
.chamber::after {
    content: "";
    position: absolute;
    inset: 11vh 7vw 9vh 10vw;
    border: 1px solid rgba(95,107,87,.22);
    clip-path: polygon(2% 0, 100% 3%, 94% 100%, 0 92%);
    pointer-events: none;
}
.door-slab {
    position: absolute;
    top: -5vh;
    bottom: -5vh;
    width: 36vw;
    background: linear-gradient(100deg, rgba(23,21,19,.11), rgba(238,229,212,.72), rgba(159,183,165,.17));
    clip-path: polygon(0 0, 88% 0, 100% 100%, 10% 100%);
    box-shadow: 0 0 70px rgba(23,21,19,.12);
    transition: transform 1.4s cubic-bezier(.2,.8,.1,1);
}
.door-slab.left { left: -9vw; }
.door-slab.right { right: -8vw; transform: scaleX(-1); }
.chamber.active .door-slab.left { transform: translateX(6vw); }
.chamber.active .door-slab.right { transform: scaleX(-1) translateX(6vw); }
.door-slab.narrow { width: 27vw; background: linear-gradient(100deg, rgba(23,21,19,.18), rgba(238,229,212,.6)); }
.gold-door { background: linear-gradient(105deg, rgba(199,162,74,.28), rgba(238,229,212,.72), rgba(125,90,106,.18)); }

.note {
    position: relative;
    z-index: 12;
    padding: 18px 20px;
    max-width: 540px;
    background: rgba(238,229,212,.38);
    border: 1px solid rgba(95,107,87,.25);
    backdrop-filter: blur(3px);
    box-shadow: 0 22px 50px rgba(23,21,19,.055);
}
.note-low { grid-column: 1 / span 4; grid-row: 5 / span 3; align-self: end; background: transparent; border-color: transparent; box-shadow: none; }
.note-left { grid-column: 1 / span 3; grid-row: 3 / span 3; transform: rotate(-1.5deg); }
.note-broken { grid-column: 2 / span 3; grid-row: 2 / span 3; clip-path: polygon(0 0, 96% 5%, 100% 86%, 68% 100%, 0 92%); }
.note-right { grid-column: 5 / span 3; grid-row: 3 / span 3; transform: rotate(1.2deg); }
.note-tea { grid-column: 2 / span 4; grid-row: 4 / span 3; align-self: center; background: rgba(95,107,87,.14); }
.label {
    margin: 0 0 13px;
    font-family: var(--sans-kr);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tea);
}
h1, h2 {
    margin: 0;
    font-family: var(--serif-kr);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.055em;
    color: rgba(23,21,19,.76);
}
h1 { font-size: clamp(58px, 10vw, 154px); }
h2 { font-size: clamp(56px, 9.5vw, 146px); }
.note p:not(.label), .scratched, .kiln-note, .alcove, .final-line {
    font-size: clamp(16px, 1.45vw, 23px);
    line-height: 1.72;
    color: rgba(23,21,19,.62);
}
.invitation {
    font-family: var(--sans-kr) !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--oxide) !important;
}

.vessel-wrap {
    position: fixed;
    left: var(--vx, 59%);
    top: var(--vy, 57%);
    width: var(--vw, 190px);
    height: var(--vh, 170px);
    z-index: 20;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(var(--vr, -3deg));
    transition: left 1.1s cubic-bezier(.2,.8,.15,1), top 1.1s cubic-bezier(.2,.8,.15,1), width 1.1s ease, height 1.1s ease, transform 1.1s ease;
    animation: vesselWobble 5.8s ease-in-out infinite;
}
.vessel-shadow {
    position: absolute;
    left: 5%; right: 5%; bottom: -18px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(23,21,19,.28), transparent 68%);
    filter: blur(8px);
}
.vessel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--v-radius, 48% 51% 46% 54% / 53% 47% 51% 49%);
    background:
        radial-gradient(circle at calc(42% + var(--dent-x, 0px)) calc(30% + var(--dent-y, 0px)), rgba(238,229,212,.95) 0 8%, transparent 9%),
        radial-gradient(circle at 39% 26%, rgba(238,229,212,.9) 0 4%, rgba(164,78,50,.38) 18%, transparent 35%),
        linear-gradient(155deg, rgba(238,229,212,.95), rgba(159,183,165,.56) 50%, rgba(95,107,87,.44));
    border: 1px solid rgba(95,107,87,.35);
    box-shadow: inset -18px -24px 42px rgba(23,21,19,.18), inset 16px 13px 28px rgba(238,229,212,.6), 0 22px 65px rgba(23,21,19,.18);
    transition: border-radius 1.2s ease, clip-path 1.2s ease, background 1.2s ease;
}
.vessel::before {
    content: "";
    position: absolute;
    inset: 8% 10%;
    border-radius: 50%;
    opacity: .28;
    background: repeating-radial-gradient(ellipse at 48% 45%, transparent 0 14px, rgba(23,21,19,.13) 15px 16px, transparent 17px 29px);
    transform: rotate(-8deg);
}
.vessel-mouth {
    position: absolute;
    left: 14%; right: 13%; top: 14%;
    height: 26%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 54%, rgba(23,21,19,.48) 0 36%, rgba(238,229,212,.74) 39% 54%, rgba(95,107,87,.34) 56% 67%, transparent 69%);
    opacity: 0;
    transition: opacity 1s ease, top 1s ease;
}
.thumb-dents i {
    position: absolute;
    width: 34px;
    height: 23px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(23,21,19,.22), rgba(164,78,50,.13) 55%, transparent 72%);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .5s ease, transform .5s ease;
}
.thumb-dents i:nth-child(1) { left: 30%; top: 38%; rotate: -13deg; }
.thumb-dents i:nth-child(2) { left: 53%; top: 47%; rotate: 22deg; }
.thumb-dents i:nth-child(3) { left: 42%; top: 62%; rotate: -2deg; }
.thumb-dents i:nth-child(4) { left: 20%; top: 55%; rotate: 18deg; }
.thumb-dents i:nth-child(5) { right: 14%; top: 31%; rotate: -24deg; }
.fractures { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.crack-line, .gold-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 430; stroke-dashoffset: 430; }
.crack-line { stroke: rgba(23,21,19,.62); stroke-width: 2; }
.gold-line { stroke: var(--gold); stroke-width: 4.2; filter: drop-shadow(0 0 7px rgba(199,162,74,.62)); }
.steam { position: absolute; left: 21%; right: 21%; top: -36%; height: 62%; opacity: 0; transition: opacity 1s ease; overflow: visible; }
.steam b {
    position: absolute;
    bottom: 0;
    width: 26%;
    height: 100%;
    border-left: 2px solid rgba(238,229,212,.72);
    border-radius: 50%;
    filter: blur(1px);
    animation: steamRise 4.8s ease-in-out infinite;
}
.steam b:nth-child(1) { left: 8%; animation-delay: 0s; }
.steam b:nth-child(2) { left: 35%; animation-delay: -1.3s; }
.steam b:nth-child(3) { right: 18%; animation-delay: -2.4s; }
.steam b:nth-child(4) { right: 0; animation-delay: -3.1s; }

body.stage-0 { --vx: 64%; --vy: 66%; --vw: 128px; --vh: 104px; --vr: -8deg; --v-radius: 55% 43% 58% 46% / 48% 59% 41% 55%; }
body.stage-1 { --vx: 63%; --vy: 50%; --vw: 250px; --vh: 218px; --vr: 4deg; --v-radius: 50% 50% 42% 46% / 31% 34% 70% 69%; }
body.stage-2 { --vx: 69%; --vy: 58%; --vw: 292px; --vh: 238px; --vr: -2deg; --v-radius: 48% 52% 44% 48% / 29% 31% 72% 68%; }
body.stage-3 { --vx: 36%; --vy: 48%; --vw: 306px; --vh: 246px; --vr: 2deg; --v-radius: 48% 52% 44% 48% / 29% 31% 72% 68%; }
body.stage-4 { --vx: 68%; --vy: 42%; --vw: 246px; --vh: 286px; --vr: -1deg; --v-radius: 42% 46% 49% 51% / 22% 22% 68% 70%; }
body.stage-1 .vessel-mouth, body.stage-2 .vessel-mouth, body.stage-3 .vessel-mouth, body.stage-4 .vessel-mouth { opacity: 1; }
body.stage-1 .thumb-dents i, body.stage-2 .thumb-dents i, body.stage-3 .thumb-dents i, body.stage-4 .thumb-dents i { opacity: .74; transform: scale(1); }
body.stage-2 .fractures, body.stage-3 .fractures, body.stage-4 .fractures { opacity: 1; }
body.stage-2 .crack-line { animation: drawPath 2.8s ease forwards; }
body.stage-3 .crack-line, body.stage-4 .crack-line { stroke-dashoffset: 0; }
body.stage-3 .gold-line, body.stage-4 .gold-line { animation: drawPath 2.4s ease forwards; }
body.stage-4 .steam { opacity: 1; }
body.stage-4 .vessel { background: radial-gradient(ellipse at 50% 22%, rgba(23,21,19,.52) 0 21%, transparent 22%), linear-gradient(160deg, rgba(238,229,212,.92), rgba(159,183,165,.72), rgba(95,107,87,.58)); }

.pressure-marks span {
    position: absolute;
    font-family: var(--serif-kr);
    font-size: clamp(42px, 8vw, 132px);
    color: rgba(95,107,87,.13);
    filter: blur(2px);
    animation: buried 8s ease-in-out infinite;
}
.pressure-marks span:nth-child(1) { left: 19%; top: 18%; }
.pressure-marks span:nth-child(2) { right: 14%; top: 28%; animation-delay: -2s; }
.pressure-marks span:nth-child(3) { left: 42%; bottom: 18%; animation-delay: -4s; }
.pressure-marks span:nth-child(4) { right: 33%; bottom: 29%; animation-delay: -6s; }
.dust span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(164,78,50,.35); animation: dust 9s ease-in-out infinite alternate; }
.scratched { position: absolute; z-index: 10; max-width: 260px; }
.scratched-a { right: 12vw; top: 17vh; transform: rotate(2deg); }
.stone-weight { position: absolute; right: 14vw; bottom: 15vh; width: 74px; height: 66px; display: grid; place-items: center; border-radius: 44% 56% 49% 51%; background: rgba(95,107,87,.25); color: rgba(23,21,19,.4); font-family: var(--serif-kr); font-size: 34px; transform: rotate(-7deg); }

.chamber-thumb { background: radial-gradient(circle at 72% 45%, rgba(164,78,50,.13), transparent 26%), linear-gradient(130deg, var(--porcelain), rgba(159,183,165,.25)); }
.glaze-tests { position: absolute; right: 10vw; bottom: 12vh; display: flex; gap: 14px; transform: rotate(-5deg); }
.glaze-tests i { width: 52px; height: 84px; border-radius: 50% 50% 42% 45%; border: 1px solid rgba(95,107,87,.28); background: linear-gradient(180deg, var(--porcelain), var(--celadon)); }
.glaze-tests i:nth-child(2) { background: linear-gradient(180deg, var(--porcelain), var(--oxide)); transform: translateY(16px); }
.glaze-tests i:nth-child(3) { background: linear-gradient(180deg, var(--porcelain), var(--plum)); transform: translateY(-9px); }
.glaze-tests i:nth-child(4) { background: linear-gradient(180deg, var(--porcelain), var(--tea)); transform: translateY(6px); }
.thumb-note { position: absolute; left: 16vw; bottom: 13vh; max-width: 300px; color: var(--oxide); }
.rim-rings { position: absolute; right: 30vw; top: 18vh; width: 210px; height: 125px; border-radius: 50%; border: 1px solid rgba(95,107,87,.25); box-shadow: inset 0 0 0 18px rgba(238,229,212,.2), inset 0 0 0 28px rgba(95,107,87,.12); transform: rotate(-17deg); }

.chamber-crack { background: linear-gradient(118deg, rgba(23,21,19,.09), var(--porcelain) 42%, rgba(125,90,106,.15)); }
.wall-crack { position: absolute; inset: 0; z-index: 4; opacity: .7; }
.wall-crack path { fill: none; stroke: rgba(23,21,19,.38); stroke-width: 2; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.chamber-crack.active .wall-crack path { animation: drawPath 3.4s ease forwards; }
.alcove { position: absolute; z-index: 10; padding: 18px 24px; border: 1px solid rgba(23,21,19,.18); background: rgba(238,229,212,.42); max-width: 310px; }
.a1 { right: 17vw; top: 19vh; clip-path: polygon(0 9%, 100% 0, 93% 100%, 8% 88%); }
.a2 { left: 13vw; bottom: 14vh; clip-path: polygon(5% 0, 100% 8%, 92% 92%, 0 100%); }

.chamber-gold { background: radial-gradient(circle at 37% 48%, rgba(199,162,74,.22), transparent 28%), linear-gradient(125deg, var(--porcelain), rgba(125,90,106,.17)); }
.gold-phrases span { position: absolute; z-index: 9; font-family: var(--body); font-size: clamp(17px, 2vw, 30px); color: rgba(199,162,74,.94); text-shadow: 0 0 14px rgba(199,162,74,.32); opacity: .25; transition: opacity .8s ease, transform .8s ease; }
.gold-phrases span:nth-child(1) { left: 17%; top: 18%; }
.gold-phrases span:nth-child(2) { right: 18%; bottom: 21%; }
.gold-phrases span:nth-child(3) { left: 36%; bottom: 13%; }
.chamber-gold.active .gold-phrases span { opacity: 1; transform: translateY(-10px); }
.shards i { position: absolute; z-index: 9; width: 74px; height: 52px; background: linear-gradient(135deg, rgba(238,229,212,.84), rgba(159,183,165,.35)); border: 1px solid rgba(95,107,87,.25); clip-path: polygon(17% 0, 100% 28%, 68% 100%, 0 71%); }
.shards i:nth-child(1) { left: 12vw; bottom: 24vh; rotate: 12deg; }
.shards i:nth-child(2) { left: 27vw; top: 18vh; scale: .72; rotate: -21deg; }
.shards i:nth-child(3) { right: 8vw; top: 27vh; scale: .88; rotate: 34deg; }

.chamber-tea { background: radial-gradient(circle at 67% 35%, rgba(159,183,165,.28), transparent 28%), linear-gradient(180deg, var(--tea), var(--porcelain) 64%); }
.tea-aperture { position: absolute; inset: 11vh 15vw; border: 1px solid rgba(238,229,212,.32); background: linear-gradient(180deg, rgba(23,21,19,.28), transparent 70%); clip-path: polygon(8% 0, 100% 0, 88% 100%, 0 94%); }
.steam-words span { position: absolute; z-index: 11; font-family: var(--serif-kr); color: rgba(238,229,212,.58); animation: wordSteam 7s ease-in-out infinite; }
.steam-words span:nth-child(1) { right: 25%; top: 17%; font-size: 42px; }
.steam-words span:nth-child(2) { right: 35%; top: 31%; animation-delay: -2s; }
.steam-words span:nth-child(3) { right: 16%; top: 42%; animation-delay: -4s; }
.steam-words span:nth-child(4) { right: 43%; top: 12%; animation-delay: -5s; }
.seal { position: absolute; right: 10vw; bottom: 12vh; padding: 13px 10px; border: 2px solid var(--oxide); color: var(--oxide); font-family: var(--serif-kr); font-weight: 900; transform: rotate(7deg); opacity: .72; }
.final-line { position: absolute; left: 14vw; bottom: 12vh; font-family: var(--sans-kr); letter-spacing: .18em; text-transform: uppercase; color: var(--oxide); }

@keyframes vesselWobble { 0%,100% { margin-top: 0; } 50% { margin-top: -8px; } }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes steamRise { 0% { transform: translateY(18px) translateX(0) scale(.7); opacity: 0; } 35% { opacity: .75; } 100% { transform: translateY(-46px) translateX(18px) scale(1.2); opacity: 0; } }
@keyframes buried { 0%,100% { transform: translateY(0) rotate(-4deg); filter: blur(2.5px); } 50% { transform: translateY(-14px) rotate(4deg); filter: blur(.8px); } }
@keyframes dust { from { transform: translate(-10px, 12px); opacity: .16; } to { transform: translate(21px, -23px); opacity: .62; } }
@keyframes wordSteam { 0% { opacity: 0; transform: translateY(30px) rotate(-3deg); filter: blur(4px); } 35% { opacity: .72; filter: blur(1px); } 100% { opacity: 0; transform: translateY(-60px) rotate(7deg); filter: blur(6px); } }

@media (max-width: 760px) {
    .bead-nav { display: none; }
    .studio-mark { padding: 18px; }
    .wordmark { transform: translate(0, 72vh); }
    .chamber { grid-template-columns: repeat(4, 1fr); padding: 22px; }
    .note-low, .note-left, .note-broken, .note-right, .note-tea { grid-column: 1 / -1; max-width: none; }
    .note-right, .note-tea { grid-row: 5 / span 3; }
    h1 { font-size: clamp(54px, 18vw, 92px); }
    h2 { font-size: clamp(50px, 17vw, 86px); }
    .vessel-wrap { opacity: .86; }
    body.stage-1, body.stage-2, body.stage-3, body.stage-4 { --vx: 67%; --vw: 180px; --vh: 168px; }
    .kiln-code { font-size: 9px; }
}
