/* =========================================================
   Pixel Bloom — site styles
   All brand colours live in :root. To change the look, edit here only.
   ========================================================= */

:root {
  --night: #0b0a10;      /* page background */
  --smoke: #16141e;      /* panels, cards */
  --smoke-2: #1e1b29;    /* raised panels */
  --line: #2a2636;       /* hairlines, borders */
  --lav: #c1a1ff;        /* brand lavender (from the logo) */
  --lav-soft: #e3d6ff;
  --lav-deep: #7d5bd6;
  --mist: #eee8ff;       /* main text */
  --mute: #9d95b5;       /* secondary text */
  --rec: #ff4d6d;        /* tiny "recording" dots only */

  /* semantic tokens — themes (bottom of file) override these */
  --accent-ink: var(--lav);          /* accent used as text on the page background */
  --on-accent: var(--night);         /* text on lavender fills */
  --heading: #fff;                   /* strongest text: big numbers */
  --logo-fill: #fff;                 /* letters of the logo-style headline */
  --spark: var(--lav-soft);
  --tint: rgba(193, 161, 255, .12);  /* soft accent backgrounds */
  --btn-hover-bg: #fff;
  --btn-hover-fg: var(--night);
  --hdr-scrolled: rgba(11, 10, 16, .72);
  --glass: rgba(11, 10, 16, .7);
  --overlay: rgba(6, 5, 10, .82);
  --stage-bg: #07060b;
  --card-drop: rgba(0, 0, 0, .8);
  --glow-a: rgba(125, 91, 214, .28);
  --glow-b: rgba(193, 161, 255, .12);
  --placeholder: #625b78;
  --map-filter: invert(.92) hue-rotate(200deg) saturate(.6) brightness(.95) contrast(.9);
  --grain: .07;
  --ftr-stroke: rgba(193, 161, 255, .35);
  --on-media: #f4f0ff;               /* text sitting on photos/videos (always light) */
  --media-accent: #c9aeff;
  --logo-w: block;                   /* which logo file shows: white or ink */
  --logo-k: none;

  --f-display: "Fraunces", "Noto Serif SC", Georgia, serif;
  --f-body: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: min(1320px, calc(100% - var(--gutter) * 2));
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr-h: 76px;
}

/* ---------- Language switch: both languages live in the HTML ---------- */
html:not([data-lang="zh"]) .zh,
html[data-lang="zh"] .en { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-lang="zh"] body { line-height: 1.75; }

/* film-grain texture over everything */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (hover: none) { body::after { display: none; } }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--lav); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--lav); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.02em;
  line-height: .95;
  margin: 0;
}
html[data-lang="zh"] .display { font-style: normal; letter-spacing: 0; line-height: 1.15; }

/* The logo treatment: white letters with a fat lavender outline */
.logo-type {
  font-style: inherit;
  color: var(--logo-fill);
  -webkit-text-stroke: .085em var(--lav);
  paint-order: stroke fill;
  padding-inline: .04em;
}
.accent { color: var(--accent-ink); font-style: inherit; }

.label {
  font-family: var(--f-body);
  font-stretch: 125%;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mute);
}
html[data-lang="zh"] .label { letter-spacing: .14em; font-size: .8rem; }
.label--lav { color: var(--accent-ink); }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; }

.h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--mute); max-width: 56ch; }

/* sparkle (4-point star from the logo) */
.spark { width: 1em; height: 1em; fill: currentColor; flex: none; }
.twinkle { animation: twinkle 3.6s var(--ease) infinite; transform-origin: center; }
.twinkle--2 { animation-delay: -1.2s; animation-duration: 4.4s; }
.twinkle--3 { animation-delay: -2.4s; animation-duration: 5.2s; }
@keyframes twinkle {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .5; }
  45% { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--btn-bg, var(--lav)); --fg: var(--btn-fg, var(--on-accent));
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.6em;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; line-height: 1;
  font-stretch: 112%;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--btn-hover-bg); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { --fg: var(--btn-hover-fg); box-shadow: 0 0 0 6px rgba(193, 161, 255, .18), 0 12px 40px -10px rgba(193, 161, 255, .6); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--ghost { --bg: transparent; --fg: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost::before { background: var(--heading); }
.btn--ghost:hover { --fg: var(--night); box-shadow: inset 0 0 0 1px var(--heading); }
.btn--sm { padding: .78em 1.2em; font-size: .85rem; }
.btn--lg { padding: 1.15em 2em; font-size: 1.05rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--accent-ink); }
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hdr-h);
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.hdr.is-scrolled { background: var(--hdr-scrolled); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__logo img { height: 52px; width: auto; }
.logo-w { display: var(--logo-w) !important; }
.logo-k { display: var(--logo-k) !important; }
.hdr__nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.hdr__nav a { position: relative; font-weight: 600; font-size: .95rem; color: var(--mute); transition: color .3s; padding: 6px 0; }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { color: var(--mist); }
.hdr__nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--lav); box-shadow: 0 0 10px var(--lav);
}
.hdr__act { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: .78rem; font-weight: 700;
}
.lang span { padding: 6px 10px; border-radius: 999px; color: var(--mute); transition: background .3s, color .3s; }
html:not([data-lang="zh"]) .lang [data-l="en"],
html[data-lang="zh"] .lang [data-l="zh"] { background: var(--mist); color: var(--night); }
.hdr { color: var(--mist); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--mist); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:nth-child(1) { top: 17px; } .burger i:nth-child(2) { top: 25px; }
.menu-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--night);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--hdr-h) + 20px) var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 40px) 38px);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-size: clamp(2.6rem, 11vw, 4.2rem); }
.menu nav a[aria-current="page"] { color: var(--accent-ink); }
.menu__foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.menu__foot .btn { flex: 1 1 auto; justify-content: center; padding: .95em 1.1em; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.sec--tight { padding-block: clamp(56px, 8vw, 100px); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head .label { display: flex; align-items: center; gap: .7em; margin-bottom: 18px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: calc(var(--hdr-h) + 40px) 0 80px;
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 40% at 50% 52%, var(--glow-a), transparent 70%),
    radial-gradient(30% 30% at 72% 28%, var(--glow-b), transparent 70%);
}
.hero__copy { position: relative; z-index: 20; text-align: center; width: var(--wrap); pointer-events: none; }
.hero__copy a, .hero__copy button { pointer-events: auto; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .7em; margin-bottom: clamp(18px, 3vw, 30px); }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 10.5rem); }
html[data-lang="zh"] .hero h1 { font-size: clamp(3rem, 9vw, 8.4rem); }
.hero h1 .w { display: inline-block; }
.hero__sub { margin: clamp(20px, 3vw, 32px) auto 0; max-width: 46ch; color: var(--mute); font-size: clamp(1rem, 1.35vw, 1.18rem); }
.hero__cta { margin-top: clamp(26px, 3.5vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 20; }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--lav), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* The orbit: client reels travelling round the logo's tilted ellipse */
.orbit { position: absolute; inset: 0; pointer-events: none; } /* no z-index: cards must interleave with the headline */
.orbit__ring { position: absolute; left: 50%; top: 50%; overflow: visible; pointer-events: none; }
.orbit__ring ellipse { fill: none; }
.orbit__card {
  position: absolute; left: 0; top: 0;
  width: var(--cw, 150px); aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden;
  background: var(--smoke);
  box-shadow: 0 0 0 1px rgba(193, 161, 255, .22), 0 30px 60px -20px var(--card-drop);
  pointer-events: auto; cursor: pointer;
  will-change: transform, opacity;
  opacity: 0;
}
.orbit__card video, .orbit__card img { width: 100%; height: 100%; object-fit: cover; }
.orbit__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 16, .85)); }
.orbit__tag { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1; font-size: .62rem; font-weight: 700; font-stretch: 115%; letter-spacing: .12em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orbit__spark { position: absolute; color: var(--spark); filter: drop-shadow(0 0 12px rgba(193, 161, 255, .8)); }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden; position: relative; }
.ticker__label { width: var(--wrap); margin: 0 auto 16px; }
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); font-size: clamp(2rem, 4.6vw, 4rem); white-space: nowrap; }
.ticker__item.o .display { color: transparent; -webkit-text-stroke: 1.2px var(--mist); }
.ticker__item .spark { color: var(--accent-ink); width: .45em; height: .45em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Metrics (styled after Ads Manager column headers) ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 28px clamp(14px, 2vw, 28px) 34px; border-right: 1px solid var(--line); position: relative; }
.metric:last-child { border-right: 0; }
.metric__head { display: flex; justify-content: space-between; align-items: center; color: var(--accent-ink); text-transform: uppercase; }
.metric__head::after { content: "↓"; color: var(--mute); }
.metric__num { display: block; margin-top: 22px; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -.02em; color: var(--heading); font-variant-numeric: tabular-nums; }
.metric__sub { margin-top: 10px; color: var(--mute); font-size: .92rem; }
.metrics-note { margin-top: 18px; color: var(--mute); font-size: .82rem; }

/* ---------- Services overview (Plan / Make / Grow) ---------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stage { position: relative; background: var(--night); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; transition: background .5s var(--ease); }
.stage::after { content: "↗"; position: absolute; top: clamp(22px, 2.6vw, 34px); right: clamp(22px, 2.6vw, 34px); font-size: 1.6rem; line-height: 1; color: var(--accent-ink); transition: transform .5s var(--ease); }
.stage:hover::after { transform: rotate(45deg) scale(1.15); }
.stage__title { transition: transform .5s var(--ease); }
.stage:hover .stage__title { transform: translateX(6px); }
.stage:hover { background: var(--smoke); }
.stage__no { font-family: var(--f-mono); color: var(--accent-ink); font-size: .8rem; }
.stage__title { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.stage__list { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.stage__list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.stage__list li > span:last-child { color: var(--mute); font-weight: 400; font-size: .9rem; text-align: right; }

/* ---------- Work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.work-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; display: block; width: 100%; text-align: left;
  aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: var(--smoke); isolation: isolate; color: var(--on-media);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .5s var(--ease), transform .6s var(--ease);
}
.card:hover { box-shadow: 0 0 0 1px var(--lav), 0 30px 80px -30px rgba(193, 161, 255, .55); transform: translateY(-6px); }
.card__media, .card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media img { transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.card:hover .card__media img { transform: scale(1.06); filter: saturate(1.05); }
.card__media video { opacity: 0; transition: opacity .5s; }
.card.is-playing .card__media video { opacity: 1; }
.fan__phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.fan__phone.is-playing video { opacity: 1; }
.card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 10, 16, .55) 0%, transparent 22%, transparent 40%, rgba(11, 10, 16, .78) 62%, rgba(11, 10, 16, .97) 100%); }
.card__top { position: absolute; z-index: 2; inset: 16px 16px auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card__industry { color: var(--on-media); font-size: .62rem; }
.card__count { font-family: var(--f-mono); font-size: .68rem; color: var(--on-media); padding: 4px 8px; border-radius: 999px; background: rgba(11, 10, 16, .6); white-space: nowrap; }
.card__body { position: absolute; z-index: 2; inset: auto 18px 18px; }
.card__metric { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1; color: var(--media-accent); letter-spacing: -.02em; }
.card__metric-l { display: block; margin-top: 4px; font-size: .82rem; color: var(--on-media); }
.card__name { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(238, 232, 255, .18); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
/* card with no photos yet: typographic cover */
.card__type { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(80% 60% at 30% 20%, rgba(214, 196, 255, .55), transparent 60%),
  linear-gradient(160deg, #8f68f0, #4a2aa8); }
.card__type .spark { width: 46%; height: auto; color: rgba(255, 255, 255, .22); }
.card.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.chip { padding: .7em 1.2em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .9rem; color: var(--mute); transition: all .35s var(--ease); }
.chip:hover { color: var(--mist); box-shadow: inset 0 0 0 1px var(--mute); }
.chip[aria-pressed="true"] { background: var(--lav); color: var(--on-accent); box-shadow: none; }
.chip sup { font-family: var(--f-mono); font-size: .7em; margin-left: .35em; opacity: .7; }

/* cursor bubble on work cards (desktop) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lav); color: var(--on-accent);
  font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-stretch: 120%;
  transform: scale(0); transition: transform .45s var(--ease);
}
.cursor.is-on { transform: scale(1); }

/* ---------- Project window (modal) ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal__bg { position: absolute; inset: 0; background: var(--overlay); }
.modal__panel {
  position: absolute; inset: clamp(0px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--smoke); border-radius: clamp(0px, 2vw, 26px);
  box-shadow: 0 0 0 1px var(--line), 0 50px 120px -30px var(--card-drop); color: var(--mist);
  overflow: hidden;
}
.modal__stage { position: relative; background: var(--stage-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px 20px; min-height: 0; }
.modal__screen { position: relative; flex: none; height: min(100%, 72vh); max-height: calc(100% - 170px); touch-action: pan-y; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(193, 161, 255, .25), 0 0 80px -20px rgba(193, 161, 255, .35); }
.modal__screen video, .modal__screen img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.modal__type { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(80% 60% at 30% 20%, rgba(193, 161, 255, .3), transparent 60%), var(--smoke-2); color: var(--mist); }
.modal__type b { display: block; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 5rem; color: var(--accent-ink); line-height: 1; }
.modal__thumbs { position: relative; flex: none; align-items: flex-start; display: flex; gap: 8px; width: min(100%, 560px); overflow-x: auto; padding: 4px 4px 6px; scrollbar-width: none; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.modal__thumbs:empty { display: none; }
.modal__thumbs .thumb { width: 52px; scroll-snap-align: center; opacity: .55; background: var(--smoke-2); transition: opacity .3s, box-shadow .3s, transform .4s var(--ease); }
.modal__thumbs .thumb:hover { opacity: .9; }
.modal__thumbs .thumb[aria-current="true"] { opacity: 1; transform: translateY(-3px); }
.modal__thumbs .thumb:first-child { margin-left: 22px; }
.modal__thumbs .thumb:last-child { margin-right: 22px; }
.modal__pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.modal__pager[hidden] { display: none; }
.modal__pager .icon-btn { width: 40px; height: 40px; background: var(--glass); }
.modal__pager .modal__caption { min-width: 13ch; }
.modal__thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 44px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; opacity: .45; box-shadow: 0 0 0 1px var(--line); transition: opacity .3s, box-shadow .3s; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--lav); }
.thumb--video::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -6px 0 0 -4px; border-left: 9px solid #fff; border-block: 6px solid transparent; filter: drop-shadow(0 0 3px #000); }
.modal__caption { margin: 0; min-height: 1.3em; color: var(--mute); font-size: .72rem; text-align: center; }
.modal__gallery:empty { display: none; }
.gallery__title { margin: 4px 0 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 1.05rem; }
.gallery__title small { color: var(--mute); font-weight: 500; font-size: .82rem; }
.gallery__label { margin: 18px 0 10px; font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.gallery__label span { margin-left: 4px; color: var(--mute); font-weight: 500; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.gallery__grid .thumb { width: 100%; opacity: .82; background: var(--smoke-2); }
.gallery__grid .thumb:hover { opacity: 1; }
.modal__info { padding: clamp(28px, 4vw, 56px); overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.modal__name { font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.modal__summary { color: var(--mute); font-size: 1.05rem; max-width: 52ch; margin: 0; }
.modal__stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.modal__stat { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.modal__stat:nth-child(odd) { border-right: 1px solid var(--line); }
.modal__stat:nth-child(even) { padding-left: 18px; }
.modal__stat b { display: block; font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: var(--heading); line-height: 1.05; }
.modal__stat span { color: var(--mute); font-size: .85rem; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: .45em .9em; border-radius: 999px; background: var(--tint); color: var(--lav-soft); font-size: .82rem; font-weight: 600; }
.modal__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; }
.modal__nav { display: flex; gap: 8px; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s; }
.icon-btn:hover { background: var(--smoke-2); box-shadow: inset 0 0 0 1px var(--lav); }
.icon-btn svg { width: 18px; height: 18px; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; background: var(--glass); }

/* ---------- CTA band ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta__title { font-size: clamp(3rem, 8.4vw, 8rem); max-width: 14ch; margin-inline: auto; }
html[data-lang="zh"] .cta__title { font-size: clamp(2.6rem, 7vw, 6.4rem); }
.cta__ring { position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw); transform: translate(-50%, -50%) rotate(-14deg); z-index: -1; opacity: .7; pointer-events: none; }
.cta__ring ellipse { fill: none; stroke: url(#ringGrad); stroke-width: 2; }
.cta p { color: var(--mute); margin: 26px auto 34px; max-width: 44ch; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.phero { padding: calc(var(--hdr-h) + clamp(60px, 9vw, 120px)) 0 clamp(50px, 7vw, 90px); position: relative; overflow: hidden; }
.phero .label { display: flex; align-items: center; gap: .7em; margin-bottom: 22px; }
.phero h1 { font-size: clamp(3.2rem, 9vw, 8.6rem); max-width: 13ch; }
html[data-lang="zh"] .phero h1 { font-size: clamp(2.8rem, 7.4vw, 6.6rem); }
.phero .lead { margin-top: 28px; }
.phero__ring { position: absolute; right: -12vw; top: 40px; width: min(820px, 90vw); transform: rotate(-16deg); opacity: .55; pointer-events: none; }
.phero__ring ellipse { fill: none; stroke: url(#ringGrad); stroke-width: 1.6; }

/* ---------- Services page ---------- */
.svc-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.svc-stage__side { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; }
.svc-stage__side .display { font-size: clamp(3rem, 6vw, 5.4rem); }
.svc-stage__side p { color: var(--mute); margin: 14px 0 0; max-width: 30ch; }
.svc { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.svc:first-child { padding-top: 0; }
.svc__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); }
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.svc p { margin: 8px 0 0; color: var(--mute); max-width: 58ch; }
.svc__seen { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.svc__seen .label { margin-right: 4px; }
.svc__seen a { font-size: .85rem; color: var(--lav-soft); border-bottom: 1px solid rgba(193, 161, 255, .35); }
.svc__seen a:hover { color: var(--heading); border-color: var(--heading); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { padding: 28px clamp(14px, 2vw, 26px) 30px 0; border-top: 1px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--lav); box-shadow: 0 0 12px var(--lav); }
.step .mono { color: var(--accent-ink); }
.step h3 { margin: 12px 0 8px; font-size: 1.6rem; }
.step p { margin: 0; color: var(--mute); font-size: .95rem; }

/* ---------- About ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.timeline > div { background: var(--night); padding: clamp(26px, 3vw, 40px); }
.timeline .display { font-size: clamp(3rem, 6vw, 5.6rem); color: var(--accent-ink); }
.timeline p { color: var(--mute); margin: 14px 0 0; }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.why__item { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius); background: var(--smoke); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.why__item .spark { color: var(--accent-ink); width: 28px; height: 28px; }
.why__item h3 { margin: 6px 0 0; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.why__item p { margin: 0; color: var(--mute); }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.langs span { font-family: var(--f-mono); font-size: .78rem; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.reach { display: grid; gap: 12px; }
.reach__item { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: var(--smoke); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
a.reach__item:hover { box-shadow: 0 0 0 1px var(--lav); transform: translateX(4px); }
.reach__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); }
.reach__icon svg { width: 22px; height: 22px; }
.reach__item b { display: block; font-size: 1.05rem; }
.reach__item small { display: block; color: var(--mute); font-size: .9rem; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: .9rem; color: var(--mute); }
.hours dt { color: var(--mist); font-weight: 600; }
.hours dd { margin: 0; }

.form { padding: clamp(24px, 3.4vw, 44px); border-radius: calc(var(--radius) + 6px); background: var(--smoke); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .85rem; font-weight: 600; }
.field > span i { color: var(--accent-ink); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 0;
  background: var(--night); color: var(--mist); font: inherit; font-size: 1rem;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lav); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.checks legend { font-size: .85rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.checks label > span { display: inline-block; padding: .6em 1.05em; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; color: var(--mute); transition: all .3s var(--ease); }
.checks input:checked + span { background: var(--lav); color: var(--on-accent); box-shadow: none; }
.checks input:focus-visible + span { outline: 2px solid var(--lav); outline-offset: 2px; }
.form__note { font-size: .82rem; color: var(--mute); margin: 0; }
.form .btn { justify-self: start; }

.map { margin-top: clamp(40px, 6vw, 70px); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 0 0 1px var(--line); height: clamp(300px, 40vw, 440px); position: relative; background: var(--smoke); }
.map iframe { width: 100%; height: 100%; border: 0; filter: var(--map-filter); }
.map__pin { position: absolute; left: 18px; bottom: 18px; padding: 14px 18px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); font-size: .9rem; max-width: calc(100% - 36px); }
.map__pin b { color: var(--accent-ink); }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--smoke); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: 0 0 0 1px rgba(193, 161, 255, .45); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--accent-ink); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 24px 24px; color: var(--mute); max-width: 70ch; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 100px) 0 28px; position: relative; overflow: hidden; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
.ftr__logo img { width: 210px; height: auto; }
.ftr__tag { color: var(--mute); margin: 18px 0 0; max-width: 30ch; }
.ftr h2 { margin: 0 0 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a { color: var(--mist); transition: color .3s; }
.ftr ul a:hover { color: var(--accent-ink); }
.ftr address { font-style: normal; color: var(--mute); font-size: .95rem; }
.ftr__big { margin-top: clamp(50px, 8vw, 90px); font-size: clamp(4rem, 17vw, 17rem); line-height: .8; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--ftr-stroke); user-select: none; white-space: nowrap; }
.ftr__base { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--mute); font-size: .82rem; }

/* WhatsApp floating button */
.fab {
  position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--btn-bg, var(--lav)); color: var(--btn-fg, var(--on-accent));
  box-shadow: 0 14px 40px -8px rgba(193, 161, 255, .7);
  transition: transform .4s var(--ease), background .3s;
}
.fab:hover { transform: scale(1.08); background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.fab svg { width: 28px; height: 28px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(193, 161, 255, .6); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 18px rgba(193, 161, 255, 0); } }

/* simple centred pages (thank-you, 404) */
.solo { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--hdr-h) + 40px) var(--gutter) 80px; }
.solo h1 { font-size: clamp(3rem, 9vw, 7rem); }
.solo p { color: var(--mute); margin: 22px auto 30px; max-width: 42ch; }

/* reveal helpers (JS adds .is-in; without JS everything shows) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --hdr-h: 68px; }
  .hdr__nav, .hdr__act .btn { display: none; }
  .burger { display: block; }
  .hdr__logo img { height: 44px; }
  .stages, .timeline { grid-template-columns: 1fr; }
  .svc-stage { grid-template-columns: 1fr; }
  .svc-stage__side { position: static; }
  .contact { grid-template-columns: 1fr; }
  .modal__panel { inset: 0; border-radius: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: max-content max-content; overflow-y: auto; overscroll-behavior: contain; }
  .modal__stage, .modal__info { min-height: auto; }
  /* iPhone Safari draws the page behind the status bar and the floating address bar, outside
     the fixed layer — extend an opaque backdrop past both edges so nothing peeks through */
  .modal__bg { inset: -30vh 0; background: linear-gradient(var(--stage-bg) 50%, var(--smoke) 50%); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* …and since iPhone still paints the page itself in those strips, hide the page while the window is open */
  html.modal-open :is(main, .hdr, .ftr, .fab, .theme-dock) { visibility: hidden; }
  html.modal-open body { background: var(--stage-bg); }
  .modal__stage { padding: 64px 16px 18px; gap: 12px; }
  .modal__screen { height: min(56svh, 540px); max-height: none; }
  .gallery__grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .modal__info { overflow: visible; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .work-grid, .work-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { border-radius: 14px; }
  .card__top { inset: 10px 10px auto; }
  .card__industry { display: none; }
  .card__body { inset: auto 12px 12px; }
  .card__metric { font-size: 1.9rem; }
  .card__metric-l { font-size: .72rem; }
  .card__name { font-size: .86rem; margin-top: 10px; padding-top: 8px; }
  .why { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .metric { padding: 22px 12px 26px; }
  .metric__sub { font-size: .8rem; }
  .stage__list li > span:last-child { display: none; }
  .modal__stats { grid-template-columns: 1fr 1fr; }
  .fab { width: 54px; height: 54px; }
  .hero__eyebrow { font-size: .6rem; letter-spacing: .16em; }
  .hero__scroll { display: none; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* =========================================================
   Colour themes — <html data-theme="…">. No attribute = midnight (the :root values above).
   Each theme only swaps tokens; layout and motion are shared.
   ========================================================= */

/* 薰衣草白 Lilac — the logo as printed: black letters, lavender outline, white page */
html[data-theme="lilac"] {
  --night: #fbf9ff; --smoke: #ffffff; --smoke-2: #f2ecff; --line: #e6ddf7;
  --lav: #c1a1ff; --lav-soft: #6b3fd6;
  --mist: #17131f; --mute: #655d79;
  --accent-ink: #7444e0; --on-accent: #17131f; --heading: #120f18; --logo-fill: #120f18;
  --spark: #b48cff; --tint: rgba(193, 161, 255, .22);
  --btn-hover-bg: #120f18; --btn-hover-fg: #fff;
  --hdr-scrolled: rgba(251, 249, 255, .84); --glass: rgba(255, 255, 255, .84); --overlay: rgba(40, 28, 70, .42);
  --stage-bg: #efe8ff; --card-drop: rgba(76, 50, 140, .28);
  --glow-a: rgba(193, 161, 255, .5); --glow-b: rgba(255, 182, 214, .38);
  --placeholder: #a79fbd; --map-filter: saturate(.85); --grain: .03; --ftr-stroke: rgba(116, 68, 224, .28);
  --logo-w: none; --logo-k: block;
}
html[data-theme="lilac"] .ftr { background: #f3edff; }

/* 电光紫 Electric — violet colour blocks with a lime pop; white in between */
html[data-theme="electric"] {
  --night: #ffffff; --smoke: #f7f5ff; --smoke-2: #efeaff; --line: #e7e1f7;
  --lav: #6b3bff; --lav-soft: #5a2ee6;
  --mist: #120f18; --mute: #5f5874;
  --accent-ink: #6b3bff; --on-accent: #ffffff; --heading: #120f18; --logo-fill: #120f18;
  --spark: #6b3bff; --tint: rgba(107, 59, 255, .1);
  --btn-hover-bg: #120f18; --btn-hover-fg: #fff;
  --hdr-scrolled: rgba(255, 255, 255, .88); --glass: rgba(255, 255, 255, .88); --overlay: rgba(30, 12, 90, .45);
  --stage-bg: #f1edff; --card-drop: rgba(60, 20, 160, .25);
  --placeholder: #a8a1bd; --map-filter: none; --grain: .03;
  --logo-w: none; --logo-k: block;
}
html[data-theme="electric"] :is(.hero, .phero, .solo, .ftr, .menu),
html[data-theme="electric"] .hdr:not(.is-scrolled) {
  --night: #6b3bff; --smoke: #7b52ff; --smoke-2: #8a66ff; --line: rgba(255, 255, 255, .3);
  --mist: #ffffff; --mute: rgba(255, 255, 255, .82); --heading: #fff; --logo-fill: #fff;
  --lav: #d7ff3a; --lav-soft: #efffb0; --accent-ink: #d7ff3a; --on-accent: #120f18; --spark: #d7ff3a;
  --tint: rgba(255, 255, 255, .14); --btn-hover-bg: #fff; --btn-hover-fg: #120f18;
  --glow-a: rgba(255, 120, 200, .45); --glow-b: rgba(215, 255, 58, .22);
  --ftr-stroke: rgba(255, 255, 255, .32);
  --logo-w: block; --logo-k: none;
  color: var(--mist);
}
html[data-theme="electric"] :is(.hero, .phero, .solo, .ftr) {
  background:
    radial-gradient(55% 50% at 88% 8%, rgba(255, 120, 200, .5), transparent 70%),
    radial-gradient(50% 50% at 8% 92%, rgba(80, 220, 255, .32), transparent 70%),
    linear-gradient(160deg, #7b4dff, #5424de);
}
html[data-theme="electric"] .menu { background: #6b3bff; }
html[data-theme="electric"] .orbit__ring ellipse.draw,
html[data-theme="electric"] .phero__ring ellipse { stroke: rgba(255, 255, 255, .75); }
html[data-theme="electric"] .phero { padding-bottom: clamp(60px, 8vw, 110px); margin-bottom: clamp(40px, 6vw, 80px); }

/* 梦幻极光 Aurora — drifting pastel light (lavender, peach, sky), frosted-glass cards */
html[data-theme="aurora"] {
  --night: #fffcfa; --smoke: rgba(255, 255, 255, .66); --smoke-2: rgba(255, 255, 255, .82); --line: rgba(120, 92, 190, .16);
  --lav: #c1a1ff; --lav-soft: #6e45d9;
  --mist: #1d1828; --mute: #6a6380;
  --accent-ink: #7a4fe0; --on-accent: #1d1828; --heading: #1d1828; --logo-fill: #1d1828;
  --btn-bg: #1d1828; --btn-fg: #fff; --btn-hover-bg: #c1a1ff; --btn-hover-fg: #1d1828;
  --spark: #c9a6ff; --tint: rgba(193, 161, 255, .2);
  --hdr-scrolled: rgba(255, 252, 250, .7); --glass: rgba(255, 255, 255, .78); --overlay: rgba(60, 40, 90, .35);
  --stage-bg: rgba(255, 255, 255, .55); --card-drop: rgba(110, 80, 170, .25);
  --glow-a: rgba(193, 161, 255, .5); --glow-b: rgba(255, 190, 160, .45);
  --placeholder: #aaa2bf; --map-filter: saturate(.8); --grain: .03; --ftr-stroke: rgba(122, 79, 224, .25);
  --logo-w: none; --logo-k: block;
}
html[data-theme="aurora"] body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 10%, #e6d8ff, transparent 70%),
    radial-gradient(35% 30% at 90% 15%, #ffdccc, transparent 70%),
    radial-gradient(45% 40% at 75% 80%, #d6ecff, transparent 70%),
    radial-gradient(35% 35% at 20% 85%, #ffe3f1, transparent 70%);
  animation: aurora 24s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(3%, -2%, 0) scale(1.08) rotate(3deg); } }
@media (hover: none) { html[data-theme="aurora"] body::before { animation: none; } }
html[data-theme="aurora"] :is(.why__item, .reach__item, .form, .faq details, .modal__panel) { background: rgba(255, 255, 255, .86); }
html[data-theme="aurora"] :is(.stage, .timeline > div) { background: rgba(255, 255, 255, .55); }
html[data-theme="aurora"] :is(.stages, .timeline) { background: rgba(120, 92, 190, .14); }

/* ---------- Motion helpers ---------- */
/* masked words: headings rise out of an invisible mask (padding keeps italic overhangs and the logo outline visible) */
.m { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .14em .18em; margin: -.08em -.14em -.18em; }
.w { display: inline-block; }

/* page-change curtain (pastel sweep instead of a white flash) */
.curtain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  display: grid; place-items: center;
  background: var(--curtain-bg, var(--night));
  transform: translateY(101%);
}
.curtain .spark { width: 46px; height: 46px; color: var(--lav); opacity: 0; }
html.is-leaving .curtain { transform: translateY(0); transition: transform .42s cubic-bezier(.7, 0, .25, 1); }
html.is-leaving .curtain .spark { opacity: 1; transition: opacity .3s .15s; }
html.is-arriving .curtain { transform: translateY(0); }
html.is-arriving .curtain .spark { opacity: 1; }
html.is-arriving.arrived .curtain { transform: translateY(-101%); transition: transform .62s cubic-bezier(.7, 0, .25, 1); }
html.is-arriving.arrived .curtain .spark { opacity: 0; transition: opacity .2s; }
html[data-theme="aurora"] { --curtain-bg: linear-gradient(135deg, #ece2ff, #ffe5da 55%, #dcefff); }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* ---------- Agency touches ---------- */
/* rotating circular badge in the hero */
.badge {
  position: absolute; right: clamp(20px, 6vw, 96px); bottom: clamp(64px, 11vh, 120px); z-index: 21;
  width: 136px; height: 136px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); box-shadow: 0 0 0 1px var(--line), 0 20px 50px -20px var(--card-drop);
  transition: transform .5s var(--ease);
}
.badge:hover { transform: scale(1.06); }
.badge__ring { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 18s linear infinite; }
.badge__ring text { font-family: var(--f-body); font-size: 15.5px; font-weight: 700; font-stretch: 125%; letter-spacing: .12em; fill: var(--mist); }
.badge__spark { width: 34px; height: 34px; color: var(--accent-ink); transition: transform .6s var(--ease); }
.badge:hover .badge__spark { transform: rotate(90deg) scale(1.15); }
@keyframes spin { to { transform: rotate(360deg); } }

/* big statement: words light up as you scroll */
.statement { padding-block: clamp(90px, 14vw, 180px); }
.statement .label { display: flex; align-items: center; gap: .7em; margin-bottom: 28px; }
.statement__text {
  margin: 0; max-width: 24ch;
  font-family: var(--f-body); font-weight: 650; font-stretch: 105%;
  font-size: clamp(2rem, 4.6vw, 4.3rem); line-height: 1.1; letter-spacing: -.025em; color: var(--heading);
}
.statement__text em { font-family: var(--f-display); font-style: italic; font-weight: 900; color: var(--accent-ink); letter-spacing: -.01em; }
html[data-lang="zh"] .statement__text { max-width: 17em; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.38; letter-spacing: 0; }
html[data-lang="zh"] .statement__text em { font-style: normal; }

/* selected work: horizontal reel (pinned + scrubbed on desktop, swipe on phones) */
.work-reel { overflow: hidden; }
.reel__track {
  display: flex; align-items: stretch; gap: clamp(12px, 1.6vw, 22px); width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - 1320px) / 2));
}
.reel__cards { display: flex; gap: inherit; }
.reel .card, .reel__more { flex: none; width: clamp(220px, min(22vw, calc((100svh - 300px) * 9 / 16)), 330px); }
.reel__more {
  aspect-ratio: 9 / 16; border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #ece2ff, #ffe5da 60%, #dcefff); color: #1d1828;
  box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .5s var(--ease);
}
.reel__more:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--lav), 0 30px 80px -30px rgba(193, 161, 255, .55); }
.reel__more .display { font-size: clamp(2rem, 3vw, 2.8rem); }
.reel__more .spark { width: 40px; height: 40px; color: #7a4fe0; }
.reel__arrow { font-size: 2.4rem; line-height: 1; transition: transform .5s var(--ease); }
.reel__more:hover .reel__arrow { transform: translateX(10px); }
.reel--swipe .reel__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.reel--swipe .reel__track::-webkit-scrollbar { display: none; }
.reel--swipe :is(.card, .reel__more) { scroll-snap-align: start; scroll-margin-left: var(--gutter); }

/* giant marquee CTA above the footer (opens WhatsApp) */
.bigmarquee { display: block; overflow: hidden; border-top: 1px solid var(--line); padding-block: clamp(26px, 4vw, 52px); color: var(--heading); }
.bigmarquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite reverse; }
.bigmarquee__item { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); padding-right: clamp(22px, 3vw, 48px); font-size: clamp(3rem, 9vw, 8.5rem); white-space: nowrap; }
html[data-lang="zh"] .bigmarquee__item { font-size: clamp(2.6rem, 7.5vw, 7rem); }
.bigmarquee__item.o .display { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.bigmarquee__item .spark { width: .4em; height: .4em; color: var(--accent-ink); }
.bigmarquee .display { transition: color .4s var(--ease); }
.bigmarquee:hover { color: var(--accent-ink); }

@media (max-width: 700px) {
  .badge { display: none; }
  .reel .card, .reel__more { width: 62vw; }
}
@media (prefers-reduced-motion: reduce) {
  .badge__ring, .bigmarquee__track { animation: none; }
}

/* ---------- Orbit: vivid cards, cover image until the reel is playing ---------- */
.orbit__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.orbit__card video { position: relative; opacity: 0; transition: opacity .6s; }
.orbit__card.is-live video { opacity: 1; }
.orbit__card::after { z-index: 1; }
/* soft halo behind the hero text so vivid reels never fight the headline */
.hero__copy::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1100px, 120%); height: 125%;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 252, 250, .92), rgba(255, 252, 250, .7) 55%, rgba(255, 252, 250, 0));
}

/* ---------- "Who we are": short headline + chips, fanned phones on the right ---------- */
.statement__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.statement .h2 { max-width: 15ch; }
html[data-lang="zh"] .statement .h2 { max-width: 13em; }
@media (max-width: 640px) { html[data-lang="zh"] .statement .h2 { font-size: clamp(1.7rem, 8vw, 2.1rem); line-height: 1.35; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(26px, 3vw, 36px); }
.chip-tag { padding: .55em 1.05em; border-radius: 999px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .9rem; }
.statement__langs { margin: 20px 0 0; color: var(--mute); font-size: .95rem; }
.statement__langs b { color: var(--heading); }
.fan { position: relative; height: clamp(360px, 40vw, 540px); }
.fan__phone {
  position: absolute; top: 50%; left: 50%; width: clamp(140px, 13vw, 200px); aspect-ratio: 9 / 16;
  border-radius: 24px; overflow: hidden; background: #f1ebff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 40px 80px -30px rgba(110, 80, 170, .45);
  animation: fanfloat 6s ease-in-out infinite;
}
.fan__phone img { width: 100%; height: 100%; object-fit: cover; }
.fan__phone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(29, 24, 40, .6)); }
.fan__phone span { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; color: #fff; font-size: .6rem; font-weight: 700; font-stretch: 115%; letter-spacing: .12em; text-transform: uppercase; }
.fan__phone--1 { --x: -118%; --r: -9deg; animation-delay: -1s; }
.fan__phone--2 { --x: -50%; --r: 0deg; animation-delay: -3s; z-index: 2; width: clamp(160px, 15vw, 230px); }
.fan__phone--3 { --x: 18%; --r: 9deg; animation-delay: -5s; }
@keyframes fanfloat {
  0%, 100% { transform: translate(var(--x), -50%) rotate(var(--r)); }
  50% { transform: translate(var(--x), calc(-50% - 14px)) rotate(var(--r)); }
}
.fan__spark { position: absolute; top: 4%; right: 10%; width: 40px; height: 40px; color: var(--lav); animation: twinkle 4s var(--ease) infinite; }
@media (max-width: 900px) {
  .statement__in { grid-template-columns: 1fr; }
  .fan { height: clamp(300px, 80vw, 420px); }
  .fan__phone { width: 30vw; }
  .fan__phone--2 { width: 34vw; }
}

/* ---------- Brand wall (replaces the scrolling ticker) ---------- */
.brands { padding-block: clamp(44px, 6vw, 80px); border-block: 1px solid var(--line); }
.brands__label { display: flex; align-items: center; gap: .7em; margin: 0 0 22px; }
.brands__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brands__cell { position: relative; padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 26px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: background .5s var(--ease); }
.brands__cell .display { font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.05; transition: color .4s var(--ease), transform .5s var(--ease); }
.brands__cell small { font-size: .78rem; color: var(--mute); }
.brands__cell::after { content: "✦"; position: absolute; top: 14px; right: 16px; color: var(--lav); opacity: 0; transform: scale(.4) rotate(-45deg); transition: opacity .4s, transform .6s var(--ease); }
.brands__cell:hover { background: rgba(255, 255, 255, .75); }
.brands__cell:hover .display { color: var(--accent-ink); transform: translateX(4px); }
.brands__cell:hover::after { opacity: 1; transform: none; }
.brands__cell--you { padding: 0; background: linear-gradient(135deg, #ece2ff, #ffe5da 60%, #dcefff); }
.brands__cell--you a { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 100%; padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 26px); }
.brands__cell--you .display { color: var(--accent-ink); }
@media (max-width: 900px) { .brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brands__cell { min-height: 96px; } }

/* ---------- Closing call to action (replaces the giant marquee) ---------- */
.footcta { padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
.footcta__in .label { display: flex; align-items: center; gap: .7em; margin-bottom: 22px; }
.footcta__link { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 60px); padding-bottom: clamp(18px, 2.5vw, 30px); border-bottom: 1px solid var(--line); }
.footcta__text { font-size: clamp(3rem, 8.6vw, 8rem); }
html[data-lang="zh"] .footcta__text { font-size: clamp(2.6rem, 7vw, 6.4rem); }
.footcta__go {
  flex: none; width: clamp(64px, 8vw, 116px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--btn-bg, var(--lav)); color: var(--btn-fg, var(--on-accent)); font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  transition: transform .6s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.footcta__link:hover .footcta__go { transform: rotate(-45deg) scale(1.06); background: var(--lav); color: var(--heading); }
.footcta__sub { margin: 18px 0 0; color: var(--mute); }

/* reel arrows (desktop) */
.reel__nav { display: flex; gap: 8px; }
.reel__nav .icon-btn { font-size: 1.2rem; background: rgba(255, 255, 255, .7); }
@media (hover: none) { .reel__nav { display: none; } }
.reel--swipe .reel__track { scroll-behavior: smooth; }
.cursor { display: none !important; }

/* phones: fewer things moving at once */
@media (hover: none) {
  body::before { will-change: transform; }          /* aurora on its own layer: no repaint while scrolling */
  .fan__phone { animation: none; transform: translate(var(--x), -50%) rotate(var(--r)); }
}
