@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text-default: #151716;
  --text-subtle: #696e6c;
  --text-subtler: #969c99;
  --text-disabled: #bac2be;
  --background-default: #f2f2f2;
  --background-subtle: #e1e5e5;
  --border-default: #e1e5e5;
  --border-subtle: #d9dede;
  --border-subtler: #c8cccc;
  --grid-default: #ebebeb;
  --grid-bold: #e0e0e0;
  --tabbar-bg: rgb(2 48 48 / 8%);
  --tabbar-fg: #ffffff;
  --mockup-01-default: #e1e5e5;
  --mockup-01-bold: #c8cccc;
  --mockup-01-black: #141414;
  --mockup-02-default: #ebe9e5;
  --mockup-02-bold: #d4d2ce;
  --background: var(--background-default);
  --surface: var(--background-subtle);
  --ink: var(--text-default);
  --muted: var(--text-subtle);
  --quiet: var(--text-subtler);
  --line: var(--border-default);
  --line-strong: var(--border-subtle);
  --navigation-control-bg: rgb(2 48 48 / 8%);
  --navigation-control-fg: #696e6c;
  --navigation-control-hover: rgb(0 0 0 / 4%);
  --navigation-control-hover-fg: #151716;
  --navigation-control-selected: #ffffff;
  --navigation-control-selected-fg: #151716;
  --case-section-nav-background: #f5f5f5;
  --case-section-nav-border: #ffffff;
  --case-section-nav-shadow: 0 2px 6px rgb(21 23 22 / 5%), 0 10px 28px rgb(21 23 22 / 9%);
  --case-section-nav-panel-shadow: 0 4px 10px rgb(21 23 22 / 6%), 0 18px 40px rgb(21 23 22 / 12%);
  --content: 700px;
  --page-padding: 20px;
  --font: "Manrope", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

@view-transition {
  navigation: auto;
}

@keyframes page-transition-old {
  to { opacity: 0; filter: blur(2px); transform: translateY(-3px); }
}

@keyframes page-transition-new {
  from { opacity: 0; filter: blur(5px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes page-transition-fallback-enter {
  from { opacity: 0; filter: blur(5px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes page-transition-narrow-new {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes project-title-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes project-transition-root-old {
  from { opacity: 1; filter: blur(0); }
  to { opacity: 0; filter: blur(2px); }
}

@keyframes project-transition-root-new {
  from { opacity: 0; filter: blur(4px); transform: translateY(5px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes project-transition-source-hold {
  0%, 38% { opacity: 1; filter: blur(0); transform: scale(1); }
  to { opacity: 0; filter: blur(3px); transform: scale(0.995); }
}

@keyframes project-transition-part-enter {
  from { opacity: 0; filter: blur(7px); transform: translateY(9px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes project-transition-root-soft {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes project-transition-root-soft-old {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes project-transition-part-soft {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes project-hero-placeholder-shift {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@keyframes project-hero-image-enter {
  from { opacity: 0; filter: blur(7px); transform: scale(1.008); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}

@keyframes project-cover-source-settle {
  0%, 55% { opacity: 1; }
  to { opacity: 0; }
}

@keyframes project-cover-target-settle {
  0%, 48% { opacity: 0; }
  to { opacity: 1; }
}

::view-transition-group(root) {
  animation-duration: 440ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

::view-transition-old(root) {
  animation: page-transition-old 180ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: page-transition-new 440ms cubic-bezier(0.2, 0, 0, 1) both;
}

::view-transition-group(project-cover) {
  animation-duration: 560ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

::view-transition-image-pair(project-cover) {
  overflow: clip;
}

.case-title,
.case-subtitle,
.meta-row,
.hero-media,
.system-hero,
main.page > .section:first-of-type {
  view-transition-name: none;
}

::view-transition-group(project-title) {
  animation-duration: 280ms;
  animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

::view-transition-new(project-title) {
  animation: project-title-enter 280ms cubic-bezier(0.2, 0, 0, 1) both;
  mix-blend-mode: normal;
}

html.is-project-transition:not(.is-project-return) {
  --project-frame-delay: 150ms;
  --project-hero-delay: 270ms;
  --project-meta-delay: 450ms;
  --project-body-delay: 620ms;
}

html.is-project-single-cover-transition:not(.is-project-return) {
  --project-frame-delay: 70ms;
  --project-hero-delay: 130ms;
  --project-meta-delay: 230ms;
  --project-body-delay: 340ms;
}

html.is-project-transition:not(.is-project-return) .case-title {
  view-transition-name: project-title;
}

html.is-project-transition:not(.is-project-return) .case-subtitle {
  view-transition-name: project-subtitle;
}

html.is-project-transition:not(.is-project-return) .meta-row {
  view-transition-name: project-meta;
}

html.is-project-cover-transition:not(.is-project-return) :is(.hero-media, .system-hero) {
  view-transition-name: project-cover;
}

html.is-project-single-cover-transition:not(.is-project-return) :is(.hero-media, .system-hero) > img {
  opacity: 0;
}

html.is-project-transition:not(.is-project-return) main.page > .section:first-of-type {
  view-transition-name: project-body;
}

html.is-project-return :is(.hero-media, .system-hero) {
  view-transition-name: none;
}

html.is-project-transition::view-transition-group(root) {
  animation-duration: 980ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-project-transition::view-transition-old(root) {
  animation: project-transition-source-hold 310ms cubic-bezier(0.4, 0, 1, 1) both;
}

html.is-project-transition::view-transition-new(root) {
  animation: project-transition-root-new 320ms var(--project-frame-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-project-fade-transition::view-transition-group(root) {
  animation-duration: 980ms;
}

html.is-project-fade-transition::view-transition-new(root) {
  animation: project-transition-root-new 320ms var(--project-frame-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-project-transition:not(.is-project-return)::view-transition-group(project-title),
html.is-project-transition:not(.is-project-return)::view-transition-group(project-subtitle),
html.is-project-transition:not(.is-project-return)::view-transition-group(project-meta),
html.is-project-transition:not(.is-project-return)::view-transition-group(project-cover),
html.is-project-transition:not(.is-project-return)::view-transition-group(project-body) {
  animation-duration: 980ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-project-transition:not(.is-project-return)::view-transition-new(project-title),
html.is-project-transition:not(.is-project-return)::view-transition-new(project-subtitle) {
  animation: project-transition-part-enter 400ms var(--project-hero-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
  mix-blend-mode: normal;
}

html.is-project-transition:not(.is-project-return)::view-transition-new(project-meta) {
  animation: project-transition-part-enter 360ms var(--project-meta-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
  mix-blend-mode: normal;
}

html.is-project-transition:not(.is-project-return)::view-transition-new(project-body) {
  animation: project-transition-part-enter 380ms var(--project-body-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
  mix-blend-mode: normal;
}

html.has-js.is-site-loading.is-project-transition main.page > .case-header,
html.has-js.is-site-ready.is-project-transition main.page > .case-header {
  opacity: 1;
  animation: none;
  pointer-events: auto;
  transition: none;
}

html.is-project-transition .site-loading-skeleton {
  display: none;
}

html.is-project-return::view-transition-group(root) {
  animation-duration: 300ms;
}

html.is-project-return::view-transition-old(root) {
  animation: project-transition-root-old 140ms cubic-bezier(0.4, 0, 1, 1) both;
}

html.is-project-return::view-transition-new(root) {
  animation: project-transition-root-new 220ms 55ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-project-cover-transition::view-transition-group(project-cover) {
  z-index: 3;
  overflow: clip;
  border-radius: 0;
  animation-duration: 620ms;
  animation-delay: 140ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-project-cover-transition::view-transition-image-pair(project-cover) {
  overflow: clip;
  isolation: isolate;
}

html.is-project-cover-transition::view-transition-old(project-cover),
html.is-project-cover-transition::view-transition-new(project-cover) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

html.is-project-cover-transition::view-transition-old(project-cover) {
  animation: project-cover-source-settle 620ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
  mix-blend-mode: normal;
}

html.is-project-cover-transition::view-transition-new(project-cover) {
  animation: project-cover-target-settle 620ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
  mix-blend-mode: normal;
}

html.is-project-single-cover-transition:not(.is-project-return)::view-transition-group(root),
html.is-project-single-cover-transition:not(.is-project-return)::view-transition-group(project-title),
html.is-project-single-cover-transition:not(.is-project-return)::view-transition-group(project-subtitle),
html.is-project-single-cover-transition:not(.is-project-return)::view-transition-group(project-meta),
html.is-project-single-cover-transition:not(.is-project-return)::view-transition-group(project-cover),
html.is-project-single-cover-transition:not(.is-project-return)::view-transition-group(project-body) {
  animation-duration: 720ms;
}

html.is-project-single-cover-transition::view-transition-old(root) {
  animation: project-transition-root-soft-old 160ms cubic-bezier(0.4, 0, 1, 1) both;
}

html.is-project-single-cover-transition::view-transition-new(root) {
  animation: project-transition-root-soft 240ms var(--project-frame-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-project-single-cover-transition:not(.is-project-return)::view-transition-new(project-title),
html.is-project-single-cover-transition:not(.is-project-return)::view-transition-new(project-subtitle) {
  animation: project-transition-part-soft 280ms var(--project-hero-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-project-single-cover-transition:not(.is-project-return)::view-transition-new(project-meta) {
  animation: project-transition-part-soft 280ms var(--project-meta-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-project-single-cover-transition:not(.is-project-return)::view-transition-new(project-body) {
  animation: project-transition-part-soft 300ms var(--project-body-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.is-project-single-cover-transition:not(.is-project-return)::view-transition-group(project-cover) {
  animation-duration: 560ms;
  animation-delay: 0ms;
  animation-timing-function: cubic-bezier(0.3, 0.65, 0.25, 1);
}

html.is-project-single-cover-transition::view-transition-old(project-cover) {
  animation: none;
  opacity: 1;
}

html.is-project-single-cover-transition::view-transition-new(project-cover) {
  animation: none;
  opacity: 0;
}

html.is-project-transition .shared-bottom-navigation {
  view-transition-name: project-navigation;
}

html.is-project-transition::view-transition-group(project-navigation) {
  z-index: 10;
  animation: none;
}

html.is-project-transition::view-transition-old(project-navigation) {
  animation: none;
  opacity: 0;
}

html.is-project-transition::view-transition-new(project-navigation) {
  animation: none;
  opacity: 1;
  mix-blend-mode: normal;
}

html.no-cross-document-transition body {
  animation: page-transition-fallback-enter 440ms cubic-bezier(0.2, 0, 0, 1) both;
}

html.no-cross-document-transition.is-project-transition body {
  animation: none;
}

html.no-cross-document-transition.is-project-transition:not(.is-project-return) :is(.case-title, .case-subtitle, .hero-media, .system-hero) {
  animation: project-transition-part-enter 400ms var(--project-hero-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.no-cross-document-transition.is-project-transition:not(.is-project-return) .meta-row {
  animation: project-transition-part-enter 360ms var(--project-meta-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.no-cross-document-transition.is-project-transition:not(.is-project-return) main.page > .section:first-of-type {
  animation: project-transition-part-enter 380ms var(--project-body-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-media,
.system-hero {
  position: relative;
}

.project-hero-placeholder {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(105deg, var(--surface) 24%, var(--background-subtle) 42%, var(--surface) 60%);
  background-size: 230% 100%;
  transition: opacity 180ms ease;
  animation: project-hero-placeholder-shift 1.6s linear infinite;
}

html.is-project-hero-placeholder .project-hero-placeholder {
  opacity: 1;
}

html.is-project-hero-pending :is(.hero-media, .system-hero) > img {
  opacity: 0;
}

html.is-project-hero-ready :is(.hero-media, .system-hero) > img {
  animation: project-hero-image-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.no-cross-document-transition.is-page-leaving body {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 170ms ease, transform 170ms cubic-bezier(0.4, 0, 1, 1);
}

@media (max-width: 760px) {
  :root {
    --page-padding: 16px;
  }

  html.is-project-transition:not(.is-project-return) {
    --project-frame-delay: 90ms;
    --project-hero-delay: 180ms;
    --project-meta-delay: 330ms;
    --project-body-delay: 470ms;
  }

  html.is-project-transition::view-transition-group(root) {
    animation-duration: 780ms;
  }

  html.is-project-transition::view-transition-old(root) {
    animation: project-transition-source-hold 190ms cubic-bezier(0.4, 0, 1, 1) both;
  }

  html.is-project-transition::view-transition-new(root) {
    animation: project-transition-root-new 240ms var(--project-frame-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.is-project-single-cover-transition:not(.is-project-return) {
    --project-frame-delay: 50ms;
    --project-hero-delay: 120ms;
    --project-meta-delay: 220ms;
    --project-body-delay: 330ms;
  }

  html.is-project-single-cover-transition::view-transition-group(root) {
    animation-duration: 720ms;
  }

  html.is-project-single-cover-transition::view-transition-old(root) {
    animation: project-transition-root-soft-old 120ms cubic-bezier(0.4, 0, 1, 1) both;
  }

  html.is-project-single-cover-transition::view-transition-new(root) {
    animation: project-transition-root-soft 220ms var(--project-frame-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  ::view-transition-group(root) {
    animation-duration: 280ms;
  }

  ::view-transition-old(root) {
    animation: none;
    opacity: 0;
  }

  ::view-transition-new(root) {
    animation: page-transition-narrow-new 280ms cubic-bezier(0.2, 0, 0, 1) both;
  }

  html.no-cross-document-transition body {
    animation: page-transition-narrow-new 280ms cubic-bezier(0.2, 0, 0, 1) both;
  }

  html.no-cross-document-transition.is-page-leaving body {
    transform: none;
    transition: opacity 120ms ease-out;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body * {
  letter-spacing: 0 !important;
}

.meta-row {
  font-family: var(--font);
}

.case-image-viewer-status {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-synthesis: none;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.page {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--content));
  margin: 0 auto;
  padding: 70px 0 150px;
  container-type: inline-size;
  container-name: case-page;
}

.close-button {
  position: fixed;
  z-index: 80;
  top: 40px;
  right: 40px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--background);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.close-button:hover,
.close-button:focus-visible {
  border-color: var(--border-subtler);
  background: var(--background);
  color: var(--ink);
}

.close-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  outline-offset: 3px;
}

.close-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.case-index {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 40px;
  display: flex;
  width: min(160px, calc(100vw - 80px));
  max-width: 160px;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.case-index.is-layout-safe {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.case-index a {
  width: 100%;
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.027em;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
  white-space: normal;
  transition: color 160ms ease;
}

.case-index a:hover,
.case-index a:focus-visible,
.case-index a.is-active {
  color: var(--ink);
}

.case-index a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.case-section-nav {
  position: fixed;
  z-index: 75;
  top: 40px;
  left: 50%;
  display: none;
  width: max-content;
  max-width: calc(100vw - 128px);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px) scale(0.98);
  visibility: hidden;
  will-change: opacity, transform;
  transition: opacity 160ms ease-out, transform 180ms cubic-bezier(0.2, 0, 0, 1), visibility 160ms ease-out;
}

.case-section-nav.is-layout-fallback {
  display: block;
}

.case-section-nav.is-visible,
.case-section-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
}

.case-section-nav-trigger {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 36px;
  padding: 0 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--case-section-nav-border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--case-section-nav-background);
  box-shadow: var(--case-section-nav-shadow);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.case-section-nav-trigger:hover,
.case-section-nav-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
}

.case-section-nav-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  outline-offset: 3px;
}

.case-section-nav-progress,
.case-section-nav-progress svg,
.case-section-nav-chevron,
.case-section-nav-chevron svg {
  display: block;
  flex: 0 0 auto;
}

.case-section-nav-progress svg {
  width: 16px;
  height: 16px;
  fill: none;
  overflow: visible;
  transform: rotate(-90deg);
}

.case-section-nav-progress {
  --case-section-progress: 0;
}

.case-section-nav-progress circle {
  fill: none;
  stroke-width: 1.35;
}

.case-section-nav-progress-track {
  stroke: color-mix(in srgb, var(--quiet) 42%, transparent);
}

.case-section-nav-progress-value {
  stroke: var(--ink);
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--case-section-progress));
  stroke-linecap: round;
  transition: stroke-dashoffset 120ms linear;
}

.case-section-nav-count {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.case-section-nav-current {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-section-nav-chevron svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms cubic-bezier(0.2, 0, 0, 1);
}

.case-section-nav-panel {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: min(360px, calc(100vw - 40px));
  max-height: min(70dvh, 560px);
  padding: 48px 10px 10px;
  overflow: hidden;
  border: 1px solid var(--case-section-nav-border);
  border-radius: 14px;
  background: var(--case-section-nav-background);
  box-shadow: var(--case-section-nav-panel-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px) scale(0.98);
  transform-origin: top center;
  visibility: hidden;
  transition: opacity 150ms ease, transform 190ms cubic-bezier(0.2, 0, 0, 1), visibility 150ms ease;
}

.case-section-nav-list {
  max-height: calc(min(70dvh, 560px) - 58px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.case-section-nav-list::-webkit-scrollbar {
  display: none;
}

.case-section-nav-list a {
  display: grid;
  min-height: 40px;
  padding: 9px 8px;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.case-section-nav-list a:hover,
.case-section-nav-list a:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.case-section-nav-list a:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  outline-offset: -1px;
}

.case-section-nav-list a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.case-section-nav-number {
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 2;
}

.case-section-nav-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.section[id] {
  scroll-margin-top: 72px;
}

.case-section-nav.is-open .case-section-nav-trigger {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.case-section-nav.is-open .case-section-nav-chevron svg {
  transform: rotate(180deg);
}

.case-section-nav.is-open .case-section-nav-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
}

:root[data-theme="dark"] .case-section-nav-trigger {
  border-color: var(--case-section-nav-border);
  background: var(--case-section-nav-background);
  box-shadow: var(--case-section-nav-shadow);
}

:root[data-theme="dark"] .case-section-nav-panel {
  border-color: var(--case-section-nav-border);
  background: var(--case-section-nav-background);
  box-shadow: var(--case-section-nav-panel-shadow);
}

:root[data-theme="dark"] .case-section-nav.is-open .case-section-nav-trigger {
  background: transparent;
}

@media (max-width: 760px) {
  .case-section-nav {
    top: 20px;
  }

  .case-section-nav-panel {
    width: min(360px, calc(100vw - 60px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-index,
  .case-section-nav,
  .case-section-nav-trigger,
  .case-section-nav-panel,
  .case-section-nav-chevron svg,
  .case-section-nav-progress-value,
  .case-section-nav-list a {
    transition-duration: 1ms;
  }
}

.case-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-title,
.case-subtitle,
.section-title,
.section-desc,
.body-text p {
  margin: 0;
}

.case-title {
  padding: 0 8px;
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.4;
}

.case-subtitle {
  max-width: none;
  padding: 0 8px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.023em;
  line-height: 1.5;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 8px;
  border-top: 1px solid var(--grid-bold);
  border-bottom: 1px solid var(--grid-bold);
}

.meta-cell {
  min-width: 0;
  padding: 15px 12px 15px 0;
}

.meta-cell + .meta-cell {
  padding-left: 12px;
  border-left: 1px solid var(--grid-bold);
}

.meta-cell dt,
.meta-cell dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.027em;
  line-height: 1.4;
}

.meta-cell dt {
  margin-bottom: 10px;
  color: var(--muted);
}

.meta-cell dd {
  color: var(--ink);
}

.hero-media,
.media-block,
.gallery-card,
.paywall-composite {
  margin: 0;
}

.hero-media,
.media-block {
  overflow: hidden;
  width: 100%;
  background: var(--surface);
}

.hero-media {
  aspect-ratio: 700 / 391;
}

.hero-media img,
.media-block img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  border: 0;
  border-top: 1px solid var(--line);
}

.section {
  margin-top: 50px;
  padding-top: 50px;
}

.section-title,
.section-desc,
.body-text {
  padding-inline: 8px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.section-desc,
.body-text {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.023em;
  line-height: 1.5;
}

.section-desc {
  max-width: 590px;
  margin-top: 15px;
}

.section:not(:has(.gallery-controls)) .section-desc {
  max-width: none;
}

.body-text {
  display: grid;
  gap: 15px;
  margin-top: 15px;
}

.body-text strong,
.body-text em {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

.media-block {
  margin-top: 30px;
  aspect-ratio: 16 / 9;
}

.media-block-multidevice {
  aspect-ratio: 4 / 3;
}

.media-block--intrinsic {
  aspect-ratio: auto;
}

.media-block--intrinsic img {
  height: auto;
}

.dark-showcase {
  overflow: hidden;
  width: 100%;
  margin: 30px 0 0;
  aspect-ratio: 1400 / 788;
  background: #080909;
}

.dark-showcase > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.section-head > div:first-child {
  min-width: 0;
}

.gallery-controls {
  display: flex;
  flex: 0 0 auto;
}

.gallery-controls button {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 160ms ease, transform 120ms ease;
}

.gallery-controls button::before {
  position: absolute;
  z-index: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  content: "";
  pointer-events: none;
  transition: background-color 160ms ease;
}

.gallery-controls svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  color: var(--ink);
}

.gallery-controls button:hover::before,
.gallery-controls button:focus-visible::before {
  background: var(--surface);
}

.gallery-controls button:active {
  transform: scale(0.9);
}

.gallery-controls button:disabled,
.gallery-controls button:disabled:hover,
.gallery-controls button:disabled:active {
  background: transparent;
  color: var(--text-disabled);
  cursor: default;
  pointer-events: none;
  transform: none;
}

.gallery-controls button:disabled::before,
.gallery-controls button:disabled:hover::before,
.gallery-controls button:disabled:active::before {
  background: transparent;
}

.gallery {
  --gallery-edge: max(var(--page-padding), calc((100vw - var(--content)) / 2));
  position: relative;
  left: 50%;
  display: flex;
  gap: 30px;
  width: 100vw;
  margin-top: 30px;
  margin-left: -50vw;
  padding: 0 var(--gallery-edge) 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--gallery-edge);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery.is-resetting {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-card {
  flex: 0 0 270px;
  width: 270px;
  min-width: 0;
  scroll-snap-align: start;
}

.gallery-phone {
  width: 100%;
  padding: 4px;
  border-radius: 26px;
  background: var(--mockup-01-bold);
}

.gallery-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1125 / 2436;
  border-radius: 20px;
  object-fit: contain;
}

.gallery-card figcaption {
  margin-top: 15px;
  color: var(--quiet);
  font-size: 13px;
  letter-spacing: -0.027em;
  line-height: 1.4;
  text-align: center;
}

.flow-section .section-head {
  align-items: flex-end;
}

.flow-section .gallery {
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 0;
}

.flow-section .gallery-card {
  display: grid;
  flex: 0 0 min(84vw, 355px);
  width: min(84vw, 355px);
  padding: 26px 20px 24px;
  aspect-ratio: 355 / 405;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  background: var(--mockup-01-default);
}

.flow-section .gallery-phone {
  width: min(100%, 148px);
  height: auto;
  max-height: none;
  margin: auto;
  aspect-ratio: auto;
  background: var(--mockup-01-bold);
}

.flow-section .gallery-phone img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

.flow-section .gallery-card figcaption {
  margin-top: 0;
  color: var(--text-subtler);
  font-size: 13px;
  line-height: 1.4;
}

.flow-section .gallery--viewer-cards .gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 2400 / 2737;
}

.flow-section .gallery--viewer-cards .gallery-card > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  aspect-ratio: 2400 / 2737;
  object-fit: cover;
}

.flow-section .gallery--viewer-cards .gallery-card figcaption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 6%;
  left: 20px;
  margin: 0;
}

/* Shared landscape gallery used by desktop product-flow case studies. */
.flow-section.flow-section--landscape {
  --flow-gallery-surface: var(--mockup-02-default);
}

.flow-section.flow-section--landscape .gallery {
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 0;
}

.flow-section.flow-section--landscape .gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  flex: 0 0 min(84vw, 600px);
  width: min(84vw, 600px);
  padding: 0;
  aspect-ratio: 1200 / 837;
  background: var(--mockup-02-default);
}

.flow-section.flow-section--landscape .gallery-phone {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  aspect-ratio: 1200 / 837;
  background: var(--flow-gallery-surface);
}

.flow-section.flow-section--landscape .gallery-phone img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.flow-section.flow-section--landscape .gallery-card figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 6%;
  left: 24px;
  margin: 0;
  color: var(--text-subtler);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

/* Shared 16:9 gallery for wide campaign and social assets. */
.flow-section.flow-section--wide .gallery-card,
.flow-section.flow-section--wide .gallery-phone {
  aspect-ratio: 16 / 9;
}

.flow-section.flow-section--wide .gallery-phone {
  background: transparent;
}

.web-overview-media {
  background: #080909;
}

.web-overview-media img {
  object-fit: cover;
}

.paywall-showcase {
  margin-top: 30px;
  padding: 40px 30px;
  background: var(--mockup-01-bold);
}

.paywall {
  --paywall-slider-x: 8px;
  --paywall-slider-width: 0px;
  --navigation-control-bg: rgb(2 48 48 / 8%);
  --navigation-control-fg: #696e6c;
  --navigation-control-hover: rgb(0 0 0 / 4%);
  --navigation-control-hover-fg: #151716;
  --navigation-control-selected: #ffffff;
  --navigation-control-selected-fg: #151716;
  position: relative;
  display: flex;
  width: max-content;
  height: 38px;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px 8px;
  gap: 5px;
  align-items: center;
  border: 0;
  border-radius: 28px;
  background: var(--navigation-control-bg);
}

.paywall::before {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 0;
  width: var(--paywall-slider-width);
  height: 30px;
  border-radius: 20px;
  background: var(--navigation-control-selected);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  content: "";
  pointer-events: none;
  transform: translateX(var(--paywall-slider-x));
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1), width 240ms cubic-bezier(0.2, 0, 0, 1);
}

.paywall-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: auto;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--navigation-control-fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.35px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.paywall-tab-copy-mobile {
  display: none;
}

.paywall-tab.is-active,
.paywall-tab:not(.is-active):hover,
.paywall-tab:not(.is-active):focus-visible {
  color: var(--navigation-control-selected-fg);
}

.paywall-tab:not(.is-active):hover,
.paywall-tab:not(.is-active):focus-visible {
  background: var(--navigation-control-hover);
}

.paywall-divider {
  display: none;
}

.paywall-tab:focus-visible {
  outline: 2px solid rgba(21, 23, 22, 0.18);
  outline-offset: 2px;
}

.paywall-composite {
  width: min(100%, 314px);
  margin: 30px auto 0;
}

.paywall-hint {
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 12px;
  text-align: center;
}

.paywall-phone {
  width: 100%;
  padding: 6px;
  border-radius: 40px;
  background: var(--mockup-01-bold);
}

.paywall-layered-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 375 / 812;
  border-radius: 32px;
  background: #0e0e0f;
  overflow: hidden;
}

.paywall-background-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.paywall-background-scroll::-webkit-scrollbar {
  display: none;
}

.paywall-layered-screen:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text-default) 45%, transparent);
  outline-offset: 3px;
}

.paywall-background-scroll img {
  display: block;
  width: 100%;
  height: auto;
}

.paywall-foreground {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.seo-mockup {
  display: flex;
  width: 100%;
  min-height: 488px;
  margin: 30px 0 0;
  padding: 36px 63px 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0e0e0f;
}

.seo-mockup--light {
  background: var(--mockup-01-default);
}

.seo-mockup--light .seo-device {
  background: var(--mockup-01-bold);
}

.seo-mockup--light .seo-screen {
  background: #fff;
}

.seo-device {
  width: min(100%, 574px);
  padding: 6px;
  border-radius: 18px;
  background: #3c3c3c;
}

.seo-screen {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  aspect-ratio: 1440 / 900;
  border-radius: 12px;
  background: #0c0d0d;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.seo-screen::-webkit-scrollbar {
  display: none;
}

.seo-sticky-header {
  position: sticky;
  z-index: 2;
  top: 0;
  width: 100%;
  margin-bottom: -4.1667%;
  background: rgba(8, 9, 9, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  pointer-events: none;
}

.seo-sticky-header img,
.seo-page-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.seo-page-image {
  border-radius: 12px;
}

.seo-mockup figcaption {
  margin-top: 15px;
  color: var(--text-subtler);
  font-size: 13px;
  letter-spacing: -0.027em;
  line-height: 1.4;
  text-align: center;
}

.viewer-motion-clone {
  position: fixed;
  z-index: 50;
  display: block;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  object-fit: cover;
  pointer-events: none;
  will-change: left, top, width, height, border-radius;
}

body.is-case-image-viewer-open {
  overflow: hidden;
}

.case-image-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--background);
  outline: 0;
  transition: background-color 240ms ease;
}

.case-image-viewer::backdrop {
  background: var(--background);
  transition: background-color 240ms ease;
}

.case-image-viewer.is-image-motion-transparent,
.case-image-viewer.is-image-motion-transparent::backdrop {
  background-color: transparent;
}

.case-image-viewer.is-image-motion-active .case-image-viewer-image,
.case-image-viewer.is-image-motion-active .case-image-viewer-overlay-caption,
.case-image-viewer.is-image-motion-active .case-image-viewer-footer,
.case-image-viewer.is-image-motion-active .case-image-viewer-close {
  opacity: 0;
}

.case-image-viewer.is-image-motion-active .case-image-viewer-zone {
  pointer-events: none;
}

.case-image-viewer-layout {
  position: relative;
  z-index: 5;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.case-image-viewer-stage {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 80px;
  place-items: center;
}

.case-image-viewer-image,
.case-image-viewer-video {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  max-width: calc(100vw - 160px);
  height: auto;
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  opacity: 1;
  transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.case-image-viewer-image-incoming {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.case-image-viewer-image-incoming.is-visible {
  opacity: 1;
}

.case-image-viewer-image.is-crossfade-reset {
  opacity: 1;
  transition: none;
}

.case-image-viewer-image[hidden],
.case-image-viewer-video[hidden] {
  display: none;
}

.case-image-viewer-video {
  border-radius: 4px;
  pointer-events: auto;
}

.case-image-viewer-video-frame {
  display: contents;
}

.case-image-viewer.is-web3-container .case-image-viewer-layout {
  display: flex;
  padding: 80px;
  align-items: center;
  justify-content: center;
}

.case-image-viewer.is-web3-container .case-image-viewer-stage {
  width: min(calc(100vw - 160px), calc((100dvh - 160px) * 1.434426));
  height: auto;
  aspect-ratio: 1400 / 976;
  padding: 0;
  background: var(--mockup-02-default);
}

.case-image-viewer.is-web3-container .case-image-viewer-video-frame {
  display: block;
  width: 83.6%;
  aspect-ratio: 16 / 10;
  padding: 4px;
  border-radius: 6px;
  background: var(--mockup-02-bold);
}

.case-image-viewer.is-web3-container .case-image-viewer-video {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 4px;
  object-fit: cover;
  pointer-events: auto;
}

.case-image-viewer.is-grouped .case-image-viewer-image,
.case-image-viewer.is-grouped .case-image-viewer-video {
  max-width: calc(100vw - 160px);
  max-height: calc(100dvh - 160px);
}

.case-image-viewer-image.is-changing,
.case-image-viewer-video.is-changing {
  opacity: 0;
}

.case-image-viewer.is-scrollable .case-image-viewer-layout {
  overflow-y: auto;
  pointer-events: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.case-image-viewer.is-scrollable .case-image-viewer-layout::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.case-image-viewer.is-scrollable .case-image-viewer-stage {
  height: auto;
  min-height: 100%;
  align-items: flex-start;
}

.case-image-viewer.is-scrollable .case-image-viewer-image {
  width: calc(100vw - 160px);
  max-width: calc(100vw - 160px);
  height: auto;
  max-height: none;
}

.case-image-viewer.is-scrollable .case-image-viewer-zone-close {
  display: none;
}

.case-image-viewer-overlay-caption {
  position: fixed;
  z-index: 20;
  margin: 0;
  overflow: hidden;
  color: var(--text-subtler);
  font-size: 13px;
  letter-spacing: -0.027em;
  line-height: 1.4;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 160ms ease;
}

.case-image-viewer-overlay-caption[hidden],
.case-image-viewer-caption[hidden] {
  display: none;
}

.case-image-viewer-footer {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 160ms ease;
}

.case-image-viewer-footer[hidden] {
  display: none;
}

.case-image-viewer-caption,
.case-image-viewer-status {
  margin: 0;
}

.case-image-viewer-caption {
  color: var(--quiet);
  font-size: 13px;
  letter-spacing: -0.027em;
  line-height: 1.4;
  text-align: center;
}

.case-image-viewer-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.case-image-viewer-dots {
  display: flex;
  height: 6px;
  align-items: center;
  justify-content: center;
}

.case-image-viewer-dot {
  display: grid;
  width: 10px;
  height: 10px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  transition: width 240ms cubic-bezier(0.2, 0, 0, 1), opacity 240ms ease;
}

.case-image-viewer-dot::before {
  width: var(--dot-size, 6px);
  height: var(--dot-size, 6px);
  border-radius: inherit;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  content: "";
  transition: width 240ms cubic-bezier(0.2, 0, 0, 1), height 240ms cubic-bezier(0.2, 0, 0, 1), background-color 240ms ease;
}

.case-image-viewer-dot.is-active::before {
  background: color-mix(in srgb, var(--ink) 92%, transparent);
}

.case-image-viewer-dot.is-outside {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.case-image-viewer-dot:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}

.case-image-viewer-zone {
  position: absolute;
  inset-block: 0;
  z-index: 10;
  width: 33.333%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: 0;
}

.case-image-viewer-zone:focus,
.case-image-viewer-zone:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

.case-image-viewer-zone[hidden] {
  display: none;
}

.case-image-viewer-zone-previous {
  left: 0;
  width: 37.5%;
  cursor: w-resize;
}

.case-image-viewer-zone-close {
  left: 37.5%;
  width: 25%;
  cursor: zoom-out;
}

.case-image-viewer-zone-next {
  right: 0;
  width: 37.5%;
  cursor: e-resize;
}

.case-image-viewer-close {
  position: fixed;
  z-index: 30;
  top: 20px;
  right: 20px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--background);
  opacity: 1;
  transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 120ms ease;
}

.case-image-viewer-close:hover,
.case-image-viewer-close:focus-visible {
  border-color: var(--border-subtler);
  color: var(--ink);
}

.case-image-viewer-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  outline-offset: 3px;
}

.case-image-viewer-close:active {
  transform: scale(0.92);
}

.case-image-viewer-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.case-image-viewer-trigger {
  cursor: zoom-in;
}

.case-image-viewer-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 32%, transparent);
  outline-offset: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: center;
}

.case-settings-menu {
  position: fixed;
  z-index: 91;
  left: calc(50% - 21.5px);
  bottom: calc(max(30px, env(safe-area-inset-bottom)) + 66px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 238px;
  height: 156px;
  padding: 10px;
  border: 1px solid var(--navigation-border);
  border-radius: 10px;
  background: var(--background);
  box-shadow:
    0 2px 8px 0 rgba(0, 0, 0, 0.06),
    0 -6px 12px 0 rgba(0, 0, 0, 0.03),
    0 14px 28px 0 rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.case-settings-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.case-setting-button {
  display: grid;
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--navigation-control-fg);
  opacity: 1;
  transition: background-color 160ms ease, opacity 160ms ease, transform 120ms ease;
}

.case-setting-button[aria-pressed="false"]:hover,
.case-setting-button[aria-pressed="false"]:focus-visible {
  background: var(--navigation-control-hover);
  color: var(--navigation-control-hover-fg);
  opacity: 1;
}

.case-setting-button:active {
  transform: scale(0.9);
}

.case-setting-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.case-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 216px;
  height: 40px;
}

.case-setting-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.case-setting-options {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 4px;
  border-radius: 28px;
  background: var(--navigation-control-bg);
}

.case-setting-options.is-language {
  width: 130px;
  --navigation-control-slider-width: 50px;
  --navigation-control-slider-x: 0px;
}
.case-setting-options.is-theme {
  width: 114px;
  --navigation-control-slider-x: 0px;
}

.case-setting-options.is-language::before,
.case-setting-options.is-sound::before {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: var(--navigation-control-slider-width);
  height: 32px;
  border-radius: 20px;
  background: var(--navigation-control-selected);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  content: "";
  pointer-events: none;
  transform: translateX(var(--navigation-control-slider-x));
  transition:
    width 240ms cubic-bezier(0.2, 0, 0, 1),
    transform 240ms cubic-bezier(0.2, 0, 0, 1);
}

.case-setting-options.is-language:has([data-case-language="en"][aria-pressed="true"]) {
  --navigation-control-slider-width: 67.5px;
  --navigation-control-slider-x: 55px;
}

.case-setting-options.is-theme::before {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  border-radius: 20px;
  background: var(--navigation-control-selected);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  content: "";
  pointer-events: none;
  transform: translateX(var(--navigation-control-slider-x));
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
}

.case-setting-options.is-theme:has([data-case-theme="light"][aria-pressed="true"]) {
  --navigation-control-slider-x: 37px;
}

.case-setting-options.is-theme:has([data-case-theme="dark"][aria-pressed="true"]) {
  --navigation-control-slider-x: 74px;
}
.case-setting-options.is-sound {
  width: 80px;
  --navigation-control-slider-width: 32px;
  --navigation-control-slider-x: 0px;
}

.case-setting-options.is-sound:has([data-case-sound="off"][aria-pressed="true"]) {
  --navigation-control-slider-x: 37px;
}

.case-setting-button.is-language-option {
  width: auto;
  flex-basis: auto;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 18px;
}

@media (max-width: 740px) {
  .case-setting-button.is-language-option[data-case-language="zh"] {
    font-weight: 350;
  }
}

.case-setting-button[aria-pressed="true"] {
  background: transparent;
  color: var(--navigation-control-selected-fg);
  opacity: 1;
}

.bottom-nav {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: max(30px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 50px 50px 50px 1px 50px;
  width: 203px;
  height: 56px;
  align-items: center;
  padding: 2px 0;
  border: 1px solid var(--navigation-border);
  border-radius: 999px;
  transform: translateX(-50%);
}

.bottom-nav::before {
  content: "";
  grid-column: 4;
  grid-row: 1;
  width: 1px;
  height: 12px;
  background: var(--navigation-line);
}

.bottom-nav a,
.bottom-nav button {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  opacity: 0.5;
  text-decoration: none;
  transition: background-color 160ms ease, opacity 160ms ease, transform 120ms ease;
}

.bottom-nav a::before,
.bottom-nav button::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 160ms ease;
}

.bottom-nav a:nth-child(1) { grid-column: 1; }
.bottom-nav a:nth-child(2) { grid-column: 2; }
.bottom-nav a:nth-child(3) { grid-column: 3; }
.bottom-nav button { grid-column: 5; }

.bottom-nav a:hover,
.bottom-nav a:focus-visible,
.bottom-nav button:hover,
.bottom-nav button:focus-visible {
  opacity: 1;
}

.bottom-nav a:hover::before,
.bottom-nav a:focus-visible::before,
.bottom-nav button:hover::before,
.bottom-nav button:focus-visible::before {
  background: var(--navigation-bg-hover);
}

.bottom-nav button.case-settings-toggle[aria-expanded="true"] {
  opacity: 0.5;
}

.bottom-nav button.case-settings-toggle[aria-expanded="true"]::before {
  background: transparent;
}

.bottom-nav button.case-settings-toggle[aria-expanded="true"]:hover {
  opacity: 1;
}

.bottom-nav button.case-settings-toggle[aria-expanded="true"]:hover::before {
  background: var(--navigation-bg-hover);
}

.bottom-nav a:active,
.bottom-nav button:active {
  transform: scale(0.9);
}

.bottom-nav a[aria-current="page"] {
  opacity: 1;
}

.bottom-nav button.is-active {
  opacity: 1;
}

.bottom-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.bottom-nav > a > svg,
.bottom-nav > button > svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --text-default: #ffffff;
  --text-subtle: #aeb0af;
  --text-subtler: #838584;
  --text-disabled: #515251;
  --background-default: #0a0a0a;
  --background-subtle: #1e1f1f;
  --border-default: #191a1a;
  --border-subtle: #282929;
  --border-subtler: #343636;
  --grid-default: #121212;
  --grid-bold: #121212;
  --tabbar-bg: rgb(255 255 255 / 10%);
  --tabbar-fg: #414242;
  --mockup-01-default: #e1e5e5;
  --mockup-01-bold: #c8cccc;
  --mockup-01-black: #141414;
  --mockup-02-default: #ebe9e5;
  --mockup-02-bold: #d4d2ce;
  --navigation-control-bg: rgb(255 255 255 / 10%);
  --navigation-control-fg: #aeb0af;
  --navigation-control-hover: rgb(255 255 255 / 6%);
  --navigation-control-hover-fg: #ffffff;
  --case-section-nav-background: #1e1f1f;
  --case-section-nav-border: #343636;
  --case-section-nav-shadow: 0 2px 6px rgb(0 0 0 / 18%), 0 10px 28px rgb(0 0 0 / 26%);
  --case-section-nav-panel-shadow: 0 4px 10px rgb(0 0 0 / 24%), 0 18px 40px rgb(0 0 0 / 36%);
}

:root[data-theme="dark"] .bottom-nav {
  border-color: var(--navigation-border);
}

:root[data-theme="dark"] .case-settings-menu {
  border-color: var(--navigation-border);
  background: var(--background);
  box-shadow: inset 0 0 1px 0 rgba(255, 255, 255, 0.3);
}

:root[data-theme="dark"] .case-setting-button[aria-pressed="false"]:hover,
:root[data-theme="dark"] .case-setting-button[aria-pressed="false"]:focus-visible {
  background: var(--navigation-control-hover);
}

:root[data-theme="dark"] .bottom-nav::before {
  background: var(--navigation-line);
}

:root[data-theme="dark"] .bottom-nav a:hover,
:root[data-theme="dark"] .bottom-nav button:hover {
  background: transparent;
}

@container case-page (max-width: 699px) {
  .gallery-controls {
    display: none;
  }
}

@media (max-width: 760px) {
  .page .flow-section .gallery-card figcaption,
  .seo-mockup figcaption {
    font-size: 11px;
  }

  .page {
    padding-top: 20px;
  }

  .close-button {
    top: 20px;
    right: 20px;
  }

  .case-title {
    font-size: 30px;
  }

  .meta-row {
    margin-top: 26px;
  }

  .meta-cell,
  .meta-cell + .meta-cell {
    padding: 13px 8px;
  }

  .meta-cell:first-child {
    padding-left: 0;
  }

  .meta-cell dt,
  .meta-cell dd {
    font-size: 11px;
  }

  .meta-cell dd {
    overflow-wrap: anywhere;
  }

  .section {
    margin-top: 40px;
  }

  .section {
    padding-top: 40px;
  }

  .gallery-card {
    flex-basis: min(76vw, 270px);
    width: min(76vw, 270px);
  }

  .flow-section .gallery-card {
    aspect-ratio: 355 / 424;
    gap: 15px;
  }

  .paywall-showcase {
    padding: 40px 20px;
  }

  .paywall {
    max-width: 100%;
  }

  .paywall-responsive-copy {
    left: 50%;
    max-width: none;
    margin-inline: 0;
    transform: translateX(-50%);
  }

  .paywall-tab-copy-desktop {
    display: none;
  }

  .paywall-tab-copy-mobile {
    display: inline;
  }

  .seo-mockup {
    min-height: auto;
    padding: 24px 20px;
  }

  .case-image-viewer-stage {
    padding: 16px;
  }

  .case-image-viewer[data-input-mode="mobile-pointer"] .case-image-viewer-close:focus-visible,
  .case-image-viewer[data-input-mode="mobile-pointer"] .case-image-viewer-trigger:focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important;
  }

  .case-image-viewer[data-input-mode="mobile-pointer"] .case-image-viewer-close:focus-visible {
    border-color: var(--line);
    color: var(--muted);
  }

  .case-image-viewer:not(.is-web3-container):not(.is-scrollable) .case-image-viewer-image,
  .case-image-viewer:not(.is-web3-container):not(.is-scrollable) .case-image-viewer-video {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
  }

  .case-image-viewer.is-web3-container .case-image-viewer-layout {
    padding: 16px;
  }

  .case-image-viewer.is-web3-container .case-image-viewer-stage {
    width: min(calc(100vw - 32px), calc((100dvh - 32px) * 1.434426));
    padding: 0;
  }

  .case-image-viewer.is-grouped .case-image-viewer-image,
  .case-image-viewer.is-grouped .case-image-viewer-video {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 152px);
  }

  .case-image-viewer.is-scrollable .case-image-viewer-image {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    max-height: none;
  }

  .case-image-viewer-close {
    top: 20px;
    right: 20px;
  }
}

@media (pointer: coarse), (max-width: 760px) {
  .case-image-viewer-zone {
    display: none;
  }
}

@media (max-width: 760px) {
  .section-title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-project-transition:not(.is-project-return) {
    --project-frame-delay: 0.01ms;
    --project-hero-delay: 0.01ms;
    --project-meta-delay: 0.01ms;
    --project-body-delay: 0.01ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-group(project-cover),
  ::view-transition-group(project-title),
  ::view-transition-group(project-subtitle),
  ::view-transition-group(project-meta),
  ::view-transition-group(project-body),
  ::view-transition-group(project-navigation),
  ::view-transition-new(project-cover),
  ::view-transition-new(project-title),
  ::view-transition-new(project-subtitle),
  ::view-transition-new(project-meta),
  ::view-transition-new(project-body) {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
  }

  html.no-cross-document-transition body {
    animation: none;
  }

  .project-hero-placeholder {
    animation: none;
  }
}
