/* ============================================================
   BIZBUFF — main.css
   Dark & cinematic design system
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0B0C10;
  --bg-raise: #121319;
  --line: rgba(255, 255, 255, .08);
  --line-bright: rgba(255, 255, 255, .16);
  --text: #F2F3F7;
  --text-2: #C9CDD6;
  --text-3: #9AA0AE;
  --gold: #C9A96A;
  --cream: #EDE6DA;
  --vivaia: #A8B5A0;   --vivaia-text: #C6D2BC;  --vivaia-glow: #5C6B54;
  --nordace: #4A7FA5;  --nordace-text: #9CC4E4; --nordace-glow: #1F4763;
  --nutro: #4CAF6D;    --nutro-text: #8FDCA9;   --nutro-glow: #1E5B36;
  --font-display: 'Space Grotesk', 'Noto Sans TC', system-ui, sans-serif;
  --font-body: 'Noto Sans TC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-s: 12px; --r-m: 20px; --r-l: 28px; --r-pill: 999px;
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
h1, h2, h3 { color: var(--text); font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(96px, 14vh, 160px); position: relative; }

/* Traditional Chinese typography overrides */
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3 {
  letter-spacing: .02em;
  line-height: 1.25;
}
html[lang="zh-Hant"] body, html[lang="zh-Hant"] p { line-height: 1.85; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--bg-raise); color: var(--text);
  padding: 10px 18px; border-radius: var(--r-s); border: 1px solid var(--line-bright);
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Ambient glow + grain ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.ambient-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.ambient-default {
  background:
    radial-gradient(55vw 55vw at 18% 8%, rgba(42, 47, 107, .38), transparent 65%),
    radial-gradient(45vw 45vw at 85% 92%, rgba(201, 169, 106, .12), transparent 65%);
  opacity: 1;
}
.ambient-vivaia {
  background:
    radial-gradient(55vw 55vw at 80% 15%, rgba(92, 107, 84, .5), transparent 65%),
    radial-gradient(45vw 45vw at 10% 85%, rgba(237, 230, 218, .07), transparent 65%);
}
.ambient-nordace {
  background:
    radial-gradient(55vw 55vw at 18% 20%, rgba(31, 71, 99, .55), transparent 65%),
    radial-gradient(45vw 45vw at 88% 80%, rgba(127, 180, 217, .1), transparent 65%);
}
.ambient-nutro {
  background:
    radial-gradient(55vw 55vw at 82% 25%, rgba(30, 91, 54, .5), transparent 65%),
    radial-gradient(45vw 45vw at 12% 88%, rgba(205, 232, 74, .06), transparent 65%);
}
body[data-theme="default"] .ambient-default,
body[data-theme="vivaia"] .ambient-vivaia,
body[data-theme="nordace"] .ambient-nordace,
body[data-theme="nutro"] .ambient-nutro { opacity: 1; }
body:not([data-theme="default"]) .ambient-default { opacity: 0; }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035;
  mix-blend-mode: overlay;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--text-3);
  margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(100deg, var(--cream) 10%, var(--gold) 85%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-3); max-width: 560px; font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 34px;
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  letter-spacing: .02em; color: var(--text);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.btn-primary {
  border: 1px solid rgba(201, 169, 106, .45);
  background: rgba(201, 169, 106, .08);
}
.btn-primary:hover {
  border-color: rgba(201, 169, 106, .9);
  background: rgba(201, 169, 106, .14);
  box-shadow: 0 0 32px rgba(201, 169, 106, .22);
  transform: translateY(-2px);
}

/* Rotating conic border CTA */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn-conic-wrap {
  display: inline-block; padding: 1.5px; border-radius: var(--r-pill);
  background: conic-gradient(from var(--angle),
    rgba(201,169,106,0) 0%, var(--gold) 12%, var(--cream) 22%, rgba(201,169,106,0) 38%,
    rgba(201,169,106,.25) 60%, rgba(201,169,106,0) 80%);
  animation: spin-border 8s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }
.btn-conic {
  background: #101116;
  padding: 16px 44px; min-height: 56px; font-size: 1.06rem;
}
.btn-conic:hover { background: #17181f; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 12, 16, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.14rem; letter-spacing: .08em; color: var(--text);
}
.logo-word em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cream), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-nav { display: flex; gap: 36px; }
.site-nav a {
  position: relative; font-family: var(--font-display);
  font-size: .93rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text-2); padding: 6px 0;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--cream), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 34px; padding: 4px 14px;
  border: 1px solid var(--line-bright); border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: .85rem; font-weight: 500;
  color: var(--text-2);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--text); background: rgba(201,169,106,.08); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn span {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: transform .35s ease, opacity .35s ease;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11, 12, 16, .92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; color: var(--text);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .12s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .18s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .24s; }
.lang-toggle-mobile { color: var(--gold) !important; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-a {
  width: 85vmin; height: 85vmin; top: -20%; left: -12%;
  background: radial-gradient(circle at 40% 40%, rgba(42, 47, 107, .55), transparent 62%);
  animation: blob-a 34s ease-in-out infinite alternate;
}
.blob-b {
  width: 70vmin; height: 70vmin; bottom: -25%; right: -8%;
  background: radial-gradient(circle at 45% 45%, rgba(138, 90, 43, .38), transparent 62%);
  animation: blob-b 28s ease-in-out infinite alternate;
}
.blob-c {
  width: 60vmin; height: 60vmin; top: 30%; right: 25%;
  background: radial-gradient(circle at 50% 50%, rgba(30, 95, 91, .32), transparent 62%);
  animation: blob-c 42s ease-in-out infinite alternate;
}
@keyframes blob-a {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(9vw, 6vh) scale(1.12) rotate(20deg); }
  100% { transform: translate(-4vw, 10vh) scale(.94) rotate(-14deg); }
}
@keyframes blob-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-10vw, -8vh) scale(1.15); }
  100% { transform: translate(5vw, -14vh) scale(.9); }
}
@keyframes blob-c {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(7vw, 9vh) scale(1.18); }
  100% { transform: translate(-8vw, -5vh) scale(.92); }
}

.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 28px; }
.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 32px;
}
html[lang="zh-Hant"] .hero-title { letter-spacing: .02em; line-height: 1.18; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line { display: block; }
.hero-sub {
  max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2); margin-bottom: 44px;
}
/* JS-enhanced initial states (only when motion is OK and JS present) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .line { transform: translateY(112%); }
  .js .reveal-up { opacity: 0; transform: translateY(26px); }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  z-index: 1; padding: 10px;
}
.scroll-cue-box {
  display: block; width: 24px; height: 40px;
  border: 1.5px solid var(--line-bright); border-radius: 13px;
  position: relative;
}
.scroll-cue-dot {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold);
  animation: cue 2s cubic-bezier(.4,0,.4,1) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  75%  { transform: translateY(14px); opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}

/* ---------- S2 About ---------- */
.about-intro {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--text-2); max-width: 660px;
  margin-bottom: 64px;
}
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.glass-card {
  position: relative;
  padding: 36px 32px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
}
.desktop-fx .glass-card { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.glass-card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.card-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 24px; }
.glass-card h3 { font-size: 1.2rem; margin-bottom: 12px; font-weight: 500; }
.glass-card p { color: var(--text-3); font-size: .97rem; }

.stat-strip { margin-top: 72px; }
.stat-rule {
  height: 1px; margin-bottom: 40px;
  background: linear-gradient(90deg, var(--gold), rgba(201,169,106,0));
  transform-origin: left;
}
.stats { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1;
  background: linear-gradient(100deg, var(--cream), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-3); font-size: .93rem; letter-spacing: .04em; }

/* ---------- S3 Brands ---------- */
.brands { position: relative; }
.brands-head { padding-block: clamp(96px, 14vh, 160px) clamp(32px, 6vh, 64px); }
.brand-panel { position: relative; padding-block: clamp(48px, 8vh, 96px); }
.brand-grid {
  display: grid; align-items: center;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 96px);
  min-height: 70vh;
}
.brand-grid-flip .brand-copy { order: 2; }
.brand-grid-flip .brand-media { order: 1; }

.brand-index {
  font-family: var(--font-display); font-weight: 500;
  font-size: .9rem; letter-spacing: .3em; color: var(--text-3);
  display: block; margin-bottom: 20px;
}
.brand-name {
  position: relative; display: inline-block;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700; letter-spacing: -0.015em; line-height: 1;
  margin-bottom: 18px;
}
.brand-name-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--brand-accent, var(--gold));
  opacity: .55;
}
.brand-name-fill {
  position: absolute; inset: 0;
  color: var(--brand-accent-text, var(--text));
  clip-path: inset(0 100% 0 0);
}
.brand-name-fill.filled { clip-path: inset(0 0% 0 0); }
.brand-vivaia  { --brand-accent: var(--vivaia);  --brand-accent-text: var(--vivaia-text);  --brand-glow: var(--vivaia-glow); }
.brand-nordace { --brand-accent: var(--nordace); --brand-accent-text: var(--nordace-text); --brand-glow: var(--nordace-glow); }
.brand-nutro   { --brand-accent: var(--nutro);   --brand-accent-text: var(--nutro-text);   --brand-glow: var(--nutro-glow); }

.brand-tagline {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
  color: var(--text); margin-bottom: 24px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chips li {
  padding: 7px 16px;
  border: 1px solid var(--line-bright);
  border-radius: var(--r-pill);
  font-size: .83rem; letter-spacing: .03em;
  color: var(--brand-accent-text, var(--text-2));
}
.brand-body { max-width: 480px; color: var(--text-3); margin-bottom: 32px; }
.brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500;
  color: var(--brand-accent-text, var(--text));
  position: relative; padding: 8px 0;
}
.brand-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.brand-link:hover::after { transform: scaleX(1); }
.brand-link .arrow { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.brand-link:hover .arrow { transform: translateX(6px); }

.brand-media {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 74vh;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.media-glow {
  position: absolute; inset: -30%;
  background: radial-gradient(circle at 50% 55%, var(--brand-glow, #333), transparent 60%);
  opacity: .55;
}
.motif { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-logo {
  position: relative; z-index: 2;
  width: 58%; max-width: 280px;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, .55));
}
.logo-nutroone { width: 72%; max-width: 340px; }

/* VIVAIA weave */
.thread {
  fill: none; stroke-width: 1.5; opacity: .5;
}
.thread.t-a { stroke: var(--vivaia); }
.thread.t-b { stroke: var(--cream); opacity: .3; }

/* Nordace route */
.grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: -5%; height: 70%;
  background:
    repeating-linear-gradient(to right, rgba(127, 180, 217, .14) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to top, rgba(127, 180, 217, .14) 0 1px, transparent 1px 44px);
  transform: perspective(620px) rotateX(56deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 90%);
  mask-image: linear-gradient(to top, #000 25%, transparent 90%);
}
.route {
  fill: none; stroke: var(--nordace-text); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(127, 180, 217, .75));
}
.route-node { fill: var(--nordace-text); }
.route-pulse {
  fill: none; stroke: var(--nordace-text); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: node-pulse 2.6s ease-out infinite;
}
@keyframes node-pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* NutroOne vitality */
.orb {
  position: absolute; left: 50%; top: 52%;
  width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, rgba(205, 232, 74, .5), rgba(76, 175, 109, .55) 55%, transparent 72%);
  filter: blur(14px);
  animation: orb-breathe 5s ease-in-out infinite alternate;
}
@keyframes orb-breathe {
  from { transform: translate(-50%, -50%) scale(.96); }
  to   { transform: translate(-50%, -50%) scale(1.07); }
}
.ring {
  position: absolute; left: 50%; top: 52%;
  aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1px solid rgba(143, 220, 169, .5);
  border-radius: 50%;
  animation: ring-pulse 3.6s cubic-bezier(.2,.6,.4,1) infinite;
}
.ring-1 { width: 46%; animation-delay: 0s; }
.ring-2 { width: 46%; animation-delay: 1.2s; }
.ring-3 { width: 46%; animation-delay: 2.4s; }
@keyframes ring-pulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: .65; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}
.particles i {
  position: absolute; bottom: -6%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--nutro-text);
  filter: blur(1px);
  opacity: 0;
  animation: rise 8s linear infinite;
}
.particles i:nth-child(1)  { left: 12%; animation-duration: 7.2s;  animation-delay: 0s; }
.particles i:nth-child(2)  { left: 24%; animation-duration: 9.6s;  animation-delay: 1.4s; }
.particles i:nth-child(3)  { left: 33%; animation-duration: 6.8s;  animation-delay: 3s; }
.particles i:nth-child(4)  { left: 45%; animation-duration: 8.4s;  animation-delay: .8s; }
.particles i:nth-child(5)  { left: 54%; animation-duration: 10s;   animation-delay: 2.2s; }
.particles i:nth-child(6)  { left: 63%; animation-duration: 7.6s;  animation-delay: 4.5s; }
.particles i:nth-child(7)  { left: 72%; animation-duration: 9s;    animation-delay: 1.8s; }
.particles i:nth-child(8)  { left: 81%; animation-duration: 6.4s;  animation-delay: 3.6s; }
.particles i:nth-child(9)  { left: 88%; animation-duration: 8.8s;  animation-delay: .4s; }
.particles i:nth-child(10) { left: 6%;  animation-duration: 9.4s;  animation-delay: 5.2s; }
@keyframes rise {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: .8; }
  85%  { opacity: .25; }
  100% { transform: translateY(-540px); opacity: 0; }
}

/* ---------- S4 Regions ---------- */
.regions .section-sub { margin-bottom: 64px; }
.region-map { position: relative; }
.region-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.arc {
  fill: none; stroke: rgba(201, 169, 106, .45); stroke-width: 1.5;
  stroke-dasharray: 7 9;
  vector-effect: non-scaling-stroke;
  animation: ants 2.8s linear infinite;
}
@keyframes ants { to { stroke-dashoffset: -64; } }
.node { fill: var(--gold); }
.node-pulse {
  fill: none; stroke: var(--gold); stroke-width: 1;
  transform-box: fill-box; transform-origin: center;
  animation: node-pulse 3s ease-out infinite;
}
.region-chips { position: relative; height: clamp(300px, 33vw, 400px); }
.region-chip {
  position: absolute; transform: translate(-50%, -50%);
  width: min(280px, 30vw);
  padding: 24px 26px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease;
}
.desktop-fx .region-chip { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.region-chip:hover { transform: translate(-50%, -50%) translateY(-4px); border-color: var(--line-bright); }
.chip-hk { left: 16.6%; top: 67.5%; }
.chip-tw { left: 50%;   top: 40%; }
.chip-ca { left: 83.3%; top: 60%; }
.region-chip h3 { font-size: 1.14rem; font-weight: 500; margin-bottom: 8px; }
.region-chip p { color: var(--text-3); font-size: .9rem; line-height: 1.55; }

/* ---------- S5 CTA ---------- */
.cta { overflow: hidden; }
.cta-glow {
  position: absolute; left: 50%; top: 50%;
  width: 90vw; height: 100%; transform: translate(-50%, -50%);
  background: radial-gradient(50% 65% at 50% 50%, rgba(201, 169, 106, .13), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  max-width: 780px;
  margin-bottom: 20px;
}
.cta .section-sub { margin-bottom: 48px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  padding-top: clamp(64px, 8vh, 96px);
}
.footer-grid {
  display: grid; gap: 64px;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
  padding-bottom: 64px;
}
.footer-about > .logo { margin-bottom: 24px; }
.footer-about p { color: var(--text-3); max-width: 380px; margin-bottom: 16px; }
.footer-note { font-family: var(--font-display); letter-spacing: .1em; font-size: .85rem; }
.lang-toggle-footer { margin-top: 12px; }
.contact-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 28px; }
.contact-rows { display: flex; flex-direction: column; }
.contact-row {
  display: flex; align-items: center; gap: 18px;
  min-height: 64px; padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left .35s cubic-bezier(.2,.8,.2,1);
}
.contact-row svg { width: 22px; height: 22px; flex: none; color: var(--gold); stroke-width: 1.5; }
.contact-text { display: flex; flex-direction: column; gap: 2px; color: var(--text); font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-label {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--text-3); font-family: var(--font-display);
}
.contact-row .arrow { margin-left: auto; color: var(--text-3); transition: transform .35s cubic-bezier(.2,.8,.2,1), color .35s ease; }
.contact-row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--cream), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.contact-row:hover::after { transform: scaleX(1); }
.contact-row:hover .arrow { transform: translateX(6px); color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: .88rem;
}

/* ---------- Scroll reveal helpers (JS-driven) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .glass-card,
  .js .about-intro,
  .js .stat-strip,
  .js .brands-head,
  .js .regions .eyebrow, .js .regions .section-title, .js .regions .section-sub,
  .js .region-chip,
  .js .brand-logo,
  .js .cta-inner > * ,
  .js .footer-grid > * { opacity: 0; transform: translateY(28px); }
  .js .stat-rule { transform: scaleX(0); }
  .js .stat-strip.revealed .stat-rule { transform: scaleX(1); transition: transform 1s .2s cubic-bezier(.2,.8,.2,1); }
  .js .revealed { opacity: 1 !important; transform: none !important; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
}

/* ============================================================
   Responsive — tablet & mobile
   ============================================================ */
@media (max-width: 1080px) {
  .region-chip { width: min(240px, 28vw); padding: 18px 20px; }
}

@media (max-width: 899px) {
  .site-nav { display: none; }
  .menu-btn { display: flex; }
  .hero-title { font-size: clamp(2.5rem, 11vw, 4rem); }

  .brand-grid, .brand-grid-flip {
    grid-template-columns: 1fr;
    gap: 36px; min-height: 0;
  }
  .brand-grid-flip .brand-copy { order: 1; }
  .brand-grid-flip .brand-media { order: 2; }
  .brand-media { aspect-ratio: 4 / 3; max-height: 46vh; width: 100%; }
  .brand-panel { padding-block: 56px; }

  .region-arcs { display: none; }
  .region-chips { height: auto; display: flex; flex-direction: column; gap: 0; }
  .region-chip { position: static; transform: none; width: 100%; }
  .region-chip:hover { transform: translateY(-2px); }
  .region-chip + .region-chip { margin-top: 16px; }
  .region-chips {
    position: relative; padding-left: 24px;
  }
  .region-chips::before {
    content: ''; position: absolute; left: 6px; top: 8%; bottom: 8%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(201,169,106,.5), transparent);
  }
  .region-chip::before {
    content: ''; position: absolute;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Mobile perf budget: lighter background work */
  .blob-c { display: none; }
  .blob-a { width: 95vmin; height: 95vmin; }
  .grain { inset: 0; background-size: 240px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 40px, var(--container)); }
  .stats { gap: 32px 40px; }
  .btn { width: 100%; }
  .btn-conic-wrap { width: 100%; }
  .hero-cta .btn { width: auto; }
}

/* ============================================================
   Reduced motion — kill all movement, keep everything visible
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .brand-name-fill { clip-path: inset(0 0% 0 0); }
  .scroll-cue-dot { animation: none; }
}
