/* 元影 / Metafilm — cinematic studio landing */

:root {
  --bg: #000000;
  --bg-elev: #0a0a0a;
  --fg: #f2f0ea;
  --fg-dim: #8a8680;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.18);
  --line: rgba(242, 240, 234, 0.12);
  --font-display: "Bebas Neue", "Syne", "Noto Sans SC", sans-serif;
  --font-cn: "Noto Sans SC", "Syne", system-ui, sans-serif;
  --font-en: "Syne", "Bebas Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-cn);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-gated {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

/* ——— Age gate ——— */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000;
  padding: 24px;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.age-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate__inner {
  max-width: 420px;
  text-align: center;
}

.age-gate__label {
  font-family: var(--font-en);
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.age-gate__title {
  font-family: var(--font-cn);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.age-gate__desc {
  color: var(--fg-dim);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--font-cn);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #e0b82e;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--fg);
}

.btn--lg {
  min-height: 56px;
  padding: 0 40px;
  font-size: 1rem;
}

/* ——— Topbar ——— */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.topbar.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.topbar__zh {
  font-size: 1.15rem;
  font-weight: 700;
}

.topbar__en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.topbar__nav {
  display: none;
  gap: 20px;
}

.topbar__nav a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  transition: color 0.2s;
}

.topbar__nav a:hover,
.topbar__nav a.is-active {
  color: var(--fg);
}

.topbar__aside {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid var(--line);
}

.topbar__ext {
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
  min-height: 36px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}

.topbar__ext:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 0;
  flex-shrink: 0;
}

.lang-switch__btn {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted, #888);
  min-width: 36px;
  min-height: 36px;
  padding: 0 0.55rem;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-switch__btn:last-child {
  border-right: 0;
}

.lang-switch__btn:hover {
  color: var(--fg);
}

.lang-switch__btn.is-active {
  color: var(--accent);
  background: rgba(201, 162, 39, 0.08);
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  min-width: 44px;
  min-height: 36px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 960px) {
  .topbar__nav {
    display: flex;
  }
}

/* ——— Panels ——— */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 24px 72px;
  border-bottom: 1px solid var(--line);
}

.panel__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.panel__index {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 12px;
}

.panel__huge {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

html[lang="zh-CN"] .panel__huge,
html[lang="zh-CN"] .hero__title-zh,
html[lang="zh-CN"] .contact__huge {
  font-family: var(--font-cn);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.panel__lead {
  max-width: 36em;
  color: var(--fg-dim);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  margin-bottom: 32px;
}

.panel__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .panel__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .panel__grid--reverse {
    direction: rtl;
  }

  .panel__grid--reverse > * {
    direction: ltr;
  }
}

/* ——— Noise / film ——— */
.noise {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 70vw;
  height: 40vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* ——— Panel video background (About / Numbers) ——— */
.panel--about,
.panel--numbers,
.panel--production,
.panel--community,
.panel--coop {
  position: relative;
  overflow: hidden;
  background: #000;
}

.panel-reel {
  position: absolute;
  left: 0;
  right: 0;
  top: 17%;
  height: 66%;
  z-index: 0;
  pointer-events: auto;
  overflow: hidden;
}

.panel-reel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
}

.panel-reel__pan {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  margin-left: -50vw;
  will-change: transform;
}

.panel-reel__video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 175%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.5;
  filter: saturate(0.9) contrast(1.08) brightness(0.88) blur(0.45px);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
  will-change: transform;
  transform: translateZ(0);
}

.panel-reel__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.4) 100%),
    rgba(0, 0, 0, 0.22);
  transition: opacity 0.4s var(--ease);
}

.panel-reel:hover .panel-reel__video {
  opacity: 0.64;
  filter: saturate(0.98) contrast(1.08) brightness(0.98) blur(0.3px);
}

.panel-reel:hover .panel-reel__veil {
  opacity: 0.62;
}

.panel-reel__content {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.panel--about .struct-card {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(242, 240, 234, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.panel--about .panel__lead,
.panel--numbers .panel__huge,
.panel--numbers .stat__value,
.panel--numbers .stat__label,
.panel--production .panel__huge,
.panel--community .panel__huge,
.panel--coop .panel__huge {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.panel--numbers .stat {
  border-top-color: rgba(242, 240, 234, 0.22);
}

.panel--production .case-slot__frame {
  background: rgba(8, 8, 8, 0.35);
  border-color: rgba(201, 162, 39, 0.4);
}

.panel--production .panel-reel__viewport {
  transform: scaleX(-1);
}

.panel--production .bullet-list li {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.panel--community .smash-card {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(242, 240, 234, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.panel--coop .coop-card {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(242, 240, 234, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.panel--coop .coop-pilot {
  background: rgba(201, 162, 39, 0.12);
  backdrop-filter: blur(4px);
}

/* ——— Pricing (09) ——— */
.panel--pricing {
  min-height: auto;
  justify-content: flex-start;
  padding-top: 110px;
  padding-bottom: 100px;
  background: #000;
}

.pricing__inner {
  max-width: 1100px;
}

.pricing__badge {
  display: inline-block;
  margin: -8px 0 40px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-block {
  margin-bottom: 48px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.72);
}

.pricing-block--pilot {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
}

.pricing-block__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  margin-bottom: 24px;
}

.pricing-block__n {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: 6px;
}

.pricing-block__head h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-block__head p {
  color: var(--fg-dim);
  font-weight: 300;
  font-size: 0.95rem;
  max-width: 52em;
}

.pricing-tiers {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .pricing-tiers {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-tier {
  border: 1px solid var(--line);
  padding: 22px 20px;
  background: rgba(0, 0, 0, 0.35);
}

.pricing-tier--featured {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.pricing-tier__tag {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pricing-tier h4 {
  font-family: var(--font-en);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.pricing-tier__price {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--fg);
}

.pricing-tier__price span,
.pricing-tier__price--lg span {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}

.pricing-tier__price--lg {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin: 8px 0 18px;
}

.pricing-tier ul,
.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-tier li,
.pricing-list li {
  position: relative;
  padding-left: 16px;
  color: var(--fg-dim);
  font-weight: 300;
  font-size: 0.92rem;
}

.pricing-tier li::before,
.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.pricing-fees {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 720px) {
  .pricing-fees {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-fee {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-fee span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}

.pricing-fee strong {
  font-size: 1.15rem;
  font-weight: 600;
}

.pricing-note {
  margin-top: 16px;
  color: var(--fg-dim);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
}

.pricing-subhead {
  margin: 20px 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.pricing-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.9rem;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  background: rgba(201, 162, 39, 0.1);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.pricing-table td {
  color: var(--fg-dim);
  font-weight: 300;
}

.pricing-boundaries {
  margin-top: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.pricing-boundaries h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.pricing-boundaries .btn {
  margin-top: 28px;
}

html[lang="zh-CN"] .pricing-tier__tag,
html[lang="zh-CN"] .pricing__badge {
  font-family: var(--font-cn);
  letter-spacing: 0.08em;
  text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .panel-reel__video {
    filter: saturate(0.95) contrast(1.04) brightness(0.92);
    opacity: 0.55;
  }
}

/* ——— Hero feeds wall ——— */
.hero__feeds {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 6px;
  overflow: hidden;
  pointer-events: auto;
}

.hero__feeds-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  will-change: transform;
}

.hero__feeds-col.is-up {
  animation: feeds-up linear infinite;
}

.hero__feeds-col.is-down {
  animation: feeds-down linear infinite;
}

.hero__feeds-col:nth-child(1) { animation-duration: 48s; }
.hero__feeds-col:nth-child(2) { animation-duration: 56s; }
.hero__feeds-col:nth-child(3) { animation-duration: 42s; }
.hero__feeds-col:nth-child(4) { animation-duration: 60s; }
.hero__feeds-col:nth-child(5) { animation-duration: 50s; }
.hero__feeds-col:nth-child(6) { animation-duration: 54s; }

@keyframes feeds-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes feeds-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

.hero__feed-item {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  cursor: default;
}

.hero__feed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.05) brightness(1.05);
  transform: scale(1.01);
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease), transform 0.45s var(--ease);
}

.hero__feed-item:hover img {
  opacity: 0.92;
  filter: saturate(1.12) brightness(1.18);
  transform: scale(1.04);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0, 0, 0, 0.35), transparent 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.35) 75%, rgba(0, 0, 0, 0.82) 100%);
}

/* ——— Hero ——— */
.panel--hero {
  text-align: center;
  overflow: hidden;
  border-bottom: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.hero__inner a,
.hero__inner .btn {
  pointer-events: auto;
}

.hero__eyebrow {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 28px;
}

.hero__title-zh {
  display: block;
  font-family: var(--font-cn);
  font-size: clamp(4.5rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero__title-en {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 7rem);
  letter-spacing: 0.12em;
  color: var(--fg);
  margin-top: 8px;
  line-height: 1;
}

.hero__tagline {
  color: var(--fg);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.55);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero__scroll {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--fg-dim);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* ——— Struct card ——— */
.struct-card {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 32px 28px;
}

.struct-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.struct-list dt {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.struct-list dd {
  font-size: 0.95rem;
  color: var(--fg);
  font-weight: 300;
}

/* ——— Stats ——— */
.stats {
  display: grid;
  gap: 40px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 1;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.stat__value .suffix {
  color: var(--accent);
}

.stat__label {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--fg-dim);
  font-weight: 300;
}

/* ——— Lists ——— */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 36em;
}

.bullet-list--center {
  margin: 40px auto 0;
  text-align: left;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  color: var(--fg-dim);
  font-weight: 300;
  font-size: 1rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* ——— Case slots ——— */
.case-slot__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  background:
    linear-gradient(135deg, #111 0%, #050505 100%);
  overflow: hidden;
}

.case-slot--sm .case-slot__frame {
  aspect-ratio: 16 / 10;
}

.case-slot__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-slot--video.has-media .case-slot__placeholder {
  display: none;
}

.case-slot--video .case-slot__frame {
  border-style: solid;
}

.case-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-slot__img.is-loaded {
  display: block;
}

.case-slot--flash .case-slot__frame {
  border-style: solid;
}

.case-carousel__flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s linear;
}

.case-carousel__flash--black {
  background: #000;
}

.case-carousel__flash.is-on {
  opacity: 1;
}

.cases-wall .case-slot__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.cases-wall .case-slot__video:not([hidden]) {
  display: block;
}

.cases-wall .case-slot.has-media .case-slot__placeholder {
  display: none;
}

.case-wall-item.is-empty .case-slot__frame {
  border-style: dashed;
}

.case-wall-item.is-empty .case-slot__hint {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-slot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(201, 162, 39, 0.04) 8px,
      rgba(201, 162, 39, 0.04) 9px
    );
}

.case-slot.has-image .case-slot__placeholder {
  display: none;
}

.case-slot__code {
  font-family: var(--font-en);
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.case-slot__hint {
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

.case-duo {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .case-duo .case-slot:nth-child(2) {
    margin-left: 12%;
  }
}

/* ——— Keywords ——— */
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin: 32px 0 8px;
  min-height: 120px;
  align-items: center;
}

.keyword {
  font-family: var(--font-en);
  font-size: clamp(1rem, 3vw, 1.75rem);
  letter-spacing: 0.12em;
  padding: 10px 18px;
  border: 1px solid var(--line);
  color: var(--fg);
  will-change: transform, opacity;
}

.keyword:nth-child(odd) {
  color: var(--accent);
  border-color: rgba(201, 162, 39, 0.35);
}

/* ——— Smash / coop cards ——— */
.smash-grid,
.coop-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .smash-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.smash-card,
.coop-card {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 28px 24px;
  min-height: 140px;
}

.smash-card h3,
.coop-card h3 {
  font-family: var(--font-cn);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.smash-card p,
.coop-card p {
  color: var(--fg-dim);
  font-weight: 300;
  font-size: 0.95rem;
}

.coop-card__n {
  display: block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.coop-pilot {
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 0.95rem;
  max-width: 52em;
}

.terms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.terms-row li {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;
  font-family: var(--font-en);
}

html[lang="zh-CN"] .terms-row li {
  font-family: var(--font-cn);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ——— Cases wall ——— */
.cases-wall {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}

@media (min-width: 600px) {
  .cases-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cases-wall {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cases-wall .case-slot__frame {
  aspect-ratio: 3 / 4;
}

.case-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}

.case-meta strong {
  color: var(--fg);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0;
  font-size: 0.95rem;
}

/* ——— Contact ——— */
.panel--contact {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.contact__huge {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 14rem);
  line-height: 0.85;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.contact__lead {
  color: var(--fg-dim);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  margin-bottom: 40px;
}

.contact__links a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.contact__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  font-family: var(--font-en);
}

/* ——— Split chars / words helpers ——— */
.char,
.word {
  display: inline-block;
  will-change: transform, opacity;
}

.word {
  white-space: nowrap;
  margin-right: 0.25em;
}

.char {
  white-space: pre;
}

@media (max-width: 720px) {
  .hero__feeds {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .hero__feeds-col:nth-child(n + 4) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__scroll {
    animation: none;
  }

  .hero__feeds-col.is-up,
  .hero__feeds-col.is-down {
    animation: none;
    transform: translateY(0);
  }

  .char,
  .word,
  .keyword,
  .smash-card,
  .coop-card,
  .scatter-in,
  .stagger-list li {
    opacity: 1 !important;
    transform: none !important;
  }
}
