/* Personal portfolio — Insta360-inspired visual system (black + brand yellow) */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --accent-a: #ffee00;
  --accent-b: #ffffff;
  --accent-on: #000000;
  --accent-gradient: linear-gradient(90deg, #ffee00 0%, #fff066 100%);
  --nav-h: 56px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --max: 1280px;
  --radius: 12px;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-loading {
  cursor: wait;
}

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

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

/* ?? Nav ?? */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  transition: background 0.45s var(--ease-out), border-color 0.45s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-nav .inner {
  width: 100%;
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  grid-column: 1;
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-a);
  flex-shrink: 0;
}

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent-a);
}

.nav-actions {
  grid-column: 3;
  justify-self: end;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

.lang-toggle:hover {
  border-color: rgba(255, 238, 0, 0.45);
  background: rgba(255, 238, 0, 0.08);
  color: var(--accent-a);
  transform: translateY(-1px);
}

.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: var(--accent-a);
  color: var(--accent-on);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.nav-contact-btn:hover,
.nav-contact-btn[aria-expanded="true"] {
  background: #fff066;
  box-shadow: 0 6px 24px rgba(255, 238, 0, 0.28);
  transform: translateY(-1px);
}

.nav-contact-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1001;
}

.nav-contact-menu[hidden] {
  display: none;
}

.nav-contact-menu__lead {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 4px;
}

.nav-contact-menu__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, background 0.3s;
}

.nav-contact-menu__item + .nav-contact-menu__item {
  margin-top: 8px;
}

.nav-contact-menu__item:hover {
  background: rgba(255, 238, 0, 0.08);
  border-color: rgba(255, 238, 0, 0.35);
}

.nav-contact-menu__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-a);
}

.nav-contact-menu__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ?? Hero ?? */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 18s var(--ease-in-out) infinite alternate;
}

.hero-media--carousel {
  background: #000;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel__slide.is-active img {
  animation: kenburns 18s var(--ease-in-out) infinite alternate;
}

.hero-carousel__slide:not(.is-active) img {
  animation: none;
}

@keyframes kenburns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.14) translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 50%, var(--bg) 100%),
    radial-gradient(ellipse 55% 45% at 75% 20%, rgba(100, 80, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(140, 60, 220, 0.1), transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-a);
  margin-bottom: 20px;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.5vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 14ch;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.35s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-a);
}

.hero-desc {
  margin-top: 20px;
  max-width: 520px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.5s forwards;
}

.hero-cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.65s forwards;
}

.hero-cta .arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent-a);
  color: var(--accent-on);
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.hero-cta:hover .arrow {
  background: #fff066;
  box-shadow: 0 0 24px rgba(255, 238, 0, 0.35);
  transform: translateY(4px);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ?? Work panels (home) ?? */
.works-index {
  position: relative;
}

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 64px;
  overflow: hidden;
}

.panel:nth-child(even) {
  background: var(--bg-elevated);
}

/* About section ? light background (?2) */
.panel--about-light {
  background: #e8e9ec;
}

.panel--about-light .panel-bg {
  opacity: 1;
}

.panel--about-light .panel-bg img {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) brightness(1.02);
}

.panel-scrim--light {
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.62) 42%,
    rgba(8, 9, 12, 0.35) 100%
  );
}

.panel--about-light .panel-copy h2,
.panel--about-light .panel-copy p,
.panel--about-light .panel-num {
  color: var(--text);
}

.panel--about-light .panel-copy p {
  color: rgba(8, 9, 12, 0.72);
}

.panel--about-light .panel-num {
  opacity: 0.4;
  color: var(--accent-a);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.panel--about-light .panel-tags span {
  border-color: rgba(8, 9, 12, 0.12);
  color: rgba(8, 9, 12, 0.65);
}

.panel--about-light .panel-link {
  background: rgba(8, 9, 12, 0.06);
  border-color: rgba(8, 9, 12, 0.14);
  color: var(--text);
}

.panel--about-light .panel-link:hover {
  background: #fff066;
  box-shadow: 0 8px 24px rgba(255, 238, 0, 0.2);
}

.panel-preview--about {
  aspect-ratio: 4 / 3;
  background: transparent;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.panel-preview--about img,
.panel-preview--contain img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.panel-preview--contain {
  background: rgba(8, 9, 12, 0.35);
}

.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-out), opacity 1s;
}

.panel.in-view .panel-bg {
  transform: scale(1);
  opacity: 0.55;
}

.panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.panel-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.6) 48%, rgba(0, 0, 0, 0.4) 100%);
}

.panel-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .panel-inner {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 48px;
  }
}

.panel-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-a);
  opacity: 0.22;
}

.panel-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.panel-copy p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 440px;
  margin-bottom: 28px;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.panel-tags span {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent-a);
  border: none;
  color: var(--accent-on);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.panel-link:hover {
  background: #fff066;
  box-shadow: 0 8px 32px rgba(255, 238, 0, 0.25);
  transform: translateX(4px);
}

.panel-preview {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out);
}

.panel.in-view .panel-preview {
  transform: translateY(0);
  opacity: 1;
}

.panel-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.panel-link-wrap:hover .panel-preview img {
  transform: scale(1.04);
}

.panel-link-wrap {
  display: block;
  border-radius: var(--radius);
}

/* ?? Work detail pages ?? */
.work-hero {
  padding: calc(var(--nav-h) + 56px) 24px 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.work-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: color 0.3s;
}

.work-hero .back:hover {
  color: var(--text);
}

.work-hero .label {
  font-family: var(--font-display), sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-a);
  margin-bottom: 12px;
}

.work-hero h1 {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.work-hero p {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 17px;
}

.work-download {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.work-download:hover {
  background: rgba(255, 238, 0, 0.12);
  border-color: rgba(255, 238, 0, 0.4);
  transform: translateX(4px);
}

.work-download__meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Work detail — product collections */
.work-collections {
  padding-bottom: 48px;
}

.collection-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(8, 9, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.collection-nav a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.collection-nav a:hover,
.collection-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 238, 0, 0.45);
}

.gallery-collection {
  padding: 56px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-collection:first-of-type {
  border-top: none;
  padding-top: 32px;
}

.collection-head {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.collection-head.in-view,
.collection-head.visible {
  opacity: 1;
  transform: translateY(0);
}

.collection-num {
  display: block;
  font-family: var(--font-display), sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent-a);
  margin-bottom: 10px;
}

.collection-head h2 {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
}

.collection-head p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
}

.gallery-collection .gallery-strip {
  padding: 0 0 8px;
}

.gallery-collection .gallery-strip {
  padding-top: 0;
  padding-bottom: 8px;
}

.collection-subnav {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-subnav a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.collection-subnav a:hover,
.collection-subnav a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 238, 0, 0.45);
  background: rgba(255, 238, 0, 0.08);
}

.social-brand-group {
  padding: 0 0 40px;
}

.social-brand-group__head {
  max-width: var(--max);
  margin: 0 auto 20px;
  padding: 0 24px;
}

.social-brand-group__title {
  font-family: var(--font-display), sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.social-brand-group__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52ch;
}

.social-brand-group .gallery-strip {
  padding-bottom: 0;
}

#col-social > .gallery-strip:has(.horizontal-scroll:empty) {
  display: none;
}

/* E-commerce — Insta360-style dual promo cards */
.ecom-dual {
  max-width: var(--max);
  margin: 0 auto 32px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ecom-promo-card {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #ffffff 0%, #f0f0f2 55%, #e8e8ec 100%);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}

.ecom-promo-card__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 20px 28px 26px;
}

.ecom-promo-card__eyebrow {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.ecom-promo-card__title {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
  max-width: 14em;
  margin-bottom: 18px;
}

.ecom-promo-card__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ecom-promo-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.ecom-promo-card__cta:hover,
.ecom-promo-card__cta[aria-expanded="true"] {
  background: #333333;
  transform: scale(1.02);
}

.ecom-promo-card__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 16px 12px 16px 0;
  min-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.ecom-promo-card__visual img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(200px, 100%);
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.1));
}

#ecom-main {
  padding-top: 8px;
}

@media (max-width: 768px) {
  .ecom-dual {
    grid-template-columns: 1fr;
  }

  .ecom-promo-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ecom-promo-card__visual {
    order: 2;
    padding: 0 16px 20px;
    min-height: 160px;
    align-items: center;
    justify-content: center;
  }

  .ecom-promo-card__visual img {
    max-height: 150px;
  }
}

/* E-commerce sub-groups inside collection 05 */
.ecom-group {
  padding: 0 0 40px;
}

.ecom-group__head {
  max-width: var(--max);
  margin: 0 auto 20px;
  padding: 0 24px;
}

.ecom-group__title {
  font-family: var(--font-display), sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.ecom-group__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 52ch;
}

.ecom-group .gallery-strip {
  padding: 0 0 8px;
}

#col-ecom .collection-head {
  margin-bottom: 12px;
}

/* LED cabinet — Insta360-style product showcase cards */
.product-showcase {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 40px;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-showcase-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.product-showcase-card.in-view,
.product-showcase-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-showcase-card__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: #f7f7f8;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.product-showcase-card:hover .product-showcase-card__inner {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.product-showcase-card__title {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  color: #111111;
  text-align: center;
  line-height: 1.35;
  margin-bottom: 6px;
}

.product-showcase-card__subtitle {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.48);
  text-align: center;
  line-height: 1.45;
  margin-bottom: 20px;
}

.product-showcase-card__media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  margin-bottom: 20px;
}

.product-showcase-card__media img {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-showcase-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-showcase-card__more {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.25s;
}

.product-showcase-card__more:hover {
  color: #111111;
}

.product-showcase-card__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.product-showcase-card__buy:hover {
  background: #333333;
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .product-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-showcase-card__inner {
    padding: 24px 18px 18px;
    border-radius: 18px;
  }
}

.gallery-strip {
  padding: 24px 0 80px;
  overflow: hidden;
}

.gallery-strip h2 {
  max-width: var(--max);
  margin: 0 auto 24px;
  padding: 0 24px;
  font-family: var(--font-display), sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.horizontal-scroll {
  display: flex;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 24px));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  padding-bottom: 16px;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.gallery-card {
  flex: 0 0 min(85vw, 520px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.gallery-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-card--wide {
  flex: 0 0 min(92vw, 720px);
}

.gallery-card--wide img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 14px 18px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

@media (pointer: fine) {
  .gallery-card:has(img) {
    cursor: zoom-in;
  }
}

/* Hover large preview for gallery / 选集 thumbnails */
.img-hover-preview {
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    visibility 0.22s;
  max-width: min(92vw, 960px);
  max-height: min(88vh, 720px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 238, 0, 0.12);
}

.img-hover-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.img-hover-preview img {
  display: block;
  max-width: min(92vw, 960px);
  max-height: min(88vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.img-hover-preview__caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: min(92vw, 960px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-hover-preview__caption:empty {
  display: none;
}

.gallery-card.is-preview-active img {
  outline: 2px solid rgba(255, 238, 0, 0.55);
  outline-offset: -2px;
}

/* IP sticker / emoji pack — compact cards, GIF autoplay */
.gallery-strip--stickers .horizontal-scroll {
  align-items: stretch;
}

.gallery-card--sticker {
  flex: 0 0 min(220px, 42vw);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-card--sticker img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.gallery-card--sticker figcaption {
  text-align: center;
}

@media (pointer: fine) {
  .gallery-card--sticker {
    cursor: default;
  }
}

.gallery-card--motion img,
.gallery-card--motion video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.85);
  display: block;
}

@media (pointer: fine) {
  .gallery-card--motion:has(video) {
    cursor: default;
  }
}

.masonry {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 80px;
  columns: 1;
  column-gap: 20px;
}

@media (min-width: 700px) {
  .masonry { columns: 2; }
}

@media (min-width: 1100px) {
  .masonry { columns: 3; }
}

/* 品牌平面 / 其他作品子页 — 大屏 5 列瀑布流 */
.work-page-masonry-5 .masonry {
  max-width: min(1920px, 100%);
}

@media (min-width: 520px) {
  .work-page-masonry-5 .masonry { columns: 2; }
}

@media (min-width: 768px) {
  .work-page-masonry-5 .masonry { columns: 3; }
}

@media (min-width: 1024px) {
  .work-page-masonry-5 .masonry { columns: 4; }
}

@media (min-width: 1280px) {
  .work-page-masonry-5 .masonry {
    columns: 5;
    column-gap: 16px;
  }

  .work-page-masonry-5 .masonry-item {
    margin-bottom: 16px;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.masonry-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.masonry-item img,
.masonry-item video {
  width: 100%;
  height: auto;
  display: block;
}

.masonry-item--video {
  background: var(--bg-elevated);
}

.masonry-item--video video {
  background: #000;
}

/* ?? Footer ?? */
.panel-contact {
  background: var(--bg);
}

.panel-scrim--soft {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255, 238, 0, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.panel-inner--contact {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr;
  text-align: center;
  gap: 40px;
}

.panel-copy--center {
  margin: 0 auto;
}

.panel-copy--center p {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), background 0.35s;
}

.contact-card:hover {
  border-color: rgba(255, 238, 0, 0.5);
  background: rgba(255, 238, 0, 0.06);
  transform: translateY(-4px);
}

.contact-card__icon {
  font-size: 22px;
  line-height: 1;
  opacity: 0.85;
}

.contact-card__label {
  font-family: var(--font-display), sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-a);
}

.contact-card__value {
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  word-break: break-all;
}

.contact-card__hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-footer {
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

.site-footer a {
  color: var(--accent-a);
}

.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0.3s,
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(255, 238, 0, 0.45);
  background: rgba(255, 238, 0, 0.1);
  color: var(--accent-a);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--accent-a);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.15s, visibility 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
    transform: none;
  }

  .back-to-top.is-visible {
    transform: none;
  }
}

/* Cursor glow (desktop) */
.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 238, 0, 0.06), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

@media (max-width: 734px) {
  .site-nav .inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px 10px;
  }
  .brand {
    grid-column: 1;
    font-size: 12px;
  }
  .nav-links {
    grid-column: 2;
    justify-self: end;
    justify-content: flex-end;
    gap: 6px 8px;
  }
  .nav-links a { font-size: 11px; }
  .nav-actions {
    grid-column: 3;
  }
  .nav-contact-btn {
    min-height: 30px;
    padding: 6px 14px;
    font-size: 11px;
  }
  .panel { padding-bottom: 48px; }
}

/* ===== Homepage · Insta360-inspired layout ===== */
.page-home .cursor-glow {
  display: none;
}

.page-home .hero {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 32px) 24px 96px;
}

.page-home .hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(255, 238, 0, 0.1), transparent 60%);
}

.page-home .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home .hero h1 {
  max-width: none;
}

.page-home .hero-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
}

.page-home .hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.65s forwards;
}

.page-home .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--accent-a);
  color: var(--accent-on);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.page-home .hero-btn:hover {
  background: #fff066;
  box-shadow: 0 8px 32px rgba(255, 238, 0, 0.3);
  transform: translateY(-2px);
}

.page-home .hero-link {
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.page-home .hero-link:hover {
  color: var(--accent-a);
  border-color: var(--accent-a);
}

.page-home .hero-cta {
  display: none;
}

.page-home .works-index--insta .panel {
  min-height: 100svh;
  padding: 0;
  display: block;
  background: var(--bg);
}

.page-home .works-index--insta .panel.panel-contact {
  min-height: auto;
}

.page-home .works-index--insta .panel:nth-child(even) {
  background: var(--bg);
}

.page-home .panel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 100svh;
  width: 100%;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.page-home .panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transform: none !important;
}

.page-home .panel.in-view .panel-bg {
  transform: none !important;
  opacity: 1;
}

.page-home .panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.05);
  transition: transform 0.9s var(--ease-out), filter 0.9s;
}

.page-home .panel-card:hover .panel-bg img {
  transform: scale(1.03);
  filter: brightness(0.8) saturate(1.08);
}

.page-home .panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.88) 78%,
    #000 100%
  );
  pointer-events: none;
}

.page-home .panel-scrim {
  display: none;
}

.page-home .panel-feature {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  display: block;
  width: min(92vw, 840px);
  max-width: 920px;
  aspect-ratio: 4 / 3;
  max-height: min(50vh, calc(min(92vw, 840px) * 3 / 4));
  margin: calc(var(--nav-h) + 28px) auto 8px;
  padding: 0;
  pointer-events: none;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.page-home .panel-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.45));
  transition: transform 0.8s var(--ease-out);
}

.page-home .panel-feature--contain img {
  object-fit: cover;
  object-position: center top;
}

.page-home .panel-card:hover .panel-feature img {
  transform: scale(1.03);
}

.page-home .panel-bottom {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 24px 72px;
  text-align: center;
}

.page-home .panel-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-a);
  margin-bottom: 12px;
}

.page-home .panel-bottom h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-home .panel-lead {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
}

.page-home .panel-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-a);
  letter-spacing: 0.04em;
  transition: gap 0.3s var(--ease-out), color 0.3s;
}

.page-home .panel-card:hover .panel-more {
  gap: 12px;
  color: #fff066;
}

.page-home .panel-contact {
  min-height: auto;
  padding: 56px 24px 48px;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-home .panel-contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.page-home .panel-contact-inner .panel-eyebrow {
  margin-bottom: 8px;
}

.page-home .panel-contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-home .panel-contact-inner .panel-lead {
  margin-bottom: 24px;
  font-size: 15px;
}

.page-home .panel-contact .contact-cards {
  margin-top: 0;
  gap: 14px;
  max-width: 100%;
}

.page-home .panel-contact .contact-card {
  text-align: center;
  align-items: center;
  padding: 20px 22px;
  gap: 6px;
}

.page-home .panel-contact .contact-card__hint {
  display: none;
}

.page-home .panel-contact .contact-card__icon {
  display: none;
}

.page-home .site-footer--home {
  padding: 24px 24px 36px;
  background: var(--bg);
}

@media (max-width: 734px) {
  .page-home .hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .page-home .panel-feature {
    width: min(94vw, 640px);
    max-height: min(42vh, calc(min(94vw, 640px) * 3 / 4));
    margin-top: calc(var(--nav-h) + 16px);
  }

  .page-home .panel-bottom {
    padding-bottom: 56px;
  }

  .page-home .panel-contact .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* —— AIGC / case study / photo —— */
.aigc-hero-figure,
.case-study-hero {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 0 24px;
}

.aigc-hero-figure img,
.case-study-hero img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.aigc-hero-figure figcaption,
.case-study-hero figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.aigc-bullets {
  max-width: var(--max);
  margin: 0 auto 48px;
  padding: 0 24px 0 42px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.aigc-bullets li { margin-bottom: 10px; }
.aigc-bullets strong { color: var(--text); font-weight: 600; }
.aigc-bullets--compact { margin-bottom: 64px; }

.aigc-note {
  max-width: var(--max);
  margin: -24px auto 56px;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.aigc-note a {
  color: var(--accent-a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aigc-workflow-grid {
  max-width: var(--max);
  margin: 0 auto 56px;
  padding: 0 24px;
  display: grid;
  gap: 40px;
}

.workflow-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.workflow-card__head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.workflow-card__head h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.workflow-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-a);
  border: 1px solid rgba(255, 238, 0, 0.25);
  border-radius: 999px;
}

.workflow-card__lead {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.workflow-card__figure img {
  width: 100%;
  display: block;
  vertical-align: middle;
}

.workflow-card__figure figcaption {
  padding: 12px 22px 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.workflow-card__steps {
  margin: 0;
  padding: 0 22px 20px 38px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.workflow-card__steps li { margin-bottom: 6px; }

.workflow-card__steps a {
  color: var(--accent-a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workflow-card--featured {
  border-color: rgba(255, 238, 0, 0.18);
}

.workflow-card--landscape .workflow-card__figure img {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
}

.compare-grid {
  max-width: var(--max);
  margin: 0 auto 32px;
  padding: 0 24px;
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}

.compare-card img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-card figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.case-study-meta {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 24px;
  display: grid;
  gap: 12px;
}

@media (min-width: 700px) {
  .case-study-meta { grid-template-columns: repeat(3, 1fr); }
}

.case-study-meta dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-a);
  margin-bottom: 4px;
}

.case-study-meta dd {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.case-study-showcase {
  max-width: var(--max);
  margin: 0 auto 32px;
  padding: 0 24px;
}

.case-study-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.case-study-panel {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.case-study-panel__cap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.case-study-panel__cap span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-a);
}

.case-study-panel img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.case-study-panel--countdown img {
  object-fit: cover;
  min-height: 200px;
}

.case-study-showcase__lead {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

.case-study-invitations {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 24px;
}

.case-study-invitations__head {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-a);
  text-transform: uppercase;
}

.case-study-invite-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .case-study-invite-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.case-study-invite {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.case-study-invite img {
  display: block;
  width: 100%;
  height: auto;
}

.case-study-invite figcaption {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-study-halls .collection-head--inline {
  max-width: var(--max);
  margin: 0 auto 16px;
  padding: 0 24px;
}

.channel-extend-block {
  margin: 48px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.channel-extend-set--more[hidden] {
  display: none;
}

.channel-extend-block.is-expanded .channel-extend-set--more[hidden] {
  display: grid;
}

.channel-extend-actions {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.channel-extend-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.channel-extend-toggle:hover {
  border-color: rgba(255, 238, 0, 0.45);
  background: rgba(255, 238, 0, 0.08);
  color: var(--accent-a);
}

.channel-extend-block .collection-head--inline {
  margin-bottom: 0;
}

.channel-extend-block .collection-head--inline h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 8px;
}

.channel-extend-block .collection-head--inline p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 62ch;
}

.channel-extend-set {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-extend-set__title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.channel-extend-set figure {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(0, 0, 0, 0.25);
}

.channel-extend-set img {
  display: block;
  width: 100%;
  height: auto;
}

.channel-extend-set figcaption {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.channel-extend-set__master img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.channel-extend-set__channels {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 768px) {
  .channel-extend-set__channels {
    grid-template-columns: minmax(0, 1.45fr) minmax(140px, 200px);
    align-items: stretch;
  }
}

.channel-extend-set__wechat img {
  aspect-ratio: 900 / 383;
  object-fit: cover;
}

.channel-extend-set__vertical img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  max-width: 200px;
  margin-inline: auto;
}

.case-study-halls .collection-head--inline h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-a);
  text-transform: uppercase;
}

.detail-feature-grid {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 24px;
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .detail-feature-grid { grid-template-columns: 1fr 1fr; }
}

.detail-feature-grid figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-feature-grid figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.photo-grid {
  max-width: var(--max);
  margin: 0 auto 64px;
  padding: 0 24px;
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
}

.photo-grid figure img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-grid figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }

  .page-home .panel-bg img,
  .page-home .panel-feature img {
    transition: none;
  }
}
