:root {
  color-scheme: dark;
  --black: #000000;
  --ink: #000000;
  --soft-black: #000000;
  --white: #f7f4ef;
  --muted: #a8a39b;
  --line: rgba(247, 244, 239, 0.16);
  --line-dark: rgba(5, 5, 5, 0.14);
  --silver: #d8d5ce;
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img {
  display: block;
  width: 100%;
}

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

button {
  font: inherit;
}

::selection {
  background: var(--white);
  color: var(--black);
}

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

html {
  scrollbar-color: rgba(247, 244, 239, 0.25) var(--black);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: rgba(247, 244, 239, 0.18);
  border-radius: 5px;
  border: 2px solid var(--black);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(247, 244, 239, 0.32);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 72px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: max(40px, env(safe-area-inset-right, 0px));
  padding-left: max(40px, env(safe-area-inset-left, 0px));
  color: var(--white);
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background-color 420ms ease, border-color 420ms ease;
}

/* bar rests invisible on the hero, gains its glass once you scroll */
.site-header.is-top {
  background: rgba(0, 0, 0, 0);
  border-bottom-color: transparent;
}

/* hairline reading progress along the very top; browsers without
   scroll-driven animations simply never see it (stays scaleX(0)) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 2px;
  background: var(--silver);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: progressGrow linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes progressGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* scent mist — a faint drift of light that trails the cursor.
   desktop pointer only; JS lerps the transform so it lags like vapour */
.mist-glow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .mist-glow {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(247, 244, 239, 0.075) 0%,
      rgba(247, 244, 239, 0.035) 32%,
      rgba(247, 244, 239, 0) 65%
    );
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 700ms ease;
    pointer-events: none;
  }

  body.mist-on .mist-glow {
    opacity: 1;
  }
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 280ms ease, transform 360ms var(--ease-lux);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 360ms var(--ease-lux);
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-light {
  background: var(--white);
  color: var(--black);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 118px 64px 56px;
  gap: 56px;
  border-bottom: 1px solid var(--line);
}

.hero-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 34px;
  text-align: center;
}

.hero-copy {
  max-width: 780px;
}

.hero-centered .hero-copy {
  max-width: 520px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

/* Section labels (0X / Name) pinned to the top-left of every section */
.object > .section-kicker,
.ritual > .section-kicker,
.identity > .section-kicker {
  grid-column: 1 / -1;
  margin: 0;
}

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

h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  font-weight: 900;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 760;
}

h3 {
  font-size: 26px;
  line-height: 1.05;
}

.hero-line {
  margin-top: 32px;
  color: var(--silver);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.2px;
}

/* word-by-word rise: JS wraps each word in .w > .wi at load;
   without JS the line simply stays as plain text */
.hero-line .w {
  display: inline-block;
  overflow: hidden;
  padding: 0.05em 0.1em 0.14em;
  margin: -0.05em -0.1em -0.14em;
  vertical-align: bottom;
}

.hero-line .wi {
  display: inline-block;
  transform: translateY(115%);
  animation: wordRise 900ms var(--ease-lux) forwards;
}

@keyframes wordRise {
  to { transform: translateY(0); }
}

.hero-cn {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 42px;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  font-size: 14px;
  font-weight: 700;
  transition: transform 360ms var(--ease-lux);
}

.text-link::after {
  content: "\2192";
  display: inline-block;
  margin-left: 10px;
  transition: transform 420ms var(--ease-lux);
}

/* underline sweeps out to the right, redraws from the left */
.text-link:hover {
  animation: linkSweep 720ms var(--ease-lux);
}

.text-link:hover::after {
  transform: translateX(5px);
}

.closing .text-link::after {
  content: "\2191";
}

.closing .text-link:hover::after {
  transform: translateY(-4px);
}

@keyframes linkSweep {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0% 1px; background-position: 100% 100%; }
  55% { background-size: 0% 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

.hero-visual {
  justify-self: center;
  width: min(100%, 470px);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.hero-visual img {
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: grayscale(0.22) contrast(1.08);
}

.hero-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 260px);
  min-height: 260px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  aspect-ratio: auto;
}

.hero-character::after {
  content: none;
}

.hero-character img {
  width: min(100%, 220px);
  height: auto;
  max-height: 260px;
  object-fit: contain;
  opacity: 0.98;
  filter: drop-shadow(0 28px 58px rgba(247, 244, 239, 0.08));
  mix-blend-mode: normal;
}

.walker {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1454 / 1707;
  filter: drop-shadow(0 28px 58px rgba(247, 244, 239, 0.08));
  cursor: pointer;
}

/* easter egg: tap the walker and he skips */
.walker.is-hopping .walker-person {
  animation: walkerHop 720ms var(--ease-lux);
}

@keyframes walkerHop {
  0% { transform: translateY(0); }
  35% { transform: translateY(-26px); }
  60% { transform: translateY(0); }
  80% { transform: translateY(-9px); }
  100% { transform: translateY(0); }
}

/* only the person bobs up/down with each step; the title above the head
   stays put (it lives in its own static .walker-title layer) */
.walker-person {
  position: absolute;
  inset: 0;
  animation: walkerBob 1.6s ease-in-out infinite;
}

.walker img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  opacity: 0.98;
  filter: none;
}

.walker-title {
  transform: translateY(-20px);
}

.walker-leg {
  transform-origin: 62.5% 82.6%;
}

.walker-leg-left {
  animation: walkLegL 1.6s ease-in-out infinite;
}

.walker-leg-right {
  animation: walkLegR 1.6s ease-in-out infinite;
}

/* hanging right arm swings from the shoulder, in time with the stride */
.walker-arm {
  transform-origin: 62.9% 64.7%;
  animation: walkArm 1.6s ease-in-out infinite;
}

/* Smooth pendulum (left/right sides swapped).
   Left leg: rightward reach halved (+2.5deg), leftward +90deg (-135deg).
   Right leg: mirror — leftward halved (-2.5deg), rightward +90deg (+135deg).
   Drawn splay L -22deg / R +24deg, so rotate = displayed - drawn:
   left  displayed +2.5deg..-100deg  (rotate 24deg..-78deg)
   right displayed -2.5deg..+130deg  (rotate -27deg..106deg) */
@keyframes walkLegL {
  0%, 100% { transform: rotate(24deg); }
  50% { transform: rotate(-78deg); }
}

@keyframes walkLegR {
  0%, 100% { transform: rotate(-27deg); }
  50% { transform: rotate(106deg); }
}

@keyframes walkArm {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-16deg); }
}

@keyframes walkerBob {
  0%, 50%, 100% { transform: translateY(0); }
  25%, 75% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .walker-person,
  .walker-leg-left,
  .walker-leg-right,
  .walker-arm,
  .ribbon-track,
  .gallery-strip figure img,
  .ritual-visual img,
  .hero-line .wi {
    animation: none;
  }

  .hero-line .wi {
    transform: none;
  }

  .scroll-progress,
  .mist-glow {
    display: none;
  }

  .gallery-strip figure.reveal img,
  .ritual-visual.reveal img,
  .collection-item.reveal figure {
    clip-path: none;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition-delay: 0ms !important;
  }
}

.concept {
  padding: 128px 64px;
  border-bottom: 1px solid var(--line);
}

.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 64px;
  align-items: end;
}

.concept-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.concept-copy p + p,
.object-copy p + p,
.ritual-copy p:not(.section-kicker) + p,
.identity-copy p + p {
  margin-top: 18px;
}

.object {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 72px;
  row-gap: 36px;
  align-items: center;
  padding: 104px 64px;
  border-bottom: 1px solid var(--line);
}

.object-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.ritual {
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(0, 480px);
  gap: 56px;
  row-gap: 36px;
  justify-content: center;
  align-items: start;
  padding: 104px 64px;
  border-bottom: 1px solid var(--line);
}

.ritual-visual {
  justify-self: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.ritual-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ritual-copy {
  max-width: 560px;
}

.ritual-copy h2 {
  font-size: 34px;
  margin-bottom: 22px;
}

.ritual-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.object-copy h2,
.identity-copy h2 {
  margin-bottom: 28px;
}

.view-toggle {
  display: inline-flex;
  margin-top: 34px;
  border: 1px solid var(--line);
}

.view-toggle button {
  min-width: 94px;
  min-height: 42px;
  padding: 0 18px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: color 260ms ease, background-color 260ms ease;
}

.view-toggle button:last-child {
  border-right: 0;
}

.view-toggle button.is-active {
  color: var(--black);
  background: var(--white);
}

.object-visual {
  justify-self: center;
  width: min(100%, 365px);
  aspect-ratio: 1 / 1;
}

.object-visual img {
  height: 100%;
  object-fit: contain;
  padding: 0;
  filter: drop-shadow(0 34px 72px rgba(247, 244, 239, 0.08));
  transition: opacity 220ms ease, transform 220ms ease;
}

.object-visual img.is-switching {
  opacity: 0.42;
  transform: translateY(8px);
}

.gallery {
  padding: 116px 0 128px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-heading {
  padding: 0 64px 48px;
}

.gallery-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 14px;
}

.market .gallery-strip,
.store .gallery-strip {
  grid-template-columns: repeat(2, 1fr);
}

/* Store environment — address card under the photo strip */
.store-address {
  display: grid;
  gap: 8px;
  margin: 56px auto 0;
  padding: 0 24px;
  text-align: center;
}

.store-address span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.store-address strong {
  color: var(--white);
  font-size: 20px;
}

.store-address em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
}

.gallery-strip figure {
  min-height: 620px;
  background: var(--ink);
  overflow: hidden;
}

.gallery-strip img {
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  filter: grayscale(0.35) contrast(1.05);
  transition: opacity 420ms ease, transform 900ms var(--ease-lux);
}

/* New collection — 众生像 · 祖辈 */
.collection {
  padding: 84px 64px;
  border-bottom: 1px solid var(--line);
}

.collection-heading {
  max-width: 680px;
  margin: 30px auto 40px;
  text-align: center;
}

.collection-heading h2 {
  margin-bottom: 14px;
}

.collection-en {
  margin-bottom: 22px;
  color: var(--silver);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 1px;
}

.collection-heading p:not(.collection-en) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.collection-heading p.collection-intro-en {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.85;
  opacity: 0.8;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
}

.collection-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.collection-grid img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 900ms var(--ease-lux);
}

.collection-grid figure:hover img {
  transform: scale(1.04);
}

.collection-scent {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  text-align: center;
}

.cs-cn {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.cs-en {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Drinks showcase */
.drinks {
  padding: 104px 64px;
  border-bottom: 1px solid var(--line);
}

.drinks-heading {
  max-width: 760px;
  margin: 38px 0 48px;
}

.drinks-heading h2 {
  margin-bottom: 14px;
}

.drinks-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.drink-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 16px;
}

.drink {
  width: 178px;
}

.drink-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--black);
}

.drink-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 520ms var(--ease-lux);
}

/* the cup lifts, as if picked up */
.drink:hover .drink-photo img {
  transform: translateY(-7px) scale(1.03);
}

.drink-meta {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.drink-name {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  transition: letter-spacing 420ms var(--ease-lux);
}

.drink:hover .drink-name {
  letter-spacing: 1.2px;
}

.drink-pair {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.4px;
}

.gallery-strip figure:hover img {
  opacity: 0.96;
  transform: scale(1.04);
}

/* depth: images drift slowly inside their crop while scrolling.
   pure CSS scroll-driven animation — older browsers keep hover zoom */
@supports (animation-timeline: view()) {
  .gallery-strip figure img,
  .ritual-visual img {
    animation: parallaxDrift linear both;
    animation-timeline: view();
  }
}

@keyframes parallaxDrift {
  from { transform: translateY(-4.5%) scale(1.12); }
  to { transform: translateY(4.5%) scale(1.12); }
}

/* images unveil bottom-up like a rising curtain.
   the clip lives on the img, NOT on the observed .reveal element:
   IntersectionObserver treats a fully clipped target as 0% visible
   and would never fire its reveal (live-debugged 6-11) */
.gallery-strip figure.reveal img,
.ritual-visual.reveal img {
  clip-path: inset(100% 0 0 0);
}

.gallery-strip figure.reveal img {
  transition: opacity 420ms ease, transform 900ms var(--ease-lux),
    clip-path 1150ms var(--ease-lux);
}

.ritual-visual.reveal img {
  transition: clip-path 1150ms var(--ease-lux);
}

.gallery-strip figure.reveal.is-visible img,
.ritual-visual.reveal.is-visible img {
  clip-path: inset(0 0 0 0);
}

.collection-item.reveal figure {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1150ms var(--ease-lux);
}

.collection-item.reveal.is-visible figure {
  clip-path: inset(0 0 0 0);
}

/* Desktop only: scale Details & Market galleries to ~2/3 (same crop, no border) */
@media (min-width: 901px) {
  .gallery-strip {
    max-width: 854px;
    margin: 0 auto;
  }

  .gallery:not(.market) .gallery-strip {
    max-width: 1025px;
  }

  .market .gallery-strip {
    max-width: 1025px;
  }

  .gallery-strip figure {
    aspect-ratio: 426 / 639;
    min-height: 0;
  }

  .market .gallery-strip figure {
    aspect-ratio: 640 / 620;
  }

  /* 4 portrait photos in one row; figures keep the 2:3 ratio above */
  .store .gallery-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-strip img {
    width: 100%;
  }
}

.lineup {
  padding: 116px 64px;
}

.lineup-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 48px;
  align-items: end;
  margin-bottom: 54px;
}

.lineup-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.scent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
  counter-reset: scent;
}

.scent {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 190px;
  padding: 30px;
  background: var(--black);
  color: var(--white);
  font-size: 26px;
  font-weight: 780;
  line-height: 1;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.scent-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.6s ease;
  pointer-events: none;
}

/* editorial index in the corner of every tile — pure CSS counters */
.scent::before {
  counter-increment: scent;
  content: "Nº " counter(scent, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 30px;
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--muted);
  transition: color 320ms ease;
}

.scent:hover::before,
.scent:focus-visible::before,
.scent.is-pressed::before {
  color: var(--white);
}

.scent-name {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease, letter-spacing 480ms var(--ease-lux);
}

.scent:hover .scent-name,
.scent:focus-visible .scent-name,
.scent.is-pressed .scent-name {
  letter-spacing: 1.5px;
}

.scent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.scent:hover .scent-photo,
.scent:focus-visible .scent-photo,
.scent.is-pressed .scent-photo {
  opacity: 1;
  transform: scale(1);
}

.scent:hover::after,
.scent:focus-visible::after,
.scent.is-pressed::after {
  opacity: 1;
}

.identity {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  align-items: center;
  gap: 72px;
  row-gap: 36px;
  padding: 104px 64px;
  border-top: 1px solid var(--line);
}

.identity-logo {
  background: #000;
}

.identity-logo img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.identity-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.identity-copy h2 + p {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.company-info {
  display: grid;
  gap: 8px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.company-info span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.company-info strong {
  color: var(--white);
  font-size: 20px;
}

.company-info em {
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
}

.contact-info {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-info span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-mail {
  justify-self: center;
  color: var(--white);
  font-size: 17px;
  letter-spacing: 0.4px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 420ms var(--ease-lux), opacity 280ms ease;
}

.contact-mail:hover {
  background-size: 100% 1px;
  opacity: 0.85;
}

.closing {
  min-height: 76vh;
  min-height: 76dvh;
  display: grid;
  place-items: center;
  padding: 94px 32px;
  text-align: center;
}

.closing-inner {
  width: min(100%, 680px);
}

.closing-inner img {
  width: 186px;
  height: 186px;
  margin: 0 auto 38px;
  object-fit: contain;
  filter: none;
  mix-blend-mode: normal;
}

.closing-inner p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.closing-inner h2 {
  margin-top: 22px;
  font-size: clamp(15px, 2vw, 24px);
}

.social-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.qr-card {
  width: 124px;
}

.qr-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.qr-meta {
  text-align: left;
}

.xhs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #ff2442;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: 999px;
}

.xhs-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.qr-text {
  margin-top: 16px !important;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600 !important;
  line-height: 1.85;
}

/* slow brand ribbon between Identity and the closing bow.
   no text-transform here — it would flatten the "youR X" wordplay */
.ribbon {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ribbon-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ribbonDrift 48s linear infinite;
}

.ribbon:hover .ribbon-track {
  animation-play-state: paused;
}

.ribbon-track span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 4px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 980ms var(--ease-lux), transform 980ms var(--ease-lux);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 22px;
  }

  .nav-links {
    gap: 16px;
  }

  .concept-grid,
  .object,
  .identity {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 112px 24px 56px;
    gap: 42px;
  }

  .hero-character {
    min-height: 235px;
  }


  .concept,
  .object,
  .ritual,
  .lineup,
  .identity,
  .collection,
  .drinks {
    padding: 58px 24px;
  }

  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .collection-scent {
    margin-top: 8px;
  }

  .cs-cn {
    font-size: 12px;
  }

  .cs-en {
    font-size: 9px;
    letter-spacing: 0.6px;
  }

  .collection-intro-en {
    font-size: 12px;
  }

  .drink-grid {
    gap: 22px 16px;
  }

  .drink {
    width: calc(50% - 8px);
  }

  .drinks-heading {
    margin: 26px 0 32px;
  }

  .collection-heading {
    margin: 26px 0 32px;
  }

  .ritual {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .ritual-visual {
    max-width: 340px;
  }

  .gallery {
    padding: 58px 0 60px;
  }

  .gallery-heading {
    padding: 0 24px 26px;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-strip figure {
    min-height: 300px;
  }

  .lineup-heading {
    grid-template-columns: 1fr;
  }

  .scent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scent {
    min-height: 130px;
    font-size: 22px;
    padding: 22px;
  }

  .scent::before {
    top: 16px;
    left: 22px;
  }

  .ribbon-track span {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .closing {
    min-height: auto;
    padding: 64px 24px;
  }
}

/* large phones (430-768): gentle spacing refinement */
@media (max-width: 768px) {
  .site-header {
    min-height: 60px;
  }

  .hero {
    padding-top: 96px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    /* reserve room on the right so the language flag clears the fixed
       hamburger (.nav-toggle: right 14px + 44px wide = 58px, +8px gap) */
    padding-right: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero-line {
    font-size: 18px;
  }

  .hero-cn {
    font-size: 16px;
  }

  .object-visual {
    aspect-ratio: 4 / 5;
  }

  .hero-character {
    min-height: 190px;
  }

  .concept,
  .object,
  .ritual,
  .lineup,
  .identity,
  .collection,
  .drinks {
    padding: 46px 20px;
  }

  .qr-meta {
    text-align: center;
  }

  .gallery {
    padding: 46px 0 48px;
  }

  .gallery-strip figure {
    min-height: 240px;
  }

  .scent {
    min-height: 116px;
    font-size: 20px;
    padding: 18px;
  }

  .scent::before {
    top: 14px;
    left: 18px;
    font-size: 10px;
  }

  .closing {
    padding: 52px 20px;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle button {
    flex: 1;
  }
}

/* small phones (<=430): tighten horizontal padding so content breathes */
@media (max-width: 430px) {
  .concept,
  .object,
  .ritual,
  .lineup,
  .identity,
  .collection,
  .drinks {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gallery-heading {
    padding-left: 18px;
    padding-right: 18px;
  }

  .drink-grid {
    gap: 18px 10px;
  }
}

/* ============================================================
   Language switcher (right of the nav) + i18n support
   ============================================================ */

/* Anti-flash: keep main hidden until i18n has applied the resolved
   language (added by i18n.js). <noscript> reveals it when JS is off. */
html:not(.i18n-ready) main {
  visibility: hidden;
}

.lang-switch {
  position: relative;
  margin-left: 26px;
  flex: none;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 280ms ease;
}

.lang-current:hover,
.lang-switch.is-open .lang-current {
  color: var(--white);
}

.lang-flag {
  display: inline-block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  line-height: 0;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-label {
  font-size: 13px;
  letter-spacing: 0.4px;
}

.lang-chev {
  font-size: 9px;
  opacity: 0.7;
  transition: transform 280ms var(--ease-lux);
}

.lang-switch.is-open .lang-chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 240ms var(--ease-lux), transform 240ms var(--ease-lux);
  z-index: 40;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.lang-menu li:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.lang-menu li[aria-selected="true"] {
  color: var(--white);
}

.lang-menu li[aria-selected="true"]::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--silver);
}

.lang-menu .lang-label {
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* Hide the secondary origin lines when a language leaves them empty
   (e.g. Chinese view drops the Chinese-origin sub-labels). */
.collection-en:empty,
.cs-en:empty {
  display: none;
}

/* Korean has no Georgia glyphs — swap the serif accents for a clean
   Korean system sans so they don't render as faux-italic fallbacks. */
html[lang="ko"] body,
html[data-lang="ko"] body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, Arial, sans-serif;
}

html[data-lang="ko"] .hero-line,
html[data-lang="ko"] .collection-en,
html[data-lang="ko"] .identity-copy p {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-style: normal;
}

/* On phones/small tablets show the flag + chevron only (keeps the bar
   tight); the dropdown still lists every language by name. */
@media (max-width: 768px) {
  .lang-current .lang-label {
    display: none;
  }
  .lang-switch {
    margin-left: 14px;
  }
}

/* ============================================================
   Bilingual switch model
   .lang-zh     → the ORIGINAL CN+EN layout, shown ONLY in the zh view
                  (kept byte-for-byte so the Chinese site is untouched)
   .lang-not-zh → the single-language layout, shown in every other language
   The hero block carries neither class, so it stays frozen in all langs.
   ============================================================ */
html:not([data-lang="zh"]) .lang-zh {
  display: none !important;
}
html[data-lang="zh"] .lang-not-zh {
  display: none !important;
}

/* In the single-language (non-zh) views the romanised scent name is the
   primary label, so promote it from its bilingual secondary styling. */
html:not([data-lang="zh"]) .cs-en {
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.12em;
}
