:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --panel: rgba(255, 255, 255, 0.055);
  --text: #f6f1e8;
  --muted: #c9c1b4;
  --subtle: #8f887e;
  --gold: #c9a66b;
  --gold-light: #e0c08a;
  --blue: #5e9fd8;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 78% 10%, rgba(201, 166, 107, 0.12), transparent 30%),
    radial-gradient(circle at 16% 34%, rgba(94, 159, 216, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 58%, #050505);
}

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

img,
video {
  display: block;
  width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(224, 192, 138, 0.72);
  outline-offset: 3px;
}

.case-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(16px);
}

.case-brand {
  font-size: 17px;
  font-weight: 900;
}

.case-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.case-nav a:hover,
.case-nav a.is-active {
  color: var(--gold-light);
}

.case-hero,
.case-section,
.case-footer-nav {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding-right: clamp(20px, 5vw, 72px);
  padding-left: clamp(20px, 5vw, 72px);
}

.case-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding-top: 66px;
  padding-bottom: 72px;
  overflow: hidden;
  isolation: isolate;
}

.grid-scan-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.44;
  mix-blend-mode: screen;
  pointer-events: none;
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 34%, rgba(94, 159, 216, 0.16), transparent 30%),
    radial-gradient(circle at 26% 52%, rgba(201, 166, 107, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.66), rgba(5, 5, 5, 0.18) 52%, rgba(5, 5, 5, 0.52));
}

.case-hero > *:not(.grid-scan-bg) {
  position: relative;
  z-index: 1;
}

.case-hero-copy {
  min-width: 0;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin: 10px 0 18px;
  color: #fffaf0;
  font-size: clamp(48px, 5.2vw, 86px);
  line-height: 1.08;
}

.case-hero h1,
.case-title {
  max-width: 1040px;
  margin: 10px 0 18px;
  color: #fffaf0;
  font-size: clamp(48px, 5.2vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.case-title span {
  display: block;
}

@media (min-width: 921px) {
  .case-title span:first-child {
    white-space: nowrap;
  }
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.16;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.32;
}

.case-subtitle {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 800;
}

.case-intro,
.case-section-heading p,
.visual-note {
  max-width: 860px;
  color: var(--muted);
  font-size: 16px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}

.case-tags span {
  padding: 8px 12px;
  color: var(--text);
  border: 1px solid rgba(201, 166, 107, 0.28);
  border-radius: 999px;
  background: rgba(201, 166, 107, 0.07);
  font-size: 13px;
  font-weight: 700;
}

.case-meta {
  display: grid;
  gap: 12px;
  max-width: 850px;
}

.case-meta div {
  padding: 16px;
  border: 1px solid rgba(201, 166, 107, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.case-meta span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.case-meta strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.case-hero-visual {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 360px;
}

.hero-cover,
.visual-panel,
.deck-frame,
.qr-card,
.phone-shot,
.app-fallback {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 166, 107, 0.28);
  background:
    linear-gradient(rgba(201, 166, 107, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 166, 107, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(94, 159, 216, 0.15), transparent 30%),
    linear-gradient(135deg, rgba(201, 166, 107, 0.11), rgba(12, 12, 12, 0.96));
  background-size: 18px 18px, 18px 18px, auto, auto;
  box-shadow: var(--shadow);
}

.hero-cover {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
}

.app-stack {
  position: absolute;
  right: 22px;
  bottom: -38px;
  display: flex;
  align-items: flex-end;
}

.phone-shot {
  width: clamp(132px, 12vw, 184px);
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.48);
}

.phone-shot:nth-child(2) {
  transform: translateY(22px);
}

.image-slot img,
.image-slot video,
.image-slot iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px;
  color: var(--text);
  text-align: center;
}

.image-slot span strong,
.image-slot span small {
  display: block;
}

.image-slot span small {
  color: var(--muted);
}

.image-slot.is-missing img,
.image-slot.is-missing video {
  display: none;
}

.image-slot img[hidden],
.image-slot video[hidden] {
  display: none;
}

.case-section {
  padding-top: 82px;
  padding-bottom: 82px;
  border-top: 1px solid rgba(201, 166, 107, 0.12);
  scroll-margin-top: 86px;
}

.case-section-heading {
  position: relative;
  max-width: 860px;
  margin-bottom: 30px;
  padding-left: 18px;
}

.case-section-heading::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 3px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light), rgba(201, 166, 107, 0.08));
}

.case-section-heading h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.work-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.work-card,
.asset-card,
.deck-caption,
.prototype-copy article,
.material-panel {
  border: 1px solid rgba(201, 166, 107, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.022)),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.work-card,
.asset-card {
  padding: 18px;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease);
}

.work-card:hover,
.asset-card:hover,
.prototype-copy article:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 192, 138, 0.48);
}

.work-card span,
.asset-card span,
.prototype-copy span {
  color: var(--gold-light);
  font-weight: 900;
}

.work-card p,
.asset-card p,
.prototype-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.visual-panel {
  width: min(100%, 1080px);
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 18px;
}

.prototype-visual-wrap {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.prototype-composite {
  max-width: 100%;
}

.prototype-hotspot {
  position: absolute;
  z-index: 5;
  left: 37.25%;
  top: 88.7%;
  width: 56.1%;
  height: 7.2%;
  border-radius: 999px;
  background: rgba(224, 192, 138, 0);
  outline: 1px solid transparent;
  transition:
    background 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    outline-color 0.28s var(--ease);
}

.prototype-hotspot:hover,
.prototype-hotspot:focus-visible {
  background: rgba(224, 192, 138, 0.08);
  outline-color: rgba(224, 192, 138, 0.62);
  box-shadow: 0 0 24px rgba(201, 166, 107, 0.18);
}

.prototype-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(224, 192, 138, 0.5);
  border-radius: 999px;
  color: #f7e2b5;
  background:
    linear-gradient(135deg, rgba(224, 192, 138, 0.18), rgba(22, 30, 54, 0.58)),
    rgba(10, 15, 28, 0.74);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.prototype-open-link:hover,
.prototype-open-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 213, 154, 0.84);
  box-shadow: 0 20px 54px rgba(201, 166, 107, 0.2);
}

.visual-note {
  margin: 16px 0 0;
}

.problem-insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.86fr);
  gap: 22px;
  align-items: stretch;
}

.problem-insight-layout .visual-panel {
  width: 100%;
}

.problem-visual img {
  object-fit: contain;
  background: #050505;
}

.problem-insight-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(201, 166, 107, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.022)),
    rgba(0, 0, 0, 0.2);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.problem-insight-card h3 {
  margin-bottom: 4px;
}

.problem-insight-card article {
  display: grid;
  gap: 4px;
  padding-top: 13px;
  border-top: 1px solid rgba(201, 166, 107, 0.12);
}

.problem-insight-card span {
  color: var(--gold-light);
  font-weight: 900;
}

.problem-insight-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.value-proof-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
}

.value-proof-flow span {
  white-space: nowrap;
}

.value-proof-flow i {
  flex: 1 1 auto;
  height: 1px;
  min-width: 34px;
  background: linear-gradient(90deg, rgba(224, 192, 138, 0.7), rgba(201, 166, 107, 0.08));
}

.value-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.value-proof-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 166, 107, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.22);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.value-proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 192, 138, 0.46);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36);
}

.value-proof-head {
  display: grid;
  gap: 5px;
  padding: 18px 18px 0;
}

.value-proof-head span {
  color: var(--gold-light);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.value-proof-head em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.value-proof-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.28;
}

.value-proof-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  margin: auto 0 0;
  overflow: hidden;
  border-top: 1px solid rgba(201, 166, 107, 0.22);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(rgba(201, 166, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 166, 107, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 22% 16%, rgba(224, 192, 138, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(201, 166, 107, 0.1), rgba(10, 10, 10, 0.94));
  background-size: 18px 18px, 18px 18px, auto, auto;
}

.value-proof-media img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.value-proof-media.is-missing img {
  display: none;
}

.value-proof-media span {
  position: relative;
  z-index: 1;
}

.value-proof-card > p {
  margin: 0;
  padding: 12px 18px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.deck-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  margin-top: 28px;
}

.deck-browser-light {
  margin-top: 0;
}

.deck-main {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.deck-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 18px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.deck-frame > span {
  display: none;
}

.deck-frame.is-ready {
  border-color: rgba(224, 192, 138, 0.6);
}

.deck-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold-light);
  border: 1px solid rgba(201, 166, 107, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.deck-arrow:hover,
.deck-arrow:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(224, 192, 138, 0.72);
  background: rgba(201, 166, 107, 0.08);
}

.deck-caption {
  position: sticky;
  top: 96px;
  padding: 24px;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.deck-caption.is-switching {
  opacity: 0.45;
  transform: translateY(6px);
}

.deck-caption .caption-index {
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deck-caption p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.landing-cards {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.landing-cards span {
  padding: 10px 12px;
  border: 1px solid rgba(201, 166, 107, 0.18);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.deck-thumbs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.deck-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(201, 166, 107, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.deck-thumb img,
.deck-thumb video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
}

.deck-thumb.is-missing img,
.deck-thumb.is-missing video {
  opacity: 0;
}

.deck-thumb.is-missing::after {
  content: "待替换";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.deck-thumb.is-active {
  border-color: rgba(224, 192, 138, 0.76);
}

.deck-thumb.is-active img {
  opacity: 1;
}

.deck-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.prototype-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(201, 166, 107, 0.34);
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.phone-frame iframe,
.app-fallback {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 28px;
  background: #080808;
}

.app-fallback {
  display: none;
}

.phone-frame.is-missing iframe {
  display: none;
}

.phone-frame.is-missing .app-fallback {
  display: block;
}

.prototype-copy {
  display: grid;
  gap: 14px;
}

.prototype-copy article {
  padding: 18px;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease);
}

.materials-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-top: 22px;
}

.material-panel {
  padding: 24px;
}

.material-panel p {
  color: var(--muted);
}

.video-qr-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 16px;
  align-items: center;
}

.qr-card {
  display: block;
  width: min(164px, 34vw);
  aspect-ratio: 1;
  border-radius: 14px;
  box-shadow: none;
}

.qr-hint {
  grid-column: 1 / -1;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 900;
}

.qr-hint:hover,
.qr-hint:focus-visible {
  color: var(--text);
}

.materials-visual {
  width: min(100%, 1080px);
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(201, 166, 107, 0.24);
  box-shadow: 0 26px 86px rgba(0, 0, 0, 0.42);
}

.materials-visual > img {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  background: #050505;
}

.materials-video-qr {
  position: absolute;
  z-index: 5;
  left: 68.46%;
  top: 54.54%;
  width: 7.14%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 2px rgba(201, 166, 107, 0.42),
    0 16px 34px rgba(0, 0, 0, 0.36);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.materials-video-qr:hover,
.materials-video-qr:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 0 3px rgba(224, 192, 138, 0.72),
    0 20px 42px rgba(0, 0, 0, 0.44);
}

.materials-video-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 36px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(201, 166, 107, 0.14);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 900;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #070707;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(201, 166, 107, 0.36);
  background: rgba(255, 255, 255, 0.035);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #080808;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (max-width: 1080px) {
  .case-hero,
  .prototype-layout,
  .materials-split,
  .problem-insight-layout {
    grid-template-columns: 1fr;
  }

  .case-hero-visual {
    width: min(100%, 680px);
  }

  .work-grid,
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deck-browser {
    grid-template-columns: 1fr;
  }

  .deck-caption {
    position: static;
  }

  .value-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .case-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .case-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .case-hero {
    padding-top: 42px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .case-hero h1,
  .case-title {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -0.02em;
  }

  .case-title span {
    white-space: normal;
  }

  .case-tags span {
    padding: 7px 10px;
    font-size: 12px;
  }

  .app-stack {
    display: none;
  }

  .phone-shot:nth-child(2) {
    transform: none;
  }

  .phone-shot {
    width: min(58vw, 180px);
  }

  .prototype-hotspot {
    left: 37.25%;
    top: 88.7%;
    width: 56.1%;
    height: 7.2%;
  }

  .case-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .work-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .value-proof-flow {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-left: 14px;
    border-left: 1px solid rgba(201, 166, 107, 0.24);
  }

  .value-proof-flow i {
    display: none;
  }

  .value-proof-grid {
    grid-template-columns: 1fr;
  }

  .value-proof-head {
    padding: 16px 16px 0;
  }

  .value-proof-card {
    min-height: auto;
  }

  .value-proof-media {
    width: 100%;
    margin: auto 0 0;
  }

  .value-proof-card > p {
    padding: 12px 16px 16px;
  }

  .deck-main {
    grid-template-columns: 1fr;
  }

  .deck-arrow {
    width: 100%;
  }

  .deck-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-qr-panel {
    grid-template-columns: 1fr;
  }

  .qr-card {
    width: min(172px, 48vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}


/* Selective black-gold edge glow. Used only on key portfolio/case surfaces. */
.border-glow-card {
  --glow-x: 50%;
  --glow-y: 50%;
  --edge-opacity: 0;
  --border-glow-alpha: 0.52;
  position: relative;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
}

.border-glow-card::before,
.border-glow-card::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.28s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.border-glow-card::before {
  inset: -1px;
  z-index: 5;
  padding: 1px;
  background:
    radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(224, 192, 138, 0.98), transparent 22%),
    radial-gradient(circle at calc(100% - var(--glow-x)) calc(100% - var(--glow-y)), rgba(141, 106, 53, 0.48), transparent 32%),
    linear-gradient(135deg, rgba(224, 192, 138, 0.42), rgba(201, 166, 107, 0.08));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: calc(var(--edge-opacity) * var(--border-glow-alpha));
}

.border-glow-card::after {
  inset: -14px;
  z-index: -1;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(224, 192, 138, 0.18), transparent 38%);
  filter: blur(4px);
  opacity: calc(var(--edge-opacity) * 0.55);
}

.border-glow-card.border-glow-contact {
  --border-glow-alpha: 0.68;
}

.border-glow-card.border-glow-hero,
.border-glow-card.border-glow-media {
  --border-glow-alpha: 0.62;
}

.border-glow-card.border-glow-soft {
  --border-glow-alpha: 0.42;
}

@media (prefers-reduced-motion: reduce), (hover: none) {
  .border-glow-card::before,
  .border-glow-card::after {
    display: none;
  }
}

/* Stage 4H: narrow-screen layout guardrails. */
@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .case-hero,
  .case-section,
  .problem-insight-layout,
  .deck-browser,
  .app-prototype-layout,
  .materials-layout,
  .case-footer-nav {
    grid-template-columns: 1fr !important;
    max-width: 100%;
    overflow-x: clip;
  }

  .case-copy,
  .case-hero-visual,
  .visual-panel,
  .deck-frame,
  .materials-visual,
  .prototype-visual-wrap,
  .phone-frame {
    width: 100%;
    max-width: 100%;
  }

  .visual-panel,
  .deck-frame,
  .materials-visual,
  .case-hero-visual {
    aspect-ratio: 16 / 9;
  }

  .visual-panel img,
  .visual-panel video,
  .deck-frame img,
  .deck-frame video,
  .materials-visual > img,
  .case-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .work-grid,
  .asset-grid,
  .value-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .materials-video-qr {
    width: min(180px, 48vw);
  }

  .case-footer-nav {
    display: grid;
    gap: 12px;
    padding-inline: 5vw;
  }
}

@media (max-width: 640px) {
  .case-shell,
  .case-section,
  .case-hero {
    padding-left: 4.5vw;
    padding-right: 4.5vw;
  }

  .case-hero {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 44px;
  }

  .case-copy h1,
  .case-section-heading h2 {
    font-size: clamp(28px, 9vw, 42px);
    line-height: 1.12;
  }

  .case-lead,
  .case-section-heading p {
    font-size: 15px;
  }

  .work-grid,
  .asset-grid,
  .value-proof-grid {
    grid-template-columns: 1fr;
  }

  .deck-main {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .deck-arrow {
    width: 38px;
    height: 38px;
  }

  .phone-frame {
    min-height: 520px;
  }

  .case-footer-nav .btn,
  .prototype-open-link {
    width: 100%;
  }
}
