/* ============================================================
   wanan.date — a quiet place for the night
   Type: Noto Serif SC (OFL) + Cormorant Garamond (OFL)
   ============================================================ */

@font-face {
  font-family: "Noto Serif SC";
  src: url("/assets/fonts/noto-serif-sc-subset.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-variable-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #06080f;
  --ink-soft: #080b14;
  --ink-lift: #0d1120;
  --moon: #f1e7d2;
  --moon-bright: #fbf5e8;
  --moon-dim: #c9c0ae;
  --text: #ece7dc;
  --muted: #a4a4b1;
  --faint: #858798;
  --rose: #c99c94;
  --lavender: #9c9abb;
  --line: rgba(236, 230, 218, 0.13);
  --line-soft: rgba(236, 230, 218, 0.065);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --latin: "Cormorant Garamond", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gutter: clamp(22px, 5.8vw, 88px);
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(201, 192, 174, 0.28) var(--ink);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 85% 62% at 78% -10%, rgba(76, 92, 132, 0.22), transparent 64%),
    radial-gradient(ellipse 65% 48% at 8% 40%, rgba(95, 74, 102, 0.12), transparent 68%),
    linear-gradient(180deg, #05070d 0%, #080b14 36%, #090a12 72%, #0d0b10 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: var(--moon-bright);
  background: rgba(201, 156, 148, 0.26);
}

:focus-visible {
  outline: 1px solid rgba(241, 231, 210, 0.78);
  outline-offset: 6px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

em {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 800;
  top: 14px;
  left: 16px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--moon);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

main {
  position: relative;
  z-index: 2;
}

.no-js .sound-toggle,
.no-js .cursor-glow {
  display: none;
}

/* ---------- shared layout ---------- */

.wrap {
  position: relative;
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--max);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(128px, 15vw, 210px);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 72px;
}

.section-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-bottom: clamp(44px, 6vw, 84px);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.22em;
  color: var(--faint);
  text-transform: uppercase;
}

.section-label > span {
  color: var(--moon-dim);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.section-label > i {
  width: 26px;
  height: 1px;
  background: var(--line);
}

.display-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.1vw, 7rem);
  font-weight: 200;
  line-height: 1.28;
  letter-spacing: 0.015em;
  color: var(--moon-bright);
}

.display-title em {
  color: var(--moon-dim);
}

/* ---------- intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(76, 89, 122, 0.16), transparent 42%),
    #05070d;
  animation: intro-away 1s var(--ease) 2s forwards;
}

.intro.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}

.intro.is-skipped {
  display: none;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  transform: translateY(-6px);
}

.intro-mark {
  font-family: var(--latin);
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--moon-bright);
  animation: intro-breathe 1.15s var(--ease-soft) both;
}

.intro-mark > span {
  display: inline-block;
  margin-left: 3px;
  color: var(--rose);
}

.intro-rule {
  position: relative;
  display: block;
  width: min(160px, 42vw);
  height: 1px;
  overflow: hidden;
  background: rgba(241, 231, 210, 0.14);
}

.intro-rule > i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--moon), transparent);
  transform: translateX(-100%);
  animation: intro-line 1.9s var(--ease-soft) 0.15s both;
}

.intro-caption {
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.32em;
  color: var(--faint);
  text-transform: uppercase;
  opacity: 0;
  animation: intro-caption 1.1s var(--ease) 0.35s both;
}

@keyframes intro-away {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes intro-breathe {
  from {
    opacity: 0;
    letter-spacing: 0.12em;
    filter: blur(7px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.02em;
    filter: blur(0);
  }
}

@keyframes intro-line {
  0% {
    transform: translateX(-100%);
  }
  65%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes intro-caption {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- atmosphere ---------- */

.starfield {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  z-index: 90;
  inset: 0;
  background-image: var(--noise);
  background-size: 220px 220px;
  opacity: 0.043;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: min(56vw, 780px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(188, 201, 230, 0.055) 0%, rgba(188, 201, 230, 0.022) 38%, rgba(188, 201, 230, 0) 100%);
  filter: blur(18px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  padding-block: 25px;
  transition: padding 0.6s var(--ease), background-color 0.6s var(--ease), border-color 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 15px;
  background: rgba(5, 7, 13, 0.56);
  border-bottom-color: rgba(236, 230, 218, 0.045);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - (var(--gutter) * 2));
  max-width: 1400px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--latin);
  font-size: 27px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--moon-bright);
  transition: opacity 0.4s var(--ease);
}

.brand:hover {
  opacity: 0.72;
}

.brand-orb {
  width: 4px;
  height: 4px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px rgba(201, 156, 148, 0.8);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 36px);
}

.site-nav a {
  position: relative;
  display: block;
  padding: 5px 0;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.5s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.18em;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--moon), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--moon-bright);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 12, 21, 0.28);
  cursor: pointer;
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.sound-toggle:hover {
  border-color: rgba(236, 230, 218, 0.3);
  background: rgba(17, 21, 34, 0.5);
}

.sound-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 13px;
  height: 12px;
  color: var(--faint);
  transition: color 0.5s var(--ease);
}

.sound-bars i {
  width: 1px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
  transition: height 0.5s var(--ease), background-color 0.5s var(--ease);
}

.sound-bars i:nth-child(2) {
  height: 8px;
}

.sound-bars i:nth-child(3) {
  height: 5px;
}

.sound-bars i:nth-child(4) {
  height: 10px;
}

.sound-text {
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.5s var(--ease);
}

.sound-status {
  font-family: var(--sans);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}

.sound-toggle.is-on {
  border-color: rgba(201, 156, 148, 0.32);
}

.sound-toggle.is-on .sound-bars {
  color: var(--rose);
}

.sound-toggle.is-on .sound-bars i {
  animation: equalize 1.1s ease-in-out infinite alternate;
}

.sound-toggle.is-on .sound-bars i:nth-child(2) {
  animation-delay: -0.65s;
}

.sound-toggle.is-on .sound-bars i:nth-child(3) {
  animation-delay: -0.25s;
}

.sound-toggle.is-on .sound-bars i:nth-child(4) {
  animation-delay: -0.85s;
}

.sound-toggle.is-on .sound-text {
  color: var(--moon);
}

.sound-toggle.is-on .sound-status {
  color: var(--rose);
}

@keyframes equalize {
  0% {
    height: 2px;
  }
  100% {
    height: 11px;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: clamp(104px, 14vh, 142px) 0 clamp(26px, 4.4vh, 48px);
  overflow: hidden;
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.8;
  will-change: transform;
}

.aurora-blue {
  top: -28%;
  left: 18%;
  width: 68vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(79, 103, 152, 0.27), transparent 64%);
  animation: aurora-drift-a 28s ease-in-out infinite alternate;
}

.aurora-rose {
  right: -18%;
  bottom: -33%;
  width: 54vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(158, 108, 107, 0.17), transparent 65%);
  animation: aurora-drift-b 34s ease-in-out infinite alternate;
}

.hero-fade {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 15, 0.72));
}

.horizon-glow {
  position: absolute;
  right: -10%;
  bottom: -30%;
  left: -10%;
  height: 58%;
  background: radial-gradient(ellipse at 50% 100%, rgba(186, 135, 123, 0.19), transparent 65%);
  filter: blur(20px);
}

@keyframes aurora-drift-a {
  from {
    transform: translate3d(-3%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 3%, 0) scale(1.08);
  }
}

@keyframes aurora-drift-b {
  from {
    transform: translate3d(2%, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(-4%, -4%, 0) scale(1.1);
  }
}

.sky-star {
  position: absolute;
  color: rgba(247, 240, 226, 0.62);
  font-family: var(--latin);
  line-height: 1;
  animation: sky-twinkle 6.5s ease-in-out infinite;
}

.sky-star-a {
  top: 21%;
  left: 19%;
  font-size: 9px;
}

.sky-star-b {
  top: 31%;
  left: 47%;
  font-size: 6px;
  animation-delay: -2.4s;
}

.sky-star-c {
  top: 14%;
  right: 31%;
  font-size: 11px;
  animation-delay: -4.1s;
}

@keyframes sky-twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.86);
  }
  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc(100% - (var(--gutter) * 2));
  max-width: 1400px;
  min-height: calc(100svh - clamp(130px, 18.4vh, 190px));
  margin-inline: auto;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.22em;
  color: var(--faint);
  text-transform: uppercase;
}

.meta-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--moon-dim);
  box-shadow: 0 0 7px rgba(241, 231, 210, 0.55);
}

.meta-rule {
  width: 31px;
  height: 1px;
  background: var(--line);
}

.meta-date {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.meta-sep {
  width: 17px;
  height: 1px;
  background: var(--line);
}

.hero-main {
  padding-top: clamp(64px, 9vh, 104px);
  padding-bottom: clamp(44px, 8vh, 80px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(17px, 2.4vh, 28px);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.eyebrow-rule {
  display: block;
  width: 33px;
  height: 1px;
  background: rgba(201, 156, 148, 0.52);
}

.hero-title {
  display: flex;
  align-items: flex-end;
  gap: 0.055em;
  margin-left: -0.045em;
  font-family: var(--serif);
  font-size: clamp(7.2rem, 20vw, 19rem);
  font-weight: 200;
  line-height: 0.83;
  letter-spacing: 0;
  color: var(--moon-bright);
  text-shadow: 0 0 100px rgba(235, 226, 203, 0.16);
}

.title-char {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.075em;
}

.title-char > span {
  display: block;
  transform: translateY(0);
}

.hero-sub {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.8vw, 22px);
  margin-top: clamp(21px, 3.3vh, 35px);
}

.sub-wanan {
  font-family: var(--latin);
  font-size: clamp(2.15rem, 3.5vw, 3.35rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0.045em;
  color: var(--moon);
}

.sub-rule {
  width: clamp(33px, 5vw, 70px);
  height: 1px;
  margin-bottom: 0.38em;
  background: var(--line);
}

.sub-cn {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.28em;
  color: var(--moon-dim);
}

.hero-sentence {
  margin-top: clamp(22px, 3.4vh, 37px);
  max-width: 31em;
  font-size: clamp(13.5px, 1.1vw, 15.5px);
  font-weight: 300;
  line-height: 2.08;
  letter-spacing: 0.055em;
  color: var(--muted);
}

.mobile-break {
  display: none;
}

.hero-floor {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-top: 20px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  pointer-events: auto;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.2em;
  color: var(--faint);
  transition: color 0.5s var(--ease);
}

.scroll-cue:hover {
  color: var(--moon-dim);
}

.scroll-track {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: var(--line);
}

.scroll-track > i {
  position: absolute;
  top: -16px;
  left: 0;
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, transparent, var(--moon-dim));
  animation: scroll-drop 3.2s var(--ease-soft) infinite;
}

@keyframes scroll-drop {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(64px);
    opacity: 0;
  }
}

.moon-readout {
  text-align: right;
  pointer-events: none;
}

.readout-label {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.26em;
  color: var(--faint);
}

.readout-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.readout-value strong {
  font-weight: 300;
  color: var(--moon-dim);
}

.readout-rule {
  width: 18px;
  height: 1px;
  background: var(--line);
}

/* ---------- moon ---------- */

.moon-wrap {
  position: absolute;
  z-index: 3;
  top: clamp(146px, 20vh, 212px);
  right: clamp(28px, 9.5vw, 158px);
  width: clamp(245px, 28.5vw, 442px);
  aspect-ratio: 1;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--mscale, 1));
  transition: opacity 2s var(--ease), transform 1.2s var(--ease-soft);
  pointer-events: none;
}

.moon {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 1.3s var(--ease), filter 1.3s var(--ease);
  filter: drop-shadow(0 0 48px rgba(237, 229, 208, 0.14));
}

.moon:hover {
  transform: scale(1.014);
  filter: drop-shadow(0 0 68px rgba(237, 229, 208, 0.21));
}

.moon-disc {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  opacity: 1;
  transition: opacity 1.2s var(--ease);
  background-color: #c8bca5;
  background-image:
    radial-gradient(circle at 29% 24%, rgba(255, 252, 242, 0.84) 0 1.3%, transparent 2.5%),
    radial-gradient(circle at 34.5% 28%, rgba(112, 104, 90, 0.17) 0 3.1%, rgba(112, 104, 90, 0.06) 4.5%, transparent 6.5%),
    radial-gradient(circle at 68% 22%, rgba(109, 101, 87, 0.19) 0 4.2%, rgba(109, 101, 87, 0.05) 6.2%, transparent 9%),
    radial-gradient(circle at 64% 38%, rgba(123, 113, 97, 0.16) 0 2.1%, transparent 4.4%),
    radial-gradient(circle at 75% 64%, rgba(101, 94, 82, 0.22) 0 7.7%, rgba(101, 94, 82, 0.05) 10.8%, transparent 14%),
    radial-gradient(circle at 45% 67%, rgba(107, 99, 86, 0.18) 0 4.8%, rgba(107, 99, 86, 0.04) 7%, transparent 10.5%),
    radial-gradient(circle at 23% 54%, rgba(111, 103, 91, 0.14) 0 3.5%, transparent 7%),
    radial-gradient(circle at 55% 48%, rgba(115, 106, 92, 0.12) 0 13%, transparent 25%),
    radial-gradient(circle at 33% 74%, rgba(112, 104, 91, 0.1) 0 2.5%, transparent 5%),
    radial-gradient(circle at 42% 36%, rgba(255, 252, 241, 0.35) 0 1.1%, transparent 3.2%),
    radial-gradient(circle at 34% 30%, #fff9e9 0%, #f4ead4 30%, #e5d7bd 58%, #cabea7 82%, #b2a58d 100%);
}


.moon-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  pointer-events: none;
}

.moon.has-canvas .moon-canvas {
  opacity: 1;
}

.moon.has-canvas .moon-disc {
  opacity: 0;
}

.moon-rim {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset -22px -26px 44px rgba(31, 35, 57, 0.27),
    inset 12px 13px 32px rgba(255, 252, 240, 0.37),
    inset 0 0 0 1px rgba(255, 251, 238, 0.1);
  pointer-events: none;
}

.moon-grain {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 50%;
  background-image: var(--noise);
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
  opacity: 0.14;
  pointer-events: none;
}

.moon-halo {
  position: absolute;
  z-index: -1;
  inset: -62%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(238, 230, 209, 0.24) 0%, rgba(173, 183, 208, 0.11) 31%, rgba(141, 158, 193, 0.04) 50%, transparent 70%);
  filter: blur(14px);
  animation: moon-breathe 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes moon-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
  }
}

.moon-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(231, 226, 214, 0.075);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(0.42);
  pointer-events: none;
}

.moon-orbit-a {
  inset: -17%;
}

.moon-orbit-b {
  inset: -34%;
  border-color: rgba(231, 226, 214, 0.04);
  transform: rotate(29deg) scaleY(0.55);
}

.moon-orbit-a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.moon-hint {
  position: absolute;
  bottom: -42px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.8s var(--ease);
}

.hint-line {
  width: 17px;
  height: 1px;
  background: var(--line);
}

.moon.is-awake {
  animation: moon-awake 2.4s var(--ease);
}

@keyframes moon-awake {
  0% {
    filter: drop-shadow(0 0 48px rgba(237, 229, 208, 0.14));
  }
  26% {
    filter: drop-shadow(0 0 95px rgba(242, 233, 210, 0.34));
  }
  100% {
    filter: drop-shadow(0 0 48px rgba(237, 229, 208, 0.14));
  }
}

.moon-ripple {
  position: fixed;
  z-index: 79;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(241, 231, 210, 0.42);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: ripple-out 2.6s var(--ease-soft) forwards;
}

@keyframes ripple-out {
  from {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(26);
  }
}

.moon-spark {
  position: fixed;
  z-index: 81;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--moon-bright);
  box-shadow: 0 0 7px 1px rgba(245, 236, 214, 0.55);
  pointer-events: none;
}

/* ---------- reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 1.25s var(--ease),
    transform 1.25s var(--ease),
    filter 1.25s var(--ease);
}

.js [data-reveal="1"],
.js [data-delay="1"] {
  transition-delay: 0.12s;
}

.js [data-delay="2"] {
  transition-delay: 0.24s;
}

.js [data-delay="3"] {
  transition-delay: 0.36s;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js .title-char > span {
  transform: translateY(114%);
  transition: transform 1.55s var(--ease);
}

.js .hero-meta,
.js .hero-eyebrow,
.js .hero-sub,
.js .hero-sentence,
.js .hero-floor {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1.4s var(--ease),
    transform 1.4s var(--ease);
}

.js .moon-wrap {
  --mscale: 0.975;
  opacity: 0;
}

.js.is-ready .title-char:nth-child(1) > span {
  transform: translateY(0);
  transition-delay: 0.1s;
}

.js.is-ready .title-char:nth-child(2) > span {
  transform: translateY(0);
  transition-delay: 0.23s;
}

.js.is-ready .hero-meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.js.is-ready .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}

.js.is-ready .hero-sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.62s;
}

.js.is-ready .hero-sentence {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.78s;
}

.js.is-ready .hero-floor {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

.js.is-ready .moon-wrap {
  --mscale: 1;
  opacity: 1;
}

/* ---------- 01 / word ---------- */

.word-section {
  overflow: hidden;
}

.word-section::before {
  content: "WANAN";
  position: absolute;
  top: 4%;
  right: -0.055em;
  font-family: var(--latin);
  font-size: clamp(15rem, 35vw, 34rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 229, 216, 0.027);
  pointer-events: none;
  user-select: none;
}

.word-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
}

.word-lead {
  max-width: 390px;
  padding-bottom: 9px;
  font-size: clamp(13.5px, 1.1vw, 15px);
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.word-lead p + p {
  margin-top: 1em;
}

.latin-inline {
  font-family: var(--latin);
  font-size: 1.24em;
  font-style: italic;
  color: var(--moon);
  letter-spacing: 0.03em;
}

.decode {
  margin-top: clamp(68px, 9vw, 122px);
  border-top: 1px solid var(--line);
}

.decode-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(128px, 0.92fr) minmax(0, 1.9fr) 30px;
  gap: clamp(14px, 3.6vw, 54px);
  align-items: center;
  padding: clamp(22px, 3vw, 38px) clamp(2px, 1vw, 14px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.7s var(--ease);
}

.decode-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201, 156, 148, 0.055), rgba(135, 145, 180, 0.035) 48%, transparent 85%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease);
}

.decode-letter {
  position: relative;
  font-family: var(--latin);
  font-size: clamp(3.1rem, 5.3vw, 5.4rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: rgba(236, 231, 220, 0.84);
  transition: color 0.7s var(--ease), transform 0.9s var(--ease);
}

.decode-letter > small {
  position: absolute;
  top: -9px;
  left: 1px;
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.decode-glyph {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1.5vw, 18px);
  line-height: 1;
}

.decode-glyph > span {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 200;
  color: var(--moon-bright);
  transition: text-shadow 0.8s var(--ease);
}

.decode-glyph > small {
  font-family: var(--latin);
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--faint);
  transition: color 0.7s var(--ease);
}

.decode-note {
  max-width: 38em;
  font-size: clamp(12.5px, 1.08vw, 14.5px);
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.045em;
  color: var(--muted);
  transition: color 0.7s var(--ease);
}

.decode-spark {
  justify-self: end;
  font-family: var(--latin);
  font-size: 11px;
  color: var(--rose);
  opacity: 0;
  transform: translateX(-8px) scale(0.65);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.decode-row:hover::before,
.decode-row:focus-within::before {
  opacity: 1;
}

.decode-row:hover .decode-letter {
  color: var(--moon-bright);
  transform: translateX(6px);
}

.decode-row:hover .decode-glyph > span {
  text-shadow: 0 0 30px rgba(241, 231, 210, 0.18);
}

.decode-row:hover .decode-glyph > small {
  color: var(--moon-dim);
}

.decode-row:hover .decode-note {
  color: var(--text);
}

.decode-row:hover .decode-spark {
  opacity: 0.8;
  transform: translateX(0) scale(1);
}

.word-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: end;
  margin-top: clamp(72px, 9vw, 136px);
}

.word-quote {
  font-size: clamp(1.65rem, 2.9vw, 2.7rem);
  font-weight: 200;
  line-height: 1.72;
  letter-spacing: 0.035em;
  color: var(--text);
}

.word-body {
  justify-self: end;
  max-width: 350px;
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 1px solid var(--line);
  font-size: 13px;
  line-height: 2.15;
  letter-spacing: 0.045em;
  color: var(--muted);
}

/* ---------- 02 / letter ---------- */

.letter-section {
  background: radial-gradient(ellipse 55% 45% at 6% 48%, rgba(86, 69, 96, 0.12), transparent 70%);
}

.letter-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.5fr) minmax(0, 1.35fr);
  gap: clamp(54px, 11vw, 170px);
}

.letter-aside {
  position: sticky;
  top: 120px;
  align-self: start;
}

.letter-aside .section-label {
  margin-bottom: clamp(34px, 5vw, 58px);
}

.letter-title {
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  font-weight: 200;
  line-height: 1.85;
  letter-spacing: 0.055em;
  color: var(--text);
}

.letter-vertical {
  margin-top: clamp(48px, 7vw, 82px);
  padding-left: 1px;
  font-family: var(--serif);
  font-size: 8px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.4em;
  color: var(--faint);
  writing-mode: vertical-rl;
}

.letter {
  max-width: 620px;
  padding-left: clamp(24px, 4.6vw, 68px);
  border-left: 1px solid var(--line);
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  font-weight: 300;
  line-height: 2.45;
  letter-spacing: 0.035em;
  color: #c8c4bb;
}

.letter > p + p {
  margin-top: 1.65em;
}

.letter-greeting {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.17em;
  color: var(--faint);
}

.letter-drop {
  margin-top: clamp(38px, 6vw, 62px);
  margin-bottom: 1.6em;
  font-size: clamp(1.7rem, 3.1vw, 2.65rem);
  font-weight: 200;
  line-height: 1.75;
  letter-spacing: 0.035em;
  color: var(--moon-bright);
}

.letter-last {
  color: var(--moon);
}

.letter-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(13px, 2vw, 22px);
  margin-top: clamp(50px, 6.5vw, 78px);
}

.sign-word {
  font-family: var(--latin);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.035em;
  color: var(--moon);
}

.sign-line {
  width: clamp(40px, 6vw, 72px);
  height: 1px;
  background: var(--line);
}

.letter-sign small {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--faint);
}

/* ---------- 03 / release ---------- */

.release-section {
  overflow: hidden;
}

.release-glow {
  position: absolute;
  z-index: 0;
  top: 8%;
  right: -25%;
  width: min(80vw, 950px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 108, 126, 0.13), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

.release-head {
  position: relative;
  z-index: 1;
}

.release-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(40px, 9vw, 130px);
  align-items: end;
}

.release-lead {
  max-width: 400px;
  padding-bottom: 10px;
  font-size: clamp(13.5px, 1.1vw, 15px);
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.release-small {
  margin-top: 1.15em;
  color: var(--faint);
  font-size: 0.92em;
}

.release-stage {
  position: relative;
  z-index: 2;
  min-height: 196px;
  margin-top: clamp(72px, 9.5vw, 132px);
  transition: min-height 0.8s var(--ease);
}

.release-form {
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
}

.release-form.is-releasing {
  opacity: 0;
  transform: translateY(-12px);
  filter: blur(7px);
  pointer-events: none;
}

.field {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.field-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.field-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  border-bottom: 1px solid rgba(236, 230, 218, 0.17);
  transition: border-color 0.6s var(--ease);
}

.field-row:focus-within {
  border-bottom-color: rgba(241, 231, 210, 0.56);
  box-shadow: 0 1px 0 rgba(241, 231, 210, 0.14);
}

.field:focus-within .field-label {
  color: var(--moon-dim);
}

#release-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 17px 0 21px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 2.2vw, 1.95rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.035em;
  color: var(--text);
  caret-color: var(--rose);
  -webkit-appearance: none;
}

#release-input::placeholder {
  color: rgba(196, 191, 182, 0.42);
  opacity: 1;
}

.release-submit {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--moon);
  cursor: pointer;
  opacity: 0.34;
  transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
}

.release-submit svg {
  width: 19px;
  height: 19px;
  transition: transform 0.6s var(--ease);
}

.release-submit:not(:disabled) {
  opacity: 1;
}

.release-submit:not(:disabled):hover {
  color: var(--moon-bright);
}

.release-submit:not(:disabled):hover svg {
  transform: translateX(5px);
}

.release-submit:disabled {
  cursor: default;
}

.field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.field-count {
  flex: none;
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: rgba(201, 192, 174, 0.62);
}

.release-done {
  padding-top: clamp(10px, 2vw, 24px);
}

.done-line {
  max-width: 28em;
  font-size: clamp(1.6rem, 2.9vw, 2.55rem);
  font-weight: 200;
  line-height: 1.72;
  letter-spacing: 0.03em;
  color: var(--moon-bright);
  white-space: pre-line;
  animation: done-in 1.3s var(--ease) both;
}

.release-again {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-top: clamp(28px, 3.5vw, 44px);
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.15em;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  animation: done-in 1.3s var(--ease) 0.2s both;
}

.release-again > span {
  font-family: var(--latin);
  font-size: 14px;
  line-height: 1;
}

.release-again:hover {
  color: var(--moon);
  border-bottom-color: var(--moon-dim);
}

@keyframes done-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.flying-layer {
  position: fixed;
  z-index: 410;
  margin: 0;
  padding: 0;
  overflow: visible;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.035em;
  color: var(--moon-bright);
  text-shadow: 0 0 18px rgba(241, 231, 210, 0.4);
  pointer-events: none;
  white-space: pre;
}

.flying-char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.release-mote {
  position: fixed;
  z-index: 409;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--moon-bright);
  box-shadow: 0 0 8px 1px rgba(243, 235, 214, 0.48);
  pointer-events: none;
  will-change: transform, opacity;
}

/* ---------- goodnight ---------- */

.goodnight {
  position: relative;
  padding-top: clamp(140px, 17vw, 240px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 48% at 50% 112%, rgba(187, 141, 128, 0.16), transparent 68%),
    linear-gradient(180deg, transparent 30%, rgba(17, 12, 17, 0.4) 100%);
}

.goodnight::before {
  content: "wanan";
  position: absolute;
  top: 39%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--latin);
  font-size: clamp(17rem, 44vw, 43rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(240, 233, 219, 0.019);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.goodnight-glow {
  position: absolute;
  z-index: 0;
  right: -18%;
  bottom: -32%;
  left: -18%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(202, 151, 136, 0.17), transparent 65%);
  filter: blur(45px);
  pointer-events: none;
}

.goodnight-inner {
  z-index: 1;
  text-align: center;
}

.goodnight .section-label {
  justify-content: center;
}

.goodnight-title {
  font-size: clamp(4.2rem, 10.5vw, 10.2rem);
  font-weight: 200;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--moon-bright);
  text-shadow: 0 0 120px rgba(232, 221, 198, 0.12);
}

.goodnight-title em {
  color: var(--moon-dim);
}

.goodnight-copy {
  margin-top: clamp(32px, 4.5vw, 54px);
  font-size: clamp(13.5px, 1.25vw, 16px);
  font-weight: 300;
  line-height: 2.3;
  letter-spacing: 0.055em;
  color: var(--muted);
}

.goodnight-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(82px, 10vw, 140px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.live-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.clock-label {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.2em;
  color: var(--faint);
}

#now-time {
  font-family: var(--latin);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.clock-date {
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.night-note {
  max-width: 34em;
  font-size: 10.5px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-align: center;
}

.back-moon {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.13em;
  color: var(--muted);
  pointer-events: auto;
  transition: color 0.5s var(--ease);
}

.back-orb {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--latin);
  font-size: 14px;
  color: var(--moon-dim);
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease), color 0.5s var(--ease);
}

.back-moon:hover {
  color: var(--moon-bright);
}

.back-moon:hover .back-orb {
  border-color: rgba(241, 231, 210, 0.34);
  color: var(--moon-bright);
  transform: translateY(-4px);
}

.marquee {
  position: relative;
  z-index: 1;
  margin-top: clamp(110px, 14vw, 190px);
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.2vw, 50px);
  width: max-content;
  font-family: var(--latin);
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.055em;
  color: rgba(231, 224, 211, 0.37);
  animation: marquee 46s linear infinite;
  white-space: nowrap;
}

.marquee-track > i {
  color: var(--rose);
  font-size: 0.48em;
  font-style: normal;
  opacity: 0.6;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 27px 0 34px;
  background: rgba(5, 7, 12, 0.32);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.11em;
  color: var(--faint);
}

.footer-brand {
  font-family: var(--latin);
  font-size: 23px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.015em;
  color: var(--moon-dim);
  transition: color 0.5s var(--ease);
}

.footer-brand > span {
  color: var(--rose);
}

.footer-brand:hover {
  color: var(--moon-bright);
}

.footer-meaning {
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(201, 192, 174, 0.65);
}

.footer-dot {
  margin-inline: 5px;
  color: rgba(201, 192, 174, 0.35);
}

.footer-credit {
  color: rgba(201, 192, 174, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.footer-credit:hover {
  color: var(--moon-dim);
  border-bottom-color: var(--line);
}

/* ---------- 404 ---------- */

.page-404 {
  min-height: 100svh;
  overflow: hidden;
}

.not-found-brand {
  position: fixed;
  z-index: 4;
  top: 28px;
  left: var(--gutter);
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--latin);
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--moon-bright);
  transition: opacity 0.4s var(--ease);
}

.not-found-brand:hover {
  opacity: 0.72;
}

.not-found-footer {
  position: fixed;
  z-index: 3;
  right: var(--gutter);
  bottom: 28px;
  left: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.not-found {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(calc(100% - (var(--gutter) * 2)), 1240px);
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 120px;
}

.not-found-glow {
  position: fixed;
  z-index: 0;
  top: -20%;
  right: -15%;
  width: 70vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 122, 168, 0.19), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.not-found .section-label {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.not-found h1 {
  max-width: 8em;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--moon-bright);
}

.not-found h1 em {
  color: var(--moon-dim);
}

.not-found-copy {
  margin-top: 34px;
  max-width: 32em;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.not-found-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  margin-top: 44px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(241, 231, 210, 0.28);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--moon);
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease), gap 0.5s var(--ease);
}

.not-found-link:hover {
  gap: 18px;
  border-bottom-color: var(--moon);
  color: var(--moon-bright);
}

/* ---------- hover-capable devices ---------- */

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .moon-wrap {
    right: clamp(24px, 6vw, 80px);
    width: clamp(235px, 30vw, 350px);
  }

  .hero-title {
    font-size: clamp(7rem, 20.5vw, 15rem);
  }

  .letter-layout {
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.35fr);
    gap: clamp(42px, 8vw, 100px);
  }
}

@media (max-width: 900px) {
  .word-head-grid,
  .release-head-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .word-lead,
  .release-lead {
    max-width: 520px;
    padding-bottom: 0;
  }

  .letter-layout {
    grid-template-columns: 1fr;
    gap: clamp(44px, 7vw, 72px);
  }

  .letter-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
  }

  .letter-aside .section-label {
    width: 100%;
    margin-bottom: 0;
  }

  .letter-vertical {
    display: none;
  }

  .letter {
    max-width: 680px;
    padding-left: 0;
    border-left: 0;
  }

  .letter-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.75;
  }

  .word-foot {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .word-body {
    justify-self: start;
    max-width: 440px;
  }

  .goodnight-meta {
    flex-wrap: wrap;
  }

  .night-note {
    order: 3;
    width: 100%;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: clamp(20px, 5.6vw, 32px);
  }

  body {
    font-size: 15px;
    background-attachment: scroll;
  }

  .site-header {
    padding-block: 18px;
  }

  .site-header.is-scrolled {
    padding-block: 12px;
  }

  .brand {
    font-size: 24px;
  }

  .header-tools {
    gap: 16px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    padding-block: 9px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .sound-toggle {
    gap: 8px;
    padding: 8px 10px;
  }

  .sound-status {
    display: none;
  }

  .sound-text {
    font-size: 10px;
  }

  .hero {
    min-height: 100svh;
    padding-top: clamp(94px, 13vh, 118px);
    padding-bottom: 24px;
  }

  .hero-inner {
    justify-content: flex-start;
    min-height: calc(100svh - 118px);
  }

  .hero-meta {
    font-size: 7.5px;
    letter-spacing: 0.17em;
  }

  .meta-brand {
    gap: 8px;
  }

  .meta-rule {
    width: 18px;
  }

  .meta-date {
    display: none;
  }

  .meta-sep {
    width: 10px;
  }

  .moon-wrap {
    top: clamp(118px, 15vh, 152px);
    right: 7vw;
    width: clamp(142px, 37vw, 218px);
  }

  .moon-hint {
    bottom: -26px;
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .hint-line {
    width: 12px;
  }

  .moon-orbit-a {
    inset: -14%;
  }

  .moon-orbit-b {
    inset: -28%;
  }

  .hero-main {
    padding-top: clamp(198px, 27vh, 248px);
    padding-bottom: 42px;
  }

  .hero-floor {
    margin-top: auto;
  }

  .hero-eyebrow {
    margin-bottom: 17px;
    font-size: 11px;
    letter-spacing: 0.09em;
  }

  .eyebrow-rule {
    width: 24px;
  }

  .hero-title {
    gap: 0.045em;
    font-size: clamp(6.2rem, 34.5vw, 10.5rem);
    line-height: 0.85;
  }

  .hero-sub {
    gap: 12px;
    margin-top: 25px;
  }

  .sub-wanan {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .sub-rule {
    width: 28px;
  }

  .sub-cn {
    font-size: 8.5px;
    letter-spacing: 0.16em;
  }

  .hero-sentence {
    margin-top: 23px;
    max-width: 20em;
    font-size: 13px;
    line-height: 2.05;
  }

  .mobile-break {
    display: block;
  }

  .hero-floor {
    padding-top: 15px;
  }

  .scroll-cue {
    gap: 11px;
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .scroll-track {
    height: 37px;
  }

  .readout-label {
    font-size: 7px;
    letter-spacing: 0.19em;
  }

  .readout-value {
    gap: 6px;
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .readout-value > span:last-child {
    font-size: 9px;
  }

  .readout-rule {
    width: 12px;
  }

  .section {
    padding-block: clamp(96px, 22vw, 150px);
  }

  .section-label {
    margin-bottom: 38px;
    font-size: 8.5px;
    letter-spacing: 0.17em;
  }

  .section-label > i {
    width: 18px;
  }

  .display-title {
    font-size: clamp(2.7rem, 12.5vw, 4.7rem);
    line-height: 1.32;
  }

  .word-section::before {
    top: 1%;
    font-size: 55vw;
  }

  .word-lead,
  .release-lead {
    font-size: 13px;
    line-height: 2.15;
  }

  .decode {
    margin-top: 52px;
  }

  .decode-row {
    grid-template-columns: 40px 58px minmax(0, 1fr);
    gap: 13px;
    padding: 22px 0;
  }

  .decode-letter {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .decode-letter > small {
    top: -8px;
    font-size: 6px;
  }

  .decode-glyph {
    flex-direction: column;
    gap: 3px;
  }

  .decode-glyph > span {
    font-size: clamp(1.65rem, 7.5vw, 2.2rem);
  }

  .decode-glyph > small {
    font-size: 9px;
    line-height: 1;
  }

  .decode-note {
    font-size: 12px;
    line-height: 1.85;
  }

  .decode-spark {
    display: none;
  }

  .word-foot {
    margin-top: 68px;
    gap: 26px;
  }

  .word-quote {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.75;
  }

  .word-body {
    padding-left: 20px;
    font-size: 12px;
    line-height: 2.05;
  }

  .letter-aside {
    display: block;
  }

  .letter-aside .section-label {
    margin-bottom: 28px;
  }

  .letter-title {
    font-size: clamp(1.35rem, 6.2vw, 1.8rem);
  }

  .letter {
    font-size: 14px;
    line-height: 2.3;
  }

  .letter-drop {
    margin-top: 36px;
    font-size: clamp(1.5rem, 6.8vw, 2rem);
    line-height: 1.8;
  }

  .letter > p + p {
    margin-top: 1.55em;
  }

  .letter-greeting {
    font-size: 9px;
  }

  .letter-sign {
    margin-top: 46px;
  }

  .sign-word {
    font-size: 1.8rem;
  }

  .release-stage {
    min-height: 220px;
    margin-top: 62px;
  }

  .field {
    padding-top: 18px;
  }

  .field-label {
    font-size: 8px;
    letter-spacing: 0.17em;
  }

  .field-row {
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 10px;
  }

  #release-input {
    flex-basis: 100%;
    padding: 15px 0 12px;
    font-size: 1.12rem;
  }

  .release-submit {
    margin-left: auto;
    margin-bottom: 0;
    padding: 8px 0;
    font-size: 10px;
  }

  .release-submit svg {
    width: 17px;
    height: 17px;
  }

  .field-meta {
    align-items: flex-start;
    font-size: 8px;
    letter-spacing: 0.07em;
  }

  .field-privacy {
    max-width: 22em;
  }

  .field-count {
    font-size: 10px;
  }

  .done-line {
    font-size: clamp(1.45rem, 6.7vw, 1.9rem);
    line-height: 1.8;
  }

  .goodnight {
    padding-top: 124px;
  }

  .goodnight::before {
    top: 33%;
    font-size: 58vw;
  }

  .goodnight .section-label {
    margin-bottom: 42px;
  }

  .goodnight-title {
    font-size: clamp(3.2rem, 16vw, 5.6rem);
    line-height: 1.3;
  }

  .goodnight-copy {
    font-size: 13px;
    line-height: 2.2;
  }

  .goodnight-meta {
    gap: 24px 20px;
    margin-top: 72px;
    padding-top: 18px;
  }

  .live-clock {
    gap: 7px 10px;
  }

  #now-time {
    font-size: 16px;
  }

  .clock-date {
    flex-basis: 100%;
    margin-left: 0;
  }

  .night-note {
    font-size: 9.5px;
  }

  .back-moon {
    margin-left: auto;
  }

  .marquee {
    margin-top: 84px;
    padding: 15px 0;
  }

  .marquee-track {
    gap: 24px;
    font-size: 1.35rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-brand {
    order: -1;
    font-size: 22px;
  }

  .moon-ripple {
    display: none;
  }

  .not-found {
    padding-block: 120px 140px;
  }

  .not-found-brand {
    top: 20px;
    font-size: 23px;
  }

  .not-found h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .not-found-copy {
    font-size: 13px;
    line-height: 2.1;
  }

  .not-found-footer {
    bottom: 20px;
    flex-direction: column;
    gap: 5px;
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .meta-tag,
  .meta-rule {
    display: none;
  }

  .hero-title {
    font-size: clamp(5.7rem, 33vw, 8rem);
  }

  .sound-toggle {
    gap: 6px;
    padding: 8px 9px;
  }

  .sound-text {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .site-nav {
    gap: 11px;
  }

  .sub-cn {
    letter-spacing: 0.1em;
  }

  .scroll-word {
    max-width: none;
    white-space: nowrap;
    font-size: 7.5px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 700px) and (max-height: 720px) {
  .moon-hint {
    display: none;
  }

  .hero {
    padding-top: 84px;
    padding-bottom: 18px;
  }

  .hero-inner {
    min-height: calc(100svh - 102px);
  }

  .hero-main {
    padding-top: 170px;
    padding-bottom: 24px;
  }

  .hero-eyebrow {
    margin-bottom: 12px;
  }

  .hero-sub {
    margin-top: 17px;
  }

  .hero-sentence {
    margin-top: 15px;
    line-height: 1.95;
  }

  .hero-floor {
    padding-top: 9px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .intro {
    display: none;
  }

  .aurora,
  .moon-halo,
  .sky-star,
  .marquee-track {
    animation: none !important;
  }

  .js [data-reveal],
  .js .hero-meta,
  .js .hero-eyebrow,
  .js .hero-sub,
  .js .hero-sentence,
  .js .hero-floor,
  .js .moon-wrap,
  .js .title-char > span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .cursor-glow {
    display: none !important;
  }

  .scroll-track > i {
    top: 10px;
    animation: none !important;
  }
}
