:root {
  --bg: #F5F5F7;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --ink: #1D1D1F;
  --ink-dim: rgba(29, 29, 31, 0.58);
  --ink-faint: rgba(29, 29, 31, 0.16);
  --accent: #0071E3;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "HarmonyOS Sans", "Source Han Sans SC", "PingFang SC", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

#particles {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
  will-change: opacity, transform;
}

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

section, main { position: relative; z-index: 1; }

.wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 64px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
  background: linear-gradient(rgba(245, 245, 247, 0.78), rgba(245, 245, 247, 0));
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 14px 64px;
  background: rgba(245, 245, 247, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--ink-faint);
}

.brand {
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  color: var(--ink-dim);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  position: relative;
  transition: color 0.35s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--ink); }
.nav-link.active::after { transform: scaleX(1); }

/* ---------- Hero (home) ---------- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 64px;
}

.title-block { pointer-events: none; }

h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-weight: 500;
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.role {
  margin: 18px 0 6px;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.16em;
  font-weight: 300;
}

.loc {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll {
  position: absolute;
  right: 64px;
  bottom: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  writing-mode: vertical-rl;
}

.scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--ink-dim), transparent);
  animation: drift 1.8s var(--ease) infinite;
}

@keyframes drift {
  0% { transform: translateY(-12px); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Page shells ---------- */
.page {
  min-height: 100vh;
  padding: 120px 0 140px;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 48px;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.06em;
}

.page-title {
  margin: 0 0 24px;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: 0.06em;
}

.note {
  margin: 0 0 48px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- Software marquee ---------- */
.software-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.software-viewport {
  width: 100%;
  overflow: hidden;
  padding: 24px 18% 40px;
}

.software-track {
  display: flex;
  will-change: transform;
}

.software-item {
  flex: 0 0 auto;
  margin-right: 18px;
}

.software-card {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink-dim);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.software-item:hover .software-card {
  transform: translateY(-16px) scale(1.2);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.16);
  color: var(--ink);
  background: var(--surface-strong);
}

/* ---------- Brands ---------- */
.brands {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 120px;
  padding: 0;
  background: var(--ink-faint);
  border: 1px solid var(--ink-faint);
}

.brand {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 24px;
  background: var(--bg);
  color: var(--ink-dim);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}

.brand:hover {
  color: var(--ink);
  background: var(--surface);
  transform: scale(1.03);
}

/* ---------- Services (magazine list) ---------- */
.service-row {
  border-top: 1px solid var(--ink-faint);
  padding: 28px 0;
  transition: padding 0.5s var(--ease);
}

.service-row:last-child { border-bottom: 1px solid var(--ink-faint); }

.service-row h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

.service-row p {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--ink-dim);
  transform: translateY(6px);
  transition: max-height 0.6s var(--ease), opacity 0.6s var(--ease), transform 0.6s var(--ease), margin 0.6s var(--ease);
}

.service-row:hover h3,
.service-row:focus-within h3 {
  color: var(--accent);
  transform: translateX(12px);
}

.service-row:hover p,
.service-row:focus-within p {
  max-height: 8rem;
  opacity: 1;
  margin-top: 14px;
  transform: translateY(0);
}

/* ---------- Gallery / Video ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.video-tile {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink-faint);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.video-tile::before {
  content: "▶";
  margin-right: 8px;
  font-size: 0.7rem;
}

.video-tile:hover { border-color: var(--ink-dim); color: var(--ink); transform: translateY(-3px); }

/* ---------- Gallery filter ---------- */
.filter-bar {
  margin: 8px 0 40px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.filter-label {
  flex: 0 0 auto;
  padding-top: 9px;
  color: var(--ink-dim);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 8px 18px;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.filter-chip:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
}

.filter-chip.active {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ink-faint);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-dim);
  box-shadow: var(--shadow);
}

.gallery-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border: 1px solid var(--ink-faint);
  background: var(--surface-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* ---------- Project modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open { display: flex; }

.modal.open .modal-backdrop { animation: backdropIn 0.35s var(--ease) both; }
.modal.open .modal-panel { animation: modalIn 0.5s var(--ease) both; }

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.modal-panel {
  position: relative;
  width: min(1120px, 100%);
  height: min(720px, 86vh);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  backdrop-filter: blur(30px) saturate(1.5);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.modal-close:hover { color: var(--ink); border-color: var(--ink-dim); background: var(--surface-strong); }

.modal-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.modal-page {
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 52px 56px 40px;
}

.modal-page.overview {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.project-name {
  margin: 0 0 16px;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: 0.04em;
}

.project-intro {
  margin: 0 0 32px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  max-width: 36em;
}

.palette { display: flex; gap: 10px; margin: 0 0 32px; }

.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.software { display: flex; flex-wrap: wrap; gap: 10px; }

.app {
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ink-faint);
  border-radius: 10px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.media-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink-faint);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.details-head {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 26px;
}

.details-head span {
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.08em;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.slice {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--ink-faint);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.modal-toolbar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-download {
  padding: 10px 20px;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.modal-download:hover {
  color: #FFFFFF;
  border-color: var(--accent);
  background: var(--accent);
}

.modal-controls {
  display: flex;
  gap: 12px;
}

.modal-arrow-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.modal-arrow-btn:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
  background: var(--surface-strong);
  transform: scale(1.05);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: start;
}

.photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--ink-faint);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  overflow: hidden;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo::before {
  content: none;
}

.lead {
  margin: 0 0 30px;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.5;
  color: var(--ink);
}

.about-text p:not(.lead) {
  margin: 0 0 18px;
  color: var(--ink-dim);
  max-width: 42em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 13px 24px;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}

.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-dim); }
.btn.ghost:hover { background: transparent; color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 1;
  padding: 40px 64px 56px;
  border-top: 1px solid var(--ink-faint);
  color: var(--ink-dim);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}

footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--ink-dim); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .wrap { padding: 0 32px; }
  .nav { padding: 18px 32px; }
  .nav.scrolled { padding: 12px 32px; }
  .nav ul { gap: 22px; }
  .hero { padding: 40px 32px; }
  .scroll { right: 32px; bottom: 40px; }
  .page { padding-top: 120px; }
  .software-viewport { padding: 16px 10% 28px 8%; }
  .software-item { margin-right: 14px; }
  .software-card { width: 76px; height: 76px; border-radius: 18px; font-size: 0.7rem; }
  .software-item:hover .software-card { transform: translateY(-10px) scale(1.12); }
  .about-grid { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .brand { min-height: 92px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  footer { padding: 36px 32px 48px; }
  .modal { padding: 16px; }
  .modal-panel { height: 90vh; }
  .modal-page { padding: 44px 24px 20px; }
  .modal-page.overview { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .overview-media { order: -1; }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-toolbar { bottom: 12px; }
  .modal-arrow-btn { width: 38px; height: 38px; }
}

@media (max-width: 640px) {
  .nav ul { gap: 18px; }
  .nav-link { font-size: 0.82rem; letter-spacing: 0.08em; }
  .gallery-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .service-row p {
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #particles { transition: none; }
  .modal.open .modal-backdrop,
  .modal.open .modal-panel { animation: none; }
}

/* ============ Material evolution: retain the studio, enrich the light ============ */
:root {
  --liquid-surface: rgba(255, 255, 255, 0.46);
  --liquid-surface-strong: rgba(255, 255, 255, 0.64);
  --liquid-stroke: rgba(255, 255, 255, 0.78);
  --liquid-blue: rgba(115, 166, 255, 0.22);
  --liquid-lilac: rgba(184, 157, 255, 0.18);
  --liquid-warm: rgba(255, 214, 164, 0.16);
  --liquid-shadow: 0 22px 56px rgba(84, 101, 166, 0.13), 0 8px 18px rgba(90, 82, 142, 0.08);
}

body[data-page] {
  background:
    radial-gradient(70rem 42rem at -12% -10%, rgba(139, 192, 255, 0.20), transparent 62%),
    radial-gradient(56rem 38rem at 106% 6%, rgba(208, 179, 255, 0.19), transparent 61%),
    radial-gradient(44rem 30rem at 76% 92%, var(--liquid-warm), transparent 68%),
    var(--bg-grad-fixed);
}

body[data-page]::before {
  opacity: 0.92;
  background:
    radial-gradient(ellipse 34rem 20rem at 16% 23%, var(--liquid-blue), transparent 69%),
    radial-gradient(ellipse 28rem 24rem at 84% 18%, var(--liquid-lilac), transparent 70%),
    radial-gradient(ellipse 24rem 16rem at 72% 80%, var(--liquid-warm), transparent 72%);
  filter: saturate(1.08);
}

.site-nav.liquid-nav {
  isolation: isolate;
}

.site-nav.liquid-nav::before {
  content: "";
  position: absolute;
  inset: 8px 18px;
  z-index: -1;
  border: 1px solid transparent;
  border-radius: var(--r-pill, 999px);
  background:
    linear-gradient(var(--liquid-surface), var(--liquid-surface)) padding-box,
    linear-gradient(105deg, rgba(255,255,255,.90), rgba(178,209,255,.50) 45%, rgba(255,224,188,.42)) border-box;
  box-shadow: 0 12px 32px rgba(86, 94, 145, 0.08), inset 0 1px 0 rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.site-nav.liquid-nav:hover::before,
.site-nav.liquid-nav.scrolled::before { opacity: 1; }

.site-nav.liquid-nav .nav-pills {
  border-color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76), 0 6px 18px rgba(96, 104, 157, .06);
}

.site-nav.liquid-nav .nav-indicator {
  background: rgba(255, 255, 255, 0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 3px 10px rgba(82, 95, 155, .08);
}

.hero-top { isolation: isolate; }
.hero-top::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  left: clamp(-220px, -12vw, -50px);
  top: clamp(42px, 8vw, 150px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255,255,255,.78) 0 2%, transparent 16%),
    radial-gradient(circle at 52% 48%, rgba(175,210,255,.25), rgba(190,171,255,.13) 48%, transparent 71%);
  filter: blur(3px);
  opacity: .94;
}

.video-zone { isolation: isolate; }
.video-zone::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46vw, 640px);
  height: min(30vw, 390px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(154, 178, 255, .24), rgba(193, 168, 255, .13) 48%, transparent 72%);
  filter: blur(16px);
}

.center-screen {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(224,229,255,.67) 58%, rgba(246,231,255,.70));
  border-color: var(--liquid-stroke);
  box-shadow: 0 0 0 1px rgba(255,255,255,.54), var(--liquid-shadow), 0 0 48px rgba(154, 187, 255, .24), inset 0 1px 0 #fff;
}

.center-screen::after,
.cta-card::after,
.contact-modal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(122deg, rgba(255,255,255,.56), transparent 21%, transparent 72%, rgba(173,205,255,.20));
}

.service-card,
.cta-card,
.contact-modal-card,
.software-card,
.filter-chip {
  border-color: rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 12px 30px rgba(89, 101, 162, .07);
}

.service-card:hover,
.cta-card:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--liquid-shadow);
}

.category-timeline .cat-ico-img {
  filter: brightness(var(--bri, 1)) drop-shadow(0 12px 17px rgba(93, 108, 169, .21)) drop-shadow(0 0 12px rgba(185, 207, 255, .24)) saturate(1.08);
}

@media (max-width: 640px) {
  body[data-page]::before { opacity: .72; filter: saturate(1.04); }
  .site-nav.liquid-nav::before { inset: 7px 10px; opacity: 1; }
  .site-nav.liquid-nav .nav-pills { box-shadow: none; }
  .hero-top::before { width: 114vw; height: 114vw; top: 1.5rem; left: -41vw; opacity: .72; }
  .center-screen { box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 16px 34px rgba(88, 104, 167, .13), inset 0 1px 0 #fff; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav.liquid-nav::before,
  .site-nav.liquid-nav .nav-pills,
  .service-card,
  .cta-card,
  .contact-modal-card,
  .software-card,
  .filter-chip {
    background: rgba(248, 249, 255, .96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-top::before,
  .video-zone::before { opacity: .34; }
}

/* ============ Home Hero: Apple Interactive ============ */
:root {
  --text: #1d1d1f;
  --muted: #86868b;
  --glass: rgba(255, 255, 255, 0.6);
  --border: rgba(0, 0, 0, 0.08);
  --h1: clamp(48px, 8vw, 120px);
  --sub: 16px;
  --nav: 14px;
}

body[data-page="home"] .grain { z-index: 100; }

#heroParticles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle 400px at var(--mx, 50%) var(--my, 50%), rgba(0, 113, 227, 0.06), transparent 70%);
  transition: opacity 0.2s linear;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
  z-index: 101;
  pointer-events: none;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  z-index: 101;
  pointer-events: none;
  transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1), height 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.06);
}

.cursor-dot.hidden { opacity: 0; }

@media (min-width: 901px) and (pointer: fine) {
  body[data-page="home"] * { cursor: none !important; }
}

.hero-new {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero-title {
  position: absolute;
  left: 8%;
  bottom: 18%;
  z-index: 2;
  will-change: transform;
  transform-style: preserve-3d;
}

.hero-name {
  margin: 0;
  display: flex;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: var(--h1);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-char { display: inline-block; opacity: 1; }
.hero-char.appear--mask { animation: in-mask 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }

.hero-role {
  margin-top: 20px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: var(--sub);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero-role-inner {
  display: inline-block;
  animation: breathe 4s ease-in-out 1.8s infinite;
}

.hero-role .sep { color: var(--accent); }

.hero-loc {
  margin-top: 10px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.hero-cta {
  position: absolute;
  bottom: 56px;
  left: 8%;
  z-index: 2;
}

.hero-cta-hint {
  display: block;
  margin-bottom: 8px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(0, 0, 0, 0.3);
  animation: float-hint 2.5s ease-in-out infinite;
}

.hero-cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.hero-cta-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-link:hover { color: var(--accent); }
.hero-cta-link:hover::after { width: 100%; }
.hero-cta-arrow { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-cta-link:hover .hero-cta-arrow { transform: translateX(8px); color: var(--accent); }

.scroll-indicator {
  position: absolute;
  right: 32px;
  bottom: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-label {
  writing-mode: vertical-rl;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

.scroll-track {
  position: relative;
  width: 2px;
  height: 60px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: visible;
}

.scroll-progress {
  width: 100%;
  height: 0%;
  background: var(--accent);
  border-radius: 2px;
}

.scroll-pulse {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* ---------- Nav pill ---------- */
.nav ul.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  list-style: none;
}

.nav-item { position: relative; z-index: 2; }

.pill-link {
  display: inline-flex;
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--nav);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}

.pill-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.5); }
.pill-link.active { color: var(--text); }

.nav-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover { color: var(--accent); transition: color 0.3s ease; }

/* ---------- Entrance ---------- */
.appear { opacity: 1; }
.appear--soft { animation: in-soft 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
.appear--btn { animation: in-btn 1s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }
.is-in { animation: none !important; opacity: 1 !important; transform: none !important; }

@keyframes in-soft {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes in-mask {
  from { opacity: 0; transform: translateY(60%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes in-btn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-2px); opacity: 0.92; }
}
@keyframes float-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.6); opacity: 0.3; }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .hero-title { left: 6%; bottom: 16%; }
  .hero-cta { left: 6%; }
}

@media (min-width: 1600px) {
  .hero-title { left: 10%; bottom: 20%; }
  .hero-cta { bottom: 64px; left: 10%; }
}

@media (min-width: 1920px) {
  .hero-name { font-size: clamp(48px, 8vw, 140px); }
}

@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
  .hero-new { min-height: 100vh; min-height: 100dvh; }
  .hero-title { position: relative; left: auto; bottom: auto; padding: 120px 24px 0; transform: none !important; }
  .hero-name { font-size: clamp(36px, 10vw, 64px); }
  .hero-role { font-size: 15px; }
  .hero-cta { bottom: 40px; left: 24px; }
  .scroll-indicator { display: none; }
  body[data-page="home"] .nav { gap: 12px; }
  body[data-page="home"] .nav > nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-end; }
  .nav ul.nav-pill { overflow-x: auto; max-width: 100%; }
  .pill-link { padding: 8px 16px; }
}

@media (max-width: 560px) {
  .nav ul.nav-pill .nav-item:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .appear, .hero-char, .hero-role-inner, .hero-cta-hint, .scroll-pulse {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ iOS Global System ============ */
:root {
  --bg-gradient: linear-gradient(135deg, #f0f0f5 0%, #e8e8ef 35%, #eaeaf2 65%, #f2f0f5 100%);
  --bg-gradient-soft: linear-gradient(180deg, #f5f5f7 0%, #ececf1 100%);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --accent: #0071e3;
  --accent-gradient: linear-gradient(135deg, #0071e3 0%, #5856d6 50%, #af52de 100%);
  --accent-soft: rgba(0, 113, 227, 0.1);
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --blob-1: rgba(0, 113, 227, 0.08);
  --blob-2: rgba(88, 86, 214, 0.07);
  --blob-3: rgba(175, 82, 222, 0.06);
  --blob-4: rgba(52, 199, 89, 0.05);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-cn: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "SF Pro Display", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  /* aliases for existing component styles */
  --bg: #f0f0f5;
  --surface: var(--glass);
  --surface-strong: var(--glass-strong);
  --ink: var(--text);
  --ink-dim: var(--text-secondary);
  --ink-faint: rgba(0, 0, 0, 0.10);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: var(--glass-shadow);
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 400px at 15% 20%, var(--blob-1), transparent 70%),
    radial-gradient(circle 350px at 85% 15%, var(--blob-2), transparent 70%),
    radial-gradient(circle 450px at 75% 80%, var(--blob-3), transparent 70%),
    radial-gradient(circle 300px at 20% 75%, var(--blob-4), transparent 70%);
  animation: blobFloat 20s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header, main, footer, section { position: relative; z-index: 2; }

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
  100% { transform: translate(-10px, 10px) scale(0.98); }
}

/* ---------- Global site nav ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav.scrolled {
  padding: 10px 32px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cn);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.nav-logo:hover { opacity: 0.75; }

.nav-pills {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.nav-pills a {
  position: relative;
  z-index: 2;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.site-nav .nav-pills .nav-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  background: var(--glass-strong);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-burger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-cn); font-size: 28px; font-weight: 600; color: var(--text); text-decoration: none; }
.mobile-menu a.active { color: var(--accent); }

/* ---------- Glass card utility ---------- */
.glass-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ---------- Crystal hero ---------- */
.crystal-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding-top: 80px;
}

.crystal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
  z-index: 0;
}

.crystal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle 500px at 20% 30%, rgba(0, 113, 227, 0.15), transparent 70%),
    radial-gradient(circle 400px at 80% 20%, rgba(88, 86, 214, 0.12), transparent 70%),
    radial-gradient(circle 450px at 70% 75%, rgba(175, 82, 222, 0.10), transparent 70%);
  animation: blobFloat 15s ease-in-out infinite alternate;
}

.ch-brand {
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 520px;
}

.ch-title {
  margin: 0;
  display: flex;
  overflow: hidden;
  font-family: var(--font-cn);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.ch-char { display: inline-block; opacity: 1; }
.ch-char.appear--mask { animation: in-mask 1.05s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }

.ch-subtitle {
  margin-top: 20px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.ch-subtitle .slash { font-family: var(--font-serif); font-style: italic; color: var(--accent); }

.ch-loc {
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.ch-cta { margin-top: 36px; }

.ch-cta-hint {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.35);
  animation: float-hint 2.5s ease-in-out infinite;
}

.ch-cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.ch-cta-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ch-cta-link:hover::after { width: 100%; }
.ch-cta-link svg { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.ch-cta-link:hover svg { transform: translateX(8px); }

.crystal-wrap {
  position: absolute;
  top: 50%;
  left: 64%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.crystal {
  width: min(440px, 44vw);
  height: min(440px, 44vw);
  position: relative;
  will-change: transform;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.35));
}

.crystal-core {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 88% 32%, 82% 78%, 50% 100%, 18% 78%, 12% 32%);
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.85), transparent 40%),
    radial-gradient(circle at 62% 60%, rgba(0, 113, 227, 0.75), transparent 58%),
    radial-gradient(circle at 70% 28%, rgba(88, 86, 214, 0.65), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04));
}

.crystal-core::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: rgba(255, 0, 80, 0.10);
  mix-blend-mode: screen;
  transform: translate(-6px, 0);
}

.crystal-core::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: rgba(0, 180, 255, 0.12);
  mix-blend-mode: screen;
  transform: translate(6px, 0);
}

.crystal-core[data-shape="1"] { clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%); }
.crystal-core[data-shape="2"] { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }
.crystal-core[data-shape="3"] { clip-path: polygon(25% 5%, 75% 5%, 95% 35%, 95% 75%, 75% 95%, 25% 95%, 5% 75%, 5% 35%); }

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 120%; height: 52%; animation: orbitSpin 14s linear infinite; }
.orbit-2 { width: 96%; height: 120%; animation: orbitSpin 20s linear infinite reverse; }
.orbit-3 { width: 150%; height: 150%; animation: orbitSpin 26s linear infinite; }

@keyframes orbitSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ch-guide {
  position: absolute;
  right: 5%;
  top: 18%;
  z-index: 2;
  text-align: right;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 2;
}

.ch-guide .caret { display: inline-block; animation: caretBlink 1s steps(2) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

.ch-pager {
  position: absolute;
  right: 5%;
  bottom: 8%;
  z-index: 2;
  font-family: var(--font-en);
  font-weight: 300;
}

.ch-pager .cur { font-size: 56px; color: #ffffff; }
.ch-pager .total { font-size: 16px; color: rgba(255, 255, 255, 0.5); }

.ch-thumbs {
  position: absolute;
  right: 5%;
  bottom: 21%;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.thumb.active {
  border-color: var(--accent);
  background: rgba(0, 113, 227, 0.2);
}

.ch-arrows {
  position: absolute;
  left: 7%;
  bottom: 8%;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
}

.arrow-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Page enter ---------- */
.page-enter { animation: pageIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive (new system) ---------- */
@media (min-width: 1600px) {
  .site-nav { padding: 22px 48px; }
  .crystal { width: 520px; height: 520px; }
}

@media (min-width: 1920px) {
  .site-nav { padding: 26px 64px; }
  .crystal { width: 600px; height: 600px; }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .site-nav { padding: 14px 24px; }
  .nav-pills a { padding: 7px 16px; }
}

@media (max-width: 900px) {
  .site-nav { padding: 14px 24px; grid-template-columns: 1fr auto; }
  .nav-pills { display: none; }
  .nav-actions .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .ch-brand { left: 24px; right: 24px; top: 140px; transform: none; max-width: none; }
  .ch-title { font-size: clamp(36px, 10vw, 64px); }
  .ch-subtitle { font-size: 15px; }
  .crystal-wrap { top: auto; bottom: 20%; left: 50%; transform: translateX(-50%); }
  .crystal { width: 260px; height: 260px; }
  .ch-guide { display: none; }
  .ch-thumbs { right: 24px; bottom: 20%; }
  .ch-pager { right: 24px; bottom: 8%; }
  .ch-arrows { left: 24px; bottom: 8%; }
}

@media (max-width: 560px) {
  .nav-logo .logo-text { display: none; }
  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .crystal-hero::after, .orbit,
  .appear, .ch-char, .ch-cta-hint, .ch-guide .caret {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ Hero v2: Neutral Monochrome Crystal ============ */
:root {
  --hero-bg: #08080a;
  --hero-bg-2: #121216;
  --hero-bg-3: #1a1a20;
  --hero-text: #f5f5f7;
  --hero-text-2: rgba(245, 245, 247, 0.6);
  --hero-text-3: rgba(245, 245, 247, 0.35);
  --hero-text-4: rgba(245, 245, 247, 0.18);
  --glow-white: rgba(255, 255, 255, 0.05);
  --glow-cool: rgba(200, 210, 230, 0.04);
}

.crystal-hero::before {
  background: radial-gradient(ellipse 90% 70% at 50% 45%, #1a1a20 0%, #121216 45%, #08080a 100%);
}

.crystal-hero::after {
  background:
    radial-gradient(circle 600px at 38% 35%, rgba(255, 255, 255, 0.04), transparent 70%),
    radial-gradient(circle 500px at 65% 60%, rgba(200, 210, 230, 0.03), transparent 70%);
  animation: blobDrift 25s ease-in-out infinite alternate;
}

@keyframes blobDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-18px, 14px) scale(1.04); }
}

.ch-title { color: var(--hero-text); text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5); }
.ch-subtitle { color: var(--hero-text-2); }
.ch-subtitle .slash { color: var(--hero-text-3); }
.ch-loc { color: var(--hero-text-4); }
.ch-cta-hint { color: var(--hero-text-4); }
.ch-cta-link { color: var(--hero-text); }
.ch-cta-link::after { background: var(--hero-text); }

.crystal-stage {
  position: absolute;
  left: 58%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  perspective: 1200px;
  z-index: 5;
  will-change: transform;
}

.crystal-ball {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 18%, transparent 42%),
    radial-gradient(circle at 78% 38%, rgba(220, 225, 240, 0.18) 0%, transparent 32%),
    radial-gradient(circle at 45% 82%, rgba(180, 190, 210, 0.10) 0%, transparent 38%),
    radial-gradient(circle at 50% 50%, #2c2c34 0%, #18181c 45%, #0a0a0e 100%);
  box-shadow:
    inset -40px -40px 100px rgba(0, 0, 0, 0.65),
    inset 25px 25px 70px rgba(255, 255, 255, 0.05),
    0 0 120px rgba(255, 255, 255, 0.04),
    0 50px 100px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  animation: ballFloat 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes ballFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.ball-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ballSpin 30s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes ballSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.ball-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.ball-highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.3) 0%, transparent 30%);
  pointer-events: none;
}

.ball-chroma {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 255, 255, 0.10), rgba(200, 210, 230, 0.04),
    rgba(255, 255, 255, 0.08), rgba(180, 190, 210, 0.03),
    rgba(255, 255, 255, 0.10));
  -webkit-mask: radial-gradient(transparent 69%, #000 71%);
  mask: radial-gradient(transparent 69%, #000 71%);
  opacity: 0.6;
  animation: chromaSpin 12s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes chromaSpin { to { transform: rotate(360deg); } }

.facet {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 60%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

.facet-1 { top: 16%; left: 20%; width: 32%; height: 28%; clip-path: polygon(0 0, 100% 12%, 88% 100%, 8% 82%); }
.facet-2 { top: 10%; right: 18%; width: 28%; height: 32%; clip-path: polygon(12% 0, 100% 8%, 92% 92%, 0 72%); }
.facet-3 { bottom: 18%; left: 24%; width: 30%; height: 24%; clip-path: polygon(6% 18%, 94% 0, 100% 82%, 0 100%); }
.facet-4 { bottom: 14%; right: 22%; width: 26%; height: 28%; clip-path: polygon(0 12%, 88% 0, 100% 100%, 14% 88%); }

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.orbit-1 { width: 135%; height: 135%; transform: translate(-50%, -50%) rotateX(72deg); animation: orbitA 22s linear infinite; }
.orbit-2 { width: 160%; height: 160%; transform: translate(-50%, -50%) rotateX(65deg) rotateZ(50deg); border-color: rgba(255, 255, 255, 0.06); animation: orbitB 32s linear infinite; }
.orbit-3 { width: 120%; height: 120%; transform: translate(-50%, -50%) rotateX(78deg) rotateZ(-35deg); border-color: rgba(255, 255, 255, 0.04); animation: orbitC 40s linear infinite reverse; }

.orbit::after {
  content: "";
  position: absolute;
  top: -2.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(200, 210, 230, 0.3);
}

.orbit-2::after { background: rgba(220, 225, 240, 0.6); box-shadow: 0 0 10px rgba(200, 210, 230, 0.4); }
.orbit-3::after { opacity: 0.5; }

@keyframes orbitA { to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); } }
@keyframes orbitB { to { transform: translate(-50%, -50%) rotateX(65deg) rotateZ(410deg); } }
@keyframes orbitC { to { transform: translate(-50%, -50%) rotateX(78deg) rotateZ(325deg); } }

#heroParticles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle 400px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.04), transparent 70%);
}

.cursor-dot { background: #ffffff; }
.cursor-ring { border-color: rgba(255, 255, 255, 0.25); }
.cursor-ring.hover { width: 36px; height: 36px; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.05); }

/* Dark nav on hero, light nav after scroll */
.site-nav.dark .nav-logo { color: #f5f5f7; }
.site-nav.dark .logo-mark { background: #f5f5f7; color: #111111; box-shadow: none; }
.site-nav.dark .nav-pills { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
.site-nav.dark .nav-pills a { color: rgba(255, 255, 255, 0.5); }
.site-nav.dark .nav-pills a:hover,
.site-nav.dark .nav-pills a.active { color: #ffffff; }
.site-nav.dark .nav-pills .nav-indicator { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.site-nav.dark .nav-cta { background: #ffffff; color: #111111; }
.site-nav.dark .nav-burger { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); }
.site-nav.dark .nav-burger span { background: #ffffff; }
.site-nav.dark.scrolled {
  background: rgba(10, 10, 12, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Responsive for v2 crystal */
@media (min-width: 1600px) {
  .crystal-stage { width: 520px; height: 520px; }
}

@media (min-width: 1920px) {
  .crystal-stage { width: 600px; height: 600px; }
}

@media (max-width: 900px) {
  .crystal-stage { left: 50%; top: auto; bottom: 20%; transform: translateX(-50%); width: 260px; height: 260px; }
  .ball-inner, .orbit { animation: none !important; }
  .ch-brand { top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .crystal-ball, .ball-inner, .ball-chroma, .orbit, .crystal-hero::after {
    animation: none !important;
  }
}

/* ============ iOS Liquid Glass (light) ============ */
:root {
  --bg: #f0f0f5;
  --bg-grad: linear-gradient(160deg, #f5f5f7 0%, #ececf1 40%, #e8e8ee 70%, #f2f0f5 100%);
  --bg-grad-fixed: linear-gradient(135deg, #f5f5f7 0%, #eeeef3 35%, #e9e9f0 65%, #f3f1f6 100%);
  --text: #1d1d1f;
  --text-2: rgba(29, 29, 31, 0.65);
  --text-3: rgba(29, 29, 31, 0.4);
  --text-4: rgba(29, 29, 31, 0.2);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-thick: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-soft: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  --dispersion-r: rgba(255, 100, 120, 0.15);
  --dispersion-g: rgba(100, 255, 180, 0.12);
  --dispersion-b: rgba(100, 150, 255, 0.15);
  --accent: #0071e3;
  --accent-dark: #0058b0;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* aliases */
  --ink: var(--text);
  --ink-dim: var(--text-2);
  --ink-faint: var(--text-4);
  --surface: var(--glass);
  --surface-strong: var(--glass-strong);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: var(--glass-shadow);
}

html, body { background: #e8e8ee; }
body { background: var(--bg-grad-fixed); background-attachment: fixed; }

/* ---------- Glass card enhancement ---------- */
.glass-card { position: relative; overflow: hidden; }
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--dispersion-r), transparent 30%, transparent 70%, var(--dispersion-b));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.glass-card:hover::after { opacity: 1; }

.nav-logo .logo-mark {
  background: linear-gradient(135deg, #1d1d1f, #3a3a3f);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- Hero glass orb ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

.hero-copy {
  position: absolute;
  left: 8%;
  bottom: 22%;
  z-index: 10;
  max-width: 520px;
}

.hero-title {
  margin: 0;
  display: flex;
  overflow: hidden;
  font-family: var(--font-cn);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text);
}

.hero-char { display: inline-block; opacity: 1; }
.hero-char.appear--mask { animation: in-mask 1.05s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--d, 0s); }

.hero-subtitle {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-2);
}

.hero-subtitle em {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  color: var(--text-3);
  margin: 0 4px;
}

.hero-location {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-4);
}

.chamfer-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 0 28px;
  height: 48px;
  color: #ffffff;
  background: var(--text);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.chamfer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.chamfer-btn svg { transition: transform 0.3s; }
.chamfer-btn:hover svg { transform: translateX(6px); }

.glass-orb-stage {
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
}

.glass-orb {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 15%, transparent 40%),
    radial-gradient(circle at 65% 35%, rgba(180, 140, 255, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 40% 70%, rgba(100, 180, 255, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 70% 75%, rgba(255, 150, 200, 0.2) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(240, 240, 245, 0.05) 50%, transparent 80%);
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.4),
    inset -20px -20px 60px rgba(180, 160, 220, 0.15),
    0 0 100px rgba(180, 160, 255, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.05);
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.glass-orb::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 100, 120, 0.3), rgba(255, 200, 100, 0.2), rgba(100, 255, 180, 0.25),
    rgba(100, 150, 255, 0.3), rgba(180, 100, 255, 0.25), rgba(255, 100, 120, 0.3));
  -webkit-mask: radial-gradient(transparent 68%, #000 70%);
  mask: radial-gradient(transparent 68%, #000 70%);
  opacity: 0.6;
  animation: chromaSpin 12s linear infinite;
}

@keyframes chromaSpin { to { transform: rotate(360deg); } }

.glass-orb::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 18%;
  width: 30%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.7), transparent 70%);
  filter: blur(8px);
}

.glass-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.1), 0 0 60px rgba(180, 160, 255, 0.1);
}

.glass-ring-2 {
  width: 170%;
  height: 170%;
  border-color: rgba(255, 255, 255, 0.15);
  border-style: dashed;
  animation: ringSpin 40s linear infinite;
}

@keyframes ringSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orb-reflection {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: repeating-radial-gradient(ellipse at center, transparent 0, transparent 8px, rgba(180, 160, 255, 0.08) 8px, rgba(180, 160, 255, 0.08) 9px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  animation: ripple 4s ease-in-out infinite;
}

@keyframes ripple {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scaleY(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scaleY(1.3); }
}

/* ---------- Refract card ---------- */
.refract-card {
  position: relative;
  width: 340px;
  height: 420px;
  border-radius: 36px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.refract-canvas-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.refract-canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: url(#liquid-glass); }
.refract-frost {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.5), inset 0 -1px 2px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.refract-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.refract-section { padding: 40px 0; }

/* ---------- Slide-in menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.5s;
}
.menu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(240, 240, 245, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s;
}
.menu.is-open .menu__backdrop { opacity: 1; }
.menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 100%;
  height: 100%;
  padding: 24px 32px;
  background: var(--glass-thick);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border-right: 1px solid var(--glass-border);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.menu.is-open .menu__panel { transform: translateX(0); }
.menu__close {
  align-self: flex-start;
  margin-bottom: 40px;
  background: none;
  border: 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border-soft);
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.menu__linkText {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 0.3s, color 0.3s;
}
.menu__link:hover .menu__linkText { transform: translateX(8px); color: var(--accent); }
.menu__link .arrow { opacity: 0; transform: translateX(8px); transition: opacity 0.3s, transform 0.3s; }
.menu__link:hover .arrow { opacity: 1; transform: translateX(0); }
.menu.is-open .menu__link { opacity: 1; transform: translateY(0); }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.22s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.3s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.37s; }
.menu__foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border-soft);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.menu.is-open .menu__foot { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Light cursor for light theme */
.cursor-dot { background: #1d1d1f; }
.cursor-ring { border-color: rgba(0, 0, 0, 0.25); }
.cursor-ring.hover { border-color: var(--accent); background: rgba(0, 113, 227, 0.06); }

/* Responsive */
@media (min-width: 1600px) { .glass-orb-stage { width: 600px; height: 600px; } .hero-copy { left: 10%; } }
@media (min-width: 1920px) { .glass-orb-stage { width: 680px; height: 680px; } }
@media (min-width: 901px) and (max-width: 1279px) { .glass-orb-stage { width: 400px; height: 400px; } .hero-copy { left: 6%; } }
@media (max-width: 900px) {
  .glass-orb-stage { left: 50%; top: 40%; transform: translate(-50%, -50%); width: 280px; height: 280px; }
  .hero-copy { position: relative; left: auto; bottom: auto; padding: 120px 24px 40px; max-width: none; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .refract-card { display: none; }
  .menu__panel { width: 100%; }
}
@media (max-width: 560px) { .glass-orb-stage { width: 220px; height: 220px; } }

@media (prefers-reduced-motion: reduce) {
  .glass-orb, .glass-orb::before, .glass-ring-2, .orb-reflection, .bg-orb {
    animation: none !important;
  }
}

/* ============ Bug fixes: cursor, nav click, pointer-events ============ */
.cursor-dot, .cursor-ring {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1d1d1f;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(29, 29, 31, 0.3);
  background: transparent;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  border-color: rgba(0, 113, 227, 0.5);
  background: rgba(0, 113, 227, 0.06);
}

.cursor-dot.is-hover { opacity: 0; }

@media (max-width: 900px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
  html, body { cursor: auto !important; }
}

@media (min-width: 901px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html, body, a, button, .interactive {
    cursor: none !important;
  }
}

.bg-orbs, .bg-orb, .cursor-glow,
body::before, body::after,
.hero::before, .hero::after,
.hero-bg, .hero-blobs, .hero-grid, .hero-grain,
.glass-defs, .grain {
  pointer-events: none !important;
}

.site-nav, .site-nav * { pointer-events: auto; }
.site-nav { position: fixed; z-index: 1000; }
.nav-pills { position: relative; z-index: 1001; }
.nav-pills a, .nav-logo, .nav-cta, .nav-burger {
  pointer-events: auto;
}

.refract-canvas-wrap, .refract-canvas { pointer-events: none !important; }
.menu { z-index: 10000; }

/* ============ Home fixes + unified glass cards ============ */
.hero-title {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: auto;
  will-change: auto;
  transform-style: flat;
}

.glass-ring-2 { border-style: solid; }
.orb-reflection {
  background: radial-gradient(ellipse at center, rgba(180, 160, 255, 0.10), transparent 70%);
}

/* Gallery cards */
.gallery-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s linear, box-shadow 0.4s linear, border-color 0.3s;
}
.gallery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--dispersion-r), transparent 30%, transparent 70%, var(--dispersion-b));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--glass-shadow-hover);
}
.gallery-card:hover::after { opacity: 1; }
.gallery-card .tag { background: var(--glass-strong); color: var(--text-2); }

/* Video cards */
.video-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s linear, box-shadow 0.4s linear;
}
.video-tile::before { content: none; }
.video-tile:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--glass-shadow-hover); }
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s linear, background 0.3s linear;
}
.video-tile:hover .play-btn { transform: scale(1.1); background: rgba(255, 255, 255, 0.4); }
.play-btn svg { width: 22px; height: 22px; fill: var(--text); margin-left: 3px; }
.video-label { color: var(--text-3); font-size: 0.8rem; letter-spacing: 0.12em; }

/* Modal scale linear open/close */
.modal.open .modal-panel { animation: modalIn 0.28s linear both; }
.modal.open .modal-backdrop { animation: backdropIn 0.28s linear both; }
.modal.closing { display: flex; }
.modal.closing .modal-panel { animation: modalOut 0.28s linear both; }
.modal.closing .modal-backdrop { animation: backdropOut 0.28s linear both; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes modalOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.96); }
}
@keyframes backdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-width: 900px) {
  .gallery-card, .video-tile {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

/* ============ iOS glass cards + video modal ============ */
.gallery-card,
.video-tile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(0, 0, 0, 0.06);
}

.video-tile { cursor: pointer; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(240, 240, 245, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.video-modal-panel {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 16 / 9;
  background: var(--glass-thick);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow-hover);
  display: grid;
  place-items: center;
  animation: modalIn 0.28s linear both;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
}
.video-placeholder {
  color: var(--text-3);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.video-modal-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #000;
}

/* ============ Homepage restructure ============ */
.hero-copy { left: 6%; bottom: 14%; max-width: 560px; }
.hero-slogan { margin: 16px 0 0; font-size: 20px; font-weight: 400; color: var(--text-3); letter-spacing: 0.01em; }
.hero-metrics { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-value { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1; }
.metric-plus { font-size: 18px; font-weight: 700; color: var(--text); }
.metric-label { font-size: 11px; color: var(--text-3); }
.metric-divider { width: 1px; height: 36px; background: var(--text-4); }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .chamfer-btn { margin-top: 0; }

.chamfer-btn--glass {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.chamfer-btn--glass:hover { color: var(--text); }

.glass-orb-stage { left: 66%; top: 40%; width: 400px; height: 400px; }

.hero-works {
  position: absolute;
  right: 6%;
  bottom: 12%;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.work-mini { display: flex; flex-direction: column; gap: 8px; width: 140px; text-decoration: none; }
.work-mini-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 12px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-mini-name { font-size: 12px; color: var(--text-2); transition: color 0.3s; }
.work-mini:hover .work-mini-thumb { transform: scale(1.04); }
.work-mini:hover .work-mini-name { color: var(--text); }
.work-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  margin-left: 4px;
}
.work-all-link:hover { color: var(--text); }

.brand-marquee {
  overflow: hidden;
  padding: 22px 0;
  position: relative;
  z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brand-marquee-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.brand-pill {
  flex: 0 0 auto;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-3);
  font-size: 14px;
  white-space: nowrap;
  box-shadow: var(--glass-shadow);
}

.services-section { padding: 100px 0 80px; }
.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 40px;
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(255, 255, 255, 0.9);
}
.service-card--accent { border-color: rgba(0, 113, 227, 0.35); }
.service-icon { width: 26px; height: 26px; color: var(--text-2); margin-bottom: 18px; }
.service-card h3 { font-size: 18px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.service-card p { font-size: 13px; color: var(--text-3); margin: 0; }

.cta-section { padding: 40px 0 100px; }
.cta-card {
  padding: 64px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta-card h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.cta-card p { font-size: 15px; color: var(--text-2); margin: 0; }
.cta-card .chamfer-btn { margin-top: 8px; }

@media (max-width: 900px) {
  .hero-copy { position: relative; left: auto; bottom: auto; padding: 120px 24px 0; max-width: none; }
  .glass-orb-stage { left: 50%; top: 34%; width: 280px; height: 280px; }
  .hero-works { position: relative; right: auto; bottom: auto; margin: 32px 24px 40px; flex-wrap: wrap; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-metrics { gap: 14px; }
}

/* ============ CSS marquee + contact modal ============ */
.brand-marquee,
.software-strip {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.brand-marquee { padding: 12px 0; }
.software-viewport { padding: 12px 8% 20px; }

.brand-marquee-track,
.software-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.brand-marquee-group,
.software-group {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-3);
  white-space: nowrap;
  box-shadow: var(--glass-shadow);
}

.software-item { margin-right: 0; }
.software-card {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 10px;
}

.brand-marquee[data-direction="left"] .brand-marquee-track { animation: marqueeLeft 30s linear infinite; }
.brand-marquee[data-direction="right"] .brand-marquee-track { animation: marqueeRight 30s linear infinite; }
.software-track { animation: marqueeLeft 26s linear infinite; }

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.brand-marquee:hover .brand-marquee-track,
.software-strip:hover .software-track {
  animation-play-state: paused;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-modal.open { display: flex; }
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(240, 240, 245, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.contact-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  animation: modalIn 0.28s linear both;
}
.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
}
.contact-modal-label { font-size: 14px; letter-spacing: 0.2em; color: var(--text-3); margin: 0; }
.contact-email { font-size: 22px; font-weight: 600; color: var(--text); text-decoration: none; }
.contact-email:hover { color: var(--accent); }
.contact-modal-note { font-size: 13px; color: var(--text-3); margin: 0; }

@media (max-width: 900px) {
  .brand-marquee[data-direction="left"] .brand-marquee-track,
  .brand-marquee[data-direction="right"] .brand-marquee-track { animation-duration: 40s; }
  .software-track { animation-duration: 36s; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track, .software-track { animation: none !important; }
}

/* Software marquee: no hover clipping + narrow 2% edge fade */
.software-viewport { padding: 28px 8% 32px; }
.software-strip {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
}

@media (max-width: 900px) {
  .software-viewport { padding: 20px 8% 24px; }
}

/* Marquee spacing + centered hover scale + no visible borders */
.brand-marquee { padding: 8px 0; }
.software-viewport { padding: 8px 8% 12px; }

.software-item:hover .software-card {
  transform: scale(1.18);
}

.brand-pill {
  border: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-pill:hover { transform: scale(1.08); }
.software-card { border: none; }

@media (max-width: 900px) {
  .software-viewport { padding: 8px 8% 12px; }
  .software-item:hover .software-card { transform: scale(1.1); }
}

/* Smooth feather for all marquee edges */
.brand-marquee,
.software-strip {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

/* Real software logos: larger glass tiles */
.software-card {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.software-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.software-fallback {
  display: none;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}
.software-card.no-img .software-icon-img { display: none; }
.software-card.no-img .software-fallback { display: block; }
.software-card.has-fallback-only .software-fallback { display: block; }
.software-item:hover .software-card { transform: scale(1.15); }
.software-viewport { padding: 18px 8% 22px; }

@media (max-width: 900px) {
  .software-card { width: 48px; height: 48px; border-radius: 12px; }
  .software-icon-img { width: 30px; height: 30px; }
  .software-item:hover .software-card { transform: scale(1.1); }
  .software-viewport { padding: 12px 8% 16px; }
}

/* Soft edges for marquee glass (no black shadows/borders) */
.brand-pill,
.software-card {
  border: none;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 0 0 0.5px rgba(255, 255, 255, 0.6);
}
.brand-marquee { padding: 10px 0; }
.software-viewport { padding: 18px 8% 24px; }

/* Software parallax scale: item-level transform driven by JS */
.software-item {
  transition: none;
  will-change: auto;
}
.software-item:hover .software-card { transform: none; }

@media (max-width: 900px) {
  .software-item:hover .software-card { transform: none; }
}

/* Clean software logo tiles */
.software-card {
  padding: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
}
.software-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 0 0 transparent);
}

@media (max-width: 900px) {
  .software-icon-img { width: 32px; height: 32px; }
}

/* Remove dark horizontal band between marquee rows */
.software-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), inset 0 0 0 0.5px rgba(255, 255, 255, 0.5);
}
.brand-pill {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.brand-marquee,
.software-strip,
.software-viewport,
.brand-marquee-track,
.software-track,
.software-item,
.software-card,
.brand-pill {
  border: none;
  outline: none;
}
.software-viewport { padding: 20px 8% 28px; }
.brand-marquee { padding: 14px 0; }

/* Gallery data-driven cards and modal media */
.gallery-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.gallery-cover {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.gallery-name {
  padding: 8px 12px 12px;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-slice {
  background-repeat: no-repeat;
}

/* Project modal: info + multi-image gallery + detail stack */
.overview-single {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
  padding: 52px 56px 24px;
}
.overview-info {
  position: sticky;
  top: 0;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 22px;
}
.project-category,
.project-year {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.palette { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.palette-item { display: flex; align-items: center; gap: 6px; }
.palette-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text-2);
}
.overview-media { min-width: 0; }
.media-main {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.media-main img { width: 100%; height: auto; display: block; }
.media-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.media-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--glass);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb.active { opacity: 1; border-color: var(--accent); }
.detail-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.detail-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

@media (max-width: 900px) {
  .overview-single { grid-template-columns: 1fr; padding: 44px 24px 20px; }
  .overview-info { position: static; }
}

/* Modal two-page + z-index + single-row filters + media gallery + detail grid */
.modal { z-index: 2000; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding: 6px 4px;
}
.filter-group { flex-wrap: nowrap; }
.filter-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 24px;
  background: var(--glass-border-soft);
}

.media-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.media-main {
  flex: 1;
  min-width: 0;
  max-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.media-main img {
  max-width: 100%;
  max-height: 58vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.media-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}
.media-arrow:hover { background: var(--glass-thick); transform: scale(1.05); }

.details-card { padding: 24px 56px 40px; }
.details-card-inner { padding: 28px; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-slice {
  aspect-ratio: 3 / 4;
  background-repeat: no-repeat;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .modal-page.overview { grid-template-columns: 1fr; }
  .details-card { padding: 20px 24px 32px; }
  .details-grid { grid-template-columns: 1fr; }
}

/* Detail slices: fixed height, cover crop, adaptive columns */
.details-grid { gap: 10px; }
.details-card-inner { padding: 20px; }
.details-head { margin-bottom: 20px; }
.detail-slice {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}
.lightbox.open { display: block; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox-panel {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.lightbox-stage {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.3rem;
}
.lightbox-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.4rem;
}

@media (max-width: 900px) {
  .details-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .detail-slice { height: 160px; }
}

/* Single-row thumbnails + larger main image + comfortable detail spacing */
.media-main { max-height: 62vh; }
.media-main img { max-height: 62vh; }
.media-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.media-thumbs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
}
.thumb-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.thumb-arrow:hover { background: var(--glass-thick); transform: scale(1.05); }
.thumb-arrow.hidden { visibility: hidden; pointer-events: none; }
.thumb-arrow.disabled { opacity: 0.35; pointer-events: none; }
.media-thumbs.center { justify-content: center; }
.media-thumbs { scroll-padding-left: 8px; scroll-padding-right: 8px; }

/* Thumbnails: fixed size, no shrink, hidden scrollbar */
.media-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
}
.media-thumb img { object-fit: cover; }
.media-thumbs {
  gap: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.media-thumbs::-webkit-scrollbar { display: none; }
.thumb-arrow { width: 40px; height: 40px; }
.media-main { height: 400px; }
.media-main img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .media-thumb { flex: 0 0 56px; width: 56px; height: 56px; }
  .media-main { height: 300px; }
}

/* Square main image + slice cards + zoomable lightbox */
.media-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
}
.media-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slice-card {
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.slice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.slice-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.lightbox-canvas {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: 0 0;
  will-change: transform;
  cursor: grab;
  transition: opacity 0.25s ease;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.4rem;
}
.lightbox-arrow[data-lightbox-dir="prev"] { left: 20px; }
.lightbox-arrow[data-lightbox-dir="next"] { right: 20px; }
.lightbox-arrow.disabled { opacity: 0.35; pointer-events: none; }
.lightbox-thumbs {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: 80%;
  overflow-x: auto;
  padding: 8px 10px;
  z-index: 6;
}
.lightbox-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb.active { border-color: var(--accent); }
.lightbox.hide-ui .lightbox-arrow,
.lightbox.hide-ui .lightbox-thumbs { display: none; }

@media (max-width: 900px) {
  .slice-img { height: 180px; }
}

/* Home entry cards */
.entry-cards {
  position: absolute;
  right: 6%;
  bottom: 12%;
  z-index: 10;
  display: flex;
  gap: 24px;
}
.entry-card {
  width: 280px;
  padding: 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.entry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.entry-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.entry-card:hover .entry-icon { transform: translateY(-4px) rotate(3deg); }
.entry-card h3 { margin: 0; font-size: 24px; font-weight: 600; color: var(--text); }
.entry-card p { margin: 0; font-size: 14px; color: var(--text-3); }

/* Category release zone（左右分栏：左侧两列类目图标 + 右侧角色） */
.category-timeline { padding: 26px 0 40px; }
.cat-stage {
  position: relative;
  width: min(1180px, 94%);
  margin: 0 auto;
  min-height: 548px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cat-connect { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.cat-role-glow {
  position: absolute;
  right: 5%;
  top: 50%;
  width: 560px;
  height: 560px;
  transform: translate(16%, -50%);
  background: radial-gradient(circle, rgba(196,181,253,.30), rgba(158,197,255,.16) 40%, rgba(255,222,196,.10) 60%, transparent 74%);
  animation: catBreath 3.5s ease-in-out infinite;
}
@keyframes catBreath {
  0%, 100% { opacity: .55; transform: translate(16%, -50%) scale(.97); }
  50% { opacity: 1; transform: translate(16%, -50%) scale(1.05); }
}

.cat-bands { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
.cat-band {
  fill: none;
  stroke: url(#catBandGrad);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 1.5 8;
  opacity: .55;
  animation: catBandFlow 8s linear infinite;
}
@keyframes catBandFlow { to { stroke-dashoffset: -38; } }

.cat-particles { position: absolute; inset: 0; }
.cat-particle {
  position: absolute;
  right: 7%;
  border-radius: 50%;
  transform-origin: right center;
  background: linear-gradient(90deg, rgba(158,197,255,0) 0%, rgba(158,197,255,.05) 46%, rgba(158,197,255,.6) 80%, #fff 100%);
  animation: catParticleFly linear infinite;
}
@keyframes catParticleFly {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12% { opacity: var(--pa, .6); }
  82% { opacity: var(--pa, .6); }
  100% { transform: translate3d(calc(var(--tx) * -1), 0, 0) scale(1); opacity: 0; }
}

.cat-grid { position: relative; z-index: 2; width: 46%; display: flex; gap: clamp(26px, 4vw, 62px); }
.cat-col { flex: 1; display: flex; flex-direction: column; gap: 44px; }
.cat-col--center { justify-content: center; }
.cat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .55s ease;
}
.cat-ico {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 6px 22px rgba(124,108,240,.12), inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform 400ms linear, box-shadow 400ms linear;
  animation: catIcoFloat var(--float, 3.6s) ease-in-out infinite;
}
.cat-ico::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158,197,255,.28), rgba(158,197,255,0) 70%);
  opacity: .34;
  animation: catPulse 3.2s ease-in-out infinite;
}
.cat-ico::after {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  opacity: .24;
  background: repeating-conic-gradient(from 0deg, transparent 0 15deg, rgba(180,190,255,.28) 15deg 18deg, transparent 18deg 90deg);
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 53%);
  mask: radial-gradient(circle, transparent 50%, #000 53%);
  animation: catSpin 26s linear infinite;
}
@keyframes catPulse { 0%,100% { opacity:.2; transform:scale(.96); } 50% { opacity:.55; transform:scale(1.05); } }
@keyframes catSpin { to { transform: rotate(360deg); } }
@keyframes catIcoFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.cat-ico-img { width: 62px; height: 62px; object-fit: contain; }
.cat-item:hover .cat-ico { transform: scale(1.06); box-shadow: 0 12px 32px rgba(158,160,255,.26), inset 0 1px 0 rgba(255,255,255,.95); }
.cat-item:hover .cat-ico::before { opacity: .72; }
.cat-name { font-size: 14px; font-weight: 500; color: #666; letter-spacing: .04em; }

.cat-hero { position: relative; z-index: 2; width: 42%; display: flex; align-items: center; justify-content: flex-end; padding-right: 1%; }
.cat-role-img { width: clamp(230px, 24vw, 330px); max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 34px rgba(124,108,240,.22)); }
.icon-fallback { font-size: 16px; font-weight: 600; color: var(--text-2); }

@media (max-width: 1024px) {
  .cat-stage { flex-direction: column; min-height: 0; gap: 30px; padding: 22px 0 26px; }
  .cat-hero { order: 1; width: 100%; justify-content: center; padding-right: 0; }
  .cat-grid { order: 2; width: 100%; justify-content: center; gap: 60px; }
  .cat-col { gap: 36px; }
  .cat-role-glow { right: 50%; transform: translate(50%, -50%); }
  .cat-particles .cat-particle { right: 46%; }
}
@media (max-width: 640px) {
  .category-timeline { padding: 18px 0 22px; }
  .cat-role-img { width: 176px; }
  .cat-grid { gap: 26px; }
  .cat-col { gap: 30px; }
  .cat-ico { width: 74px; height: 74px; }
  .cat-ico-img { width: 50px; height: 50px; }
  .cat-name { font-size: 12px; }
  .cat-bands { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .category-timeline .cat-item,
  .category-timeline .cat-ico,
  .category-timeline .cat-role-glow,
  .category-timeline .cat-ico::before,
  .category-timeline .cat-ico::after,
  .category-timeline .cat-band,
  .category-timeline .cat-particle {
    animation: none !important;
  }
  .category-timeline .cat-item { opacity: 1 !important; transform: none !important; }
}

/* Hero entry capsules */
.hero { flex-direction: column; align-items: stretch; }
.hero-top { position: relative; flex: 1; width: 100%; }
.entry-capsules {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0 40px;
}
.capsule {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 88px;
  padding: 12px 24px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}
.capsule:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}
.capsule-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.capsule:hover .capsule-icon { transform: rotate(6deg) scale(1.08); }
.capsule-text { display: flex; flex-direction: column; gap: 2px; }
.capsule-title { font-size: 17px; font-weight: 600; color: var(--text); }
.capsule-desc { font-size: 12px; color: var(--text-3); }

@media (max-width: 900px) {
  .entry-capsules {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
  }
}

/* Icon-only entry items */
.entry-items {
  position: absolute;
  right: 6%;
  bottom: 12%;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 48px;
}
.entry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.entry-icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.entry-item:hover .entry-icon {
  transform: translateY(-8px) scale(1.06);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.16)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}
.entry-label {
  padding: 6px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.entry-item:hover .entry-label { background: #ffffff; }

@media (max-width: 900px) {
  .entry-icon { width: 100px; height: 100px; }
  .entry-items { gap: 32px; }
}

/* Orb centered + entry icons overlapping orb bottom */
.glass-orb-stage {
  left: 66%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.entry-items {
  left: 66%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, 135px);
  gap: 32px;
}
.entry-item { gap: 16px; }
.entry-icon {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
}
.entry-label { font-size: 16px; }
.entry-item:hover .entry-icon {
  transform: translateY(-8px) scale(1.08);
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.24));
}
.glass-orb { transition: filter 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.glass-orb-stage.orb-hover .glass-orb { filter: brightness(1.06); }

@media (max-width: 900px) {
  .entry-items { gap: 24px; transform: translate(-50%, 100px); }
  .entry-icon { width: 120px; height: 120px; }
}

/* Unified hero entries container */
.hero-entries {
  position: absolute;
  left: 66%;
  top: 50%;
  transform: translate(-50%, 135px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  z-index: 10;
}
.hero-entries .entry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (max-width: 900px) {
  .hero-entries { gap: 24px; transform: translate(-50%, 100px); }
}

/* Clean unified entry structure (overrides any legacy .entry-item rules) */
.hero-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.hero-entry .entry-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.18));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-entry:hover .entry-icon {
  transform: translateY(-8px) scale(1.08);
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.24));
}
.hero-entry .entry-label { font-size: 16px; }
.hero-entry:hover .entry-label { background: #ffffff; }

@media (max-width: 900px) {
  .hero-entry .entry-icon { width: 120px; height: 120px; }
}

/* Fluid geometric background */
.bg-fluid {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-blob-wrap {
  position: absolute;
  will-change: transform;
}
.bg-blob {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  will-change: transform;
  backface-visibility: hidden;
}
.bg-blob.rounded-tri {
  border-radius: 50% 44% 55% 42% / 48% 55% 44% 52%;
}
.bg-blob.soft-poly {
  border-radius: 44% 56% 50% 50% / 52% 46% 56% 48%;
}

@keyframes blobFlow1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(30px, -24px) scale(1.06) rotate(4deg); }
  100% { transform: translate(-22px, 28px) scale(0.96) rotate(-3deg); }
}
@keyframes blobFlow2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-28px, 22px) scale(1.05) rotate(-5deg); }
  100% { transform: translate(24px, -20px) scale(0.97) rotate(4deg); }
}
@keyframes blobFlow3 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(18px, 30px) scale(1.07) rotate(3deg); }
  100% { transform: translate(-26px, -18px) scale(0.95) rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none !important; }
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes flowSpin { to { --angle: 360deg; } }

/* Flowing border for cover cards */
.flow-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  --ring: 1.5px;
  --dur: 6s;
  --glow-opacity: 0.3;
  --glow-blur: 14px;
}
.flow-card::before,
.flow-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: var(--ring);
  background: conic-gradient(from var(--angle), #9ec5ff, #c4b5fd, #f9a8d4, #a5f3fc, #9ec5ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: flowSpin var(--dur) linear infinite;
  pointer-events: none;
}
.flow-card::before { z-index: -1; }
.flow-card::after { z-index: -2; filter: blur(var(--glow-blur)); opacity: var(--glow-opacity); }

.flow-card:hover {
  --ring: 2px;
  --dur: 2.5s;
  --glow-opacity: 0.75;
  --glow-blur: 20px;
  transform: translateY(-6px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.flow-card.flow-paused::before,
.flow-card.flow-paused::after { animation-play-state: paused; }

@media (max-width: 900px) {
  .flow-card { --dur: 9s; --glow-blur: 8px; }
  .flow-card:hover { --dur: 4s; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-card::before,
  .flow-card::after { animation: none; }
}

/* Correct layering and concentric ring */
.gallery-card.flow-card { --flow-r: 20px; }
.video-tile.flow-card { --flow-r: 24px; }
.gallery-card.flow-card,
.video-tile.flow-card {
  background: transparent;
  border: none;
}
.flow-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
}
.gallery-card.flow-card .flow-card__bg {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
}
.video-tile.flow-card .flow-card__bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: inherit;
}
.flow-card::before,
.flow-card::after { z-index: 0; }
.flow-card::before {
  inset: 0;
  padding: 1.5px;
  border-radius: var(--flow-r, 20px);
}
.flow-card::after {
  inset: -6px;
  padding: 1.5px;
  border-radius: calc(var(--flow-r, 20px) + 6px);
}
.flow-card__inner { position: relative; z-index: 2; }
.video-tile .flow-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
}

/* Light arc (not full ring) for cover cards */
.flow-card { --ring: 2px; }
.flow-card::before,
.flow-card::after {
  background: conic-gradient(from var(--angle),
    rgba(158, 197, 255, 0) 0deg,
    rgba(158, 197, 255, 0) 250deg,
    #9ec5ff 285deg,
    #c4b5fd 310deg,
    #f9a8d4 330deg,
    #a5f3fc 345deg,
    rgba(165, 243, 252, 0) 360deg);
}
.flow-card::before { animation: flowSpin 6s linear infinite; }
.flow-card::after {
  background: conic-gradient(from calc(var(--angle) + 180deg),
    rgba(158, 197, 255, 0) 0deg,
    rgba(158, 197, 255, 0) 250deg,
    #9ec5ff 285deg,
    #c4b5fd 310deg,
    #f9a8d4 330deg,
    #a5f3fc 345deg,
    rgba(165, 243, 252, 0) 360deg);
  -webkit-mask: none;
  mask: none;
  filter: blur(14px);
  opacity: 0.4;
  animation: flowSpin 9s linear infinite reverse;
}
.flow-card:hover::before { animation-duration: 2.5s; }
.flow-card:hover::after { animation-duration: 3.5s; opacity: 0.8; filter: blur(20px); }

@media (max-width: 900px) {
  .flow-card::before { animation-duration: 9s; }
  .flow-card::after { animation-duration: 12s; filter: blur(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-card::before,
  .flow-card::after { animation: none; }
}

/* Gallery covers: 3:4 grid with text below */
.gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gallery-card {
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  aspect-ratio: auto;
  height: auto;
}
.gallery-card:hover { transform: none; }
.gallery-cover {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--glass);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.gallery-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-cover.no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
  padding: 20px;
  text-align: center;
  line-height: 1.5;
}

/* Final flow border: edge = card border (base + highlight) */
.flow-card::before,
.flow-card::after {
  z-index: 0;
  inset: 0;
  padding: 1.5px;
  border-radius: var(--flow-r, 20px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.flow-card::before {
  background: conic-gradient(from 0deg, #9ec5ff, #c4b5fd, #f9a8d4, #a5f3fc, #9ec5ff);
  opacity: 0.5;
  animation: none;
}
.flow-card::after {
  background: conic-gradient(from var(--angle),
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0) 300deg,
    #ffffff 330deg,
    #c4b5fd 340deg,
    #a5f3fc 350deg,
    rgba(165, 243, 252, 0) 360deg);
  filter: none;
  opacity: 1;
  animation: flowSpin 6s linear infinite;
}
.flow-card__bg {
  inset: 1.5px;
  border-radius: calc(var(--flow-r, 20px) - 1.5px);
}
.flow-card:hover::before { opacity: 0.65; }
.flow-card:hover::after { animation-duration: 2.5s; }
.flow-card:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .flow-card::after { animation: none; opacity: 0; }
}

/* Particle Saturn interaction */
.glass-orb-stage { pointer-events: auto; }
.glass-ring, .glass-ring-2 { pointer-events: none; }
.saturn-canvas { pointer-events: auto; }

/* Particle Saturn canvas */
.saturn-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.glass-ring { opacity: 0.25; }
.glass-ring-2 { opacity: 0.16; }
.glass-orb-stage.saturn-fallback::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 158, 242, 0.5), rgba(158, 197, 255, 0.2) 70%, transparent);
  filter: blur(12px);
}

/* Revert flow border: back to plain glass cards */
.flow-card::before,
.flow-card::after { display: none !important; }
.flow-card__bg { display: none !important; }
.gallery-card.flow-card,
.video-tile.flow-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}
.video-tile.flow-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}
.flow-card:hover { transform: translateY(-8px); }

.gallery-card { border-radius: 20px; }
.gallery-cover {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
}
.gallery-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gallery-info { padding: 12px 4px 4px; text-align: left; }
.gallery-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.gallery-card:hover .gallery-cover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) and (min-width: 641px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Gallery glass cards */
.gallery-card {
  display: block;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.gallery-cover {
  border-radius: 14px;
  box-shadow: none;
}
.gallery-info { padding: 12px 6px 6px; }
.gallery-name { color: #1d1d1f; }
.gallery-meta { color: rgba(0, 0, 0, 0.45); }
.gallery-info,
.gallery-name,
.gallery-meta { text-align: center; }

.details-grid { gap: 20px; }
.details-card-inner { padding: 32px; }
.details-head { margin-bottom: 28px; }
.detail-slice {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.detail-slice:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Ensure no vertical mask/background between marquee rows */
.brand-marquee,
.software-strip,
.software-viewport,
.brand-marquee-track,
.software-track,
.brand-marquee-group,
.software-group {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.brand-marquee,
.software-strip {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Hero arc carousel */
.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  width: 54%;
  height: 100%;
  pointer-events: none;
}
.poster-arc {
  position: absolute;
  left: 46%;
  top: 52%;
  width: 0;
  height: 0;
  perspective: 1300px;
  pointer-events: auto;
}
.poster-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  aspect-ratio: 3 / 4;
  transform-origin: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: var(--glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s, filter 0.8s;
}
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-card .poster-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-card.focus { width: 200px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16); }

.video-stage {
  position: absolute;
  left: 18%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}
.video-stage-base {
  width: 280px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(180, 160, 255, 0.25));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}
.video-player {
  position: relative;
  width: 260px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #b4a8f5, #9ec5ff);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  margin: 0 auto;
}
.video-cover { color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.video-play {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  cursor: pointer;
}
.video-title { text-align: center; margin-top: 8px; font-size: 13px; color: var(--text-2); }

.right-entries {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 28px;
  pointer-events: auto;
}
.right-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.right-entry img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12)); transition: transform 0.3s; }
.right-entry:hover img { transform: translateY(-4px) scale(1.05); }
.right-entry span { padding: 5px 14px; border-radius: 100px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.7); font-size: 13px; color: var(--text); }

.video-lightbox { position: fixed; inset: 0; z-index: 3000; }
.video-lightbox-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 12, 0.7); }
.video-lightbox-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 90vw); aspect-ratio: 16 / 9; border-radius: 18px; background: #0f0f13; display: grid; place-items: center; }
.video-lightbox-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer; }
.video-lightbox-body { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

@media (max-width: 900px) {
  .hero-visual { position: relative; width: 100%; height: auto; padding: 24px 16px 40px; }
  .poster-arc { left: 50%; top: 160px; }
  .poster-card { width: 120px; }
  .poster-card.focus { width: 150px; }
  .video-stage { position: relative; left: 0; top: 0; transform: none; margin-top: 200px; }
  .right-entries { position: relative; right: auto; top: auto; transform: none; flex-direction: row; justify-content: center; margin-top: 20px; }
}

/* Hero: 左 = 作品半环绕弧线，右 = 固定视频展示区，最右 = 图集/视频入口 */
.hero-visual { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; }
.visual-wrap { position: absolute; left: 36%; right: 24px; top: 28px; bottom: 0; display: flex; }

.works-zone {
  position: relative;
  flex: 1 1 34%;
  height: 100%;
  pointer-events: auto;
}
.orbit {
  position: absolute;
  left: 130%;
  top: calc(50% + 40px);
  width: 0;
  height: 0;
  --rx: 345px;
  --ry: 215px;
}
.card {
  position: absolute;
  left: 0;
  top: 0;
  width: 140px;
  height: 187px;
  padding: 6px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 16px 38px rgba(80,70,160,.18), inset 0 1px 0 rgba(255,255,255,.9);
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
}
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.card-name { position: absolute; left: 6px; right: 6px; bottom: 10px; text-align: center; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); background: linear-gradient(transparent, rgba(0,0,0,.35)); padding: 16px 6px 6px; border-radius: 0 0 12px 12px; z-index: 3; }

.video-zone { position: relative; flex: 1 1 60%; height: 100%; display: flex; align-items: center; justify-content: flex-start; padding-left: 6px; pointer-events: auto; }
.entry-zone { position: relative; flex: 0 0 120px; height: 100%; display: flex; align-items: center; justify-content: center; }
.center-screen {
  position: relative;
  width: 500px;
  height: 314px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(160deg, #ffffff, #e9e4ff);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 32px 70px rgba(124,108,240,.28), 0 0 50px rgba(158,197,255,.35), inset 0 1px 0 #fff;
  display: block;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2500;
}
.center-screen::before { content: ""; position: absolute; inset: 14px; border-radius: 14px; background: radial-gradient(circle at 62% 42%, rgba(169,158,242,.95), rgba(158,197,255,.55) 45%, rgba(238,242,249,.2) 78%), linear-gradient(135deg, #dfe7ff, #f2e9ff); }
.center-screen img { position: absolute; inset: 14px; border-radius: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; z-index: 1; opacity: 0; transition: opacity .4s ease; }
.center-screen img.is-shown { opacity: 1; }
.screen-glare { position: absolute; inset: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0) 46%); z-index: 2; pointer-events: none; }
.screen-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 1px; z-index: 2; pointer-events: none; }
.screen-title { font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.screen-subtitle { font-size: 11px; color: rgba(255,255,255,.88); text-shadow: 0 1px 4px rgba(0,0,0,.4); }

.side-entries { position: relative; display: flex; flex-direction: column; gap: 24px; z-index: 3000; pointer-events: auto; }
.side-entry { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.side-ico { width: 116px; height: 116px; position: relative; background: none; border: none; border-radius: 0; box-shadow: none; backdrop-filter: none; background-repeat: no-repeat; background-position: center; background-size: contain; filter: drop-shadow(0 12px 22px rgba(124,108,240,.22)); animation: sideFloat 5s ease-in-out infinite; transition: transform 450ms linear, filter 450ms linear, opacity 450ms linear; }
.side-ico[data-ico="gallery"] { background-image: url("project-icons/图集.png"); }
.side-ico[data-ico="video"] { background-image: url("project-icons/视频.png"); }
.side-entry:nth-child(2) .side-ico { animation-delay: -2.5s; }
@keyframes sideFloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: 1px -3px; rotate: 1deg; } 50% { translate: 0 -1px; rotate: 0deg; } 75% { translate: -1px -3px; rotate: -1deg; } }
.side-entry:hover .side-ico { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 18px 30px rgba(124,108,240,.30)); }
.side-pill { padding: 0; border: none; border-radius: 0; background: none; box-shadow: none; font-size: 13px; font-weight: 500; color: #444; }
@media (prefers-reduced-motion: reduce) { .side-ico { animation: none; } }

@media (max-width: 1024px) {
  .hero-visual { position: relative; inset: auto; width: 100%; height: auto; padding: 0 16px 40px; }
  .visual-wrap { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: 460px; }
  .orbit { --rx: 200px; --ry: 160px; }
  .card { width: 108px; height: 144px; }
  .center-screen { width: 400px; height: 225px; }
  .entry-zone { flex-basis: 100px; }
}
@media (max-width: 768px) {
  .visual-wrap { flex-direction: column; height: auto; }
  .works-zone { flex: none; width: 100%; height: 360px; order: 2; }
  .video-zone { flex: none; width: 100%; height: 220px; order: 1; }
  .entry-zone { display: none; }
  .orbit { left: 50%; --rx: 170px; --ry: 140px; }
  .card { width: 88px; height: 118px; }
  .center-screen { width: min(90%, 400px); height: 225px; }
}

/* ================= Category release zone · final tuning ================= */
.category-timeline { padding: 16px 0 36px; }
.cat-stage {
  min-height: 0;
  gap: 0;
  justify-content: space-between;
}

/* role keeps a fixed proportion before the PNG finishes loading */
.cat-role {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: clamp(350px, 40vw, 500px);
  aspect-ratio: 1640 / 1780;
  line-height: 0;
}
.cat-role-glow {
  position: absolute;
  inset: -78% -46%;
  z-index: -1;
  width: auto;
  height: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(169, 185, 255, .085) 0%, rgba(166, 180, 255, .05) 38%, rgba(193, 180, 255, .025) 58%, transparent 76%),
    radial-gradient(ellipse 54% 30% at 50% 96%, rgba(255, 222, 184, .045), transparent 72%);
  animation: catRoleBreath 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes catRoleBreath {
  0%, 100% { opacity: .55; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.05); }
}
.cat-role-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(124, 108, 240, .12));
  -webkit-user-drag: none;
  user-select: none;
}

.cat-hero { width: 48%; justify-content: flex-end; padding-right: 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-items: center;
  width: 40%;
  gap: clamp(32px, 3vw, 40px);
}
.cat-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.1vw, 28px);
}
.cat-col--center { justify-content: center; }

.category-timeline .cat-item {
  opacity: 0;
  gap: 12px;
  padding: 0;
}
.category-timeline.in-view .cat-item {
  animation: catRelease .9s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes catRelease {
  0% {
    opacity: 0;
    transform: translate3d(var(--ox, 620px), var(--oy, 0px), 0) scale(.62);
  }
  100% {
    opacity: var(--fade, 1);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.category-timeline .cat-ico {
  width: clamp(100px, 9vw, 124px);
  height: clamp(100px, 9vw, 124px);
  border: 1px solid rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .60);
  box-shadow: 0 10px 28px rgba(124, 108, 240, .13), 0 2px 8px rgba(124, 108, 240, .07), inset 0 1px 0 rgba(255, 255, 255, .92);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), box-shadow .42s ease;
  animation: catIconFloat var(--floatDur, 3.4s) ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.53s);
  will-change: transform;
}
.category-timeline .cat-ico::before {
  inset: -16px;
  opacity: .30;
  background: radial-gradient(circle, rgba(164, 193, 255, .32), rgba(200, 181, 255, .12) 56%, transparent 74%);
  animation: catIconPulse 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.73s);
}
.category-timeline .cat-ico::after {
  inset: -38px;
  opacity: .18;
  background: repeating-conic-gradient(from 0deg, transparent 0 12deg, rgba(176, 190, 255, .34) 12deg 14deg, transparent 14deg 88deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 56%);
  mask: radial-gradient(circle, transparent 52%, #000 56%);
  animation: catIconSpin 26s linear infinite;
  animation-delay: calc(var(--i, 0) * -2.8s);
}
@keyframes catIconPulse {
  0%, 100% { opacity: .18; transform: scale(.95); }
  50% { opacity: .52; transform: scale(1.05); }
}
@keyframes catIconSpin { to { transform: rotate(360deg); } }
@keyframes catIconFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.category-timeline .cat-ico-img {
  width: clamp(66px, 6.2vw, 84px);
  height: clamp(66px, 6.2vw, 84px);
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
.category-timeline .cat-item:hover .cat-ico,
.category-timeline .cat-item:focus-visible .cat-ico {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 18px 38px rgba(158, 160, 255, .26), 0 0 0 1px rgba(255, 255, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .98);
}
.category-timeline .cat-item:hover .cat-ico::before,
.category-timeline .cat-item:focus-visible .cat-ico::before { opacity: .72; }
.category-timeline .cat-name {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.3;
  white-space: nowrap;
  color: #5d6073;
}

.cat-connect { z-index: 1; }
.cat-bands {
  opacity: 0;
  transition: opacity .9s ease .25s;
}
.category-timeline.in-view .cat-bands { opacity: .8; }
.cat-band {
  fill: none;
  stroke: url(#catBandGrad);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  opacity: .72;
  transition: opacity .35s ease, stroke-width .35s ease;
  animation: catBandFlowNew 7s linear infinite;
}
.cat-band.is-lit {
  opacity: 1;
  stroke-width: 2;
}
@keyframes catBandFlowNew { to { stroke-dashoffset: -44; } }

.cat-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  margin: 0 0 0 -2px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 32%, rgba(187, 202, 255, .92) 52%, rgba(187, 202, 255, 0) 72%);
  box-shadow: 0 0 8px 1px rgba(168, 184, 255, .42);
  opacity: 0;
  will-change: transform, opacity;
  animation: catParticleFlyNew var(--dur, 5s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.cat-particle::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 64px;
  height: 1px;
  margin-top: -.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(198, 208, 255, .72), rgba(198, 208, 255, 0) 86%);
}
.cat-particle.is-warm {
  background: radial-gradient(circle, #fff 0 32%, rgba(255, 219, 178, .95) 52%, rgba(255, 219, 178, 0) 72%);
  box-shadow: 0 0 8px 1px rgba(255, 208, 158, .42);
}
.cat-particle.is-warm::after {
  background: linear-gradient(90deg, rgba(255, 219, 178, .66), rgba(255, 219, 178, 0) 86%);
}
@keyframes catParticleFlyNew {
  0% { transform: translate3d(0, 0, 0) scale(.45); opacity: 0; }
  12% { opacity: var(--pa, .52); }
  80% { opacity: var(--pa, .52); }
  100% { transform: translate3d(var(--tx, -520px), var(--ty, 0px), 0) scale(.95); opacity: 0; }
}

@media (max-width: 1024px) {
  .cat-stage {
    flex-direction: column;
    width: min(760px, 94%);
    min-height: 0;
    gap: 28px;
    padding: 20px 0 24px;
  }
  .cat-hero { order: 1; width: 100%; justify-content: center; padding-right: 0; }
  .cat-grid { order: 2; width: 100%; max-width: 680px; margin: 0 auto; gap: clamp(32px, 4vw, 40px); }
  .cat-role { width: clamp(232px, 37vw, 330px); }
  .cat-col { gap: clamp(22px, 2.8vh, 28px); }
  .category-timeline .cat-item { gap: 10px; }
  .category-timeline .cat-ico { width: clamp(84px, 11vw, 104px); height: clamp(84px, 11vw, 104px); }
  .category-timeline .cat-ico-img { width: clamp(56px, 7.4vw, 70px); height: clamp(56px, 7.4vw, 70px); }
  .category-timeline .cat-name { font-size: 16px; }
}

@media (max-width: 640px) {
  .category-timeline { padding: 14px 0 28px; }
  .cat-stage { width: min(560px, 94%); gap: 18px; padding: 16px 0 20px; }
  .cat-role { width: clamp(168px, 46vw, 216px); }
  .cat-grid { gap: clamp(28px, 9vw, 38px); }
  .cat-col { gap: 14px; }
  .category-timeline .cat-item { gap: 7px; }
  .category-timeline .cat-ico { width: clamp(62px, 18vw, 76px); height: clamp(62px, 18vw, 76px); }
  .category-timeline .cat-ico-img { width: clamp(42px, 12.5vw, 54px); height: clamp(42px, 12.5vw, 54px); }
  .category-timeline .cat-name { font-size: clamp(12px, 3.4vw, 14px); }
  .cat-bands { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .category-timeline .cat-item,
  .category-timeline .cat-ico,
  .category-timeline .cat-role-glow,
  .category-timeline .cat-ico::before,
  .category-timeline .cat-ico::after,
  .category-timeline .cat-band,
  .category-timeline .cat-particle {
    animation: none !important;
  }
  .category-timeline .cat-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .category-timeline .cat-particles { display: none; }
  .category-timeline .cat-bands { opacity: .8; }
}

/* ===== Category release zone · scatter + glassless icons ===== */
.category-timeline .cat-ico {
  background: transparent;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 0 18px rgba(151, 168, 255, .15), 0 0 34px rgba(175, 191, 255, .10), 0 4px 12px rgba(124, 108, 240, .06);
}
.category-timeline .cat-ico::before {
  opacity: var(--gp, .28);
  background: radial-gradient(circle, rgba(160, 188, 255, .26), rgba(196, 183, 255, .10) 48%, transparent 72%);
}
.category-timeline .cat-ico-img {
  transform: rotate(var(--rot, 0deg));
  filter: brightness(var(--bri, 1)) drop-shadow(0 7px 12px rgba(124, 108, 240, .13)) drop-shadow(0 0 14px rgba(255, 255, 255, .48)) drop-shadow(0 0 8px rgba(159, 190, 255, .20));
}
.category-timeline .cat-item:hover .cat-ico {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 0 24px rgba(151, 168, 255, .30), 0 0 48px rgba(176, 191, 255, .18);
}

@media (min-width: 1025px) {
  .category-timeline .cat-stage {
    aspect-ratio: 1.55 / 1;
    min-height: 620px;
    justify-content: flex-end;
  }
  .category-timeline .cat-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    pointer-events: none;
    gap: 0;
  }
  .category-timeline .cat-col {
    display: contents;
  }
  .category-timeline .cat-item {
    position: absolute;
    left: var(--x, 8%);
    top: calc(var(--y, 50%) - var(--sz, 110px) / 2);
    width: max-content;
    translate: -50% 0;
    pointer-events: auto;
  }
  .category-timeline .cat-ico {
    width: var(--sz, 110px);
    height: var(--sz, 110px);
  }
  .category-timeline .cat-ico-img {
    width: var(--img, 74px);
    height: var(--img, 74px);
  }
  .category-timeline .cat-name {
    font-size: 17px;
  }
}

/* ================= Global blue energy flame cursor ================= */
.cursor-dot,
.cursor-ring {
  display: none !important;
}

.flame-cursor {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 24px;
  height: 32px;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform-origin: 50% 62%;
  will-change: transform, opacity;
}

@media (min-width: 901px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .flame-cursor {
    display: block;
  }
  html.flame-cursor-active,
  html.flame-cursor-active * {
    cursor: none !important;
  }
}

.flame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flame-glow {
  position: absolute;
  inset: -10px -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 207, 255, .34) 0%, rgba(22, 119, 255, .14) 42%, transparent 72%);
  filter: blur(9px);
  opacity: var(--flame-glow-op, .3);
}

.flame-ripple {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: radial-gradient(circle, #E8FAFF 0%, rgba(85, 207, 255, .55) 45%, transparent 72%);
  opacity: 0;
  transform: scale(.4);
}
.flame-ripple.is-pulse {
  animation: flameCursorPulse 190ms ease-out forwards;
}
@keyframes flameCursorPulse {
  0% { transform: scale(.45); opacity: .5; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (max-width: 900px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .flame-cursor {
    display: none !important;
  }
  html.flame-cursor-active,
  html.flame-cursor-active * {
    cursor: auto !important;
  }
}

/* ================= Native Canvas glow trail cursor ================= */
.glow-cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.glow-cursor-active,
  html.glow-cursor-active * {
    cursor: none !important;
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .glow-cursor-canvas {
    display: none !important;
  }
  html.glow-cursor-active,
  html.glow-cursor-active *,
  body[data-page] *,
  body[data-page="home"] * {
    cursor: auto !important;
  }
}

/* Gallery modal: detail-only mode (no main images) */
.details-card.detail-merged .overview-info {
  position: static;
  width: 100%;
  max-width: none;
}
.details-card.detail-merged .project-name {
  margin-bottom: 18px;
}
.details-card.detail-merged .project-intro {
  margin-bottom: 26px;
  max-width: none;
}
.case2-info-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.case2-info-foot .palette {
  margin: 0;
}
.detail-badge {
  flex: 0 0 auto;
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .case2-info-foot {
    align-items: flex-start;
  }
}

/* ================= Video page cards + reliable player mount ================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 32px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s ease, border-color .3s ease;
}
.video-card:hover,
.video-card:focus-visible {
  outline: none;
  transform: translateY(-6px) scale(1.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 18px 42px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.95);
}
.video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 131, 246, 0.18), rgba(94, 207, 224, 0.16) 46%, rgba(255, 255, 255, 0.36));
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.video-cover--fallback {
  background: linear-gradient(135deg, rgba(124, 131, 246, 0.26), rgba(94, 207, 224, 0.18) 50%, rgba(255, 255, 255, 0.4));
}
.video-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), filter .45s ease;
}
.video-card:hover .video-cover-img {
  transform: scale(1.035);
  filter: brightness(1.04);
}
.video-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .35s ease, box-shadow .35s ease;
}
.video-card-play svg {
  width: 22px;
  height: 22px;
  fill: #3f3f46;
  margin-left: 3px;
}
.video-card:hover .video-card-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.video-info {
  padding: 2px 6px 6px;
  text-align: left;
}
.video-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #1d1d1f);
  letter-spacing: 0.01em;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-3, #86868b);
}

.video-modal-panel {
  display: block;
}
.video-stage {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.video-modal-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.video-modal-close {
  z-index: 5;
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card,
.video-card,
.slice-card {
  content-visibility: auto;
}
.gallery-card {
  contain-intrinsic-size: auto 640px;
}
.video-card {
  contain-intrinsic-size: auto 340px;
}
.slice-card {
  contain-intrinsic-size: auto 300px;
}

.modal-scroll,
.media-thumbs,
.video-modal-panel,
.lightbox-canvas {
  overscroll-behavior: contain;
}

.modal-scroll {
  scroll-snap-type: none;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
}
.modal-scroll .modal-page {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}
.media-thumbs {
  -webkit-overflow-scrolling: touch;
}

/* Static, always-on compositing for fixed glass surfaces (never toggled by JS) */
.site-nav,
.nav,
.menu,
.modal,
.video-modal,
.lightbox,
.contact-modal {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.software-item {
  will-change: transform;
}

/* Single-pass, bounded blur radii for fixed glass overlays */
.mobile-menu,
.menu__panel,
.modal-panel,
.video-modal-panel {
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
}

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

/* Narrow fix: only this product keeps its cover inside the same 3:4 frame */
.gallery-card[data-name="二十年绍兴花雕马年生肖纪念款"],
.gallery-card[data-name="二十年绍兴花雕马年生肖纪念款"] .flow-card__inner {
  min-width: 0;
  max-width: 100%;
}
.gallery-card[data-name="二十年绍兴花雕马年生肖纪念款"] .gallery-cover {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.gallery-card[data-name="二十年绍兴花雕马年生肖纪念款"] .gallery-cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== Category release zone: controlled two-arc fan ===== */
.category-timeline .cat-ico {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.category-timeline .cat-ico::before {
  inset: -9px;
  opacity: var(--gp, .24);
  background: radial-gradient(circle, rgba(160, 188, 255, .26), rgba(124, 131, 246, .08) 54%, transparent 72%);
  animation: catIconGlow 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.62s);
}
.category-timeline .cat-ico::after {
  display: none !important;
}
@keyframes catIconGlow {
  0%, 100% { opacity: .16; transform: scale(.96); }
  50% { opacity: .34; transform: scale(1.04); }
}
.category-timeline .cat-ico-img {
  filter: brightness(var(--bri, 1))
    drop-shadow(0 6px 9px rgba(124, 108, 240, .12))
    drop-shadow(0 0 10px rgba(158, 190, 255, .24));
}
.category-timeline .cat-item:hover .cat-ico,
.category-timeline .cat-item:focus-visible .cat-ico {
  transform: translateY(-3px) scale(1.1);
  box-shadow: none;
}
.category-timeline .cat-item:hover .cat-ico::before,
.category-timeline .cat-item:focus-visible .cat-ico::before {
  animation: none;
  opacity: .62;
}

.cat-fan {
  fill: url(#catFanGrad);
  opacity: .14;
}
.cat-band {
  stroke-dasharray: none;
  stroke-width: 1.15;
  opacity: .5;
  animation: none;
}
.cat-band.is-lit {
  opacity: .95;
  stroke-width: 1.8;
}
.cat-particle {
  right: auto;
  background: radial-gradient(circle, #fff 0 30%, rgba(160, 188, 255, .9) 52%, rgba(160, 188, 255, 0) 72%);
  box-shadow: 0 0 7px 1px rgba(160, 188, 255, .34);
}
.cat-particle::after {
  display: none !important;
}
.cat-particle.is-warm {
  background: radial-gradient(circle, #fff 0 30%, rgba(255, 220, 180, .95) 52%, rgba(255, 220, 180, 0) 72%);
  box-shadow: 0 0 7px 1px rgba(255, 208, 158, .34);
}
.cat-particle {
  animation-name: catParticleFlow;
}
@keyframes catParticleFlow {
  0% { transform: translate3d(0, 0, 0) scale(.45); opacity: 0; }
  12% { opacity: var(--pa, .36); }
  50% { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(.82); opacity: var(--pa, .36); }
  82% { opacity: var(--pa, .36); }
  100% { transform: translate3d(var(--tx, -300px), var(--ty, 0px), 0) scale(.95); opacity: 0; }
}

@media (max-width: 1024px) {
  .cat-bands {
    display: none;
  }
}

/* ===== Category release zone · glass palette + light bridge ===== */
.category-timeline .cat-band {
  stroke-dasharray: 2 11;
  stroke-width: 1.2;
  opacity: .5;
  animation: catBandFlowNew 6.5s linear infinite;
}
.category-timeline .cat-band.is-lit {
  opacity: 1;
  stroke-width: 2;
}
.category-timeline .cat-name {
  color: #5b5f74;
}

@media (min-width: 1025px) {
  .category-timeline {
    padding: 24px 0 54px;
  }
  .category-timeline .cat-stage {
    width: min(1240px, 100%);
    padding: 0 64px;
    box-sizing: border-box;
    min-height: 628px;
    gap: clamp(18px, 2.2vw, 40px);
    align-items: center;
    justify-content: space-between;
  }
  .category-timeline .cat-stage::before {
    content: "";
    position: absolute;
    left: 1%;
    top: 50%;
    width: 54%;
    height: 110%;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
      radial-gradient(ellipse 56% 52% at 46% 50%, rgba(171, 186, 255, .17), rgba(171, 186, 255, .05) 56%, transparent 78%),
      radial-gradient(ellipse 32% 38% at 74% 44%, rgba(255, 226, 197, .12), transparent 76%);
    pointer-events: none;
    z-index: 0;
  }
  .category-timeline .cat-hero {
    width: 46%;
  }

  /* the palette: an ordered 3 / 3 / 1 plate of category icons */
  .category-timeline .cat-grid {
    position: relative;
    inset: auto;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    align-content: center;
    width: max-content;
    max-width: 100%;
    margin: 0;
    column-gap: clamp(18px, 1.9vw, 36px);
    row-gap: clamp(18px, 1.9vw, 30px);
    padding: clamp(30px, 2.8vw, 46px) clamp(28px, 2.6vw, 46px);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, .82);
    background:
      radial-gradient(ellipse 62% 46% at 26% 5%, rgba(255, 255, 255, .78), transparent 72%),
      linear-gradient(156deg, rgba(255, 255, 255, .64), rgba(247, 248, 255, .38) 54%, rgba(255, 253, 250, .46));
    box-shadow:
      0 30px 64px -32px rgba(112, 122, 200, .38),
      0 4px 14px rgba(120, 130, 210, .05),
      inset 0 1px 0 rgba(255, 255, 255, .95);
    pointer-events: auto;
  }
  .category-timeline .cat-col {
    display: contents;
  }
  .category-timeline .cat-item {
    position: relative;
    left: auto;
    top: auto;
    width: max-content;
    translate: none;
    pointer-events: auto;
    gap: 14px;
  }
  .category-timeline .cat-col--center .cat-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .category-timeline .cat-col .cat-item:nth-child(2),
  .category-timeline .cat-col--center .cat-item:nth-child(1) {
    margin-top: 14px;
  }
  .category-timeline .cat-ico {
    width: clamp(104px, 8.4vw, 124px);
    height: clamp(104px, 8.4vw, 124px);
  }
  .category-timeline .cat-ico-img {
    width: clamp(118px, 9.6vw, 148px);
    height: clamp(118px, 9.6vw, 148px);
  }
  .category-timeline .cat-name {
    font-size: clamp(14px, 1.02vw, 16px);
  }
}

/* ===== Category release zone · two-arc fan (final pass) ===== */
@media (min-width: 1025px) {
  .category-timeline { padding: 10px 0 36px; }
  .category-timeline .cat-stage {
    width: min(1260px, 100%);
    aspect-ratio: auto;
    height: clamp(600px, 55vw, 700px);
    min-height: 0;
    padding: 0 clamp(26px, 4vw, 70px);
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }
  .category-timeline .cat-stage::before {
    content: "";
    position: absolute;
    left: 1%;
    top: 50%;
    width: 52%;
    height: 94%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse 54% 50% at 52% 50%, rgba(170, 186, 255, .12), rgba(198, 186, 255, .045) 58%, transparent 80%);
    pointer-events: none;
    z-index: 0;
  }
  .category-timeline .cat-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    pointer-events: none;
  }
  .category-timeline .cat-col { display: contents; }
  .category-timeline .cat-item {
    position: absolute;
    left: var(--x, 18%);
    top: calc(var(--y, 50%) - var(--sz, 124px) / 2);
    width: max-content;
    margin: 0;
    padding: 0;
    translate: -50% 0;
    gap: 0;
    pointer-events: auto;
  }
  .category-timeline .cat-col .cat-item:nth-child(2),
  .category-timeline .cat-col--center .cat-item:nth-child(1),
  .category-timeline .cat-col--center .cat-item:nth-child(3) {
    grid-column: auto;
    justify-self: auto;
    margin-top: 0;
  }
  .category-timeline .cat-ico {
    width: var(--sz, 124px);
    height: var(--sz, 124px);
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
  }
  .category-timeline .cat-ico-img {
    width: var(--img, 124px);
    height: var(--img, 124px);
  }
  .category-timeline .cat-ico::before {
    inset: -16px;
    opacity: var(--gp, .3);
    background: radial-gradient(circle, rgba(158, 186, 255, .30), rgba(198, 184, 255, .10) 52%, transparent 74%);
  }
  .category-timeline .cat-name {
    margin-top: -2px;
    font-size: clamp(14.5px, 1.26vw, 16px);
    font-weight: 500;
    color: #4f5468;
    letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  }
  .category-timeline .cat-hero { width: 46%; justify-content: flex-end; padding-right: 0; }
}

/* ===== Category release zone · light bridge visibility ===== */
@media (min-width: 641px) and (max-width: 1024px) {
  .category-timeline .cat-grid {
    max-width: 520px;
    gap: clamp(30px, 5vw, 52px);
  }
  .category-timeline .cat-col { gap: clamp(26px, 3.2vh, 36px); }
  .category-timeline .cat-ico {
    width: clamp(104px, 15vw, 126px);
    height: clamp(104px, 15vw, 126px);
  }
  .category-timeline .cat-ico-img {
    width: clamp(96px, 14vw, 118px);
    height: clamp(96px, 14vw, 118px);
  }
}

@media (min-width: 1025px) {
  .category-timeline .cat-connect { overflow: visible; }
  .category-timeline .cat-bands { opacity: .9; }
  .category-timeline .cat-band {
    stroke-width: 1.5;
    stroke-dasharray: 3 9;
    stroke-linecap: round;
    opacity: .8;
  }
  .category-timeline .cat-band.is-lit {
    stroke-width: 2.4;
    opacity: 1;
  }
}

/* ===== Category release zone · orbit system (final) ===== */
.cat-orbit-dots,
.cat-core { display: none; }

@media (min-width: 1025px) {
  .category-timeline { padding: 4px 0 44px; }

  .category-timeline .cat-stage {
    width: min(1260px, 100%);
    height: clamp(600px, 52vw, 700px);
    min-height: 0;
    padding: 0 clamp(24px, 3.2vw, 54px);
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    overflow: visible;
  }
  .category-timeline .cat-stage::before {
    left: 1%;
    top: 50%;
    width: 60%;
    height: 116%;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
      radial-gradient(ellipse 58% 50% at 40% 47%, rgba(167, 184, 255, .13), rgba(167, 184, 255, .04) 56%, transparent 78%),
      radial-gradient(ellipse 30% 26% at 43% 50%, rgba(178, 192, 255, .15), rgba(200, 190, 255, .05) 58%, transparent 80%),
      radial-gradient(ellipse 26% 30% at 70% 62%, rgba(255, 224, 190, .085), transparent 76%);
  }

  /* role: the focal point, right aligned but pulled a little toward centre */
  .category-timeline .cat-hero {
    width: 46%;
    justify-content: flex-end;
    padding-right: 26px;
  }
  .category-timeline .cat-role { width: clamp(360px, 38vw, 500px); }
  .category-timeline .cat-role-glow { inset: -70% -52%; }

  /* nodes ride the rail */
  .category-timeline .cat-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    pointer-events: none;
  }
  .category-timeline .cat-col { display: contents; }
  .category-timeline .cat-item {
    position: absolute;
    left: var(--x, 20%);
    top: calc(var(--y, 50%) - var(--sz, 130px) / 2);
    width: max-content;
    translate: -50% 0;
    margin: 0;
    padding: 0;
    gap: 0;
    pointer-events: auto;
    transition: opacity .45s ease;
  }
  .category-timeline .cat-item:hover,
  .category-timeline .cat-item:focus-visible { opacity: 1 !important; }

  .category-timeline .cat-ico {
    width: var(--sz, 130px);
    height: var(--sz, 130px);
    border: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: catIconFloat var(--floatDur, 6.4s) ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.74s);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  }
  .category-timeline .cat-ico-img {
    width: var(--img, 130px);
    height: var(--img, 130px);
    rotate: var(--rot, 0deg);
    filter: brightness(var(--bri, 1))
      drop-shadow(0 7px 11px rgba(124, 108, 240, .13))
      drop-shadow(0 0 11px rgba(158, 190, 255, .26));
  }
  .category-timeline .cat-ico::before {
    inset: -15%;
    opacity: var(--gp, .24);
    background: radial-gradient(circle, rgba(158, 188, 255, .32), rgba(198, 184, 255, .10) 52%, transparent 72%);
    animation: catIconGlow var(--floatDur, 6.4s) ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.74s);
  }
  .category-timeline .cat-ico::after { display: none !important; }
  .category-timeline .cat-item:hover .cat-ico,
  .category-timeline .cat-item:focus-visible .cat-ico { transform: translateY(-4px) scale(1.06); }
  .category-timeline .cat-item:hover .cat-ico::before,
  .category-timeline .cat-item:focus-visible .cat-ico::before { animation: none; opacity: .6; }
  .category-timeline .cat-name {
    margin-top: 11px;
    font-size: clamp(14px, 1.08vw, 15px);
    font-weight: 600;
    color: #43485d;
    letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .92), 0 0 12px rgba(255, 255, 255, .8);
  }

  /* the rails, their motes, and the beam core at the desk */
  .category-timeline .cat-rail {
    fill: none;
    stroke: rgba(147, 165, 232, .34);
    stroke-width: 1.2;
    stroke-linecap: round;
  }
  .category-timeline .cat-rail--outer {
    stroke: rgba(180, 172, 244, .22);
    stroke-width: 1;
    stroke-dasharray: 1.5 7;
  }
  .category-timeline .cat-orbit-dots {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .category-timeline .cat-orbit-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 26%, rgba(168, 190, 255, .85) 55%, rgba(168, 190, 255, 0) 74%);
    box-shadow: 0 0 6px rgba(160, 186, 255, .55);
    offset-rotate: 0deg;
    opacity: 0;
    animation: catOrbitMote var(--dur, 30s) linear infinite;
    animation-delay: var(--delay, 0s);
  }
  @keyframes catOrbitMote {
    0% { offset-distance: 0%; opacity: 0; }
    14% { opacity: .6; }
    86% { opacity: .6; }
    100% { offset-distance: 100%; opacity: 0; }
  }
  .category-timeline .cat-core {
    display: block;
    position: absolute;
    left: var(--core-x, 50%);
    top: var(--core-y, 50%);
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 246, 232, .46), rgba(206, 194, 255, .16) 44%, transparent 72%);
    animation: catCoreBreath 5.6s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes catCoreBreath {
    0%, 100% { opacity: .5; transform: scale(.94); }
    50% { opacity: .9; transform: scale(1.06); }
  }

  /* faint filaments from the desk out to every node */
  .category-timeline .cat-connect { overflow: visible; }
  .category-timeline .cat-bands { opacity: .9; }
  .category-timeline .cat-band {
    fill: none;
    stroke: url(#catBandGrad);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-dasharray: 3 11;
    opacity: .8;
    transition: opacity .35s ease, stroke-width .35s ease;
    animation: catBandDrift 9s linear infinite;
  }
  .category-timeline .cat-band--halo {
    stroke-width: 5.5;
    stroke-dasharray: none;
    opacity: .16;
    animation: none;
    transition: opacity .35s ease;
  }
  .category-timeline .cat-band--halo.is-lit { opacity: .34; }
  .category-timeline .cat-band.is-lit { opacity: 1; stroke-width: 2.7; }
  @keyframes catBandDrift { to { stroke-dashoffset: -28; } }
  .category-timeline .cat-particle { margin-left: -1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-timeline .cat-orbit-dot { animation: none; opacity: .35; }
  .category-timeline .cat-core { animation: none; }
  .category-timeline .cat-ico,
  .category-timeline .cat-ico::before,
  .category-timeline .cat-band { animation: none; }
}

/* ===== Hero capability rail · centred workstation + floating tool cloud ===== */
.cat-prop { display: none; }

@media (min-width: 1025px) {
  /* the work-station装置 keeps the same scale, only the anchor point moves:
     the core (person + desk + pedestal) now sits at ~60% of the stage */
  .category-timeline .cat-hero {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: auto;
    padding: 0;
    pointer-events: none;
  }
  .category-timeline .cat-role {
    position: absolute;
    left: 32%;
    top: 52%;
    height: 98%;
    width: auto;
    transform: translateY(-50%);
  }
  .category-timeline .cat-role-img { width: 100%; height: 100%; }
  .category-timeline .cat-role-glow {
    inset: -24% -18%;
    background:
      radial-gradient(circle at 50% 40%, rgba(169, 185, 255, .085) 0%, rgba(166, 180, 255, .04) 42%, transparent 74%),
      radial-gradient(ellipse 46% 15% at 50% 86%, rgba(255, 216, 172, .1), rgba(255, 228, 198, .035) 54%, transparent 78%);
  }

  /* rails stay behind the装置, nodes and props float above it */
  .category-timeline .cat-connect { z-index: 1; }
  .category-timeline .cat-grid { z-index: 3; }
}

/* ===== Floating tool cloud · the layered workstation props ===== */
@media (min-width: 641px) {
  .category-timeline .cat-prop {
    display: block;
    position: absolute;
    left: calc(var(--px, 50) * 1%);
    top: calc(var(--py, 50) * 1%);
    width: calc(var(--pw, 24) * 1%);
    translate: -50% -50%;
    z-index: 3;
    pointer-events: none;
    animation: catToolDrift var(--pd, 8s) ease-in-out infinite;
    animation-delay: var(--pdl, 0s);
  }
  /* the tuck-behind band sits under the workstation, over its glow */
  .category-timeline .cat-prop--back { z-index: 0; }
  .category-timeline .cat-prop img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: rotateX(calc(var(--prx, 0) * 1deg)) rotate(calc(var(--pr, 0) * 1deg));
    filter: drop-shadow(0 14px 22px rgba(122, 130, 205, .16)) drop-shadow(0 0 9px rgba(176, 194, 255, .26));
  }
  .category-timeline .cat-prop--back img {
    filter: drop-shadow(0 9px 15px rgba(122, 130, 205, .13)) drop-shadow(0 0 7px rgba(176, 194, 255, .18));
  }
  .category-timeline.in-view .cat-prop img {
    animation: catToolIn .95s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: var(--pdi, 0s);
  }
  @keyframes catToolIn {
    0% { opacity: 0; transform: rotateX(calc(var(--prx, 0) * 1deg)) rotate(calc(var(--pr, 0) * 1deg)) translate3d(0, 14px, 0) scale(.76); }
    100% { opacity: 1; transform: rotateX(calc(var(--prx, 0) * 1deg)) rotate(calc(var(--pr, 0) * 1deg)) translate3d(0, 0, 0) scale(1); }
  }
  @keyframes catToolDrift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, calc(var(--pfl, -11) * 1px), 0); }
  }

  /* stacked layout (≤1024): the tools fan out on both sides of the desk */
  .category-timeline .cat-prop--camera { --px: -54; --py: 22; --pw: 30; --pr: -8; --pd: 9.4s; --pdl: -2.1s; --pdi: .10s; }
  .category-timeline .cat-prop--clap { --px: -42; --py: 47; --pw: 27; --pr: 6; --pd: 8.2s; --pdl: -3.4s; --pdi: .18s; }
  .category-timeline .cat-prop--ruler { --px: -66; --py: 74; --pw: 16; --pr: -30; --pd: 7.4s; --pdl: -1.6s; --pdi: .26s; }
  .category-timeline .cat-prop--penb { --px: 132; --py: 70; --pw: 26; --pr: -26; --pd: 8.6s; --pdl: -2.4s; --pdi: .34s; }
  .category-timeline .cat-prop--penc { --px: 110; --py: 16; --pw: 12; --pr: 40; --pd: 7.6s; --pdl: -3.0s; --pdi: .20s; }
  .category-timeline .cat-prop--drive { --px: 136; --py: 26; --pw: 29; --pr: 5; --pd: 8.8s; --pdl: -4.2s; --pdi: .14s; }
  .category-timeline .cat-prop--swatch { --px: 148; --py: 60; --pw: 33; --pr: -5; --pd: 7.8s; --pdl: -2.8s; --pdi: .22s; }
  .category-timeline .cat-prop--lens { --px: 152; --py: 87; --pw: 19; --pr: 8; --pd: 6.8s; --pdl: -5.0s; --pdi: .30s; }
  .category-timeline .cat-prop--notebook { --px: -30; --py: 88; --pw: 26; --pr: -4; --pd: 9.0s; --pdl: -1.2s; --pdi: .34s; }
  .category-timeline .cat-prop--stylus { --px: 64; --py: 93; --pw: 15; --pr: -18; --prx: 44; --pd: 7.2s; --pdl: -3.8s; --pdi: .30s; }
  .category-timeline .cat-prop--pena { --px: 90; --py: 90; --pw: 26; --pr: 12; --prx: 40; --pd: 8.0s; --pdl: -4.6s; --pdi: .26s; }
}

@media (min-width: 1025px) {
  /* desktop (narrow): every tool rides one soft arc down the right flank */
  .category-timeline .cat-prop--camera { --px: 90; --py: 14; --pw: 18; --pr: -7; --pd: 9.4s; --pdl: -2.1s; --pdi: .10s; }
  .category-timeline .cat-prop--notebook { --px: 100; --py: 25; --pw: 15; --pr: -4; --pd: 9.0s; --pdl: -1.2s; --pdi: .34s; }
  .category-timeline .cat-prop--clap { --px: 108; --py: 34; --pw: 14; --pr: 6; --pd: 8.2s; --pdl: -3.4s; --pdi: .18s; }
  .category-timeline .cat-prop--penb { --px: 113; --py: 43; --pw: 16; --pr: -32; --pd: 8.6s; --pdl: -2.4s; --pdi: .22s; }
  .category-timeline .cat-prop--lens { --px: 116; --py: 52; --pw: 11; --pr: 6; --pd: 6.8s; --pdl: -5.0s; --pdi: .26s; }
  .category-timeline .cat-prop--swatch { --px: 116; --py: 62; --pw: 17; --pr: -5; --pd: 7.8s; --pdl: -2.8s; --pdi: .30s; }
  .category-timeline .cat-prop--drive { --px: 111; --py: 72; --pw: 14; --pr: -3; --pd: 8.8s; --pdl: -4.2s; --pdi: .52s; }
  .category-timeline .cat-prop--penc { --px: 105; --py: 82; --pw: 8.5; --pr: 34; --pd: 7.6s; --pdl: -3.0s; --pdi: .48s; }
  .category-timeline .cat-prop--ruler { --px: 98; --py: 91; --pw: 9.5; --pr: 62; --pd: 7.4s; --pdl: -1.6s; --pdi: .38s; }
  .category-timeline .cat-prop--stylus { --px: 62; --py: 90; --pw: 8; --pr: -16; --prx: 46; --pd: 7.2s; --pdl: -3.8s; --pdi: .34s; }
  .category-timeline .cat-prop--pena { --px: 30; --py: 92; --pw: 17; --pr: 10; --prx: 46; --pd: 8.0s; --pdl: -4.6s; --pdi: .30s; }
}

@media (min-width: 1200px) {
  /* wider desktops let the arc breathe outward */
  .category-timeline .cat-prop--camera { --px: 105; --py: 11; --pw: 21; }
  .category-timeline .cat-prop--notebook { --px: 112; --py: 23; --pw: 17; }
  .category-timeline .cat-prop--clap { --px: 118; --py: 32; --pw: 17; }
  .category-timeline .cat-prop--penb { --px: 123; --py: 41; --pw: 19; }
  .category-timeline .cat-prop--lens { --px: 127; --py: 50; --pw: 13; }
  .category-timeline .cat-prop--swatch { --px: 127; --py: 60; --pw: 20; }
  .category-timeline .cat-prop--drive { --px: 123; --py: 70; --pw: 16; }
  .category-timeline .cat-prop--penc { --px: 117; --py: 80; --pw: 9.5; }
  .category-timeline .cat-prop--ruler { --px: 110; --py: 90; --pw: 10.5; }
}

@media (prefers-reduced-motion: reduce) {
  .category-timeline .cat-prop,
  .category-timeline .cat-prop img { animation: none; }
  .category-timeline .cat-prop img { opacity: 1; }
}

/* =====================================================================
   Hero capability rail — dynamic 3D workspace system
   Everything below is scoped to .category-timeline, so no other section can
   be touched by it. Every animated property is transform / opacity, or one
   SVG stroke offset on a 2-path overlay; nothing animates top/left/size.
   ===================================================================== */

/* off by default — switched on by the desktop blocks below */
.category-timeline { overflow-x: clip; }
.category-timeline .cat-stage {
  transition: opacity .78s cubic-bezier(.16, 1, .3, 1), transform .78s cubic-bezier(.16, 1, .3, 1);
}
.category-timeline.cat-exit .cat-stage {
  opacity: .7;
  transform: translate3d(0, -12px, 0);
}
.category-timeline + .services-section {
  padding-top: clamp(48px, 5vw, 72px);
}
.category-timeline .cat-screen,
.category-timeline .cat-ring-svg,
.category-timeline .cat-sweep,
.category-timeline .cat-fore,
.category-timeline .cat-tool-links { display: none; }

@media (min-width: 1025px) {
  /* ---------- 1. the whole composition answers the pointer ---------- */
  .category-timeline .cat-hero {
    perspective: 1500px;
    perspective-origin: 50% 44%;
  }
  .category-timeline .cat-role {
    transform:
      translateY(-50%)
      translate3d(calc(var(--pmx, 0) * -10px), calc(var(--pmy, 0) * -6px), 0)
      rotateX(calc(var(--pmy, 0) * -1.1deg))
      rotateY(calc(var(--pmx, 0) * 2deg));
    transition: transform .75s cubic-bezier(.16, 1, .3, 1);
  }
  .category-timeline .cat-role-img {
    animation: catSceneFloat 8.6s ease-in-out infinite;
  }
  .category-timeline .cat-tool-links {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .category-timeline .cat-tool-link {
    fill: none;
    stroke: rgba(155, 177, 232, .32);
    stroke-width: 1;
    stroke-dasharray: 2 11;
    stroke-linecap: round;
    animation: catToolLinkFlow 12s linear infinite;
  }
  .category-timeline .cat-tool-link--screen {
    stroke: rgba(188, 180, 234, .26);
    animation-duration: 15s;
  }
  @keyframes catToolLinkFlow { to { stroke-dashoffset: -52; } }
  .category-timeline .cat-grid {
    transform: translate3d(calc(var(--pmx, 0) * -12px), calc(var(--pmy, 0) * -7px), 0);
    transition: transform .8s cubic-bezier(.16, 1, .3, 1);
  }
  .category-timeline .cat-connect {
    transform: translate3d(calc(var(--pmx, 0) * -6px), calc(var(--pmy, 0) * -4px), 0);
    transition: transform .8s cubic-bezier(.16, 1, .3, 1);
  }
  @keyframes catSceneFloat {
    0%, 100% { translate: 0 0; }
    38% { translate: 0 -3px; }
    50% { translate: 0 -3.4px; }
    76% { translate: 0 -1px; }
  }

  /* ---------- 2. category nodes get their own drift, own rhythm ----------
     translate + rotate only, so the hover transform can still compose on top. */
  .category-timeline .cat-ico {
    animation: catNodeDrift var(--floatDur, 6.4s) ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.13s);
    transition: transform .4s linear;
    will-change: transform;
  }
  @keyframes catNodeDrift {
    0% { translate: 0 0; rotate: 0deg; }
    22% { translate: calc(var(--fdx, 0px) * .5) calc(var(--fl, -6px) * .5); rotate: calc(var(--frot, 0deg) * .7); }
    47% { translate: calc(var(--fdx, 0px) * -.4) calc(var(--fl, -6px) * .75); rotate: calc(var(--frot, 0deg) * -.5); }
    73% { translate: calc(var(--fdx, 0px) * .35) calc(var(--fl, -6px) * .2); rotate: calc(var(--frot, 0deg) * .6); }
    100% { translate: 0 0; rotate: 0deg; }
  }
  .category-timeline .cat-ico::before {
    inset: -18%;
    animation-duration: calc(var(--floatDur, 6.4s) * .78);
  }
  .category-timeline .cat-item:hover .cat-ico,
  .category-timeline .cat-item:focus-visible .cat-ico {
    transform: perspective(900px) translate3d(0, -6px, 26px) scale(1.08);
    transition: transform .4s linear;
  }
  .category-timeline .cat-item:hover .cat-ico-img,
  .category-timeline .cat-item:focus-visible .cat-ico-img {
    filter: brightness(calc(var(--bri, 1) + .1))
      drop-shadow(0 10px 16px rgba(124, 108, 240, .18))
      drop-shadow(0 0 18px rgba(158, 190, 255, .44));
  }

  /* ---------- 3. the rail itself: brighter, with a halo ---------- */
  .category-timeline .cat-band { opacity: .62; }
  .category-timeline .cat-band--halo { opacity: .2; }
  .category-timeline .cat-rail { stroke: rgba(150, 168, 234, .42); }
  .category-timeline .cat-rail--outer { stroke: rgba(182, 174, 246, .28); }

  /* ---------- 4. the energy core by the desk ---------- */
  .category-timeline .cat-core {
    width: 460px;
    height: 330px;
    margin: -165px 0 0 -230px;
    background:
      radial-gradient(ellipse 50% 44% at 48% 48%, rgba(200, 214, 255, .20), rgba(188, 180, 255, .085) 50%, transparent 76%),
      radial-gradient(ellipse 30% 26% at 40% 46%, rgba(255, 246, 230, .15), transparent 78%);
    filter: blur(14px);
    animation: catCoreBreath 7s ease-in-out infinite;
  }
  .category-timeline .cat-orbit-dot { width: 3.4px; height: 3.4px; }

  /* ---------- 5. the monitor comes alive ----------
     A soft, heavily feathered gloss over the screen plus an occasional scan
     bar. Nothing here is HUD-like: it is a gentle brightness breath. */
  .category-timeline .cat-screen {
    display: block;
    position: absolute;
    left: 33.2%;
    top: 21.4%;
    width: 42%;
    height: 28.3%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-12.7deg);
    opacity: .32;
    animation: catScreenBreath 9.5s ease-in-out infinite;
  }
  .category-timeline .cat-screen-glow {
    position: absolute;
    inset: -8%;
    display: block;
    background: radial-gradient(ellipse 60% 56% at 48% 52%, rgba(216, 234, 255, .62), rgba(186, 208, 255, .22) 52%, rgba(186, 208, 255, 0) 78%);
    filter: blur(9px);
  }
  .category-timeline .cat-screen-scan {
    position: absolute;
    left: 0;
    top: -8%;
    width: 20%;
    height: 116%;
    display: block;
    background: linear-gradient(90deg, rgba(232, 242, 255, 0) 0%, rgba(232, 242, 255, .66) 50%, rgba(232, 242, 255, 0) 100%);
    filter: blur(3px);
    opacity: 0;
    animation: catScreenScan 12s ease-in-out infinite;
  }
  @keyframes catScreenBreath {
    0%, 100% { opacity: .24; }
    40% { opacity: .46; }
    58% { opacity: .28; }
  }
  @keyframes catScreenScan {
    0%, 79% { opacity: 0; transform: translate3d(-120%, 0, 0); }
    81% { opacity: .45; }
    88% { opacity: .38; transform: translate3d(560%, 0, 0); }
    89%, 100% { opacity: 0; transform: translate3d(560%, 0, 0); }
  }

  /* ---------- 6. the pedestal runs: a light travelling the gold ring ---------- */
  .category-timeline .cat-ring-svg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
  }
  .category-timeline .cat-ring-base {
    fill: none;
    stroke: rgba(255, 233, 198, .16);
    stroke-width: .5;
  }
  .category-timeline .cat-ring-glow,
  .category-timeline .cat-ring-light {
    fill: none;
    stroke-linecap: round;
    animation: catRingFlow 11s linear infinite;
  }
  .category-timeline .cat-ring-glow {
    stroke: rgba(255, 216, 158, .30);
    stroke-width: 2.4;
    stroke-dasharray: 24 76;
  }
  .category-timeline .cat-ring-light {
    stroke: rgba(255, 244, 218, .82);
    stroke-width: .9;
    stroke-dasharray: 15 85;
  }
  @keyframes catRingFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100; }
  }

  /* ---------- 7. occasional light sweep + foreground depth ---------- */
  .category-timeline .cat-fx {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: visible;
  }
  .category-timeline .cat-sweep {
    display: block;
    position: absolute;
    left: -4%;
    top: 22%;
    width: 4%;
    height: 52%;
    background: linear-gradient(96deg,
      rgba(214, 226, 255, 0) 0%,
      rgba(214, 226, 255, .34) 38%,
      rgba(255, 255, 255, .56) 50%,
      rgba(226, 214, 255, .32) 62%,
      rgba(226, 214, 255, 0) 100%);
    filter: blur(7px);
    opacity: 0;
    animation: catSweepPass 17s cubic-bezier(.5, 0, .2, 1) infinite;
  }
  @keyframes catSweepPass {
    0%, 61% { opacity: 0; transform: translate3d(0, 0, 0) skewX(-12deg); }
    62% { opacity: .48; }
    67% { opacity: .36; transform: translate3d(2700%, 0, 0) skewX(-12deg); }
    68%, 100% { opacity: 0; transform: translate3d(2700%, 0, 0) skewX(-12deg); }
  }
  .category-timeline .cat-fore {
    display: block;
    position: absolute;
    border-radius: 50%;
  }
  .category-timeline .cat-fore--a {
    left: 46%;
    top: 84%;
    width: min(230px, 20%);
    height: 170px;
    background: radial-gradient(ellipse at 50% 50%, rgba(206, 222, 255, .40), rgba(206, 196, 255, .14) 52%, transparent 76%);
    animation: catForeBreath 9.5s ease-in-out infinite;
  }
  .category-timeline .cat-fore--b {
    left: 74%;
    top: 90%;
    width: min(300px, 24%);
    height: 200px;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 238, 218, .34), rgba(230, 216, 255, .13) 54%, transparent 78%);
    animation: catForeBreath 13s ease-in-out infinite reverse;
  }
  @keyframes catForeBreath {
    0%, 100% { opacity: .38; transform: scale(.94); }
    50% { opacity: .82; transform: scale(1.06); }
  }

  /* ---------- 8. the tool cloud: near / middle / far ---------- */
  .category-timeline .cat-prop {
    pointer-events: auto;
    cursor: default;
    transition: transform .42s linear, scale .42s linear, opacity .42s ease;
  }
  /* the drift animation owns `transform`, so the hover lift rides on the
     individual `scale` property instead — it composes instead of losing. */
  .category-timeline .cat-prop:hover,
  .category-timeline .cat-prop:focus-visible { scale: 1.07; }
  .category-timeline .cat-prop:hover img { filter: brightness(1.06) drop-shadow(0 18px 26px rgba(122, 130, 205, .2)) drop-shadow(0 0 14px rgba(176, 194, 255, .38)); }

  /* nearer tier — biggest, closest to the desk edge */
  .category-timeline .cat-prop--camera { --px: 116; --py: 10; --pw: 21; --pr: -8; --pd: 9.4s; --pdl: -2.1s; --pdi: .10s; --pfx: 5; --pfl: -12; --pfr: 1.3; }
  .category-timeline .cat-prop--clap { --px: 114; --py: 30; --pw: 19; --pr: 7; --pd: 8.2s; --pdl: -3.4s; --pdi: .18s; --pfx: -5; --pfl: -14; --pfr: -1.5; }
  /* middle tier */
  .category-timeline .cat-prop--lens { --px: 116; --py: 48; --pw: 15.5; --pr: 6; --pd: 6.8s; --pdl: -5.0s; --pdi: .26s; --pfx: 4; --pfl: -10; --pfr: 1.7; }
  .category-timeline .cat-prop--swatch { --px: 114; --py: 63; --pw: 17; --pr: -5; --pd: 7.8s; --pdl: -2.8s; --pdi: .30s; --pfx: -4; --pfl: -9; --pfr: -1.1; }
  .category-timeline .cat-prop--penb { --px: 115; --py: 79; --pw: 13.5; --pr: -32; --pd: 8.6s; --pdl: -2.4s; --pdi: .22s; --pfx: 5; --pfl: -11; --pfr: 1.4; }
  /* far tier — smaller, set back, hugging the right edge */
  .category-timeline .cat-prop--notebook { --px: 126; --py: 15; --pw: 12; --pr: -5; --pd: 9.0s; --pdl: -1.2s; --pdi: .34s; --pfx: -4; --pfl: -12; --pfr: -1.6; }
  .category-timeline .cat-prop--drive { --px: 124; --py: 38; --pw: 11; --pr: -4; --pd: 8.8s; --pdl: -4.2s; --pdi: .14s; --pfx: 4; --pfl: -10; --pfr: 1.2; }
  .category-timeline .cat-prop--penc { --px: 129; --py: 56; --pw: 7; --pr: 34; --pd: 7.6s; --pdl: -3.0s; --pdi: .20s; --pfx: -3; --pfl: -14; --pfr: -1.9; }
  .category-timeline .cat-prop--ruler { --px: 122; --py: 73; --pw: 8; --pr: 62; --pd: 7.4s; --pdl: -1.6s; --pdi: .38s; --pfx: 3; --pfl: -9; --pfr: 1.1; }
  .category-timeline .cat-prop--stylus { --px: 127; --py: 88; --pw: 7; --pr: -16; --prx: 46; --pd: 7.2s; --pdl: -3.8s; --pdi: .34s; --pfx: -2; --pfl: -13; --pfr: -1.4; }
  .category-timeline .cat-prop--pena { --px: 118; --py: 93; --pw: 10; --pr: 10; --prx: 46; --pd: 8.0s; --pdl: -4.6s; --pdi: .30s; --pfx: 4; --pfl: -8; --pfr: 1.6; }

  /* ---------- 10. lift: the props are pale renders, so they need a real
     cast shadow to separate from the near-white background. ---------- */
  .category-timeline .cat-prop img {
    filter:
      drop-shadow(0 20px 24px rgba(101, 110, 172, .30))
      drop-shadow(0 7px 12px rgba(101, 110, 172, .22))
      drop-shadow(0 0 14px rgba(176, 194, 255, .32))
      saturate(1.08) contrast(1.05);
  }
  .category-timeline .cat-prop--back img {
    filter:
      drop-shadow(0 15px 20px rgba(101, 110, 172, .24))
      drop-shadow(0 5px 10px rgba(101, 110, 172, .18))
      drop-shadow(0 0 11px rgba(176, 194, 255, .26))
      saturate(1.06) contrast(1.04);
  }
  .category-timeline .cat-prop:hover img,
  .category-timeline .cat-prop:focus-visible img {
    filter:
      drop-shadow(0 24px 28px rgba(101, 110, 172, .34))
      drop-shadow(0 8px 14px rgba(101, 110, 172, .26))
      drop-shadow(0 0 20px rgba(176, 194, 255, .48))
      brightness(1.05) saturate(1.1) contrast(1.06);
  }
  /* the pastel node icons get the same lift so they sit on the background */
  .category-timeline .cat-ico-img {
    filter:
      brightness(var(--bri, 1))
      drop-shadow(0 11px 16px rgba(101, 110, 172, .22))
      drop-shadow(0 3px 7px rgba(101, 110, 172, .18))
      drop-shadow(0 0 12px rgba(176, 194, 255, .30))
      saturate(1.06);
  }
}

@media (min-width: 1200px) {
  /* wider desktops: the cloud relaxes outward and the tiers separate further */
  .category-timeline .cat-prop--camera { --px: 118; --py: 10; --pw: 22; }
  .category-timeline .cat-prop--clap { --px: 116; --py: 30; --pw: 20; }
  .category-timeline .cat-prop--lens { --px: 119; --py: 48; --pw: 16; }
  .category-timeline .cat-prop--swatch { --px: 117; --py: 63; --pw: 18; }
  .category-timeline .cat-prop--penb { --px: 118; --py: 79; --pw: 14; }
  .category-timeline .cat-prop--notebook { --px: 135; --py: 14; --pw: 12; }
  .category-timeline .cat-prop--drive { --px: 133; --py: 38; --pw: 11; }
  .category-timeline .cat-prop--penc { --px: 137; --py: 56; --pw: 7.5; }
  .category-timeline .cat-prop--ruler { --px: 130; --py: 73; --pw: 9; }
  .category-timeline .cat-prop--stylus { --px: 134; --py: 88; --pw: 8; }
  .category-timeline .cat-prop--pena { --px: 124; --py: 93; --pw: 11; }
}

/* the drift gets a touch of rotation so the tools never move as one block */
@keyframes catToolDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(calc(var(--pfx, 4) * .55px), calc(var(--pfl, -11) * .3px), 0) rotate(calc(var(--pfr, 1.4) * .7deg)); }
  68% { transform: translate3d(calc(var(--pfx, 4) * -.4px), calc(var(--pfl, -11) * .17px), 0) rotate(calc(var(--pfr, 1.4) * -.5deg)); }
}

/* Background tiers rest between occasional passes, leaving the person in charge. */
@media (min-width: 1025px) {
  .category-timeline .cat-prop--notebook,
  .category-timeline .cat-prop--drive,
  .category-timeline .cat-prop--penc,
  .category-timeline .cat-prop--ruler { animation: none; }
}

/* Pause every nonessential loop when this section is offscreen or the tab is hidden. */
.category-timeline:not(.cat-live) :is(
  .cat-role-img, .cat-role-glow, .cat-ico,
  .cat-band, .cat-particle, .cat-orbit-dot, .cat-core,
  .cat-screen, .cat-screen-scan, .cat-ring-glow, .cat-ring-light,
  .cat-sweep, .cat-fore, .cat-prop, .cat-prop img, .cat-tool-link
) { animation-play-state: paused !important; }
.category-timeline:not(.cat-live) .cat-ico::before { animation-play-state: paused !important; }

/* ---------- 9. quieter layouts ---------- */
@media (max-width: 1024px) {
  .category-timeline .cat-prop { pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .category-timeline .cat-stage { transition: none; }
  .category-timeline.cat-exit .cat-stage { opacity: 1; transform: none; }
  .category-timeline {
    --pmx: 0;
    --pmy: 0;
  }
  .category-timeline .cat-screen,
  .category-timeline .cat-ring-svg,
  .category-timeline .cat-fore { animation: none; }
  .category-timeline .cat-fore { opacity: .5; }
  .category-timeline .cat-prop { transition: none; }
  .category-timeline .cat-screen { opacity: .3; }
  .category-timeline .cat-screen-scan { display: none; }
  .category-timeline .cat-sweep { display: none; }
  .category-timeline .cat-role,
  .category-timeline .cat-grid,
  .category-timeline .cat-connect,
  .category-timeline .cat-role-img,
  .category-timeline .cat-ico { transition: none; }
  .category-timeline .cat-role-img,
  .category-timeline .cat-ico { animation: none; }
  .category-timeline .cat-ring-glow,
  .category-timeline .cat-ring-light,
  .category-timeline .cat-tool-link { animation: none; }
  .category-timeline .cat-sweep { animation: none; opacity: 0; }
}

/* Final material precedence: this file contains earlier experiments, so the
   approved studio treatment intentionally lives last and only wins on key UI. */
body[data-page] .center-screen {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(224,229,255,.67) 58%, rgba(246,231,255,.70));
  border-color: var(--liquid-stroke);
  box-shadow: 0 0 0 1px rgba(255,255,255,.54), var(--liquid-shadow), 0 0 48px rgba(154, 187, 255, .24), inset 0 1px 0 #fff;
}

body[data-page] :is(.service-card, .cta-card, .contact-modal-card, .software-card, .filter-chip) {
  border-color: rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 12px 30px rgba(89, 101, 162, .07);
}

body[data-page] :is(.service-card, .cta-card):hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), var(--liquid-shadow);
}

body[data-page] .hero .video-zone::before {
  background: radial-gradient(ellipse, rgba(154, 178, 255, .24), rgba(193, 168, 255, .13) 48%, transparent 72%);
}

/* Water-bubble treatment: preserve the existing category artwork, but make
   each icon read as a refractive object rather than a flat glass chip. */
:root {
  --bubble-rim: rgba(239, 249, 255, .94);
  --bubble-blue: rgba(126, 190, 255, .28);
  --bubble-lilac: rgba(210, 177, 255, .24);
}

body[data-page="home"] .hero-top::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(70vw, 1050px);
  height: clamp(90px, 12vw, 180px);
  top: clamp(8px, 5vw, 90px);
  left: clamp(-260px, -17vw, -80px);
  border-radius: 50%;
  background: linear-gradient(108deg, transparent 16%, rgba(194, 235, 255, .10) 32%, rgba(255,255,255,.70) 44%, rgba(173, 209, 255, .30) 51%, rgba(239, 196, 255, .18) 59%, transparent 77%);
  filter: blur(2px) saturate(1.22);
  opacity: .76;
  transform: rotate(10deg);
}

body[data-page="home"] .category-timeline .cat-ico {
  overflow: visible;
  isolation: isolate;
  border: 1px solid var(--bubble-rim);
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.88) 0 3%, transparent 14%),
    radial-gradient(circle at 68% 76%, rgba(172, 210, 255, .27), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.57), rgba(219,235,255,.28) 55%, rgba(233,213,255,.26));
  box-shadow:
    0 16px 34px rgba(79, 113, 180, .16),
    0 4px 10px rgba(120, 96, 174, .09),
    inset 2px 2px 3px rgba(255,255,255,.86),
    inset -5px -7px 14px rgba(122, 179, 255, .14);
  -webkit-backdrop-filter: blur(10px) saturate(132%);
  backdrop-filter: blur(10px) saturate(132%);
}

body[data-page="home"] .category-timeline .cat-ico::before {
  z-index: 1;
  inset: 2px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 32% 19%, rgba(255,255,255,.92) 0 7%, rgba(255,255,255,.26) 14%, transparent 32%);
  opacity: .92;
  animation: none;
}

body[data-page="home"] .category-timeline .cat-ico::after {
  display: block !important;
  z-index: 4;
  inset: -2px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255,255,255,.96), var(--bubble-blue) 34%, transparent 54%, var(--bubble-lilac) 74%, rgba(255,255,255,.85));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .92;
  animation: none;
}

body[data-page="home"] .category-timeline .cat-ico-img {
  position: relative;
  z-index: 3;
  filter: brightness(var(--bri, 1.02)) saturate(1.12) drop-shadow(0 8px 11px rgba(66, 91, 146, .20));
}

body[data-page="home"] .category-timeline .cat-item:hover .cat-ico,
body[data-page="home"] .category-timeline .cat-item:focus-visible .cat-ico {
  box-shadow: 0 21px 42px rgba(77, 112, 184, .23), 0 0 20px rgba(183, 218, 255, .38), inset 2px 2px 3px rgba(255,255,255,.94), inset -5px -7px 14px rgba(122, 179, 255, .18);
}

@media (max-width: 640px) {
  body[data-page="home"] .hero-top::after { opacity: .38; top: 2.5rem; left: -45vw; }
  body[data-page="home"] .category-timeline .cat-ico {
    box-shadow: 0 10px 22px rgba(79, 113, 180, .13), inset 1px 1px 2px rgba(255,255,255,.82), inset -3px -4px 9px rgba(122, 179, 255, .12);
  }
}

/* Footer social icons: compact visual links replace the old text list. */
footer .social-links {
  gap: 10px;
  align-items: center;
}

footer .social-link {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(255,255,255,.38);
  color: #273047;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 7px 18px rgba(76,93,151,.09);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  transition: transform .28s var(--ease), box-shadow .28s ease, background .28s ease, color .28s ease;
}

footer .social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer .social-link--xiaohongshu { color: #ef3340; }
footer .social-link--douyin { color: #1d2434; }
footer .social-link--bilibili { color: #fb7299; }

footer .social-link:hover,
footer .social-link:focus-visible {
  transform: translateY(-4px) scale(1.06);
  background: rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 14px 26px rgba(75,91,155,.18), 0 0 0 4px rgba(194,218,255,.22);
  outline: none;
}

footer .social-link::after {
  content: attr(data-label);
  position: absolute;
  right: 50%;
  bottom: calc(100% + 9px);
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 7px;
  background: rgba(35,42,65,.82);
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition: opacity .2s ease, transform .2s ease;
}

footer .social-link:hover::after,
footer .social-link:focus-visible::after { opacity: 1; transform: translate(50%, 0); }

@media (max-width: 640px) {
  footer .social-link { width: 35px; height: 35px; }
  footer .social-link svg { width: 18px; height: 18px; }
}

/* Brand-scale footer marks: tuned to the recognisable app marks, not generic symbols. */
footer .social-links { gap: 14px; }
footer .social-link {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}
footer .social-link svg { width: 34px; height: 34px; stroke-width: 2.25; }
footer .social-link--xiaohongshu {
  border-color: rgba(255,255,255,.72);
  background: #ff2442;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 11px 22px rgba(255,36,66,.24);
}
footer .xhs-mark {
  display: block;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.14em;
  transform: translateX(-1px) scaleX(1.04);
}
footer .social-link--douyin { color: #10121a; }
footer .social-link--douyin svg {
  filter: drop-shadow(-1.6px 1.2px 0 #25f4ee) drop-shadow(1.6px -1.2px 0 #fe2c55);
}
footer .social-link--bilibili { color: #fb7299; }
footer .social-link:hover,
footer .social-link:focus-visible { transform: translateY(-5px) scale(1.07); }
@media (max-width: 640px) {
  footer .social-links { gap: 10px; }
  footer .social-link { width: 48px; height: 48px; border-radius: 15px; }
  footer .social-link svg { width: 29px; height: 29px; }
  footer .xhs-mark { font-size: 13px; }
}

/* Desktop scale guard: keep the workstation composed within the viewport. */
@media (min-width: 1025px) {
  .category-timeline .cat-stage {
    height: clamp(560px, calc(100dvh - 160px), 640px);
  }
  .category-timeline .cat-role {
    left: 34%;
    top: 51%;
    width: clamp(380px, 33vw, 470px);
    height: auto;
  }
  .category-timeline .cat-role-img {
    width: 100%;
    height: auto;
  }
  .category-timeline.cat-exit .cat-stage {
    opacity: 1;
    transform: none;
  }
}

/* ===== Video modal layout guard: isolate player from homepage stage styles ===== */
.video-modal {
  z-index: 3100;
  padding: 24px;
}
.video-modal-panel {
  position: relative;
  width: min(1180px, calc(100vw - 48px));
  height: min(664px, calc(100dvh - 48px), calc(56.25vw - 27px));
  aspect-ratio: 16 / 9;
  margin: 0;
  display: block;
  overflow: hidden;
  background: #0b0d12;
}
.video-modal .video-stage {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  transform: none;
  border-radius: inherit;
  overflow: hidden;
}
.video-modal .video-modal-player {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #000;
}
.video-modal .video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
}
@media (max-width: 640px) {
  .video-modal {
    padding: 12px;
  }
  .video-modal-panel {
    width: calc(100vw - 24px);
    height: min(calc(100dvh - 24px), calc(56.25vw - 13.5px));
    border-radius: 16px;
  }
}

/* ===== Shared-element spring transitions ===== */
body.zoom-view-open {
  overflow: hidden;
}

.zoom-transition-active.open {
  display: flex;
}

.lightbox.zoom-transition-active.open {
  display: block;
}

.zoom-transition-active.open :is(.modal-panel, .video-modal-panel, .contact-modal-card),
.zoom-transition-active.open > :is(.modal-backdrop, .video-modal-backdrop, .contact-modal-backdrop),
.lightbox.zoom-transition-active.open :is(.lightbox-panel, .lightbox-backdrop) {
  animation: none !important;
}

.zoom-transition-active :is(.modal-panel, .lightbox-panel, .video-modal-panel, .contact-modal-card) {
  transform-origin: 0 0;
  backface-visibility: hidden;
  contain: paint;
  will-change: transform, border-radius;
  transition: none !important;
}

.zoom-transition-active > :is(.modal-backdrop, .lightbox-backdrop, .video-modal-backdrop, .contact-modal-backdrop) {
  will-change: opacity;
}

.zoom-transition-active:not(.zoom-settled) > :is(.modal-backdrop, .lightbox-backdrop, .video-modal-backdrop) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.zoom-transition-active :is(
  .modal-panel > .modal-close,
  .modal-panel > .modal-scroll,
  .modal-panel > .modal-toolbar,
  .modal-panel > .zoom-pull-handle,
  .lightbox-panel > .lightbox-close,
  .lightbox-panel > .lightbox-arrow,
  .lightbox-panel > .lightbox-canvas,
  .lightbox-panel > .lightbox-thumbs,
  .lightbox-panel > .zoom-pull-handle,
  .video-modal-panel > .video-modal-close,
  .video-modal-panel > .video-stage,
  .video-modal-panel > .zoom-pull-handle,
  .contact-modal-card > *
) {
  opacity: var(--zoom-content-opacity, 1) !important;
}

.zoom-transition-active .lightbox-arrow.disabled {
  opacity: calc(var(--zoom-content-opacity, 1) * .35) !important;
}

.zoom-dragging :is(.modal-panel, .lightbox-panel, .video-modal-panel, .contact-modal-card) {
  user-select: none;
  cursor: grabbing;
}

.zoom-pull-handle {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 8;
  width: 46px;
  height: 18px;
  transform: translateX(-50%);
  cursor: grab;
  touch-action: none;
}

.zoom-pull-handle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(116, 122, 142, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}

.video-modal-panel .zoom-pull-handle::after,
.lightbox-panel .zoom-pull-handle::after {
  background: rgba(255, 255, 255, .46);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .22);
}

/* ===== Interaction performance pass =====
   Keep navigation and modal motion on compositor-only properties. */
@media (min-width: 901px) and (pointer: fine) {
  html,
  body,
  body[data-page] *,
  body[data-page="home"] *,
  a,
  button,
  .interactive {
    cursor: auto !important;
  }

  a,
  button,
  [role="button"],
  .interactive,
  .gallery-card,
  .video-card,
  .cat-item,
  .center-screen {
    cursor: pointer !important;
  }
}

.glow-cursor-canvas,
.flame-cursor,
.cursor-dot,
.cursor-ring {
  display: none !important;
}

.site-nav.liquid-nav::before {
  background: linear-gradient(105deg, rgba(250,252,255,.88), rgba(246,247,255,.82) 55%, rgba(255,250,245,.86));
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.site-nav.liquid-nav .nav-pills,
.site-nav.scrolled,
.site-nav.dark.scrolled {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.site-nav.liquid-nav .nav-pills {
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(242,246,255,.76));
}

.site-nav .nav-pills .nav-indicator {
  will-change: transform;
  transition: transform 260ms cubic-bezier(.2,.78,.2,1) !important;
}

.nav-pills a {
  transition: color 160ms ease !important;
}

.zoom-transition-active:not(.zoom-settled) :is(.modal-panel, .lightbox-panel, .video-modal-panel) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 18px 48px rgba(30, 38, 70, .16) !important;
}

/* The gallery shell animates alone. Its image-heavy scroll tree is restored
   after the spring settles, avoiding large-image paint on every scale frame. */
.modal.zoom-transition-active:not(.zoom-settled) .modal-scroll {
  content-visibility: hidden;
}

.modal.modal-hydrating .modal-scroll {
  content-visibility: hidden;
}

.modal.zoom-transition-active .modal-scroll {
  opacity: 0 !important;
  transition: opacity 240ms cubic-bezier(.22,.72,.22,1) !important;
}

.modal.zoom-settled.modal-content-visible .modal-scroll {
  opacity: 1 !important;
}

.modal.zoom-settled.modal-content-leaving .modal-scroll {
  opacity: 0 !important;
  transition-duration: 180ms !important;
}

.modal-page.details-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

body.zoom-motion-running .bg-blob,
body.zoom-motion-running .flow-card::before,
body.zoom-motion-running .flow-card::after,
body.zoom-motion-running .side-ico {
  animation-play-state: paused !important;
}

/* Gallery cards keep the translucent look without sampling and blurring the
   full page behind every card. This removes a large GPU cost at click time. */
.gallery-card.flow-card,
.gallery-card {
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(239,244,255,.72)) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.gallery-card.zoom-origin,
.gallery-card.zoom-origin:hover {
  transform: translateY(-8px) !important;
  transition: none !important;
}

.modal.zoom-transition-active:not(.zoom-settled) .modal-panel {
  will-change: transform;
}

/* Continuous shell blending and undistorted content throughout the spring. */
.modal.zoom-transition-active.open .modal-scroll{transform:scale(var(--zoom-content-x,1),var(--zoom-content-y,1))!important;transform-origin:center;will-change:transform,opacity}.modal.zoom-transition-active.open .modal-panel{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 18px 48px rgba(30,38,70,.16)!important}

/* Keep document width and the origin card stable when locking/unlocking scroll. */
html{scrollbar-gutter:stable}.gallery-card.zoom-origin,.gallery-card.zoom-origin:hover{transform:var(--zoom-origin-transform,none)!important;transition:none!important}

/* Blend one stable blur layer using the spring-driven backdrop opacity. */
.modal.zoom-transition-active.open>.modal-backdrop{-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;animation:none!important;transition:none!important;will-change:opacity}

.modal .modal-panel:focus{outline:none!important}.modal .modal-close:focus:not(:focus-visible){outline:none}

/* Content follows spring progress; controls retain circular proportions. */
.modal.zoom-transition-active .modal-scroll,.modal.zoom-transition-active:is(.modal-hydrating,.modal-content-visible,.modal-content-leaving,.zoom-settled) .modal-scroll{content-visibility:visible!important;opacity:var(--zoom-content-opacity,1)!important;transition:none!important;will-change:opacity}.modal.zoom-transition-active .modal-panel>.modal-close{transform:scale(var(--zoom-inverse-x,1),var(--zoom-inverse-y,1))!important;transform-origin:center;transition:none!important}

/* Gallery title hierarchy only; preserve the existing cover layout. */
.gallery-card .gallery-name{white-space:normal;overflow:visible;line-height:1.5}.gallery-card .gallery-name>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-card .gallery-name .project-flavor{font-size:11px!important;line-height:1.5!important;margin-top:4px!important;letter-spacing:0!important;color:#667b91}.gallery-card .gallery-meta{margin-top:8px}@media(max-width:640px){.gallery-card .gallery-name .project-flavor{font-size:10px!important}}

.video-grid{align-items:stretch}.video-card-footer{display:grid;flex:1;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;align-items:end;column-gap:10px;row-gap:4px;min-height:68px;padding:1px 8px 8px}.video-card-footer .video-info{display:contents}.video-card-footer .video-name{grid-column:1/-1;grid-row:1;display:block;min-width:0;font-size:14px;line-height:1.5;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-card-footer .video-meta{grid-column:1;grid-row:2;margin:0}.video-card-footer .project-flavor{font-size:11px!important;line-height:1.4!important;margin-top:2px!important;letter-spacing:0!important}.video-annotation{grid-column:2;grid-row:2;align-self:end;justify-self:end;margin-top:0;max-width:100%;min-height:0;box-sizing:border-box;padding:0;border:0;border-radius:0;background:none;color:#667b91;font-size:10px;font-weight:400;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere;pointer-events:none;text-align:right}@media(max-width:600px){.video-annotation{font-size:9px;padding:0}}
