:root {
  /* DESIGN TERMS: KR* KR** tiny labels Interactions can pigment Interpret “SengGack” English-domain echo 생각: moment hardens mood dreamy */
  --design-kr-token: "KR* KR**";
  --wet-hanji: #F2EFE6;
  --ink-basin: #12151A;
  --rain-gray: #9BA9AE;
  --cobalt: #2F6FDB;
  --mugwort: #6D8A72;
  --persimmon: #E97842;
  --plum: #6B315F;
  --gold: #C9AA62;
  --scroll: 0;
  --state: 0;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--wet-hanji);
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink-basin);
  font-family: "Noto Serif KR", "Apple SD Gothic Neo", "Malgun Gothic", Georgia, serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 111, 219, .07), transparent 31rem),
    radial-gradient(circle at 88% 80%, rgba(107, 49, 95, .06), transparent 30rem),
    var(--wet-hanji);
}

.atelier {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    repeating-linear-gradient(88deg, rgba(18,21,26,.018) 0 1px, transparent 1px 21px),
    repeating-linear-gradient(176deg, rgba(155,169,174,.024) 0 1px, transparent 1px 31px),
    linear-gradient(112deg, rgba(242,239,230,.98), rgba(242,239,230,.86));
}

.atelier::before,
.atelier::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.atelier::before {
  opacity: .42;
  background-image:
    radial-gradient(circle, rgba(18,21,26,.055) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(201,170,98,.045) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(47,111,219,.045) 0 1px, transparent 2px);
  background-size: 73px 67px, 131px 119px, 191px 173px;
  animation: grainDrift 18s steps(4) infinite;
}

.atelier::after {
  opacity: calc(.12 + var(--scroll) * .24);
  background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(47,111,219,.16), rgba(47,111,219,.05) 15rem, transparent 28rem);
}

.paper-surface {
  position: absolute;
  inset: -5vh -6vw;
  width: 112vw;
  height: 110vh;
  opacity: calc(.38 + var(--scroll) * .55);
}

.surface-lines path {
  fill: none;
  stroke: rgba(155,169,174,.22);
  stroke-width: 1;
  stroke-dasharray: 3 18;
  stroke-dashoffset: calc(var(--scroll) * -130);
}

.svg-bloom {
  transform-box: fill-box;
  transform-origin: center;
  opacity: .16;
  transition: opacity .7s ease;
  animation: wetBreathe 12s ease-in-out infinite;
}

.bloom-cobalt { opacity: calc(.18 + var(--scroll) * .48); transform: scale(calc(.42 + var(--scroll) * .62)); }
.bloom-mugwort { opacity: calc((var(--scroll) - .16) * .9); transform: scale(calc(.58 + var(--scroll) * .35)) translateX(2%); animation-delay: -4s; }
.bloom-plum { opacity: calc((var(--scroll) - .47) * 1.2); transform: scale(calc(.65 + var(--scroll) * .28)); animation-delay: -8s; }

.tide-rings ellipse {
  fill: none;
  stroke: rgba(47,111,219,.22);
  stroke-width: 2;
  stroke-dasharray: 4 11;
  opacity: calc((var(--scroll) - .22) * 1.3);
}

.drying-rack .string {
  position: absolute;
  height: 1px;
  left: 6vw;
  right: 5vw;
  background: linear-gradient(90deg, transparent, rgba(18,21,26,.22), transparent);
  transform-origin: left center;
}

.string-one { top: 15vh; transform: rotate(-4deg); }
.string-two { top: 31vh; transform: rotate(2.5deg); opacity: .55; }

.pin {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(18,21,26,.28);
  border-radius: 50%;
  background: rgba(242,239,230,.64);
  box-shadow: 0 4px 14px rgba(18,21,26,.12);
}

.pin-a { left: 17vw; top: 13.7vh; }
.pin-b { left: 56vw; top: 10.9vh; }
.pin-c { right: 16vw; top: 30vh; }

.sheet {
  position: absolute;
  width: clamp(260px, 31vw, 520px);
  height: clamp(390px, 55vh, 680px);
  border: 1px solid rgba(155,169,174,.22);
  background:
    linear-gradient(120deg, rgba(255,255,255,.34), rgba(242,239,230,.12)),
    repeating-linear-gradient(91deg, rgba(18,21,26,.018) 0 1px, transparent 1px 34px);
  box-shadow: 0 28px 80px rgba(18,21,26,.13), inset 0 0 55px rgba(255,255,255,.22);
  clip-path: polygon(2% 3%, 96% 0, 99% 92%, 92% 99%, 7% 97%, 0 88%);
  backdrop-filter: blur(2px);
  opacity: .74;
}

.sheet-a { left: 11vw; top: 17vh; transform: rotate(-5deg) translateY(calc(var(--scroll) * -2vh)); }
.sheet-b { left: 38vw; top: 9vh; transform: rotate(4deg) translateY(calc(var(--scroll) * 3vh)); opacity: .56; }
.sheet-c { right: 9vw; top: 25vh; transform: rotate(-2deg) translateY(calc(var(--scroll) * -1vh)); opacity: .48; }

.thought-droplet {
  position: absolute;
  left: calc(20vw + var(--scroll) * 54vw);
  top: calc(23vh + var(--scroll) * 43vh);
  width: clamp(34px, 7vw, 98px);
  aspect-ratio: 1;
  border-radius: 55% 45% 60% 40%;
  background:
    radial-gradient(circle at 42% 35%, rgba(242,239,230,.55), transparent 18%),
    radial-gradient(circle, rgba(47,111,219,.8), rgba(47,111,219,.32) 43%, rgba(47,111,219,0) 72%);
  filter: blur(calc(3px - var(--scroll) * 2px));
  mix-blend-mode: multiply;
  transform: scale(calc(.62 + var(--scroll) * .55));
  animation: dropletPulse 4.5s ease-in-out infinite;
}

.cursor-wash {
  position: absolute;
  left: var(--cursor-x);
  top: var(--cursor-y);
  width: 18rem;
  height: 18rem;
  transform: translate(-50%, -50%);
  border-radius: 45% 55% 50% 50%;
  background: radial-gradient(circle, rgba(109,138,114,.18), rgba(47,111,219,.06) 44%, transparent 68%);
  filter: blur(14px);
  mix-blend-mode: multiply;
}

.ring-field span {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(47,111,219,.46);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rippleOut 2.5s ease-out forwards;
}

.story {
  position: relative;
  z-index: 2;
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 80px);
}

.studio-tag,
.studio-ledger,
.torn-label,
.marginal {
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.studio-tag {
  position: absolute;
  top: clamp(28px, 6vh, 70px);
  left: clamp(32px, 7vw, 105px);
  margin: 0;
  font-size: .66rem;
  color: rgba(18,21,26,.52);
}

.wordmark {
  position: absolute;
  left: 24vw;
  top: 35vh;
  margin: 0;
  font-family: "Gowun Batang", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -.04em;
  color: rgba(18,21,26,.04);
}

.wordmark span {
  background: radial-gradient(circle at 38% 45%, var(--ink-basin), rgba(18,21,26,.78) 20%, rgba(18,21,26,.09) 42%, transparent 62%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(calc(5px - var(--scroll) * 9px));
  opacity: calc(.28 + var(--scroll) * 1.2);
}

.chapter {
  position: absolute;
  right: 11vw;
  top: 18vh;
  font-family: "Gowun Batang", Georgia, serif;
  font-size: clamp(3.6rem, 11vw, 12rem);
  line-height: .82;
  color: rgba(18,21,26,.13);
  text-shadow: 0 1px rgba(242,239,230,.8);
}

.chapter-left { left: 9vw; right: auto; top: 18vh; }
.chapter-right { right: 8vw; top: 26vh; color: rgba(107,49,95,.18); }

.vertical-note {
  position: absolute;
  right: 8vw;
  bottom: 12vh;
  writing-mode: vertical-rl;
  color: rgba(201,170,98,.8);
  border-right: 1px solid rgba(201,170,98,.44);
  padding-right: .7rem;
  letter-spacing: .24em;
}

.right-note { left: 10vw; right: auto; bottom: 19vh; }

.torn-label {
  position: absolute;
  max-width: 23rem;
  margin: 0;
  padding: 1rem 1.2rem;
  font-size: .72rem;
  line-height: 1.7;
  color: rgba(18,21,26,.72);
  background: rgba(242,239,230,.72);
  box-shadow: 0 12px 34px rgba(18,21,26,.12);
  clip-path: polygon(0 10%, 96% 0, 100% 82%, 91% 100%, 4% 94%);
}

.label-one { left: 17vw; bottom: 16vh; transform: rotate(-3deg); }
.label-two { right: 14vw; bottom: 15vh; transform: rotate(2deg); }
.label-three { left: 14vw; top: 26vh; transform: rotate(-2deg); border-left: 3px solid var(--persimmon); }

.fragment,
blockquote,
.final-panel p,
.closing-trace {
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(1.16rem, 2vw, 1.75rem);
  line-height: 1.82;
  color: rgba(18,21,26,.76);
}

.fragment { position: absolute; margin: 0; max-width: 34rem; }
.fragment-a { left: 12vw; top: 39vh; }
.fragment-b { right: 13vw; bottom: 22vh; max-width: 28rem; }
.fragment-c { right: 13vw; bottom: 20vh; max-width: 31rem; color: rgba(18,21,26,.68); }

blockquote {
  position: absolute;
  left: 11vw;
  top: 24vh;
  max-width: 58rem;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 7rem);
  line-height: 1.02;
  color: rgba(18,21,26,.64);
}

.marginal {
  position: absolute;
  right: 9vw;
  bottom: 15vh;
  max-width: 18rem;
  margin: 0;
  font-size: .64rem;
  line-height: 1.8;
  color: rgba(47,111,219,.75);
  opacity: .18;
  transition: opacity .45s ease, filter .45s ease;
  filter: blur(2px);
}

body.is-pulling .marginal { opacity: 1; filter: blur(0); }

.ceramic-palette {
  position: absolute;
  left: 19vw;
  bottom: 12vh;
  width: 170px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(155,169,174,.4);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.54), rgba(242,239,230,.24));
  transform: rotate(-11deg);
}

.ceramic-palette i {
  position: absolute;
  width: 38px;
  height: 31px;
  border-radius: 50%;
  background: rgba(47,111,219,.45);
  filter: blur(1px);
}

.ceramic-palette i:nth-child(1) { left: 28px; top: 24px; background: rgba(47,111,219,.55); }
.ceramic-palette i:nth-child(2) { left: 72px; top: 38px; background: rgba(109,138,114,.42); }
.ceramic-palette i:nth-child(3) { left: 112px; top: 21px; background: rgba(107,49,95,.36); }

.seed-cluster span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 13px rgba(201,170,98,.1);
  animation: seedFloat 7s ease-in-out infinite;
}

.seed-cluster span:nth-child(1) { left: 43vw; top: 52vh; }
.seed-cluster span:nth-child(2) { left: 49vw; top: 60vh; animation-delay: -1s; background: var(--cobalt); }
.seed-cluster span:nth-child(3) { left: 57vw; top: 48vh; animation-delay: -2.3s; background: var(--mugwort); }
.seed-cluster span:nth-child(4) { left: 62vw; top: 58vh; animation-delay: -3.2s; background: var(--plum); }

.brush-hairs {
  position: absolute;
  left: 31vw;
  top: 20vh;
  width: 16rem;
  height: 35rem;
  transform: rotate(13deg);
}

.brush-hairs span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(18,21,26,.42), transparent);
}

.brush-hairs span:nth-child(1) { left: 12%; transform: rotate(-2deg); }
.brush-hairs span:nth-child(2) { left: 27%; height: 92%; transform: rotate(1deg); }
.brush-hairs span:nth-child(3) { left: 45%; height: 105%; }
.brush-hairs span:nth-child(4) { left: 61%; height: 86%; transform: rotate(-1deg); }
.brush-hairs span:nth-child(5) { left: 74%; height: 98%; transform: rotate(2deg); }

.final-panel {
  position: absolute;
  left: 12vw;
  top: 26vh;
  max-width: 66rem;
}

.final-panel h2 {
  margin: 0 0 1.2rem;
  font-family: "Gowun Batang", Georgia, serif;
  font-size: clamp(4.2rem, 12vw, 13rem);
  line-height: .88;
  font-weight: 400;
  letter-spacing: -.07em;
  color: var(--ink-basin);
  text-shadow: 0 0 18px rgba(47,111,219,.13);
}

.final-panel p { max-width: 34rem; }
.closing-trace { position: absolute; right: 9vw; bottom: 10vh; max-width: 25rem; color: rgba(18,21,26,.48); font-size: 1rem; }

.studio-ledger {
  position: fixed;
  z-index: 5;
  left: clamp(12px, 2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  font-size: .58rem;
}

.ledger-mark {
  position: relative;
  color: rgba(18,21,26,.48);
  text-decoration: none;
  padding-left: 1.55rem;
  white-space: nowrap;
  transition: color .35s ease, transform .35s ease;
}

.ledger-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: rgba(242,239,230,.44);
}

.ledger-mark span { margin-right: .5rem; color: var(--gold); }
.ledger-mark.is-active { color: var(--cobalt); transform: translateX(.25rem); }
.ledger-mark.is-active::before { background: var(--cobalt); box-shadow: 0 0 0 8px rgba(47,111,219,.12); }

@keyframes grainDrift { 50% { transform: translate(1.6%, -1.1%); } }
@keyframes wetBreathe { 0%, 100% { filter: url(#turbulence); } 50% { opacity: .62; } }
@keyframes dropletPulse { 0%, 100% { border-radius: 55% 45% 60% 40%; } 50% { border-radius: 44% 56% 48% 52%; } }
@keyframes rippleOut { to { width: 260px; height: 260px; opacity: 0; } }
@keyframes seedFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

@media (max-width: 760px) {
  .studio-ledger { display: none; }
  .sheet { width: 78vw; height: 56vh; }
  .sheet-a { left: 12vw; }
  .sheet-b, .sheet-c { opacity: .26; }
  .chapter { right: 6vw; font-size: clamp(3rem, 18vw, 7rem); }
  .chapter-left { left: 10vw; }
  .wordmark { left: 12vw; top: 39vh; }
  .fragment-a, .fragment-b, .fragment-c, blockquote, .final-panel { left: 11vw; right: 9vw; max-width: 78vw; }
  blockquote { font-size: clamp(2.1rem, 11vw, 4rem); }
  .torn-label { max-width: 70vw; }
  .label-two, .label-three { right: 8vw; left: auto; }
}
