@font-face {
  font-family: "Biro Script";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./assets/fonts/biro-script.ttf") format("truetype");
}

:root {
  --paper: #f9f9f9;
  --ink: #151618;
  --text-secondary: #60646F;
  --text-tertiary: #858892;
  --muted: var(--text-secondary);
  --soft: #f5f5f3;
  --line: #dededb;
  --orange: #ff5a2a;
  --acid: #dff26b;
  --page-width: 480px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  color: inherit;
}

a {
  text-decoration-color: #d4d4d1;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

a:hover {
  text-decoration-color: var(--ink);
}

button {
  font: inherit;
}

.page {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow-x: clip;
  justify-content: center;
  padding: 192px 24px 240px;
}

.home-page .page {
  padding-top: 96px;
  padding-bottom: 184px;
}

.roof-illustration-mode .page {
  padding-top: calc(52px + min(812px, 100vw - 48px) * 305 / 1825 + 45px);
}

.ambient-roof-stage {
  position: absolute;
  z-index: 2;
  top: 52px;
  left: 50%;
  width: min(812px, calc(100% - 48px));
  mix-blend-mode: darken;
  opacity: .86;
  pointer-events: none;
  transform: translateX(-50%);
}
.ambient-roof {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}
.holder {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, var(--page-width));
  flex-direction: column;
  gap: 48px;
}

.home-intro {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.site-signoff .site-signature {
  font-family: "Biro Script", system-ui, -apple-system, sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-copy p {
  margin: 0;
  line-height: 1.55;
}

.hero-copy .inline-preview-link {
  display: inline;
  white-space: normal;
}

.hero-copy .inline-preview-icon {
  display: inline-flex;
  margin-left: 3px;
  vertical-align: text-bottom;
}

.inline-preview-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  line-height: inherit;
  text-decoration: none;
  vertical-align: baseline;
  white-space: nowrap;
  isolation: isolate;
}

.inline-preview-link > span:first-child {
  text-decoration: underline;
  text-decoration-color: #d6d5d1;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.inline-preview-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-self: center;
  align-items: center;
  justify-content: center;
  margin-left: 1px;
  border-radius: 4px;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(.2,.8,.2,1);
}

.inline-preview-icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.inline-preview-icon--dribbble img {
  border-radius: 4px;
}

.inline-preview-icon--x {
  border-radius: 50%;
  background: #000;
}

.inline-preview-icon--x img {
  width: 66.6667%;
  height: 66.6667%;
}

.inline-preview-icon--github img,
.inline-preview-icon--about img {
  border-radius: 50%;
}

.inline-preview-icon--about img {
  object-fit: cover;
}

.link-preview {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 50%;
  display: block;
  overflow: hidden;
  border: 1px solid #dededb;
  border-radius: 7px;
  background: #f5f5f3;
  box-shadow: 0 8px 20px rgba(30, 30, 30, 0.1), 0 2px 5px rgba(30, 30, 30, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px) scale(.98);
  transform-origin: 50% 0;
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.2,.8,.2,1), visibility 160ms ease;
  visibility: hidden;
}

.link-preview img {
  display: block;
  width: 170px;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .inline-preview-link:hover,
  .inline-preview-link:focus-visible {
    z-index: 30;
  }

  .inline-preview-link:hover .inline-preview-icon,
  .inline-preview-link:focus-visible .inline-preview-icon {
    opacity: .82;
    transform: translateY(-1px);
  }

  .inline-preview-link:hover > span:first-child,
  .inline-preview-link:focus-visible > span:first-child {
    text-decoration-color: var(--ink);
  }

  .inline-preview-link:hover .link-preview,
  .inline-preview-link:focus-visible .link-preview {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    visibility: visible;
  }
}

@media (hover: none), (pointer: coarse) {
  .link-preview {
    display: none;
  }
}

@media (max-width: 959px) {
  .link-preview {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inline-preview-icon,
  .inline-preview-link > span:first-child,
  .link-preview {
    transition: none;
  }
}

.index-list a {
  line-height: 1.55;
}

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

.products-section {
  gap: 20px;
}

.product-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.product-card {
  display: flex;
  min-height: 72px;
  margin: 0 -12px;
  padding: 12px;
  align-items: center;
  gap: 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  background: #efefef;
}

.product-card:focus-visible {
  outline: 1px solid rgba(30, 30, 30, .55);
  outline-offset: 2px;
}

.product-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 12px;
  place-items: center;
  background: #efefee;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

.product-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.product-card-copy strong {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.product-card-copy > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-card-meta {
  display: inline-flex;
  margin-left: auto;
  margin-right: 8px;
  flex: 0 0 auto;
  align-items: baseline;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  white-space: nowrap;
  transition: color 180ms ease;
}

.product-card:hover .product-card-meta,
.product-card:focus-visible .product-card-meta {
  color: var(--ink);
}

.highlights-section {
  display: block;
}

.highlights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.highlights-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlights-nav button {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  align-items: center;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  justify-content: center;
  line-height: 1;
  transition: color 200ms ease, background-color 200ms ease;
}

.highlights-nav button:hover {
  background: #efefef;
  color: var(--ink);
}

.highlights-nav button:focus-visible {
  color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.highlights-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: #efefef;
}

.highlights-track {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 12px;
  will-change: transform;
}

.highlights-slide {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #efefef;
  flex: 0 0 100%;
}

.highlights-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: zoom-in;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(0.99);
  transition:
    opacity 420ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.highlights-slide.is-active img {
  opacity: 1;
  transform: scale(1);
}

.highlights-track.is-jumping .highlights-slide img {
  transition: none;
}

.highlights-slide img:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .highlights-slide img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-title {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: lowercase;
}

.index-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.index-list a {
  display: flex;
  min-height: 25px;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
}

.index-list a > span:first-child {
  border-bottom: 1px solid #d4d4d1;
  line-height: 20px;
}

.index-list a:hover > span:first-child {
  border-bottom-color: var(--ink);
}

.index-list a:hover .index-arrow {
  color: var(--ink);
}

.index-list small {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: baseline;
  color: var(--muted);
  font-size: 14px;
}

.index-description {
  min-width: 0;
}

.index-arrow {
  display: inline-block;
  width: 14px;
  margin-right: 8px;
  margin-left: auto;
  flex: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.footer-progressive-blur {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  height: 240px;
  pointer-events: none;
}

.footer-progressive-blur span {
  position: absolute;
  z-index: var(--blur-layer);
  inset: 0;
  -webkit-backdrop-filter: blur(var(--blur-radius));
  backdrop-filter: blur(var(--blur-radius));
  -webkit-mask-image: var(--blur-mask);
  mask-image: var(--blur-mask);
}

.footer-progressive-blur span:nth-child(1) {
  --blur-layer: 1;
  --blur-radius: .1875px;
  --blur-mask: linear-gradient(transparent 0%, #000 12.5%, #000 25%, transparent 37.5%);
}

.footer-progressive-blur span:nth-child(2) {
  --blur-layer: 2;
  --blur-radius: .375px;
  --blur-mask: linear-gradient(transparent 12.5%, #000 25%, #000 37.5%, transparent 50%);
}

.footer-progressive-blur span:nth-child(3) {
  --blur-layer: 3;
  --blur-radius: .75px;
  --blur-mask: linear-gradient(transparent 25%, #000 37.5%, #000 50%, transparent 62.5%);
}

.footer-progressive-blur span:nth-child(4) {
  --blur-layer: 4;
  --blur-radius: 1.5px;
  --blur-mask: linear-gradient(transparent 37.5%, #000 50%, #000 62.5%, transparent 75%);
}

.footer-progressive-blur span:nth-child(5) {
  --blur-layer: 5;
  --blur-radius: 3px;
  --blur-mask: linear-gradient(transparent 50%, #000 62.5%, #000 75%, transparent 87.5%);
}

.footer-progressive-blur span:nth-child(6) {
  --blur-layer: 6;
  --blur-radius: 6px;
  --blur-mask: linear-gradient(transparent 62.5%, #000 75%, #000 87.5%, transparent 100%);
}

.footer-progressive-blur span:nth-child(7) {
  --blur-layer: 7;
  --blur-radius: 12px;
  --blur-mask: linear-gradient(transparent 75%, #000 87.5%, #000 100%);
}

.footer-progressive-blur span:nth-child(8) {
  --blur-layer: 8;
  --blur-radius: 24px;
  --blur-mask: linear-gradient(transparent 87.5%, #000 100%);
}

.footer-progressive-blur::after {
  position: absolute;
  z-index: 9;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(249, 249, 249, 0) 42%,
    rgba(249, 249, 249, .16) 62%,
    rgba(249, 249, 249, .62) 82%,
    rgba(249, 249, 249, .96) 100%
  );
  content: "";
}

.floating-wechat {
  position: fixed;
  z-index: 30;
  bottom: 48px;
  left: 50%;
  display: inline-flex;
  width: 190px;
  min-height: 46px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(21, 22, 24, .08);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(239, 239, 239, .12);
  backdrop-filter: blur(40px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 0 20px rgba(255, 255, 255, .05),
    0 10px 24px rgba(0, 0, 0, .14);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 0;
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  -webkit-tap-highlight-color: transparent;
  transform: translateX(-50%);
  transition:
    transform 500ms cubic-bezier(.76, 0, .24, 1),
    box-shadow 220ms ease,
    background-color 500ms cubic-bezier(.76, 0, .24, 1);
}

.floating-wechat::before {
  content: none;
}

.floating-wechat-state {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  filter: blur(1.5px);
  pointer-events: none;
  transform: translate(1px, 4px) scale(.985);
  transition-property: opacity, filter, transform;
  transition-duration: 120ms, 500ms, 500ms;
  transition-timing-function: ease, cubic-bezier(.76, 0, .24, 1), cubic-bezier(.76, 0, .24, 1);
  transition-delay: 100ms, 0ms, 0ms;
  white-space: nowrap;
  will-change: opacity, filter, transform;
}

.floating-wechat-state > span:first-child {
  color: var(--ink);
}

.floating-wechat-state > :last-child {
  color: var(--ink);
}

.floating-wechat-state svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.floating-wechat-state--default {
  opacity: 1;
  filter: blur(0);
  transform: translate(1px, 0) scale(1);
  transition-delay: 240ms, 0ms, 0ms;
}

.floating-wechat-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.floating-wechat:hover,
.floating-wechat:focus-visible {
  background: rgba(239, 239, 239, .18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 0 20px rgba(255, 255, 255, .07),
    0 12px 28px rgba(0, 0, 0, .17);
  transform: translateX(-50%);
}

.floating-wechat:hover .floating-wechat-state--default,
.floating-wechat:focus-visible .floating-wechat-state--default {
  opacity: 0;
  filter: blur(1.5px);
  transform: translate(1px, -4px) scale(.985);
  transition-delay: 100ms, 0ms, 0ms;
}

.floating-wechat:hover .floating-wechat-state--hover,
.floating-wechat:focus-visible .floating-wechat-state--hover {
  opacity: 1;
  filter: blur(0);
  transform: translate(1px, 0) scale(1);
  transition-delay: 240ms, 0ms, 0ms;
}

.floating-wechat:active {
  transform: translateX(-50%);
}

.floating-wechat.is-clicking {
  animation: floating-wechat-click 500ms cubic-bezier(.76, 0, .24, 1);
}

@keyframes floating-wechat-click {
  0% {
    transform: translateX(-50%) scale(1);
  }

  40% {
    transform: translateX(-50%) scale(.965);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

.floating-wechat.is-copied {
  color: var(--ink);
}

.floating-wechat.is-copied .floating-wechat-state--default,
.floating-wechat.is-copied .floating-wechat-state--hover {
  opacity: 0;
  filter: blur(1.5px);
  transform: translate(1px, -4px) scale(.985);
  transition-delay: 100ms, 0ms, 0ms;
}

.floating-wechat.is-copied .floating-wechat-state--success {
  opacity: 1;
  filter: blur(0);
  transform: translate(1px, 0) scale(1);
  transition-delay: 240ms, 0ms, 0ms;
}

.floating-wechat:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .58);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .floating-wechat.is-clicking {
    animation: none;
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.site-signoff {
  display: flex;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.site-signoff p {
  margin: 0;
  color: var(--text-tertiary);
  line-height: 1.55;
}

.site-signoff p:first-child:not(.site-signature) {
  font-size: 14px;
}

.site-signoff .site-signature {
  transform: rotate(-3deg);
  transform-origin: left center;
}

.site-footer-meta {
  display: flex;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer-meta > span {
  color: var(--text-tertiary);
  font-size: 14px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.site-footer-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 0;
  color: var(--muted);
  text-decoration: none;
}

.site-footer-links a::after {
  color: var(--muted);
  content: "↗、";
  font-size: 14px;
}

.site-footer-links a:last-child::after {
  content: "↗";
}

.site-footer-links a span {
  border-bottom: 1px solid #d4d4d1;
  line-height: 20px;
}

.site-footer-links a:hover span {
  border-bottom-color: var(--ink);
}

.site-footer-links a:hover {
  color: var(--ink);
}

.site-footer-links a:hover::after,
.site-footer-links a:focus-visible::after {
  color: var(--ink);
}

.floating-wechat--purchase {
  width: 224px;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 500ms cubic-bezier(.76, 0, .24, 1),
    color 500ms cubic-bezier(.76, 0, .24, 1),
    box-shadow 220ms ease,
    background-color 500ms cubic-bezier(.76, 0, .24, 1);
}

@media (max-width: 640px) {
  .page {
    padding: 96px 16px 192px;
  }

  .home-page .page {
    padding-bottom: 168px;
  }

  .roof-illustration-mode .page {
    padding-top: calc(40px + clamp(540px, 100vw - 32px, 812px) * 305 / 1825 + 40px);
  }

  .ambient-roof-stage {
    top: 40px;
    left: 50%;
    width: clamp(540px, calc(100% - 32px), 812px);
    transform: translateX(-50%);
  }

  .holder {
    gap: 48px;
  }

  .site-signoff {
    padding-bottom: 0;
  }

  .floating-wechat {
    bottom: 32px;
    width: 190px;
    min-height: 46px;
    padding: 0 18px;
  }

  .floating-wechat--purchase {
    width: min(224px, calc(100vw - 40px));
  }

  .footer-progressive-blur {
    height: 190px;
  }

}

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

.case-study-body {
  background: #f9f9f9;
  color: var(--ink);
}

.case-study-page {
  min-height: 100vh;
  padding: 80px 20px 180px;
}
.case-study-page > .case-study-shell > :last-child {
  margin-bottom: 0;
}

.case-study-shell {
  width: min(100%, 480px);
  margin: 0 auto;
}

.case-study-section {
  display: grid;
  max-width: 800px;
  margin: 12px 0 20px;
  grid-template-columns: 1fr;
}

.case-study-intro {
  margin-top: 0;
}

.case-study-section h1 {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.01em;
}

.case-study-section h2 {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.015em;
  scroll-margin-top: 80px;
}

.case-study-copy {
  display: block;
}

.case-study-copy p {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.012em;
}

.case-study-copy em {
  font-style: italic;
}

.case-study-copy--subsections h3 {
  margin: 28px 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.case-study-copy--subsections h3:first-child {
  margin-top: 0;
}

.case-study-media {
  max-width: 100%;
  margin: 12px 0 60px;
}

.case-study-media--origin {
  margin-bottom: 60px;
}

.case-study-media--github-proof {
  margin-bottom: 60px;
}

.case-study-media--stack {
  display: grid;
  gap: 12px;
}

.case-study-media--community {
  gap: 20px;
  margin-bottom: 60px;
}

.case-study-media--knowledge-home {
  margin-bottom: 60px;
}

.case-study-media--knowledge-stack {
  gap: 20px;
  margin-bottom: 60px;
}

.case-study-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  border-radius: 12px;
  background: #efefef;
  cursor: zoom-in;
  object-fit: cover;
}

.case-study-image:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.case-study-image--wide {
  aspect-ratio: auto;
  object-fit: contain;
}

.case-study-body--deck .case-study-image--wide {
  aspect-ratio: 16 / 9;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 48px 6vw;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.image-lightbox[open] {
  display: grid;
  place-items: center;
}

.image-lightbox::backdrop {
  background: rgba(15, 16, 18, .92);
  backdrop-filter: blur(10px);
}

.image-lightbox-image {
  display: block;
  width: auto;
  max-width: 88vw;
  height: auto;
  max-height: calc(100dvh - 96px);
  border-radius: clamp(12px, 2.2vw, 40px);
  background: #efefef;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  object-fit: contain;
}

.image-lightbox-close {
  position: fixed;
  z-index: 1;
  top: 20px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  place-items: center;
}

.image-lightbox-close svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, .24);
  outline: none;
}

.has-image-lightbox {
  overflow: hidden;
}

.case-study-join {
  margin-top: 20px;
}

.case-study-purchase {
  display: flex;
  margin: 0 0 20px;
  padding: 20px 24px;
  border-radius: 12px;
  background: #efefef;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.case-study-purchase .case-study-highlight {
  margin: 0;
}

.case-study-purchase p:last-child,
.case-study-join .case-study-copy > p:last-child,
.case-study-ending .case-study-copy > p:last-child {
  margin-bottom: 0;
}

.case-study-copy .case-study-highlight {
  color: #e55236;
}

.page-nav {
  display: flex;
  margin: 0 0 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.page-nav-toc {
  display: none;
}

@media (min-width: 1100px) {
  .page-nav {
    position: fixed;
    z-index: 8;
    top: 80px;
    left: 80px;
    width: 160px;
    margin: 0;
  }

  .page-nav-toc {
    display: block;
  }
}

.page-nav-home,
.page-nav-toc a {
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.012em;
  text-decoration: none;
  transition: color 180ms ease;
}

.page-nav-home:hover,
.page-nav-home:focus-visible,
.page-nav-toc a:hover,
.page-nav-toc a:focus-visible,
.page-nav-toc a.is-active {
  color: var(--ink);
}

.page-nav-toc ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.page-nav-toc a {
  display: block;
}

.case-study-body .floating-wechat--purchase {
  width: 224px;
}

@media (max-width: 640px) {
  .case-study-page {
    padding: 80px 20px 170px;
  }

  .case-study-purchase {
    padding: 16px;
  }

  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox-image {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 80px);
  }

  .image-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .case-study-body .floating-wechat--purchase {
    bottom: 32px;
    width: 224px;
  }
}

/* ── 加入面板：材质沿用 .floating-wechat，尺寸放大、圆角收紧 ───────────── */

.join-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 400ms var(--ease-out),
    box-shadow 220ms ease,
    opacity 220ms ease;
}

.join-cta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(21, 22, 24, .18);
}

.join-cta:active {
  transform: translateY(0);
}

.join-cta:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.join-panel {
  position: fixed;
  z-index: 40;
  bottom: 48px;
  left: 50%;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 24px;
  border: 1px solid rgba(21, 22, 24, .10);
  border-radius: 22px;
  background: rgba(249, 249, 249, .40);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 0 20px rgba(255, 255, 255, .05),
    0 12px 32px rgba(0, 0, 0, .20);
  opacity: 0;
  transform: translateX(-50%) translateY(10px) scale(.94);
  transform-origin: bottom center;
  transition:
    transform 420ms var(--ease-out),
    opacity 200ms ease;
}

.join-panel[hidden] {
  display: none;
}

.join-panel.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.case-study-body::before,
.home-page::before {
  position: fixed;
  z-index: 39;
  inset: 0;
  visibility: hidden;
  background-color: color-mix(in srgb, var(--paper) 25%, transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.case-study-body.has-join-panel::before,
.case-study-body.has-contact-panel::before,
.home-page.has-contact-panel::before {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.has-join-panel .floating-wechat--purchase {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

body.has-contact-panel .floating-wechat {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.contact-qr-image {
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: 130% !important;
  max-width: none;
  height: auto !important;
  transform: translate(-50%, -54%);
}

.contact-wxid {
  margin-top: 8px;
  line-height: 18px;
}

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

.contact-qr-sheet,
.contact-email-sheet {
  height: 256px;
}

.contact-email-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.contact-email-icon {
  display: grid;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(21, 22, 24, .05);
  color: var(--ink);
  place-items: center;
}

.contact-email-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.contact-email-copy {
  padding: 5px 9px;
}

.contact-email-link {
  height: 40px;
  margin: 8px 0 0;
  text-decoration: none;
}

.contact-note {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.contact-note span {
  white-space: nowrap;
}

.join-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
}

.join-panel-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.join-panel-close {
  display: grid;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  place-items: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.join-panel-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.join-panel-close:hover {
  background: rgba(21, 22, 24, .06);
  color: var(--ink);
}

.join-group-label {
  margin: 0;
  padding: 0 0 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.join-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 16px;
}

.join-tab {
  flex: 1;
  height: 38px;
  display: grid;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  place-items: center;
  transition: background-color 180ms ease, color 180ms ease;
}

.join-tab:hover {
  background: rgba(21, 22, 24, .04);
}

.join-tab[aria-selected="true"] {
  background: rgba(21, 22, 24, .07);
  color: var(--ink);
}

/* 二维码要一张不透明的「纸」，别让黑白码直接浮在玻璃上 */
.join-qr-sheet {
  margin: 0;
  padding: 12px 20px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 22, 24, .06);
  text-align: center;
}

.join-qr {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
}

.join-qr img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.join-qr img[data-missing] {
  display: none;
}
.join-qr-amount {
  margin: 8px 0 0;
  color: #e55236;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.join-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.join-step {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.join-step-num {
  flex: none;
  width: 18px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.join-wxid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px;
  border: 0;
  border-radius: 6px;
  background: rgba(21, 22, 24, .06);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 160ms ease;
  vertical-align: baseline;
}

.join-wxid svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join-wxid:hover {
  background: rgba(21, 22, 24, .10);
}

.join-wxid.is-copied {
  background: rgba(21, 22, 24, .08);
  color: var(--ink);
}

.join-wxid.is-copied svg {
  display: none;
}

.join-wxid.is-copied::after {
  color: var(--text-secondary);
  content: "✓";
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
}

.join-panel-foot {
  margin-top: 10px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(21, 22, 24, .07);
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.join-qr-sheet + .join-group-label {
  padding-top: 16px;
}

.join-panel-foot b {
  color: #e55236;
  font-weight: 400;
}

@media (max-width: 640px) {
  .join-panel {
    bottom: 24px;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .join-qr {
    width: 176px;
    height: 176px;
  }

  .join-qr-sheet {
    padding: 12px 16px 16px;
  }

  .contact-qr-sheet,
  .contact-email-sheet {
    height: 232px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .join-panel {
    transition: opacity 160ms ease;
    transform: translateX(-50%);
  }

  .join-panel.is-open {
    transform: translateX(-50%);
  }

  .join-cta:hover {
    transform: none;
  }
}

.missing-page .page {
  align-items: center;
  min-height: 100vh;
  padding: 48px 24px;
}

.missing-page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.missing-page-code {
  margin: 0 0 16px;
  color: var(--text-tertiary);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
}

.missing-page-title {
  margin: 0 0 28px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.missing-page-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
}

.missing-page-home:hover,
.missing-page-home:focus-visible {
  color: #fff;
  text-decoration: none;
  opacity: .88;
}

.missing-page-home:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}


/* Keep the final audience section 60px from the joining section. */
.case-study-intro { margin-bottom: 60px; }
.case-study-intro .case-study-copy > p:last-child { margin-bottom: 0; }
.case-study-section[aria-labelledby="fit-title"] { margin-bottom: 60px; }
.case-study-section[aria-labelledby="fit-title"] .case-study-copy > p:last-child { margin-bottom: 0; }
/* About page: 60px between titled modules, 20px between copy and its supporting image. */
.about-page .case-study-section {
  margin-bottom: 60px;
}
.about-page .case-study-section:last-of-type {
  margin-bottom: 0;
}
.about-page .case-study-section:has(+ .case-study-media) {
  margin-bottom: 40px;
}
.about-page .case-study-section .case-study-copy > p:last-child {
  margin-bottom: 0;
}
.about-page .case-study-media {
  margin-top: 0;
}
.about-page .case-study-media:has(+ .case-study-section:not([aria-labelledby])) {
  margin-bottom: 40px;
}

.ib-library-list {
  margin: 0 0 20px;
  padding-left: 20px;
}
.ib-library-list li {
  margin-bottom: 10px;
  padding-left: 2px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.ib-library-list li strong {
  color: var(--text-primary);
}

.ib-price-threshold {
  color: #e55236;
  font-weight: 400;
}
