:root {
  --bg: #e7f3e6;
  --bg-warm: #f5f5f0;
  --ink: #303f2d;
  --ink-soft: #4a6547;
  --sage: #9aad93;
  --line: rgba(48, 63, 45, 0.18);
  --paper-shadow: rgba(48, 63, 45, 0.08);
  --font-zh: "Noto Serif SC", "Songti SC", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --ease-slow: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-zh);
  font-weight: 400;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(154, 173, 147, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #ddeedf 100%);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* Paper noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 2000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s var(--ease-slow);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  opacity: 0.85;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(48, 63, 45, 0.35);
  transition: width 0.45s var(--ease-slow), height 0.45s var(--ease-slow), border-color 0.35s;
}

body.is-hovering .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(74, 101, 71, 0.45);
}

.paper-stack {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.paper-layer {
  position: absolute;
  border-radius: 2px;
  background: var(--bg-warm);
  opacity: 0.35;
  box-shadow: 0 12px 48px var(--paper-shadow);
  transition: transform 0.8s var(--ease-slow);
}

.layer-a {
  width: min(88vw, 920px);
  height: 70vh;
  top: 8%;
  left: 50%;
  transform: translate(-48%, 0) rotate(-0.8deg);
  border: 1px solid var(--line);
}

.layer-b {
  width: min(70vw, 640px);
  height: 45vh;
  bottom: 12%;
  right: 6%;
  transform: translate(0, 0) rotate(1.2deg);
  border: 1px solid var(--line);
  background: rgba(231, 243, 230, 0.7);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 5vw, 3.5rem);
  max-width: 1400px;
  margin: 0 auto;
}

.site-header .brand-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 2;
}

.corner {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.92;
}

.corner-tl {
  align-self: start;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: 0.25rem;
}

.corner-tr {
  margin-left: auto;
  text-align: right;
}

.nav-minimal {
  position: relative;
  z-index: 3;
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.75rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-minimal a {
  position: relative;
  padding: 0.15rem 0;
  font-weight: 300;
  transition: color 0.35s;
}

.nav-minimal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-slow);
}

.nav-minimal a:hover {
  color: var(--ink);
}

.nav-minimal a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-poem {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3.5rem) 0.5rem;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  opacity: 0.9;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.4s;
}

.brand-mark:hover {
  opacity: 0.78;
}

.brand-logo {
  width: 48px;
  height: 48px;
  color: var(--ink);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.65em;
  margin-right: -0.65em;
}

.brand-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--sage);
}

main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem) 4rem;
}

.hero {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 8vh, 5rem) 0 clamp(3rem, 12vh, 7rem);
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  animation: heroIn 1.25s var(--ease-slow) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  margin: 0 0 1.25rem;
  color: var(--sage);
}

.hero-title {
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  margin: 0 0 0.5rem;
  margin-right: -0.35em;
}

.hero-slogan {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  margin: 0 0 2.5rem;
}

.hero-visual {
  margin: 0 auto 1.75rem;
  max-width: min(420px, 88vw);
}

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(165deg, #dce8db 0%, #b8c9b2 45%, #8a9a84 100%);
  filter: grayscale(0.35) contrast(1.05) saturate(0.65);
  transition: filter 1.2s var(--ease-slow), transform 1s var(--ease-slow);
}

.hero:hover .hero-frame {
  filter: grayscale(0) contrast(1) saturate(0.85) sepia(0.12);
  transform: scale(1.01);
}

.smoke-wisp {
  position: absolute;
  inset: 20% 30% 15%;
  background:
    radial-gradient(ellipse 40% 60% at 50% 100%, rgba(245, 245, 240, 0.5), transparent 70%),
    radial-gradient(ellipse 25% 50% at 45% 60%, rgba(255, 255, 255, 0.25), transparent 65%);
  animation: drift 12s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(6%, -8%) scale(1.05);
    opacity: 0.85;
  }
}

.hero-note {
  margin: 0;
  font-size: 1rem;
  color: var(--sage);
  letter-spacing: 0.04em;
}

.scent-trail {
  position: absolute;
  left: 8%;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(48, 63, 45, 0.15) 15%,
    rgba(48, 63, 45, 0.12) 50%,
    rgba(48, 63, 45, 0.08) 85%,
    transparent 100%
  );
  transform-origin: top;
  transform: scaleY(var(--progress, 0.2));
  opacity: 0.6;
  pointer-events: none;
}

.img-ph {
  background-size: cover;
  background-position: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: clamp(4rem, 14vh, 8rem);
  border: 1px solid var(--line);
  background: rgba(245, 245, 240, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px var(--paper-shadow);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-img {
  min-height: 320px;
  background: linear-gradient(135deg, #3d4f3a 0%, #2a3528 50%, #1c231b 100%);
  position: relative;
  filter: grayscale(0.2) contrast(1.1);
  transition: filter 1s var(--ease-slow);
}

.split:hover .split-img {
  filter: grayscale(0) contrast(1.05) sepia(0.08);
}

.split-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 0.8rem;
  color: rgba(245, 245, 240, 0.85);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.split-text {
  padding: clamp(2rem, 6vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-label {
  margin: 0 0 0.75rem;
  color: var(--sage);
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 0 0 1.25rem;
}

.body {
  font-size: 0.95rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 36em;
}

.rule {
  margin-top: 1.5rem;
  height: 1px;
  width: 4rem;
  background: var(--ink);
  opacity: 0.25;
}

.collection-head {
  margin-bottom: 2rem;
}

.collection-head .section-title {
  margin-bottom: 0;
}

/* —— 香品 · 小游戏 —— */
.incense-game {
  margin: 0;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    max-height 1s var(--ease-slow),
    opacity 0.7s var(--ease-slow),
    transform 0.9s var(--ease-slow),
    margin 0.6s var(--ease-slow),
    border-color 0.5s,
    box-shadow 0.5s,
    background 0.5s;
}

.incense-game.incense-game--open {
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  border-color: var(--line);
  background: linear-gradient(165deg, rgba(245, 245, 240, 0.72) 0%, rgba(231, 243, 230, 0.55) 100%);
  box-shadow: 0 18px 48px var(--paper-shadow);
  max-height: 920px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.incense-game__shell {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.incense-game__tag {
  margin: 0 0 0.35rem;
  color: var(--sage);
}

.incense-game__title {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  margin: 0 0 0.75rem;
  margin-right: -0.28em;
}

.incense-game__desc {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin: 0 0 1.25rem;
  max-width: 40em;
}

.incense-game__desc strong {
  font-weight: 600;
  color: var(--ink);
}

.incense-game__stage-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(48, 63, 45, 0.14), transparent 65%),
    linear-gradient(180deg, #2a3528 0%, #1e2820 48%, #141a16 100%);
  border-radius: 2px;
  overflow: hidden;
}

.incense-game__canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 480 / 320;
  cursor: crosshair;
  touch-action: manipulation;
}

.incense-game__hint {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(231, 243, 230, 0.55);
  pointer-events: none;
}

.incense-game__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.incense-game__status span {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.incense-game__btn {
  font-family: var(--font-zh);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--ink-soft);
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.incense-game__btn:hover {
  background: var(--ink-soft);
  color: #f5f5f0;
  border-color: var(--ink-soft);
}

.incense-game__toast {
  min-height: 1.5em;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: opacity 0.4s;
}

.incense-game__toast:empty {
  opacity: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.7s var(--ease-slow), transform 0.7s var(--ease-slow), box-shadow 0.7s;
  overflow: hidden;
}

.product-card:hover {
  background: rgba(154, 173, 147, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--paper-shadow);
}

.product-img {
  aspect-ratio: 1;
  transition: filter 1s var(--ease-slow), transform 1s var(--ease-slow);
  filter: grayscale(0.55) contrast(1.05);
}

.product-card:hover .product-img {
  filter: grayscale(0.15) sepia(0.15) contrast(1);
  transform: scale(1.03);
}

.product-meta {
  padding: 1.25rem 1.25rem 1.5rem;
}

.product-meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.product-meta .en-caps {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  color: var(--sage);
}

.scent-reveal {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-slow), opacity 0.5s, margin 0.5s;
}

.product-card:hover .scent-reveal {
  max-height: 4rem;
  opacity: 1;
  margin-top: 0.5rem;
}

.p1 {
  background: linear-gradient(160deg, #c5d1c0, #7d8f76);
}

.p2 {
  background: linear-gradient(160deg, #a89f8e, #6b6358);
}

.p3 {
  background: linear-gradient(160deg, #9fb39b, #5c6b56);
}

.vertical-band {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 5rem);
  padding: clamp(3rem, 10vh, 6rem) 0;
  margin: 2rem 0 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  margin: 0;
  opacity: 0.85;
  transition: transform 0.8s var(--ease-slow), opacity 0.8s;
}

.vertical-band.reveal.is-visible .vertical-text:nth-child(1) {
  transition-delay: 0s;
}
.vertical-band.reveal.is-visible .vertical-text:nth-child(2) {
  transition-delay: 0.12s;
}
.vertical-band.reveal.is-visible .vertical-text:nth-child(3) {
  transition-delay: 0.24s;
}

.vertical-band.is-visible .vertical-text {
  transform: translateY(0);
  opacity: 1;
}

.vertical-band .vertical-text {
  transform: translateY(24px);
  opacity: 0;
}

.site-footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.footer-inner .zh {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.footer-inner .en-caps {
  color: var(--sage);
  margin: 0 0 1rem;
}

.footer-contact {
  font-style: normal;
  margin: 0 0 1.25rem;
}

.footer-contact a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s, color 0.35s;
}

.footer-contact a:hover {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--sage);
  margin: 0;
}

/* Typography helpers */
.zh {
  font-family: var(--font-zh);
}

.en-serif {
  font-family: var(--font-en);
}

.en-caps {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 300;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
