/* ==========================================================================
   白羽花园 · Garden of White Feathers
   A small, dependency-free static experience.
   ========================================================================== */

@font-face {
  font-family: "Garden Serif";
  src: url("/assets/fonts/noto-serif-sc-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-300i.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #2c2633;
  --ink-soft: #6c6473;
  --ink-faint: #9d93a4;
  --paper: #fdfcf9;
  --lavender: #9a88ad;
  --serif-zh: "Garden Serif", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --serif-en: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --spring: cubic-bezier(0.2, 1.45, 0.32, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background: #1a1d28;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(154, 136, 173, 0.28);
  color: var(--ink);
}

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

button {
  font: inherit;
}

img {
  max-width: 100%;
}

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

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
}

.scene--garden :focus-visible {
  outline-color: #a18bb6;
}

/* ==========================================================================
   Scene mechanics
   ========================================================================== */

main {
  position: relative;
  height: 100%;
}

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scene--home {
  z-index: 1;
  background: #1b1e29;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition:
    opacity 0.7s ease,
    transform 1.25s var(--ease-out),
    filter 1s ease,
    visibility 0s linear 0s;
}

.scene--home.is-leaving {
  transform: scale(0.988);
  filter: blur(1.5px) saturate(0.96);
  transition:
    transform 1.4s var(--ease-out),
    filter 1s ease;
}

.scene--home.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.966);
  filter: blur(6px);
  transition:
    opacity 0.65s ease,
    transform 1.25s var(--ease-out),
    filter 0.9s ease,
    visibility 0s linear 0.8s;
}

.scene--home.is-returning {
  animation: homeReturn 1.15s var(--spring) both;
}

@keyframes homeReturn {
  0% {
    opacity: 0;
    transform: scale(1.028);
    filter: blur(5px);
  }
  55% {
    opacity: 1;
    transform: scale(0.997);
    filter: blur(0);
  }
  78% {
    transform: scale(1.002);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.scene--garden {
  z-index: 2;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.01);
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 108, 139, 0.35) transparent;
}

.scene--garden.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 1.15s var(--spring);
}

.scene--garden.is-leaving {
  opacity: 0;
  transform: scale(0.992);
  transition:
    opacity 0.45s ease,
    transform 0.8s ease;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 42%, #fffefa 0%, #fbf7f5 52%, #f4eef2 100%);
  clip-path: circle(0 at var(--vx, 50%) var(--vy, 60%));
  will-change: clip-path, opacity;
}

.veil.is-on {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s ease;
}

.veil.is-open {
  clip-path: circle(160vmax at var(--vx, 50%) var(--vy, 60%));
  transition:
    clip-path 0.82s cubic-bezier(0.66, 0, 0.2, 1),
    opacity 0.28s ease;
}

.veil.is-fading {
  opacity: 0;
  transition: opacity 0.52s ease;
}

/* ==========================================================================
   Home
   ========================================================================== */

.hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #232634;
}

.hero picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
  transform-origin: 58% 50%;
  animation:
    heroReveal 1.9s var(--ease-out) both,
    heroDrift 42s ease-in-out 1.9s infinite alternate;
  will-change: transform;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: scale(1.085);
  }
  100% {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes heroDrift {
  0% {
    transform: scale(1.035) translate3d(-0.35%, 0.22%, 0);
  }
  100% {
    transform: scale(1.062) translate3d(0.4%, -0.3%, 0);
  }
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 15, 26, 0.52) 0%, rgba(13, 15, 26, 0.18) 13%, transparent 31%, transparent 62%, rgba(12, 14, 24, 0.46) 100%),
    radial-gradient(110% 90% at 0% 100%, rgba(10, 12, 23, 0.5) 0%, rgba(10, 12, 23, 0.14) 44%, transparent 68%),
    radial-gradient(74% 110% at 100% 48%, rgba(12, 14, 25, 0.2) 0%, transparent 62%),
    radial-gradient(80% 70% at 85% 8%, rgba(255, 241, 237, 0.07), transparent 60%);
}

/* ── Drifting mist ────────────────────────────────────────────────────────── */

.fog {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: fogIn 2.4s ease 0.35s both;
}

.fog__breath {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(42% 54% at 29% 68%, rgba(219, 228, 247, 0.1), transparent 72%),
    radial-gradient(38% 46% at 68% 38%, rgba(255, 236, 248, 0.06), transparent 74%),
    radial-gradient(32% 34% at 78% 76%, rgba(210, 223, 246, 0.07), transparent 70%);
  filter: blur(28px);
  animation: breathe 19s ease-in-out infinite alternate;
}

.fog__sheet {
  position: absolute;
  left: -8%;
  top: -9%;
  width: 116%;
  height: 118%;
  background: url("/assets/img/mist.webp") center / cover no-repeat;
  opacity: 0.2;
  will-change: transform;
  transform-origin: 50% 50%;
}

.fog__sheet--a {
  animation: mistA 54s ease-in-out infinite alternate;
}

.fog__sheet--b {
  opacity: 0.09;
  filter: blur(1.4px);
  animation: mistB 76s ease-in-out infinite alternate;
}

@keyframes fogIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes breathe {
  0% {
    transform: translate3d(-1.5%, 1%, 0) scale(0.98);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(1.8%, -1.4%, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes mistA {
  0% { transform: translate3d(-2.4%, 1.1%, 0) scale(1.02); }
  100% { transform: translate3d(2.2%, -1.2%, 0) scale(1.08); }
}

@keyframes mistB {
  0% { transform: scaleX(-1) translate3d(-2%, -0.8%, 0) scale(1.05); }
  100% { transform: scaleX(-1) translate3d(2.4%, 1.2%, 0) scale(1.11); }
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */

.topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3.4vw, 42px) clamp(20px, 4.2vw, 58px);
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.brand__flower {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  opacity: 0.8;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand__cn {
  font-family: var(--serif-zh);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand__en {
  font-family: var(--serif-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.58;
}

.topbar--light {
  animation: fadeIn 1.4s ease 0.45s both;
}

.topbar--light .brand {
  text-shadow: 0 1px 22px rgba(12, 14, 24, 0.32);
}

.topbar__aside {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--serif-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 18px rgba(10, 12, 22, 0.55);
}

.topbar__rule {
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid rgba(44, 38, 51, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.6s var(--spring),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.5s ease;
}

.back:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(44, 38, 51, 0.24);
  box-shadow: 0 12px 30px rgba(74, 58, 88, 0.1);
}

.back:active {
  transform: translateY(0) scale(0.975);
}

.back__arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.5s var(--spring);
}

.back:hover .back__arrow {
  transform: translateX(-3px);
}

.back__label {
  font-family: var(--serif-zh);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.back__en {
  font-family: var(--serif-en);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.46;
}

.topbar--ink {
  color: var(--ink);
}

.topbar--ink .brand {
  color: var(--ink);
}

.topbar--ink .brand__en {
  opacity: 0.46;
}

.scene--garden .topbar--ink,
.scene--garden .back,
.scene--garden .garden__foot {
  opacity: 0;
}

.scene--garden.is-active .topbar--ink,
.scene--garden.is-active .back {
  opacity: 1;
  transition: opacity 0.8s ease 0.72s;
}

.scene--garden.is-active .garden__foot {
  opacity: 1;
  transition: opacity 1s ease 1.15s;
}

/* ── Vertical marginal note ───────────────────────────────────────────────── */

.side-note {
  position: absolute;
  top: 50%;
  right: clamp(18px, 2.6vw, 38px);
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0;
  color: rgba(255, 255, 255, 0.53);
  font-family: var(--serif-en);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  text-shadow: 0 1px 14px rgba(10, 12, 22, 0.35);
  animation: fadeIn 1.6s ease 1s both;
}

.side-note__line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.24);
}

/* ── Frosted glass entrance ───────────────────────────────────────────────── */

.glass {
  position: absolute;
  bottom: clamp(58px, 9vh, 92px);
  left: clamp(20px, 4.2vw, 64px);
  z-index: 30;
  display: block;
  width: min(390px, calc(100vw - 48px));
  overflow: hidden;
  isolation: isolate;
  padding: 27px 29px 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(142deg, rgba(44, 47, 67, 0.32) 0%, rgba(31, 34, 51, 0.2) 44%, rgba(46, 39, 57, 0.28) 100%),
    linear-gradient(142deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.055) 45%, rgba(255, 255, 255, 0.11) 100%);
  box-shadow:
    0 30px 74px rgba(7, 9, 19, 0.44),
    0 3px 12px rgba(7, 9, 19, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(25px) saturate(138%) brightness(0.95);
  backdrop-filter: blur(25px) saturate(138%) brightness(0.95);
  cursor: pointer;
  transition:
    transform 0.72s var(--spring),
    border-color 0.5s ease,
    box-shadow 0.62s ease,
    background 0.5s ease;
  animation: glassIn 1.25s var(--spring) 0.62s both;
  will-change: transform;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: linear-gradient(142deg, rgba(52, 57, 78, 0.88), rgba(35, 38, 55, 0.82));
  }
}

.glass:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 249, 255, 0.54);
  background:
    linear-gradient(142deg, rgba(48, 51, 72, 0.3) 0%, rgba(32, 35, 53, 0.17) 44%, rgba(52, 43, 63, 0.24) 100%),
    linear-gradient(142deg, rgba(255, 255, 255, 0.23) 0%, rgba(255, 255, 255, 0.075) 46%, rgba(255, 255, 255, 0.14) 100%);
  box-shadow:
    0 38px 92px rgba(7, 9, 19, 0.5),
    0 0 42px rgba(224, 209, 247, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.glass:active {
  transform: translateY(-1px) scale(0.992);
  transition-duration: 0.16s;
}

.glass:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 5px;
}

.glass__light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 26%), rgba(255, 252, 255, 0.3) 0%, rgba(255, 255, 255, 0.06) 45%, transparent 72%);
  transition: opacity 0.5s ease;
}

.glass:hover .glass__light,
.glass:focus-visible .glass__light {
  opacity: 1;
}

.glass::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -78%;
  z-index: 1;
  width: 54%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.06) 28%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 255, 255, 0.04) 72%, transparent 100%);
  transform: rotate(11deg);
  pointer-events: none;
  opacity: 0;
  transition:
    left 1.15s cubic-bezier(0.3, 0.75, 0.25, 1),
    opacity 0.35s ease;
}

.glass:hover::after {
  left: 122%;
  opacity: 1;
}

.glass__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.glass__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--serif-en);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

.glass__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 241, 251, 0.92);
  box-shadow: 0 0 12px rgba(255, 227, 247, 0.9);
}

.glass__title {
  margin: 15px 0 0;
  color: #fff;
  font-family: var(--serif-zh);
  font-size: clamp(31px, 2.8vw, 39px);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.15;
  text-shadow: 0 2px 28px rgba(17, 12, 26, 0.28);
}

.glass__en {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif-en);
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

.glass__rule {
  width: 100%;
  height: 1px;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.11) 48%, transparent 100%);
}

.glass__desc {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif-zh);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 2;
}

.glass__cta {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin-top: 21px;
}

.glass__cta-text {
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--serif-zh);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.glass__cta-en {
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--serif-en);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.glass__arrow {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.65s var(--spring),
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.glass__arrow svg {
  width: 17px;
  height: 17px;
}

.glass:hover .glass__arrow {
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.94);
  color: #322a3b;
}

@keyframes glassIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.965);
  }
  55% {
    opacity: 1;
    transform: translateY(-6px) scale(1.004);
  }
  76% {
    transform: translateY(3px) scale(0.999);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-foot {
  position: absolute;
  bottom: clamp(20px, 3.2vh, 30px);
  left: clamp(20px, 4.2vw, 64px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: rgba(255, 255, 255, 0.37);
  font-family: var(--serif-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  animation: fadeIn 1.6s ease 1.1s both;
}

.home-foot__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

/* ==========================================================================
   Garden
   ========================================================================== */

.scene--garden::-webkit-scrollbar {
  width: 6px;
}

.scene--garden::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(124, 108, 139, 0.28);
}

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

.garden__wash {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
}

.garden__wash--a {
  top: -34vw;
  left: -25vw;
  width: 72vw;
  height: 72vw;
  background: radial-gradient(circle, rgba(194, 207, 231, 0.2) 0%, rgba(194, 207, 231, 0.05) 48%, transparent 70%);
}

.garden__wash--b {
  right: -28vw;
  bottom: -36vw;
  width: 78vw;
  height: 78vw;
  background: radial-gradient(circle, rgba(228, 197, 212, 0.28) 0%, rgba(228, 197, 212, 0.08) 46%, transparent 70%);
}

.garden__flower {
  position: absolute;
  color: #8d7ea4;
  fill: none;
  pointer-events: none;
}

.garden__flower--one {
  top: 16vh;
  right: 26vw;
  width: 114px;
  height: 114px;
  opacity: 0.13;
  transform: rotate(14deg);
  animation: flowerTurn 30s ease-in-out infinite alternate;
}

.garden__flower--two {
  bottom: 6vh;
  left: 37vw;
  width: 170px;
  height: 170px;
  opacity: 0.055;
  transform: rotate(-18deg);
}

@keyframes flowerTurn {
  0% { transform: rotate(10deg) translate3d(0, 0, 0); }
  100% { transform: rotate(22deg) translate3d(0, -10px, 0); }
}

.petal {
  position: absolute;
  width: 13px;
  height: 8px;
  border-radius: 72% 28% 62% 38%;
  background: linear-gradient(138deg, rgba(178, 148, 202, 0.66), rgba(240, 209, 224, 0.5));
  opacity: 0.42;
  filter: blur(0.25px);
  animation: floatPetal 15s ease-in-out infinite;
}

.petal--1 {
  top: 23%;
  left: 8.5%;
  animation-duration: 16s;
  animation-delay: -2s;
  transform: rotate(24deg);
}

.petal--2 {
  top: 66%;
  left: 6%;
  width: 9px;
  height: 6px;
  opacity: 0.28;
  animation-duration: 19s;
  animation-delay: -7s;
  transform: rotate(-32deg);
}

.petal--3 {
  top: 13%;
  left: 46%;
  width: 10px;
  height: 6px;
  opacity: 0.22;
  animation-duration: 22s;
  animation-delay: -12s;
  transform: rotate(61deg);
}

.petal--4 {
  top: 38%;
  right: 13%;
  width: 11px;
  height: 7px;
  opacity: 0.26;
  animation-duration: 18s;
  animation-delay: -4s;
  transform: rotate(-14deg);
}

.petal--5 {
  top: 77%;
  left: 42%;
  width: 8px;
  height: 5px;
  opacity: 0.2;
  animation-duration: 21s;
  animation-delay: -15s;
  transform: rotate(48deg);
}

.petal--6 {
  top: 54%;
  right: 6%;
  width: 12px;
  height: 7px;
  opacity: 0.3;
  animation-duration: 17s;
  animation-delay: -9s;
  transform: rotate(9deg);
}

@keyframes floatPetal {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  35% {
    translate: 13px -18px;
    rotate: 22deg;
  }
  70% {
    translate: -8px -31px;
    rotate: -12deg;
  }
}

.garden__copy {
  position: relative;
  z-index: 10;
  width: min(620px, 52vw);
  margin-left: clamp(24px, 8vw, 128px);
  padding-top: clamp(140px, 21vh, 218px);
  padding-bottom: 90px;
}

.scene--garden.is-active .garden__copy {
  animation: copyIn 1.02s cubic-bezier(0.2, 1.32, 0.34, 1) 0.62s both;
}

@keyframes copyIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 42px, 0);
  }
  56% {
    opacity: 1;
    transform: translate3d(0, -8px, 0);
  }
  76% {
    transform: translate3d(0, 3px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.garden__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #908698;
  font-family: var(--serif-en);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

.garden__eyebrow > span:first-child {
  color: #7c6b8d;
  font-style: italic;
  letter-spacing: 0.12em;
}

.garden__eyebrow-rule {
  width: 40px;
  height: 1px;
  background: rgba(124, 107, 141, 0.34);
}

.garden__title {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: var(--serif-zh);
  font-size: clamp(49px, 5.9vw, 82px);
  font-weight: 400;
  letter-spacing: 0.085em;
  line-height: 1.22;
  text-wrap: balance;
}

.garden__title:focus {
  outline: none;
}

.garden__title span {
  color: #9381a7;
}

.garden__en {
  margin: 10px 0 0;
  color: #8e8397;
  font-family: var(--serif-en);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.35;
}

.garden__text {
  max-width: 404px;
  margin: 33px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif-zh);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.095em;
  line-height: 2.15;
}

.garden__quote {
  position: relative;
  max-width: 330px;
  margin: 30px 0 0;
  padding: 0 0 0 17px;
  border-left: 1px solid rgba(137, 117, 157, 0.36);
  color: #817487;
  font-family: var(--serif-zh);
  font-size: 12.5px;
  font-style: normal;
  letter-spacing: 0.13em;
  line-height: 1.9;
}

.garden__credit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(30px, 5vh, 54px) 0 0;
  color: #a096a5;
  font-family: var(--serif-en);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.garden__credit-line {
  width: 28px;
  height: 1px;
  background: rgba(130, 112, 147, 0.28);
}

.garden__credit > span:last-child {
  color: #807389;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: none;
}

.garden__foot {
  position: absolute;
  bottom: 28px;
  left: clamp(24px, 8vw, 128px);
  z-index: 5;
  margin: 0;
  color: #b2a8b7;
  font-family: var(--serif-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Chibi ────────────────────────────────────────────────────────────────── */

.chibi-zone {
  position: absolute;
  right: clamp(22px, 5vw, 88px);
  bottom: 0;
  z-index: 8;
  width: clamp(260px, 29vw, 420px);
  aspect-ratio: 1;
  animation: chibiIn 1.2s cubic-bezier(0.16, 1.38, 0.32, 1) 0.72s both;
}

@keyframes chibiIn {
  0% {
    opacity: 0;
    transform: translate3d(52px, 82px, 0) scale(0.86);
  }
  58% {
    opacity: 1;
    transform: translate3d(-6px, -13px, 0) scale(1.026);
  }
  79% {
    transform: translate3d(2px, 4px, 0) scale(0.997);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.chibi__aura {
  position: absolute;
  top: 5%;
  left: 4%;
  z-index: 0;
  width: 92%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 151, 199, 0.3) 0%, rgba(206, 183, 216, 0.12) 42%, transparent 68%);
  pointer-events: none;
}

.chibi__ring {
  position: absolute;
  top: 3%;
  left: 12%;
  z-index: 0;
  width: 78%;
  height: 78%;
  border: 1px solid rgba(137, 114, 161, 0.17);
  border-radius: 50%;
  pointer-events: none;
}

.chibi__ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 22%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(154, 130, 178, 0.42);
  box-shadow: 0 0 12px rgba(177, 151, 201, 0.5);
}

.chibi {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 92%;
  filter: drop-shadow(0 28px 28px rgba(82, 62, 100, 0.16));
  transition:
    transform 0.62s var(--spring),
    filter 0.55s ease;
  -webkit-user-select: none;
  user-select: none;
}

.chibi picture {
  display: block;
}

.chibi img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 7%, #000 100%);
  mask-image: linear-gradient(to top, transparent 0%, #000 7%, #000 100%);
  -webkit-user-drag: none;
  user-select: none;
}

.chibi:hover {
  transform: translateY(-7px) rotate(-0.55deg);
  filter: drop-shadow(0 36px 34px rgba(82, 62, 100, 0.23));
}

.chibi:active {
  transform: translateY(-1px) scale(0.985);
}

.chibi:focus-visible {
  outline: 2px solid #a18bb6;
  outline-offset: 9px;
  border-radius: 42%;
}

.chibi.is-bouncing {
  animation: chibiBounce 0.92s cubic-bezier(0.2, 1.4, 0.32, 1);
}

@keyframes chibiBounce {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  16% {
    transform: translateY(3px) scale(1.055, 0.925);
  }
  38% {
    transform: translateY(-24px) scale(0.962, 1.055);
  }
  58% {
    transform: translateY(0) scale(1.045, 0.968);
  }
  74% {
    transform: translateY(-7px) scale(0.994, 1.008);
  }
  87% {
    transform: translateY(0) scale(1.008, 0.996);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

.chibi__hint {
  position: absolute;
  top: 2%;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(120, 99, 139, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 10px 28px rgba(84, 64, 103, 0.1),
    0 0 0 5px rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #7e6f8c;
  font-family: var(--serif-zh);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  line-height: 1;
  pointer-events: none;
  animation: hintFloat 4.6s ease-in-out infinite;
  transition:
    opacity 0.45s ease,
    transform 0.55s var(--spring);
}

.chibi__hint-spark {
  width: 10px;
  height: 10px;
  color: #b49bc7;
}

.chibi__hint.is-dismissed {
  opacity: 0;
  transform: translateY(-7px) scale(0.94);
}

@keyframes hintFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

.burst {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: visible;
  pointer-events: none;
}

.burst__petal {
  position: absolute;
  top: 43%;
  left: 51%;
  width: 16px;
  height: 10px;
  border-radius: 72% 28% 62% 38%;
  background: linear-gradient(138deg, #c3a5d9, #edd4e1);
  box-shadow: 0 2px 8px rgba(124, 94, 146, 0.15);
  opacity: 0;
  animation: petalPop 1.08s cubic-bezier(0.15, 0.75, 0.3, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes petalPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  16% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(var(--rot));
  }
}

.noscript-note {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(30, 25, 36, 0.86);
  color: #fff;
  font-size: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__art {
    object-position: 70% 48%;
  }

  .garden__copy {
    width: min(560px, 55vw);
    margin-left: clamp(24px, 6.5vw, 80px);
  }

  .garden__flower--one {
    right: 18vw;
  }

  .chibi-zone {
    width: clamp(250px, 32vw, 360px);
    right: clamp(12px, 3.5vw, 44px);
  }
}

@media (max-width: 860px) {
  .hero__art {
    object-position: 74% 48%;
  }

  .topbar__aside {
    font-size: 9px;
  }

  .topbar__rule {
    width: 24px;
  }

  .side-note {
    display: none;
  }

  .glass {
    bottom: clamp(54px, 8vh, 72px);
  }

  .garden__title {
    font-size: clamp(45px, 7.8vw, 64px);
  }

  .garden__flower--one {
    display: none;
  }

  .garden__copy {
    width: min(520px, 60vw);
    padding-top: clamp(128px, 19vh, 175px);
  }

  .garden__text {
    max-width: 350px;
  }

  .chibi-zone {
    width: clamp(245px, 38vw, 320px);
    right: 1.5vw;
  }

  .garden__foot {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 12px;
    padding: 19px 18px;
    align-items: flex-start;
  }

  .brand {
    gap: 9px;
  }

  .brand__flower {
    width: 22px;
    height: 22px;
  }

  .brand__cn {
    font-size: 12.5px;
    letter-spacing: 0.15em;
  }

  .brand__en {
    font-size: 7.6px;
    letter-spacing: 0.17em;
  }

  .topbar__aside {
    display: none;
  }

  .hero__art {
    object-position: 72% 48%;
  }

  .glass {
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 16px;
    width: min(54vw, 220px);
    padding: 17px 17px 15px;
    border-radius: 19px;
  }

  .glass__eyebrow {
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }

  .glass__title {
    margin-top: 10px;
    padding-right: 30px;
    font-size: 27px;
    letter-spacing: 0.14em;
  }

  .glass__en {
    margin-top: 1px;
    font-size: 12.5px;
  }

  .glass__rule,
  .glass__desc {
    display: none;
  }

  .glass__cta {
    position: absolute;
    top: -3px;
    right: 0;
    width: 32px;
    margin: 0;
  }

  .glass__cta-text,
  .glass__cta-en {
    display: none;
  }

  .glass__arrow {
    width: 32px;
    height: 32px;
    margin-left: 0;
  }

  .glass__arrow svg {
    width: 15px;
    height: 15px;
  }

  .home-foot {
    display: none;
  }

  .garden__copy {
    width: auto;
    margin: 0 20px;
    padding-top: 112px;
    padding-bottom: 250px;
  }

  .garden__eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.22em;
  }

  .garden__title {
    margin-top: 19px;
    font-size: clamp(41px, 11.5vw, 55px);
    letter-spacing: 0.055em;
  }

  .garden__en {
    margin-top: 7px;
    font-size: 17px;
  }

  .garden__text {
    max-width: 67vw;
    margin-top: 25px;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    line-height: 2.05;
  }

  .garden__quote {
    max-width: 60vw;
    margin-top: 22px;
    font-size: 11.5px;
    letter-spacing: 0.08em;
  }

  .garden__credit {
    margin-top: 26px;
  }

  .garden__flower--two {
    left: auto;
    right: 0;
    bottom: 8vh;
    width: 130px;
    height: 130px;
  }

  .petal--3,
  .petal--4,
  .petal--6 {
    display: none;
  }

  .chibi-zone {
    width: min(62vw, 300px);
    right: 0;
    bottom: 0;
  }

  .chibi__hint {
    top: 0;
    left: 1%;
    padding: 7px 10px;
    font-size: 9px;
  }

  .back {
    gap: 5px;
    padding: 9px 12px;
  }

  .back__label {
    font-size: 10.5px;
  }

  .back__en {
    display: none;
  }

  .back__arrow {
    font-size: 14px;
  }

  .garden__foot {
    display: none;
  }

  .veil {
    background: radial-gradient(circle at 50% 42%, #fffefa 0%, #fbf7f5 64%, #f3edf1 100%);
  }
}

@media (max-width: 390px) {
  .glass {
    padding: 19px 19px 16px;
  }

  .glass__title {
    font-size: 28px;
  }

  .glass__desc {
    font-size: 11.5px;
  }

  .garden__title {
    font-size: 39px;
  }

  .garden__text {
    max-width: 72vw;
    font-size: 12px;
  }

  .garden__quote {
    max-width: 64vw;
  }

  .chibi-zone {
    width: min(64vw, 280px);
  }
}

@media (max-height: 720px) and (min-width: 641px) {
  .glass {
    bottom: 48px;
    padding: 21px 24px 19px;
  }

  .glass__title {
    margin-top: 11px;
    font-size: 30px;
  }

  .glass__rule {
    margin: 13px 0 11px;
  }

  .glass__desc {
    line-height: 1.85;
  }

  .glass__cta {
    margin-top: 15px;
  }

  .home-foot {
    bottom: 16px;
  }

  .garden__copy {
    padding-top: clamp(110px, 18vh, 145px);
  }

  .garden__title {
    font-size: clamp(42px, 5.6vw, 64px);
    margin-top: 18px;
  }

  .garden__text {
    margin-top: 22px;
  }

  .garden__quote {
    margin-top: 20px;
  }

  .garden__credit {
    margin-top: 22px;
  }

  .chibi-zone {
    width: clamp(250px, 34vw, 360px);
  }
}

@media (max-height: 580px) and (min-width: 641px) {
  .glass__desc,
  .glass__rule {
    display: none;
  }

  .glass {
    padding: 18px 22px 16px;
  }

  .glass__cta {
    margin-top: 14px;
  }

  .home-foot {
    display: none;
  }

  .garden__copy {
    padding-top: 90px;
  }

  .garden__text {
    display: none;
  }

  .garden__quote {
    margin-top: 14px;
  }

  .garden__credit {
    margin-top: 16px;
  }

  .chibi-zone {
    width: 280px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero__art {
    transform: scale(1.035);
  }

  .fog__breath,
  .fog__sheet,
  .petal,
  .garden__flower--one,
  .chibi__hint {
    animation: none !important;
  }
}

/* Direct hash entry is painted before JS runs, avoiding a home-page flash. */
.direct-garden .scene--home {
  opacity: 0;
  visibility: hidden;
}

.direct-garden .scene--garden {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.direct-garden .garden__copy,
.direct-garden .chibi-zone,
.is-instant .garden__copy,
.is-instant .chibi-zone {
  animation: none !important;
  opacity: 1;
}

.direct-garden .topbar--ink,
.direct-garden .back,
.direct-garden .garden__foot {
  opacity: 1 !important;
}
