/* ── MAISON CIELUNE — Shared Styles ── */
:root {
  /* Sky palette — oklch for modern colour depth */
  --sky: #ceeaf8;
  --cloud: #f4f4f4;
  --dawn-gold: #ffebb0;
  --white: #ffffff;
  --text: #2a2a2a;
  --text-light: #6b6b6b;
  --navy: #1a2a3a;
  --beige-pillar: rgba(212,193,165,0.45);
  --pink: #e8b4b8;
  --cream: #fadadd;
  --sage: #a8b5a0;
  --gold: #d4c1a6;

  /* ── Design tokens (sky palette) ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Spring easing presets */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);  /* bouncy overshoot */
  --ease-out:    cubic-bezier(0.0,  0.0,  0.2,  1);  /* fast in, slow out */
  --ease-in-out: cubic-bezier(0.4,  0.0,  0.2,  1);  /* symmetric */

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Josefin Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Smooth scroll + selection ── */
html { scroll-behavior: smooth; }
::selection { background: rgba(206,234,248,0.4); color: var(--navy); }

/* ── LANGUAGE TOGGLE — show only the active language, everywhere ── */

/* NAV LINKS — hide all first, then show active */
.nav-links a[data-lang] { display: none; }
body.zh .nav-links a[data-lang="zh"] { display: block; }
body.ja .nav-links a[data-lang="ja"] { display: block; }
body.en .nav-links a[data-lang="en"] { display: block; }

/* GENERIC — fallback span rules */

/* GENERIC — fallback for any remaining span[data-lang] without specific rules */
span[data-lang="zh"],
span[data-lang="ja"] { display: none !important; }
body.zh span[data-lang="en"],
body.zh span[data-lang="ja"] { display: none !important; }
body.zh span[data-lang="zh"] { display: inline !important; }
body.ja span[data-lang="en"],
body.ja span[data-lang="zh"] { display: none !important; }
body.ja span[data-lang="ja"] { display: inline !important; }
body.en span[data-lang="zh"],
body.en span[data-lang="ja"] { display: none !important; }
body.en span[data-lang="en"] { display: inline !important; }


/* HERO eyebrow / sub — language spans */
.hero-eyebrow span[data-lang="zh"],
.hero-eyebrow span[data-lang="ja"] { display: none; }
body.zh .hero-eyebrow span[data-lang="en"],
body.zh .hero-eyebrow span[data-lang="ja"] { display: none; }
body.zh .hero-eyebrow span[data-lang="zh"] { display: block; }
body.ja .hero-eyebrow span[data-lang="en"],
body.ja .hero-eyebrow span[data-lang="zh"] { display: none; }
body.ja .hero-eyebrow span[data-lang="ja"] { display: block; }
body.en .hero-eyebrow span[data-lang="zh"],
body.en .hero-eyebrow span[data-lang="ja"] { display: none; }
body.en .hero-eyebrow span[data-lang="en"] { display: block; }


.hero-title span[data-lang="zh"],
.hero-title span[data-lang="ja"] { display: none; }
body.zh .hero-title span[data-lang="en"],
body.zh .hero-title span[data-lang="ja"] { display: none; }
body.zh .hero-title span[data-lang="zh"] { display: block; }
body.ja .hero-title span[data-lang="en"],
body.ja .hero-title span[data-lang="zh"] { display: none; }
body.ja .hero-title span[data-lang="ja"] { display: block; }
body.en .hero-title span[data-lang="zh"],
body.en .hero-title span[data-lang="ja"] { display: none; }
body.en .hero-title span[data-lang="en"] { display: block; }
/* INDEX — collection section eyebrow/title spans */
#collection-eyebrow span[data-lang="zh"],
#collection-eyebrow span[data-lang="ja"],
#collection-title span[data-lang="zh"],
#collection-title span[data-lang="ja"] { display: none; }
body.zh #collection-eyebrow span[data-lang="en"],
body.zh #collection-eyebrow span[data-lang="ja"],
body.zh #collection-title span[data-lang="en"],
body.zh #collection-title span[data-lang="ja"] { display: none; }
body.zh #collection-eyebrow span[data-lang="zh"],
body.zh #collection-title span[data-lang="zh"] { display: block; }
body.ja #collection-eyebrow span[data-lang="en"],
body.ja #collection-eyebrow span[data-lang="zh"],
body.ja #collection-title span[data-lang="en"],
body.ja #collection-title span[data-lang="zh"] { display: none; }
body.ja #collection-eyebrow span[data-lang="ja"],
body.ja #collection-title span[data-lang="ja"] { display: block; }
body.en #collection-eyebrow span[data-lang="zh"],
body.en #collection-eyebrow span[data-lang="ja"],
body.en #collection-title span[data-lang="zh"],
body.en #collection-title span[data-lang="ja"] { display: none; }
body.en #collection-eyebrow span[data-lang="en"],
body.en #collection-title span[data-lang="en"] { display: block; }

/* INDEX — swipe hint spans */
.swipe-hint span[data-lang="zh"],
.swipe-hint span[data-lang="ja"] { display: none; }
body.zh .swipe-hint span[data-lang="en"],
body.zh .swipe-hint span[data-lang="ja"] { display: none; }
body.zh .swipe-hint span[data-lang="zh"] { display: inline; }
body.ja .swipe-hint span[data-lang="en"],
body.ja .swipe-hint span[data-lang="zh"] { display: none; }
body.ja .swipe-hint span[data-lang="ja"] { display: inline; }
body.en .swipe-hint span[data-lang="zh"],
body.en .swipe-hint span[data-lang="ja"] { display: none; }
body.en .swipe-hint span[data-lang="en"] { display: inline; }

/* COLLECTION — tab-btn spans */
.tab-btn span[data-lang="zh"],
.tab-btn span[data-lang="ja"] { display: none; }
body.zh .tab-btn span[data-lang="en"],
body.zh .tab-btn span[data-lang="ja"] { display: none; }
body.zh .tab-btn span[data-lang="zh"] { display: block; }
body.ja .tab-btn span[data-lang="en"],
body.ja .tab-btn span[data-lang="zh"] { display: none; }
body.ja .tab-btn span[data-lang="ja"] { display: block; }
body.en .tab-btn span[data-lang="zh"],
body.en .tab-btn span[data-lang="ja"] { display: none; }
body.en .tab-btn span[data-lang="en"] { display: block; }

/* BRAND STORY — .name-cn spans (inside .story-text) */
.story-text .name-cn span[data-lang="zh"],
.story-text .name-cn span[data-lang="ja"] { display: none; }
body.zh .story-text .name-cn span[data-lang="en"],
body.zh .story-text .name-cn span[data-lang="ja"] { display: none; }
body.zh .story-text .name-cn span[data-lang="zh"] { display: inline !important; }
body.ja .story-text .name-cn span[data-lang="en"],
body.ja .story-text .name-cn span[data-lang="zh"] { display: none; }
body.ja .story-text .name-cn span[data-lang="ja"] { display: inline !important; }
body.en .story-text .name-cn span[data-lang="zh"],
body.en .story-text .name-cn span[data-lang="ja"] { display: none; }
body.en .story-text .name-cn span[data-lang="en"] { display: inline !important; }

/* BRAND STORY — h3 (founder title) spans */
.story-text h3 span[data-lang="zh"],
.story-text h3 span[data-lang="ja"] { display: none; }
body.zh .story-text h3 span[data-lang="en"],
body.zh .story-text h3 span[data-lang="ja"] { display: none; }
body.zh .story-text h3 span[data-lang="zh"] { display: block !important; }
body.ja .story-text h3 span[data-lang="en"],
body.ja .story-text h3 span[data-lang="zh"] { display: none; }
body.ja .story-text h3 span[data-lang="ja"] { display: block !important; }
body.en .story-text h3 span[data-lang="zh"],
body.en .story-text h3 span[data-lang="ja"] { display: none; }
body.en .story-text h3 span[data-lang="en"] { display: block !important; }

/* COLLABORATIONS — collab-story p spans (story paragraphs) */
.collab-story p span[data-lang="zh"],
.collab-story p span[data-lang="ja"] { display: none; }
body.zh .collab-story p span[data-lang="en"],
body.zh .collab-story p span[data-lang="ja"] { display: none; }
body.zh .collab-story p span[data-lang="zh"] { display: block; }
body.ja .collab-story p span[data-lang="en"],
body.ja .collab-story p span[data-lang="zh"] { display: none; }
body.ja .collab-story p span[data-lang="ja"] { display: block; }
body.en .collab-story p span[data-lang="zh"],
body.en .collab-story p span[data-lang="ja"] { display: none; }
body.en .collab-story p span[data-lang="en"] { display: block; }

/* COLLABORATIONS — all-collab-text (combined paragraph text) */
.all-collab-text span[data-lang="zh"],
.all-collab-text span[data-lang="ja"] { display: none; }
body.zh .all-collab-text span[data-lang="en"],
body.zh .all-collab-text span[data-lang="ja"] { display: none; }
body.zh .all-collab-text span[data-lang="zh"] { display: block; }
body.ja .all-collab-text span[data-lang="en"],
body.ja .all-collab-text span[data-lang="zh"] { display: none; }
body.ja .all-collab-text span[data-lang="ja"] { display: block; }
body.en .all-collab-text span[data-lang="zh"],
body.en .all-collab-text span[data-lang="ja"] { display: none; }
body.en .all-collab-text span[data-lang="en"] { display: block; }


/* COLLABORATIONS page — language spans */
.collab-badge span[data-lang],
.collab-eyebrow span[data-lang],
.collab-title span[data-lang] { display: none; }
body.zh .collab-badge span[data-lang="en"],
body.zh .collab-badge span[data-lang="ja"],
body.zh .collab-eyebrow span[data-lang="en"],
body.zh .collab-eyebrow span[data-lang="ja"],
body.zh .collab-title span[data-lang="en"],
body.zh .collab-title span[data-lang="ja"] { display: none; }
body.zh .collab-badge span[data-lang="zh"],
body.zh .collab-eyebrow span[data-lang="zh"],
body.zh .collab-title span[data-lang="zh"] { display: block; }
body.ja .collab-badge span[data-lang="en"],
body.ja .collab-badge span[data-lang="zh"],
body.ja .collab-eyebrow span[data-lang="en"],
body.ja .collab-eyebrow span[data-lang="zh"],
body.ja .collab-title span[data-lang="en"],
body.ja .collab-title span[data-lang="zh"] { display: none; }
body.ja .collab-badge span[data-lang="ja"],
body.ja .collab-eyebrow span[data-lang="ja"],
body.ja .collab-title span[data-lang="ja"] { display: block; }
body.en .collab-badge span[data-lang="zh"],
body.en .collab-badge span[data-lang="ja"],
body.en .collab-eyebrow span[data-lang="zh"],
body.en .collab-eyebrow span[data-lang="ja"],
body.en .collab-title span[data-lang="zh"],
body.en .collab-title span[data-lang="ja"] { display: none; }
body.en .collab-badge span[data-lang="en"],
body.en .collab-eyebrow span[data-lang="en"],
body.en .collab-title span[data-lang="en"] { display: block; }
/* Collab story section h2 spans (no special class) */
.collab-story h2 span[data-lang="zh"],
.collab-story h2 span[data-lang="ja"] { display: none; }
body.zh .collab-story h2 span[data-lang="en"],
body.zh .collab-story h2 span[data-lang="ja"] { display: none; }
body.zh .collab-story h2 span[data-lang="zh"] { display: block; }
body.ja .collab-story h2 span[data-lang="en"],
body.ja .collab-story h2 span[data-lang="zh"] { display: none; }
body.ja .collab-story h2 span[data-lang="ja"] { display: block; }
body.en .collab-story h2 span[data-lang="zh"],
body.en .collab-story h2 span[data-lang="ja"] { display: none; }
body.en .collab-story h2 span[data-lang="en"] { display: block; }
/* Collection section: unset text-align center from parent on active lang spans */
.collection-section-eyebrow span[data-lang="en"],
.collection-section-eyebrow span[data-lang="zh"],
.collection-section-eyebrow span[data-lang="ja"],
.collection-section-title span[data-lang="en"],
.collection-section-title span[data-lang="zh"],
.collection-section-title span[data-lang="ja"] { text-align: left; }

.hero-sub span[data-lang] { display: none; }
body.zh .hero-sub span[data-lang="zh"] { display: inline; }
body.ja .hero-sub span[data-lang="ja"] { display: inline; }
body.en .hero-sub span[data-lang="en"] { display: inline; }

/* STORY section values — .story-label and .value-name/.value-desc are outside .story-text */
.story-label[data-lang="en"],
.story-label[data-lang="ja"],
.value-name[data-lang="en"],
.value-name[data-lang="ja"],
.value-desc[data-lang="en"],
.value-desc[data-lang="ja"] { display: none; }
body.zh .story-label[data-lang="en"],
body.zh .story-label[data-lang="ja"],
body.zh .value-name[data-lang="en"],
body.zh .value-name[data-lang="ja"],
body.zh .value-desc[data-lang="en"],
body.zh .value-desc[data-lang="ja"] { display: none; }
body.zh .story-label[data-lang="zh"] { display: block; }
body.zh .value-name[data-lang="zh"] { display: block; }
body.zh .value-desc[data-lang="zh"] { display: block; }
body.ja .story-label[data-lang="en"],
body.ja .story-label[data-lang="zh"],
body.ja .value-name[data-lang="en"],
body.ja .value-name[data-lang="zh"],
body.ja .value-desc[data-lang="en"],
body.ja .value-desc[data-lang="zh"] { display: none; }
body.ja .story-label[data-lang="ja"] { display: block; }
body.ja .value-name[data-lang="ja"] { display: block; }
body.ja .value-desc[data-lang="ja"] { display: block; }
body.en .story-label[data-lang="zh"],
body.en .story-label[data-lang="ja"],
body.en .value-name[data-lang="zh"],
body.en .value-name[data-lang="ja"],
body.en .value-desc[data-lang="zh"],
body.en .value-desc[data-lang="ja"] { display: none; }
body.en .story-label[data-lang="en"] { display: block; }
body.en .value-name[data-lang="en"] { display: block; }
body.en .value-desc[data-lang="en"] { display: block; }

.story-text p[data-lang="zh"],
.story-text p[data-lang="ja"] { display: none; }
body.zh .story-text p[data-lang="en"],
body.zh .story-text p[data-lang="ja"] { display: none; }
body.zh .story-text p[data-lang="zh"] { display: block; }
body.ja .story-text p[data-lang="en"],
body.ja .story-text p[data-lang="zh"] { display: none; }
body.ja .story-text p[data-lang="ja"] { display: block; }
body.en .story-text p[data-lang="zh"],
body.en .story-text p[data-lang="ja"] { display: none; }

/* STORES page — store detail spans */
.store-detail span[data-lang="zh"],
.store-detail span[data-lang="ja"] { display: none; }
body.zh .store-detail span[data-lang="en"],
body.zh .store-detail span[data-lang="ja"] { display: none; }
body.zh .store-detail span[data-lang="zh"] { display: block; }
body.ja .store-detail span[data-lang="en"],
body.ja .store-detail span[data-lang="zh"] { display: none; }
body.ja .store-detail span[data-lang="ja"] { display: block; }
body.en .store-detail span[data-lang="zh"],
body.en .store-detail span[data-lang="ja"] { display: none; }
body.en .store-detail span[data-lang="en"] { display: block; }

.store-tagline span[data-lang] { display: none; }
body.zh .store-tagline span[data-lang="zh"] { display: inline; }
body.ja .store-tagline span[data-lang="ja"] { display: inline; }
body.en .store-tagline span[data-lang="en"] { display: inline; }

/* Gaode map link — language toggle */
.gaode-link { display: none !important; }
body.en .gaode-link[data-lang="en"] { display: flex !important; }
body.zh .gaode-link[data-lang="zh"] { display: flex !important; }
body.ja .gaode-link[data-lang="ja"] { display: flex !important; }
.gaode-link {
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f5ede4;
  border-radius: 6px;
  text-decoration: none;
  color: #1a2a3a;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(206,234,248,0.4);
}

/* ── NAV — Glassmorphism ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  /* Glassmorphism: translucent white with blur */
  background: linear-gradient(180deg, rgba(230,246,252,0.86) 0%, rgba(206,234,248,0.92) 100%);
  border-bottom: 1px solid rgba(206,234,248,0.55);
  box-shadow: 0 1px 24px rgba(26,42,58,0.06);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
nav.scrolled {
  background: linear-gradient(180deg, rgba(230,246,252,0.94) 0%, rgba(206,234,248,0.98) 100%);
  box-shadow: 0 2px 32px rgba(26,42,58,0.1);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo span { color: var(--sky); font-size: 0.85em; vertical-align: middle; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.2s var(--ease-out), font-size 0.2s var(--ease-out);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
  transition: width 0.25s var(--ease-out), left 0.25s var(--ease-out), height 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  font-size: 0.88rem;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
  height: 2px;
}
.nav-cta {
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  padding: 4px 20px 3px;
  border: 1px solid var(--sky);
  border-radius: var(--radius-pill);
  color: var(--navy) !important;
  transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-spring), border-color 0.2s !important;
  line-height: 1.5;
  vertical-align: middle;
  box-sizing: border-box;
}
.nav-cta:hover {
  background: var(--sky) !important;
  transform: translateY(-1px);
}
.nav-cta:active { transform: translateY(0) scale(0.97); }
.lang-btns { display: flex; gap: 8px; align-items: center; }
.lang-select-wrap { display: none; } /* hidden by default on desktop */
.lang-btn {
  background: transparent;
  border: 1px solid rgba(206,234,248,0.6);
  color: var(--navy);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.72rem;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 0.08em;
  transition: all 0.2s var(--ease-out);
}
.lang-btn.active {
  background: var(--sky);
  border-color: var(--sky);
  box-shadow: 0 0 0 2px rgba(206,234,248,0.4);
}
.lang-btn:hover:not(.active) {
  background: var(--dawn-gold);
  border-color: var(--dawn-gold);
  transform: translateY(-1px);
}
.lang-btn:active { transform: scale(0.95); }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  transition: opacity 0.2s;
}
.hamburger:hover { opacity: 0.6; }
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s, width 0.25s var(--ease-out);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO (shared) ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* European double-border frame */
  box-shadow:
    inset 5px 0 0 rgba(212,193,166,0.5),
    inset 6px 0 0 rgba(245,237,228,0.8),
    inset -5px 0 0 rgba(212,193,166,0.5),
    inset -6px 0 0 rgba(245,237,228,0.8),
    inset 0 5px 0 rgba(212,193,166,0.5),
    inset 0 6px 0 rgba(245,237,228,0.8);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 108%;
  top: -4%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
  transition: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.55) 100%
  );
  will-change: transform;
}

/* Cloud parallax layer — eased via JS rAF, not CSS transition */
.hero-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  /* Removed linear transition — JS drives this with rAF for buttery 60fps */
}
.hero-clouds svg { width: 100%; height: 100%; }

/* ── European pillar lines — gold gradient columns */
.hero-pillars::before,
.hero-pillars::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom,
    rgba(212,193,166,0.9) 0%,
    rgba(212,193,166,0.5) 15%,
    rgba(212,193,166,0.3) 50%,
    rgba(212,193,166,0.5) 85%,
    rgba(212,193,166,0.9) 100%
  );
  z-index: 2;
  pointer-events: none;
}
/* Gold column capital — decorative top flourish */
.hero-pillars::before { left: 24px; }
.hero-pillars::after  { right: 24px; }

.hero-pillars::before::before,
.hero-pillars::after::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -6px;
  width: 16px;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(212,193,166,0.9) 0%, transparent 70%);
  border-radius: 50%;
}
/* Doric capital: horizontal bar at top of pillar */
.hero-pillars::before::after,
.hero-pillars::after::after {
  content: '';
  position: absolute;
  top: 0;
  left: -9px;
  width: 22px;
  height: 4px;
  background: linear-gradient(to right, transparent, rgba(212,193,166,0.8), transparent);
  border-radius: 2px;
}

/* Ornamental SVG corners */
.ornament-corner {
  position: absolute;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 2;
}
.ornament-corner svg { width: 100%; height: 100%; }
.ornament-corner.top-left    { top: 12px; left: 12px; }
.ornament-corner.top-right   { top: 12px; right: 12px; }
.ornament-corner.bottom-left  { bottom: 12px; left: 12px; }
.ornament-corner.bottom-right { bottom: 12px; right: 12px; }

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
  /* Entrance: rise + fade in */
  animation: heroRise 0.9s var(--ease-out) both;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: heroRise 0.7s var(--ease-out) 0.1s both; }
.hero-sub     { animation: heroRise 0.8s var(--ease-out) 0.25s both; }
.hero-title .star { color: var(--dawn-gold); }
.hero-sub {
  margin-top: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.4);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── CLICK PARTICLES (stars/moons on mouse click) ── */
@keyframes particleRise {
  0%   { opacity: 1; transform: translate(-50%,-50%) translateY(0); }
  100% { opacity: 0; transform: translate(-50%,-50%) translateY(-80px); }
}

/* ── PAGE HERO (smaller, for interior pages) ── */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 4px 0 0 rgba(212,193,166,0.4),
    inset 5px 0 0 rgba(245,237,228,0.7),
    inset -4px 0 0 rgba(212,193,166,0.4),
    inset -5px 0 0 rgba(245,237,228,0.7),
    inset 0 4px 0 rgba(212,193,166,0.4),
    inset 0 5px 0 rgba(245,237,228,0.7);
}
.page-hero .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(206,234,248,0.4) 0%,
    rgba(26,42,58,0.5) 100%
  );
}

/* ── AUTO-SCROLLING CAROUSEL ── */
.carousel-section {
  overflow: hidden;
  background: var(--cloud);
  position: relative;
  box-shadow: inset 4px 0 0 var(--beige-pillar),
              inset -4px 0 0 var(--beige-pillar);
}
.carousel-track {
  display: flex;
  animation: carousel-scroll 30s linear infinite;
  width: max-content;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-slide {
  flex-shrink: 0;
  width: 320px;
  height: 200px;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) sepia(0.08);
  transition: filter 0.3s;
}
.carousel-slide:hover img { filter: brightness(1) sepia(0.04); }
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION COMMON ── */
section { padding: 100px 48px; }
.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--sky); }

/* ── STORY SECTIONS ── */
.story-section {
  background: var(--white);
  padding: 100px 48px;
  border-top: 1px solid rgba(206,234,248,0.5);
  border-bottom: 1px solid rgba(206,234,248,0.5);
}
.story-section.designer {
  background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
}
.story-header { text-align: center; margin-bottom: 60px; }
.story-label {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dawn-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.story-label::before,
.story-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dawn-gold));
}
.story-label::after { background: linear-gradient(to left, transparent, var(--dawn-gold)); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}
.story-grid.reversed { direction: rtl; }
.story-grid.reversed > * { direction: ltr; }
.story-img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: 0 6px 32px rgba(26,42,58,0.1);
}
.story-text { color: var(--text-light); line-height: 1.9; font-size: 0.95rem; font-weight: 300; }
.story-text p + p { margin-top: 16px; }
.story-text p { display: block; }
.story-text .name-cn {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 40px;
  display: block;
}
.story-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 400;
}

/* ── VALUES ── */
.values-section { background: var(--cloud); padding: 80px 48px; }
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.value-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-out);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(206,234,248,0.4);
}
.value-emoji { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.value-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.value-desc { font-size: 0.78rem; color: var(--text-light); line-height: 1.6; font-weight: 300; margin-top: 4px; }
.value-name-en { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); }

/* ── COLLECTION ── */
.collection { background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%); }
.collection-header { text-align: center; margin-bottom: 56px; }
.collection-header .section-title { margin-bottom: 12px; }
.collection-header p { color: var(--text-light); font-weight: 300; font-size: 0.9rem; max-width: 480px; margin: 0 auto; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto 48px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,42,58,0.07);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out);
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(206,234,248,0.55), 0 4px 12px rgba(26,42,58,0.08);
}
.product-card:active { transform: translateY(-2px) scale(0.99); }
.product-img-wrap { aspect-ratio: 3/4; overflow: hidden; background: var(--cloud); }
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-info { padding: 18px 20px 20px; }
.product-name { font-size: 0.82rem; color: var(--navy); font-weight: 400; margin-bottom: 6px; line-height: 1.4; }
.product-price { font-size: 0.8rem; color: var(--text-light); font-weight: 300; }
.product-link {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--sky);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  max-width: 280px;
  margin: 0 auto;
  transition:
    background 0.2s var(--ease-out),
    transform 0.2s var(--ease-spring),
    box-shadow 0.2s var(--ease-out);
}
.product-link:hover {
  background: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(206,234,248,0.4);
}
.product-link:active { transform: translateY(0) scale(0.97); }

/* ── LOOKBOOK STRIP ── */
.lookbook-strip {
  display: block;
  overflow: hidden;
  height: 420px;
}
.lookbook-track {
  display: flex;
  gap: 4px;
  height: 100%;
  width: max-content;
  animation: lookbook-scroll 22s linear infinite;
}
.lookbook-track img {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
}
@keyframes lookbook-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.lookbook-strip:hover .lookbook-track { animation-play-state: paused; }

/* ── STORES ── */
.stores { background: var(--white); }
.stores-header { text-align: center; margin-bottom: 56px; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.store-card {
  border: 1px solid rgba(206,234,248,0.6);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  background: var(--white);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-out),
    border-color 0.25s;
}
.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(206,234,248,0.45);
  border-color: rgba(206,234,248,0.9);
}
.store-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.store-district { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); margin-bottom: 14px; }

/* STORES page — h2 city headers and a tags */
h2[data-lang="zh"],
h2[data-lang="ja"] { display: none; }
body.zh h2[data-lang="en"],
body.zh h2[data-lang="ja"] { display: none; }
body.zh h2[data-lang="zh"] { display: block; }
body.ja h2[data-lang="en"],
body.ja h2[data-lang="zh"] { display: none; }
body.ja h2[data-lang="ja"] { display: block; }
body.en h2[data-lang="zh"],
body.en h2[data-lang="ja"] { display: none; }
body.en h2[data-lang="en"] { display: block; }

/* STORES page — strong labels (Address, Tel, Hours) */
.store-detail strong[data-lang="zh"],
.store-detail strong[data-lang="ja"] { display: none; }
body.zh .store-detail strong[data-lang="en"],
body.zh .store-detail strong[data-lang="ja"] { display: none; }
body.zh .store-detail strong[data-lang="zh"] { display: block; }
body.ja .store-detail strong[data-lang="en"],
body.ja .store-detail strong[data-lang="zh"] { display: none; }
body.ja .store-detail strong[data-lang="ja"] { display: block; }
body.en .store-detail strong[data-lang="zh"],
body.en .store-detail strong[data-lang="ja"] { display: none; }
body.en .store-detail strong[data-lang="en"] { display: block; }

/* STORES page — a tags (map links) */
.store-map-toggle span[data-lang="zh"],
.store-map-toggle span[data-lang="ja"] { display: none; }
body.zh .store-map-toggle span[data-lang="en"],
body.zh .store-map-toggle span[data-lang="ja"] { display: none; }
body.zh .store-map-toggle span[data-lang="zh"] { display: inline; }
body.ja .store-map-toggle span[data-lang="en"],
body.ja .store-map-toggle span[data-lang="zh"] { display: none; }
body.ja .store-map-toggle span[data-lang="ja"] { display: inline; }
body.en .store-map-toggle span[data-lang="zh"],
body.en .store-map-toggle span[data-lang="ja"] { display: none; }
body.en .store-map-toggle span[data-lang="en"] { display: inline; }

.store-detail a[data-lang="zh"],
.store-detail a[data-lang="ja"] { display: none; }
body.zh .store-detail a[data-lang="en"],
body.zh .store-detail a[data-lang="ja"] { display: none; }
body.zh .store-detail a[data-lang="zh"] { display: block; }
body.ja .store-detail a[data-lang="en"],
body.ja .store-detail a[data-lang="zh"] { display: none; }
body.ja .store-detail a[data-lang="ja"] { display: block; }
body.en .store-detail a[data-lang="zh"],
body.en .store-detail a[data-lang="ja"] { display: none; }
body.en .store-detail a[data-lang="en"] { display: block; }

.store-detail { font-size: 0.85rem; color: var(--text-light); font-weight: 300; line-height: 1.8; }
.store-detail strong { color: var(--text); font-weight: 400; }

/* ── SOCIAL ── */
.social { background: linear-gradient(135deg, var(--sky) 0%, #d8f0fc 100%); text-align: center; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin: 40px 0 48px; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-out),
    background 0.2s;
}
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,42,58,0.14);
}
.social-btn:active { transform: translateY(0) scale(0.96); }
.social-btn.insta { background: var(--white); color: var(--navy); }
.social-btn.fb { background: var(--navy); color: var(--white); }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,0.5); text-align: center; padding: 40px 48px; font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 300; }
footer .footer-brand { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--sky); }

/* ── RESPONSIVE ── */
@media (max-width: 1319px) {
  nav { padding: 0 24px; }
  .nav-logo img { height: 16px !important; width: auto !important; max-width: none !important; }
  nav > div { gap: 6px !important; }

  /* ── Mobile language selector ── */
  .lang-btns { display: none !important; }
  .lang-select-wrap {
    display: inline-flex !important;
    align-items: center;
    background: transparent;
    border: none;
  }
  .lang-select {
    background: transparent;
    border: none;
    color: var(--navy);
    padding: 4px 20px 4px 4px;
    cursor: pointer;
    font-size: 0.72rem;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 0.08em;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231a2a3a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    outline: none;
  }
  .lang-select:focus { outline: 1px dashed var(--sky); }
  .lang-select option { background: #fff; }

  /* Mobile nav — smooth slide down */
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-bottom: 1px solid rgba(206,234,248,0.4);
    box-shadow: 0 8px 40px rgba(26,42,58,0.1);
    /* Hidden by default — slide in with JS */
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.35s var(--ease-out),
      opacity 0.25s var(--ease-out);
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    z-index: 9999;
  }
  .nav-links li {
    border-bottom: 1px solid rgba(206,234,248,0.3);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links li a {
    padding: 16px 24px;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }
  /* Mobile: hide all lang variants first, then show active */
  .nav-links li a { display: none !important; }
  /* Show active language on mobile */
  body.en .nav-links a[data-lang="en"] { display: block !important; }
  body.zh .nav-links a[data-lang="zh"] { display: block !important; }
  body.ja .nav-links a[data-lang="ja"] { display: block !important; }

  /* Dot separators between nav items */
  .nav-links li {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .nav-links li:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: 0;
    color: rgba(26,42,58,0.3);
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
  }
  .nav-links li a { width: 100%; }

  /* Remove pill bubble from Shop on mobile */
  .nav-cta { border: none !important; border-radius: 0 !important; padding: 16px 24px !important; }
  .hamburger { display: flex; }

  .hero-pillars::before { left: 12px; }
  .hero-pillars::after  { right: 12px; }
  section { padding: 72px 24px; }
  .story-section { padding: 72px 24px; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-grid.reversed { direction: ltr; }
  .story-text { font-size: 0.88rem; }
  .story-text .name-cn { font-size: 1.25rem; }
  .values-section { padding: 60px 24px; }
  .values { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .store-grid { grid-template-columns: 1fr; }
  .lookbook-strip { height: 260px; }
  .carousel-slide { width: 260px; height: 170px; }
  .story-label::before,
  .story-label::after { width: 24px; }
  .page-hero { height: 40vh; min-height: 280px; }

  /* Social buttons — mobile: wrap and prevent overflow */
  .social-icons {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 8px;
  }
  .social-btn {
    font-size: 0.72rem !important;
    padding: 10px 16px !important;
    flex: 1 1 auto;
    max-width: calc(50% - 6px);
    justify-content: center;
  }
  .social-btn span { display: inline; }

  /* Footer safe area for notched phones */
  footer {
    padding: 40px 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
}

/* Desktop: center the collection scroll carousel */
@media (min-width: 769px) {
  .collection-scroll-wrapper {
    justify-content: center !important;
  }
}

/* Store detail: stack on mobile */
@media (max-width: 768px) {
  .store-detail {
    flex-direction: column !important;
    gap: 4px !important;
  }
  .store-detail br { display: none; }
  .collab-badge { display: none; }
}

/* INDEX / COLLECTION / BRAND STORY — p[data-lang] and span[data-lang] for generic containers */span[data-lang="zh"],span[data-lang="ja"] { display: none; }
body.zh span[data-lang="en"],
body.zh span[data-lang="ja"] { display: none; }
body.zh span[data-lang="zh"] { display: inline; }
body.ja span[data-lang="en"],
body.ja span[data-lang="zh"] { display: none; }
body.ja span[data-lang="ja"] { display: inline; }
body.en span[data-lang="zh"],
body.en span[data-lang="ja"] { display: none; }
body.en span[data-lang="en"] { display: inline; }

/* BRAND STORY — h3 (founder title) with data-lang directly on element */
.story-text > h3[data-lang="zh"],
.story-text > h3[data-lang="ja"] { display: none; }
body.zh .story-text > h3[data-lang="en"],
body.zh .story-text > h3[data-lang="ja"] { display: none; }
body.zh .story-text > h3[data-lang="zh"] { display: block; }
body.ja .story-text > h3[data-lang="en"],
body.ja .story-text > h3[data-lang="zh"] { display: none; }
body.ja .story-text > h3[data-lang="ja"] { display: block; }
body.en .story-text > h3[data-lang="zh"],
body.en .story-text > h3[data-lang="ja"] { display: none; }
body.en .story-text > h3[data-lang="en"] { display: block; }

/* ── ACCESSIBILITY: visible keyboard focus everywhere ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(206, 234, 248, 0.85);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── SMALL PHONES (≤480px) ── */
@media (max-width: 480px) {
  section { padding: 64px 20px; }
  .story-section { padding: 56px 20px; }
  .values-section { padding: 48px 20px; }

  .hero-title { font-size: 2rem; line-height: 1.15; }

  .carousel-slide { width: 220px; height: 145px; }
  .lookbook-strip { height: 200px; }

  .product-grid { grid-template-columns: 1fr; gap: 14px; }

  .store-card-header { padding: 18px 16px 0; }
  .store-card-body { padding: 0 16px 18px; }
  .store-photo-wrap { min-height: 180px; }

  .hamburger { padding: 12px; }
  .nav-links li a { padding: 16px 20px; font-size: 0.95rem; }

  .footer-brand img { height: 22px !important; }
  .social-btn { padding: 10px 16px; }
}

/* ── LIGHTBOX (shared: collection + collaborations) ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 42, 58, 0.96);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Close: moon glyph in a soft glass pill — 46px real tap target */
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(206, 234, 248, 0.10);
  border: 1px solid rgba(206, 234, 248, 0.28);
  border-radius: 999px;
  color: #f4f4f4;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s;
}
.lightbox-close svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.lightbox-close:hover {
  background: rgba(206, 234, 248, 0.24);
  border-color: rgba(206, 234, 248, 0.55);
}
.lightbox-close:hover svg { transform: rotate(-24deg) scale(1.15); }
.lightbox-close:active svg { transform: rotate(-24deg) scale(0.95); }
.lightbox-close:focus-visible {
  outline: 2px solid var(--dawn-gold, #ffebb0);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 235, 176, 0.35);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--dawn-gold, #ffebb0);
  outline-offset: 2px;
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

@media (max-width: 768px) {
  .lightbox { padding: 12px; }
  .lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 16px;
    transform: none;
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
  }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { left: calc(50% + 12px); right: auto; }
  .lightbox-counter { bottom: 70px; }
}

/* Intrinsic-dimension contract: width/height attributes supply the aspect ratio,
   CSS keeps control of the rendered size (no distortion, no layout shift). */

/* The error page uses p/a language blocks with inline display styles;
   keep only the selected language visible without changing approved copy. */
body.error-page [data-lang] { display: none !important; }
body.error-page.en [data-lang="en"],
body.error-page.zh [data-lang="zh"],
body.error-page.ja [data-lang="ja"] { display: block !important; }

/* ── MOBILE HARDENING (audit 2026-11-08) ── */

/* Gallery tiles: visible keyboard focus using the existing focus palette
   (navy ring + sky glow, same as the global rule — tiles are divs, so the
   global a/button/input rule does not match them). Inert until keyboard
   focus support lands on the tiles. Only outline/box-shadow — no geometry. */
.gallery-item:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(206, 234, 248, 0.85);
}

/* Hamburger: 44×44 hit area via a transparent pseudo-layer. Absolutely
   positioned and centered on the button, so glyph size and layout are
   untouched; clicks/focus on the pseudo resolve to the button itself. */
.hamburger { position: relative; }
.hamburger::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  /* Collection tab row: bounded horizontal scroll instead of page overflow.
     The section wrapper carries inline style="padding:60px 48px 80px", which
     beats every stylesheet rule, so the nav bleeds out with -48px margins and
     re-insets with equal padding: first tab stays aligned with the content
     column and is fully reachable at scrollLeft:0. `body ` raises specificity
     to (0,1,1) so these rules outrank collection.html's inline <style>
     `.tab-nav`/`.tab-btn` (0,1,0), which loads after this sheet. */
  body .tab-nav {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -48px;
    margin-right: -48px;
    padding-left: 48px;
    padding-right: 48px;
  }
  body .tab-nav::-webkit-scrollbar { display: none; }
  body .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Header language select: 0.72rem (11.52px) → 16px, above the iOS
     zoom-on-focus threshold. Verified no logo/menu overflow at 320px. */
  .lang-select { font-size: 1rem; }

  /* Contact form fields: inline style="font-size:0.95rem" (15.2px) triggers
     iOS zoom-on-focus; an inline style can only be beaten by !important.
     Scoped to .contact-form (stores.html only) — no other inputs affected. */
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px !important;
  }
}
