:root {
  --deep: #11122B;
  --violet: #29204A;
  --magenta: #FF4FCB;
  --cyan: #50F0E8;
  --lavender: #D8D0FF;
  --mist: #7E91B8;
  --yellow: #FFE66D;
  --display: "Dela Gothic One", system-ui, sans-serif;
  --rounded: "M PLUS Rounded 1c", system-ui, sans-serif;
  --body: "Zen Maru Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--lavender);
  background: var(--deep);
  font-family: var(--body);
  overflow-x: hidden;
}

button {
  font: inherit;
  color: inherit;
}

.mural-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 79, 203, .18), transparent 24%),
    radial-gradient(circle at 91% 39%, rgba(80, 240, 232, .16), transparent 27%),
    linear-gradient(135deg, #29204A 0%, #11122B 48%, #29204A 100%);
  transition: filter .8s ease, background 1.2s ease;
}

.mural-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    radial-gradient(circle, rgba(216, 208, 255, .22) 1px, transparent 1.6px),
    linear-gradient(90deg, transparent 0 96%, rgba(126, 145, 184, .12) 96% 100%);
  background-size: 19px 23px, 173px 100%;
  mix-blend-mode: screen;
}

.mural-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(120deg, transparent 20%, rgba(216, 208, 255, .05), transparent 70%);
  transform: rotate(-9deg);
}

.spray, .wall-paper {
  position: absolute;
  pointer-events: none;
}

.spray {
  width: 32vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(42px);
  opacity: .52;
}

.spray-one { left: -10vw; top: 4vh; background: var(--magenta); }
.spray-two { right: -12vw; top: 44vh; background: var(--cyan); }
.spray-three { left: 34vw; bottom: -18vh; background: var(--yellow); opacity: .18; }

.wall-paper {
  width: 18rem;
  height: 9rem;
  background: rgba(216, 208, 255, .09);
  box-shadow: 0 22px 45px rgba(0,0,0,.22), inset 0 0 0 1px rgba(216, 208, 255, .08);
  filter: blur(.15px);
}

.paper-a { right: 8vw; top: 18vh; transform: rotate(7deg); }
.paper-b { left: 6vw; top: 68vh; transform: rotate(-12deg); }

.loop-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: .95;
}

.loop {
  fill: none;
  stroke: url(#worryBreath);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#glow);
  stroke-dasharray: 1350;
  stroke-dashoffset: calc(1120 - var(--scroll, 0) * 900);
  transition: stroke-width .6s ease, filter .6s ease;
}

.loop-tight { opacity: .72; }
.loop-middle { opacity: .58; stroke-width: 13; }
.loop-wide { opacity: .48; stroke-width: 18; }
.loop-calm { opacity: .42; stroke-width: 24; }

.mural-walk { position: relative; }

.panel {
  min-height: 100vh;
  position: relative;
  padding: clamp(2rem, 5vw, 6rem);
  isolation: isolate;
}

.panel::before {
  content: attr(data-chapter);
  position: absolute;
  right: -1rem;
  top: 6rem;
  font-family: var(--rounded);
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(126, 145, 184, .22);
  writing-mode: vertical-rl;
}

.panel-tag { display: flex; align-items: center; }

.side-label, .vertical-note, .chapter-indicator, .final-label, .strip-title {
  font-family: var(--body);
  color: var(--mist);
  letter-spacing: .12em;
}

.side-label {
  position: absolute;
  left: 2.4rem;
  top: 12vh;
  transform: rotate(-8deg);
}

.tag-cluster {
  margin-left: clamp(0rem, 7vw, 7rem);
  max-width: 82rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: .8rem 1.2rem;
  border-radius: 999px;
  background: rgba(216, 208, 255, .09);
  color: var(--cyan);
  font-family: var(--rounded);
  transform: rotate(-2deg);
  box-shadow: 0 0 30px rgba(80, 240, 232, .12);
}

.wordmark {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 15vw, 15.5rem);
  line-height: .82;
  letter-spacing: -.08em;
  color: transparent;
  background: linear-gradient(105deg, #FF4FCB 5%, #D8D0FF 42%, #50F0E8 68%, #FFE66D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(13px);
  transform: translateX(-1vw) skewY(-2deg);
  animation: tagFocus 1.8s cubic-bezier(.16,1,.3,1) forwards;
  text-shadow: 0 0 35px rgba(255, 79, 203, .45), 0 0 65px rgba(80, 240, 232, .28);
}

.wordmark::before, .wordmark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .68;
}

.wordmark::before { color: var(--magenta); transform: translate(-10px, 7px); filter: blur(18px); }
.wordmark::after { color: var(--cyan); transform: translate(12px, -9px); filter: blur(20px); }

.opening-line {
  max-width: 36rem;
  margin-top: 2rem;
  font-family: var(--rounded);
  font-size: clamp(1.25rem, 2.4vw, 2.5rem);
  color: var(--lavender);
}

.edge-scribbles span {
  position: absolute;
  font-family: var(--rounded);
  font-weight: 900;
  color: var(--magenta);
  filter: blur(1.5px);
  opacity: .62;
  animation: jitter .34s infinite alternate;
}
.edge-scribbles span:nth-child(1) { right: 12vw; top: 16vh; font-size: 4rem; }
.edge-scribbles span:nth-child(2) { left: 8vw; bottom: 17vh; font-size: 5rem; animation-delay: .08s; }
.edge-scribbles span:nth-child(3) { right: 4vw; bottom: 12vh; transform: rotate(18deg); animation-delay: .14s; }
.edge-scribbles span:nth-child(4) { left: 42vw; top: 8vh; transform: rotate(-9deg); animation-delay: .2s; }
.edge-scribbles span:nth-child(5) { right: 25vw; top: 58vh; color: var(--cyan); animation-delay: .04s; }

.paint-dot {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE66D 0 10%, #FF4FCB 30%, rgba(255,79,203,.08) 70%);
  box-shadow: 0 0 28px rgba(255, 79, 203, .45);
  cursor: pointer;
}
.paint-dot span { display: block; width: 100%; height: 100%; border-radius: inherit; }
.dot-a { right: 18vw; top: 28vh; }
.dot-b { left: 18vw; bottom: 12vh; transform: scale(.72); }
.dot-c { right: 13vw; bottom: 22vh; }
.dot-d { left: 12vw; bottom: 18vh; }
.paint-dot.rippling span { animation: ripple .75s ease-out; }

.panel-loop { padding-top: 22vh; }

.low-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 5vw;
  overflow: visible;
  background: linear-gradient(90deg, rgba(41,32,74,.1), rgba(216,208,255,.08), rgba(17,18,43,.02));
  border-top: 1px solid rgba(216,208,255,.11);
  border-bottom: 1px solid rgba(216,208,255,.07);
}

.strip-title { white-space: nowrap; color: var(--yellow); }

.worry-phrase {
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.1rem;
  background: rgba(255, 79, 203, .12);
  color: var(--lavender);
  font-family: var(--rounded);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(255,79,203,.15);
  transition: filter .45s ease, color .45s ease, transform .45s ease, background .45s ease;
}
.worry-phrase:hover, .worry-phrase.released {
  filter: blur(2.4px);
  color: var(--cyan);
  background: rgba(80, 240, 232, .12);
  transform: translateY(-.35rem) rotate(-1deg);
}

.paint-cloud {
  width: min(38rem, 82vw);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 45% 55% 60% 40% / 52% 38% 62% 48%;
  background: radial-gradient(circle at 25% 18%, rgba(216,208,255,.22), rgba(41,32,74,.52) 58%, rgba(255,79,203,.11));
  box-shadow: 0 0 70px rgba(80,240,232,.12), inset 0 0 40px rgba(216,208,255,.08);
  backdrop-filter: blur(8px);
}
.cloud-left { margin-left: 10vw; transform: rotate(-5deg); }
.paint-cloud h2, .column-text h2, .diagonal-band h2, .quiet-field h2 {
  margin: 0;
  font-family: var(--rounded);
  font-weight: 900;
  color: var(--lavender);
}
.paint-cloud h2 { font-size: clamp(2rem, 5vw, 5rem); line-height: .95; }
.paint-cloud p, .column-text p, .poster-note p, .quiet-field p { color: var(--mist); font-size: clamp(1rem, 1.6vw, 1.35rem); }
.sticker {
  position: absolute;
  right: 13vw;
  top: 19vh;
  padding: 1.5rem 2rem;
  color: rgba(216,208,255,.58);
  background: rgba(216,208,255,.08);
  transform: rotate(13deg);
  box-shadow: inset 0 0 0 1px rgba(216,208,255,.1), 0 20px 40px rgba(0,0,0,.18);
}

.panel-column { display: flex; align-items: center; justify-content: flex-end; }
.vertical-note {
  position: absolute;
  left: 8vw;
  top: 14vh;
  writing-mode: vertical-rl;
}
.breathing-column {
  position: absolute;
  left: 26vw;
  top: 6vh;
  bottom: 6vh;
  width: clamp(6rem, 12vw, 11rem);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,79,203,.22), rgba(80,240,232,.24), rgba(216,208,255,.08));
  box-shadow: 0 0 60px rgba(80,240,232,.22), inset 0 0 45px rgba(17,18,43,.55);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  animation: breathe 5.6s ease-in-out infinite;
}
.breath-step {
  font-family: var(--rounded);
  color: var(--cyan);
  transform: rotate(-90deg);
  white-space: nowrap;
}
.column-text {
  width: min(44rem, 52vw);
  margin-right: 7vw;
  padding: 3rem;
  border-left: 3px solid rgba(80,240,232,.55);
  background: linear-gradient(90deg, rgba(216,208,255,.08), transparent);
}
.column-text h2 { font-size: clamp(2.2rem, 5.5vw, 5.8rem); line-height: .94; }

.panel-underpass { overflow: hidden; }
.diagonal-band {
  position: absolute;
  left: -8vw;
  right: -8vw;
  top: 31vh;
  padding: 4rem 17vw;
  transform: rotate(-12deg);
  background: linear-gradient(90deg, rgba(255,79,203,.2), rgba(80,240,232,.16), rgba(255,230,109,.08));
  box-shadow: 0 0 70px rgba(255,79,203,.18);
}
.diagonal-band p { margin: 0 0 .7rem; color: var(--yellow); font-family: var(--body); letter-spacing: .16em; }
.diagonal-band h2 { max-width: 70rem; font-size: clamp(2.5rem, 7vw, 7.5rem); line-height: .9; }
.poster-note {
  position: absolute;
  right: 8vw;
  bottom: 10vh;
  width: 18rem;
  padding: 1.4rem;
  background: rgba(216,208,255,.12);
  transform: rotate(6deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.poster-note span { color: var(--mist); font-size: .85rem; }
.poster-note strong { display: block; font-family: var(--display); font-size: 4rem; color: var(--cyan); }
.drip-field i {
  position: absolute;
  top: 0;
  width: .35rem;
  height: 16vh;
  border-radius: 999px;
  background: linear-gradient(#FF4FCB, transparent);
  filter: drop-shadow(0 0 12px rgba(255,79,203,.6));
}
.drip-field i:nth-child(1) { left: 12vw; height: 24vh; }
.drip-field i:nth-child(2) { left: 36vw; height: 12vh; background: linear-gradient(#50F0E8, transparent); }
.drip-field i:nth-child(3) { left: 54vw; height: 20vh; }
.drip-field i:nth-child(4) { right: 18vw; height: 30vh; background: linear-gradient(#FFE66D, transparent); }
.drip-field i:nth-child(5) { right: 7vw; height: 15vh; background: linear-gradient(#50F0E8, transparent); }

.panel-quiet {
  min-height: 112vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 60% 52%, rgba(216,208,255,.16), transparent 45%);
}
.quiet-field {
  width: min(72rem, 88vw);
  min-height: 58vh;
  padding: clamp(2rem, 6vw, 6rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(255,230,109,.16), transparent 24%),
    linear-gradient(135deg, rgba(216,208,255,.18), rgba(80,240,232,.08), rgba(41,32,74,.28));
  border-radius: 3rem 8rem 4rem 6rem;
  box-shadow: inset 0 0 0 1px rgba(216,208,255,.14), 0 0 90px rgba(80,240,232,.12);
}
.final-label { color: var(--yellow); text-transform: uppercase; }
.quiet-field h2 { font-size: clamp(2.6rem, 7vw, 7rem); line-height: .92; }
.quiet-field p:last-child { max-width: 36rem; }

.chapter-indicator {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 5;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(17,18,43,.62);
  box-shadow: inset 0 0 0 1px rgba(216,208,255,.12), 0 0 24px rgba(80,240,232,.11);
  backdrop-filter: blur(12px);
  transition: filter .5s ease, color .5s ease;
}
.chapter-indicator.shifting { filter: blur(3px); color: var(--cyan); }

.breath-arc {
  position: fixed;
  width: 16rem;
  height: 8rem;
  border: 3px solid var(--cyan);
  border-color: var(--cyan) transparent transparent transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 18px rgba(80,240,232,.65));
  animation: arcRelease 900ms ease-out forwards;
}

@keyframes tagFocus {
  0% { filter: blur(16px); opacity: .35; transform: translateX(-3vw) skewY(-4deg); }
  100% { filter: blur(.2px); opacity: 1; transform: translateX(0) skewY(-2deg); }
}

@keyframes jitter {
  from { transform: translate(0,0) rotate(-2deg); }
  to { transform: translate(3px,-2px) rotate(3deg); }
}

@keyframes breathe {
  0%, 100% { transform: scaleX(.82); filter: blur(1.8px); }
  50% { transform: scaleX(1.08); filter: blur(.1px); }
}

@keyframes ripple {
  from { box-shadow: 0 0 0 0 rgba(80,240,232,.72), 0 0 0 0 rgba(255,230,109,.35); }
  to { box-shadow: 0 0 0 75px rgba(80,240,232,0), 0 0 0 130px rgba(255,230,109,0); }
}

@keyframes arcRelease {
  from { opacity: .9; transform: translate(-50%, -50%) scale(.45) rotate(-12deg); filter: blur(3px) drop-shadow(0 0 10px rgba(80,240,232,.8)); }
  to { opacity: 0; transform: translate(-50%, -120%) scale(1.45) rotate(8deg); filter: blur(.2px) drop-shadow(0 0 30px rgba(80,240,232,.1)); }
}

@media (max-width: 760px) {
  .panel { padding: 1.25rem; }
  .low-strip { flex-direction: column; align-items: flex-start; bottom: 4vh; }
  .column-text { width: 82vw; margin: 0; padding: 2rem; }
  .breathing-column { left: 8vw; opacity: .42; }
  .diagonal-band { top: 26vh; padding: 3rem 12vw; }
  .poster-note { right: 6vw; width: 15rem; }
}
