:root {
  --bg: #14110f;
  --bone: #f3ece2;
  --dim: #8f877d;
  --line: rgba(243, 236, 226, .14);
  --ease: cubic-bezier(.7, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--bone); }
body { font-family: "Manrope", system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.g-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px); pointer-events: none; mix-blend-mode: difference; color: #f3ece2;
}
.g-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--bone);
  font-family: "Instrument Serif", serif; font-size: 18px; border-radius: 50%;
}
.g-intro { font-size: 15px; display: flex; gap: 10px; flex-wrap: wrap; }
.g-name { font-weight: 600; }
.g-sep, .g-q { opacity: .6; }

.worlds { display: flex; height: 100vh; height: 100svh; }
.world {
  position: relative; flex: 1 1 0; overflow: hidden; display: flex; align-items: flex-end;
  padding: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line);
  transition: flex-grow .9s var(--ease);
}
.world:last-child { border-right: 0; }
.w-bg { position: absolute; inset: 0; transition: transform 1.2s var(--ease), filter .8s; }
@media (hover: hover) and (pointer: fine) {
  .worlds:hover .world { flex-grow: .8; }
  .worlds .world:hover { flex-grow: 1.7; }
  .world:hover .w-bg { transform: scale(1.04); }
  .worlds:hover .world:not(:hover) .w-bg { filter: saturate(.5) brightness(.7); }
}

.w-body { position: relative; z-index: 2; max-width: 30ch; }
.w-no { display: block; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .2em; opacity: .7; margin-bottom: 18px; }
.world h2 { font-weight: 400; line-height: .95; font-size: clamp(40px, 4.6vw, 76px); margin-bottom: 16px; }
.world p { font-size: 15px; line-height: 1.5; opacity: .82; max-width: 28ch; }
.w-go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 22px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor;
  transition: background .4s, color .4s;
}
.w-go i { font-style: normal; transition: transform .4s var(--ease); }
.world:hover .w-go i { transform: translateX(6px); }

/* 01 wellness: warm paper, arch, breath line */
.w-wellness { color: #22281f; }
.w-wellness .w-bg { background: radial-gradient(120% 80% at 50% 0%, #fbf6ee, #efe5d5 55%, #e2d3bd); }
.w-wellness h2 { font-family: "Instrument Serif", serif; }
.w-wellness h2 em { color: #b4593a; }
.w-wellness:hover .w-go { background: #22281f; color: #f5efe6; }
.w-arch {
  position: absolute; left: 50%; top: 14%; width: min(46%, 300px); aspect-ratio: 3 / 4.4; transform: translateX(-50%);
  border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #d9c2a3, #c99a76 60%, #b4593a);
  opacity: .55; box-shadow: 0 30px 80px rgba(180, 89, 58, .25);
}
.w-breath { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-breath path { fill: none; stroke: #7f8f78; stroke-width: 1.5; stroke-dasharray: 1400; stroke-dashoffset: 1400; vector-effect: non-scaling-stroke; }

/* 02 personal: monochrome editorial */
.w-personal { color: #f3ece2; }
.w-personal .w-bg { background: linear-gradient(160deg, #2a2724, #121110 70%); }
.w-personal h2 { font-family: "Instrument Serif", serif; }
.w-personal h2 em { color: #d8c3a5; }
.w-personal:hover .w-go { background: #f3ece2; color: #121110; }
.w-big {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: "Anton", sans-serif;
  font-size: clamp(120px, 16vw, 280px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(243, 236, 226, .25);
  letter-spacing: -.02em; white-space: nowrap;
}

/* 03 play: ink + blood moon */
.w-play { color: #f3ece2; }
.w-play .w-bg { background: radial-gradient(90% 70% at 50% 30%, #2a0a07, #0b0a0d 70%); }
.w-play h2 { font-family: "Anton", sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
.w-play h2 em { font-style: normal; color: #ff2a1a; }
.w-play .w-go { font-family: "JetBrains Mono", monospace; }
.w-play:hover .w-go { background: #ff2a1a; color: #0b0a0d; border-color: #ff2a1a; }
.w-moon {
  position: absolute; left: 50%; top: 26%; width: min(60%, 360px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #ff4a2e, #c40d00 45%, #4a0300 100%);
  box-shadow: 0 0 120px rgba(255, 42, 26, .45);
}
.w-kanji {
  position: absolute; right: 8%; top: 8%; writing-mode: vertical-rl; font-family: "Noto Serif JP", serif;
  font-size: clamp(60px, 7vw, 120px); color: transparent; -webkit-text-stroke: 1px rgba(243, 236, 226, .18);
}

/* transition wipe */
.g-wipe { position: fixed; inset: 0; z-index: 20; pointer-events: none; clip-path: circle(0% at 50% 50%); }

@media (max-width: 820px) {
  body { overflow: auto; }
  .worlds { flex-direction: column; height: auto; }
  .world { min-height: 64vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .worlds:hover .world, .worlds .world:hover { flex-grow: 1; }
  .g-head { position: absolute; }
  .w-wellness { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .world, .w-bg { transition: none; }
}
