:root {
  color-scheme: dark;
  --bg: #030303;
  --surface: #101010;
  --surface-2: #151515;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.38);
  --line: rgba(244, 241, 234, 0.08);
  --line-strong: rgba(244, 241, 234, 0.14);
  --paper: #f2efe8;
  --accent: #d8ff5a;
  --black: #030303;
  --showcase-row-gap: 14px;
  --showcase-card-gap: 14px;
  --showcase-height: clamp(360px, 28vw, 420px);
  --showcase-row-height: calc((var(--showcase-height) - var(--showcase-row-gap)) / 2);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #fffaf0;
  --surface-2: #ebe5dc;
  --text: #11100e;
  --muted: rgba(17, 16, 14, 0.66);
  --faint: rgba(17, 16, 14, 0.42);
  --line: rgba(17, 16, 14, 0.1);
  --line-strong: rgba(17, 16, 14, 0.17);
  --paper: #11100e;
  --accent: #3157ff;
  --black: #f7f2e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, Arial,
    sans-serif;
  font-size: 15px;
  font-feature-settings: "kern" 1;
  font-synthesis-weight: none;
  letter-spacing: 0;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
.top-nav,
.pdf-card,
.about-card,
.contact-panel,
.pdf-brief-note,
.about-bubble,
.tile,
.showcase-card {
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

main {
  padding-bottom: 118px;
}

.top-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  height: 64px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.035);
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.64), rgba(3, 3, 3, 0.34));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

.top-nav::after {
  position: absolute;
  right: 0;
  bottom: -28px;
  left: 0;
  height: 28px;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.2), rgba(3, 3, 3, 0));
  pointer-events: none;
  content: "";
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1504px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
}

.nav-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.show-nav-identity .nav-identity {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-avatar {
  position: relative;
  display: block;
  overflow: hidden;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #030303;
}

.nav-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.9) contrast(1.1) brightness(0.86);
  transform: none;
  transform-origin: 50% 50%;
}

.nav-identity span:last-child {
  font-size: 15px;
  font-weight: 520;
  line-height: 1;
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.language-switch button,
.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.theme-switch button {
  min-width: 28px;
  width: 28px;
  padding: 0;
}

.theme-icon {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.language-switch button:hover,
.language-switch button:focus-visible,
.theme-switch button:hover,
.theme-switch button:focus-visible {
  color: var(--text);
}

.theme-switch button:hover .theme-icon,
.theme-switch button:focus-visible .theme-icon {
  transform: rotate(-8deg) scale(1.08);
}

.language-switch button.is-active,
.theme-switch button.is-active {
  background: var(--paper);
  color: var(--black);
}

.theme-switch button.is-active .theme-icon {
  opacity: 1;
  transform: scale(1.02);
}

.nav-logo {
  display: block;
  overflow: hidden;
  width: 100px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.nav-logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
}

.nav-logo:hover,
.nav-logo:focus-visible {
  opacity: 0.72;
}

.nav-identity:hover .nav-avatar,
.nav-identity:focus-visible .nav-avatar {
  border-color: rgba(244, 241, 234, 0.18);
}

.nav-logo:hover,
.nav-logo:focus-visible,
.nav-identity:hover,
.nav-identity:focus-visible {
  transform: translateY(-1px);
}

.intro {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(600px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 78px;
}

.hero-spotlight {
  position: absolute;
  top: -250px;
  left: 50%;
  z-index: -1;
  overflow: hidden;
  width: 100vw;
  max-width: none;
  height: 760px;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(
    ellipse 98% 86% at 50% 28%,
    #000 0%,
    #000 56%,
    rgba(0, 0, 0, 0.72) 73%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 98% 86% at 50% 28%,
    #000 0%,
    #000 56%,
    rgba(0, 0, 0, 0.72) 73%,
    transparent 100%
  );
}

.hero-spotlight::before {
  content: "";
  position: absolute;
  inset: -18% -6%;
  background:
    radial-gradient(ellipse 70% 44% at 50% 18%, rgba(235, 238, 242, 0.12) 0, transparent 66%),
    radial-gradient(ellipse 48% 42% at 50% 66%, rgba(205, 199, 186, 0.075) 0, transparent 62%);
  filter: blur(8px);
  opacity: 0.78;
  animation: spotlightAmbient 11s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.spotlight-beam {
  position: absolute;
  z-index: 1;
  display: block;
  width: 560px;
  height: 1380px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.44) 0, rgba(226, 226, 220, 0.26) 13%, rgba(166, 171, 178, 0.14) 34%, transparent 66%),
    radial-gradient(ellipse at 48% 43%, rgba(228, 218, 195, 0.14) 0, transparent 31%);
  filter: blur(18px) saturate(0.88);
  mix-blend-mode: screen;
  opacity: 0.62;
  will-change: transform, opacity;
}

.spotlight-left {
  top: -430px;
  left: -250px;
  transform: rotate(-19deg) translate3d(-72px, 0, 0);
  animation: spotlightLeft 7s ease-in-out infinite alternate;
}

.spotlight-right {
  top: -430px;
  right: -250px;
  transform: rotate(19deg) translate3d(72px, 0, 0);
  animation: spotlightRight 7s ease-in-out infinite alternate;
  animation-delay: -2.1s;
}

.spotlight-small {
  top: -86px;
  left: 48%;
  width: 240px;
  height: 520px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.48) 0, rgba(225, 224, 218, 0.24) 22%, rgba(165, 170, 177, 0.12) 48%, transparent 72%),
    radial-gradient(ellipse at 42% 43%, rgba(226, 214, 190, 0.15) 0, transparent 34%);
  filter: blur(14px) saturate(0.9);
  opacity: 0.5;
  transform: rotate(-14deg) translate3d(-22px, 0, 0);
  animation: spotlightSmall 6.4s ease-in-out infinite alternate;
  animation-delay: -1.2s;
}

.intro-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.intro-title-group {
  min-width: 0;
}

.identity-lockup {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 0;
}

.intro-avatar-lockup {
  justify-self: end;
}

.identity-mark,
.identity-photo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  background: var(--paper);
  color: var(--black);
  font-weight: 900;
}

.intro-avatar-lockup .identity-photo {
  width: 58px;
  height: 58px;
}

.identity-mark {
  border-radius: 8px;
  font-size: 22px;
  font-style: italic;
}

.identity-mark.is-hidden {
  display: none;
}

.identity-photo {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  background: #030303;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  isolation: isolate;
  transition: border-color 180ms ease;
}

.identity-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.9) contrast(1.1) brightness(0.86);
  transform: none;
  transform-origin: 50% 50%;
  transition:
    filter 280ms ease,
    transform 360ms ease,
    opacity 280ms ease;
}

.identity-photo:hover img,
.identity-photo:focus-visible img {
  filter: saturate(1.02) contrast(1.1) brightness(0.94);
  transform: scale(1.06);
}

.identity-photo.is-avatar-swapping img {
  animation: avatar-swap 320ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.identity-photo:hover {
  border-color: rgba(244, 241, 234, 0.18);
}

.identity-photo:focus-visible {
  outline: 2px solid rgba(244, 241, 234, 0.86);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.intro h1 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 520;
  line-height: 1.35;
}

.intro-handle {
  margin: -4px 0 12px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: 0;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  max-width: none;
  margin-bottom: 0;
}

.role-tags span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 14px;
  padding-right: 14px;
  color: rgba(244, 241, 234, 0.68);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.role-tags span:first-child {
  color: rgba(244, 241, 234, 0.92);
}

.role-tags span::before {
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border: 1px solid rgba(244, 241, 234, 0.48);
  border-radius: 2px;
  content: "";
}

.role-tags span:first-child::before {
  background: rgba(244, 241, 234, 0.92);
  border-color: rgba(244, 241, 234, 0.92);
}

.role-tags span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 12px;
  background: rgba(244, 241, 234, 0.16);
  content: "";
  transform: translateY(-50%);
}

.intro-copy {
  max-width: 500px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

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

.intro-actions a,
.intro-actions button,
.case-info a,
.contact-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 241, 234, 0.78);
  font-size: 15px;
  line-height: 1;
  transform-origin: center;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 420ms cubic-bezier(0.18, 1.7, 0.24, 1),
    border-color 180ms ease;
  will-change: transform;
}

.intro-actions button {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.intro-actions a:hover,
.intro-actions button:hover,
.intro-actions button:focus-visible,
.case-info a:hover,
.contact-panel a:hover,
.dock-nav a:hover {
  border-color: rgba(244, 241, 234, 0.18);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px) scale(1.035);
}

.intro-actions .primary-action,
.dock-nav .dock-cta {
  background: var(--paper);
  color: var(--black);
}

.intro-actions .primary-action:hover,
.intro-actions .primary-action:focus-visible,
.dock-nav .dock-cta:hover,
.dock-nav .dock-cta:focus-visible,
.modal-primary:hover,
.modal-primary:focus-visible {
  border-color: rgba(244, 241, 234, 0.92);
  background: #fffaf0;
  color: var(--black);
  box-shadow: 0 0 0 3px rgba(244, 241, 234, 0.08);
  transform: translateY(-1px) scale(1.045);
}

.intro-actions a:active,
.intro-actions button:active,
.case-info a:active,
.contact-panel a:active,
.dock-nav a:active,
.modal-actions button:active {
  border-color: rgba(244, 241, 234, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  transform: translateY(0) scale(0.98);
}

.contact-spoilers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(520px, 100%);
  margin-top: 14px;
}

.contact-spoiler-card {
  position: relative;
  overflow: hidden;
  display: grid;
  flex: 1 1 188px;
  gap: 10px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgba(244, 241, 234, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transform-origin: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 220ms ease,
    transform 360ms cubic-bezier(0.18, 1.25, 0.24, 1);
}

.contact-spoiler-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(244, 241, 234, 0.08), transparent);
  opacity: 0;
  content: "";
  transform: translateX(-80%);
  transition: opacity 180ms ease;
}

.contact-spoiler-card:hover,
.contact-spoiler-card:focus-visible,
.contact-spoiler-card.is-active {
  border-color: rgba(244, 241, 234, 0.18);
  background:
    radial-gradient(circle at 86% 18%, rgba(244, 241, 234, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
  outline: none;
  transform: translateY(-1px) scale(1.012);
}

.contact-spoiler-card:hover::before,
.contact-spoiler-card:focus-visible::before {
  opacity: 1;
  animation: spoiler-sheen 1600ms ease;
}

.contact-spoiler-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-spoiler-head > span {
  font-size: 13px;
  font-weight: 560;
}

.contact-spoiler-head small {
  color: var(--faint);
  font-size: 12px;
  line-height: 1;
}

.secret-status-unlocked {
  display: none;
}

.contact-spoiler-card.is-unlocked .secret-status-locked {
  display: none;
}

.contact-spoiler-card.is-unlocked .secret-status-unlocked {
  display: inline;
  color: rgba(244, 241, 234, 0.78);
}

.spoiler-display {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  color: rgba(244, 241, 234, 0.86);
  font-size: 14px;
  line-height: 1.25;
}

.spoiler-obfuscation {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  background:
    radial-gradient(circle, rgba(244, 241, 234, 0.9) 0 1px, transparent 1.5px) 0 0 / 8px 8px,
    rgba(244, 241, 234, 0.08);
  color: rgba(244, 241, 234, 0.72);
  filter: blur(0.25px);
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: spoiler-noise 2400ms steps(5) infinite;
}

.spoiler-revealed {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-weight: 560;
  overflow-wrap: anywhere;
}

.contact-spoiler-card.is-unlocked .spoiler-obfuscation {
  display: none;
}

.contact-spoiler-card.is-unlocked .spoiler-revealed {
  display: inline-flex;
}

.wechat-qr-placeholder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 4px;
  border-radius: 5px;
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.16);
}

.wechat-qr-placeholder i {
  display: block;
  border-radius: 1px;
  background: #050505;
}

.wechat-qr-placeholder i:nth-child(2),
.wechat-qr-placeholder i:nth-child(5) {
  opacity: 0.35;
}

.wechat-qr-image {
  width: 188px;
  height: 188px;
  flex: 0 0 188px;
  padding: 8px;
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

@keyframes spoiler-noise {
  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(1px, -1px);
  }

  50% {
    transform: translate(-1px, 1px);
  }

  75% {
    transform: translate(1px, 1px);
  }
}

@keyframes spoiler-sheen {
  from {
    transform: translateX(-80%);
  }

  to {
    transform: translateX(80%);
  }
}

.projects {
  overflow: hidden;
  width: min(1504px, calc(100% - 32px));
  margin: 0 auto;
}

.projects > h2,
.experience > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.case {
  margin-bottom: 78px;
}

.showcase-carousel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--showcase-row-gap);
  height: var(--showcase-height);
  margin-bottom: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.showcase-row {
  min-width: 0;
  height: 100%;
}

.showcase-track {
  display: flex;
  gap: var(--showcase-card-gap);
  height: 100%;
  width: max-content;
  animation: showcase-scroll-left 62s linear infinite;
  will-change: transform;
}

.row-forward .showcase-track {
  animation-name: showcase-scroll-right;
}

.row-reverse {
  transform: translateX(-96px);
}

.showcase-carousel:hover .showcase-track,
.showcase-carousel:focus-within .showcase-track {
  animation-play-state: paused;
}

.showcase-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--showcase-card-gap);
  height: 100%;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #070707;
}

.showcase-card img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: 0.88;
  filter: saturate(0.88) contrast(1.06) brightness(0.82);
  transition:
    opacity 260ms ease,
    filter 260ms ease,
    transform 520ms ease;
}

.showcase-card:hover img {
  opacity: 1;
  filter: saturate(1.04) contrast(1.06) brightness(0.94);
  transform: scale(1.015);
}

.showcase-card figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@keyframes showcase-scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 8px));
  }
}

@keyframes showcase-scroll-right {
  from {
    transform: translateX(calc(-50% - 8px));
  }

  to {
    transform: translateX(0);
  }
}

.case-gallery {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.case-rail-wrap {
  position: relative;
  margin-bottom: 26px;
}

.case-rail {
  display: flex;
  gap: var(--showcase-card-gap);
  height: var(--showcase-row-height);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3.5%, #000 96.5%, transparent);
}

.case-rail::-webkit-scrollbar {
  display: none;
}

.case-rail:focus-visible {
  outline: 1px solid rgba(244, 241, 234, 0.26);
  outline-offset: 4px;
}

.tile.rail-tile {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  scroll-snap-align: start;
  background: #050505;
}

.tile.rail-tile img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: 0.94;
  filter: saturate(0.88) contrast(1.03) brightness(0.86);
}

.tile.rail-tile:hover img {
  opacity: 1;
  filter: saturate(1) contrast(1.04) brightness(0.96);
  transform: scale(1.012);
}

.case-rail-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.78);
  color: rgba(244, 241, 234, 0.8);
  cursor: pointer;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  backdrop-filter: blur(18px);
  transition:
    opacity 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.case-rail-button span {
  display: block;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.case-rail-button:hover,
.case-rail-button:focus-visible {
  border-color: rgba(244, 241, 234, 0.24);
  background: rgba(36, 36, 36, 0.88);
  color: var(--text);
  transform: translateY(-50%) scale(1.04);
}

.case-rail-button.is-disabled {
  opacity: 0.34;
  cursor: default;
}

.case-rail-button.is-disabled:hover,
.case-rail-button.is-disabled:focus-visible {
  border-color: var(--line-strong);
  background: rgba(18, 18, 18, 0.78);
  color: rgba(244, 241, 234, 0.8);
  transform: translateY(-50%);
}

.case-rail-button.is-prev {
  left: 12px;
}

.case-rail-button.is-next {
  right: 12px;
}

.gallery-large {
  grid-template-columns: 0.49fr 1fr 0.49fr;
  align-items: stretch;
}

.gallery-medium {
  grid-template-columns: repeat(3, 1fr);
}

.tile {
  overflow: hidden;
  min-height: 388px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tile img {
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.62) contrast(1.08) brightness(0.72);
  transition:
    opacity 260ms ease,
    transform 520ms ease,
    filter 260ms ease;
}

.tile:hover img {
  opacity: 1;
  filter: saturate(0.82) contrast(1.1) brightness(0.84);
  transform: scale(1.025);
}

.visual-tile img {
  opacity: 0.9;
  filter: saturate(0.92) contrast(1.1) brightness(0.82);
}

.visual-tile:hover img {
  filter: saturate(1.08) contrast(1.08) brightness(0.94);
}

.wide-tile {
  min-height: 388px;
}

.phone-tile img {
  object-position: center;
}

.empty-tile {
  min-height: 388px;
  background: #050505;
}

.lower-tile {
  grid-column: 2;
  min-height: 388px;
}

.medium-tile {
  min-height: 420px;
}

.case-showcase {
  align-items: stretch;
}

.case-showcase .tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: #050505;
}

.case-showcase .tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.96;
  filter: saturate(0.92) contrast(1.02) brightness(0.92);
}

.case-showcase .tile:hover img {
  opacity: 1;
  filter: saturate(1) contrast(1.04) brightness(1);
  transform: scale(1.012);
}

.two-up-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-up-showcase .tile {
  min-height: 470px;
}

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

.system-showcase .showcase-feature {
  min-height: 438px;
}

.system-showcase .showcase-support {
  min-height: 410px;
}

.system-showcase .showcase-tall {
  min-height: 620px;
}

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

.sales-showcase .tile {
  min-height: 420px;
}

.case-info,
.case-text,
.case-pdf-brief,
.sales-cover-figure,
.experience,
.about,
.contact-panel {
  width: min(512px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.sales-cover-figure {
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.sales-cover-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
}

.case-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.case-info > div {
  min-width: 0;
}

.case-info h3 {
  display: block;
  margin-right: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.case-info span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.case-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-info a:hover,
.case-info a:focus-visible {
  border-color: rgba(244, 241, 234, 0.22);
  background: rgba(244, 241, 234, 0.1);
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.case-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.case-text {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.case-text p,
.pdf-brief-note,
.pdf-lock-note,
.pdf-strategy p,
.about-bubble span,
.about-card span,
.about-card strong,
.chat-message,
.surprise-dialog p {
  overflow-wrap: anywhere;
}

.case-pdf-brief {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.pdf-brief-note {
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.pdf-brief-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.pdf-card {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 212px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #101010;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.pdf-card:hover {
  border-color: rgba(244, 241, 234, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    #121212;
  transform: translateY(-2px);
}

.pdf-card b {
  display: block;
  color: rgba(244, 241, 234, 0.78);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.pdf-card-file {
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.pdf-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pdf-card-file small {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.45;
}

.pdf-card-file strong {
  display: block;
  margin: 7px 0 10px;
  font-size: 18px;
  font-weight: 560;
  line-height: 1.35;
}

.pdf-card-file .pdf-card-header span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pdf-strategy {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.11), rgba(244, 241, 234, 0.025) 48%, rgba(141, 181, 255, 0.09)),
    #151515;
  box-shadow:
    inset 0 1px 0 rgba(244, 241, 234, 0.1),
    0 18px 46px rgba(0, 0, 0, 0.24);
}

.pdf-strategy::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    112deg,
    transparent 0%,
    transparent 33%,
    rgba(255, 255, 255, 0.14) 46%,
    transparent 58%,
    transparent 100%
  );
  opacity: 0.65;
  transform: translateX(-72%);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pdf-card:hover .pdf-strategy::before,
.pdf-card:focus-visible .pdf-strategy::before {
  transform: translateX(72%);
}

.pdf-strategy small {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 241, 234, 0.86);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.02em;
  line-height: 1;
}

.pdf-strategy p {
  position: relative;
  margin: 0;
  padding: 14px 15px 14px 42px;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 241, 234, 0.88)),
    var(--paper);
  color: #080808;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.45;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.pdf-strategy p::before {
  position: absolute;
  top: 14px;
  left: 15px;
  content: "→";
  color: rgba(0, 0, 0, 0.72);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.45;
}

.pdf-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 0;
}

.pdf-lock-note {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.pdf-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 241, 234, 0.72);
  font-size: 12px;
  line-height: 1;
}

.pdf-access-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.pdf-access-row a,
.pdf-access-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pdf-access-row a:hover,
.pdf-access-row a:focus-visible,
.pdf-access-row button:hover,
.pdf-access-row button:focus-visible {
  border-color: rgba(244, 241, 234, 0.24);
  background: rgba(244, 241, 234, 0.11);
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.pdf-access-row .is-primary {
  border-color: rgba(244, 241, 234, 0.22);
  background: var(--paper);
  color: var(--black);
}

.pdf-access-row .is-primary:hover,
.pdf-access-row .is-primary:focus-visible {
  border-color: var(--paper);
  background: #ffffff;
  color: #050505;
}

.case-detail-page .top-nav-inner,
.case-detail-page .notion-case-main {
  width: min(1100px, calc(100% - 32px));
}

.case-detail-page .nav-identity {
  color: var(--text);
  opacity: 1;
  pointer-events: auto;
  text-decoration: none;
  transform: none;
}

.case-detail-page .nav-identity:hover,
.case-detail-page .nav-identity:focus-visible {
  outline: none;
}

.case-detail-page .nav-identity span:last-child {
  line-height: 1.2;
}

.notion-case-main {
  margin: 0 auto;
  padding: 112px 0 118px;
}

.notion-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 28px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.notion-back-link:hover,
.notion-back-link:focus-visible {
  border-color: rgba(244, 241, 234, 0.22);
  background: rgba(244, 241, 234, 0.1);
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.notion-case {
  display: grid;
  gap: 30px;
}

.notion-hero {
  display: grid;
  gap: 22px;
  padding-bottom: 12px;
}

.notion-eyebrow {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.notion-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: 68px;
  font-weight: 620;
  line-height: 1.08;
}

.notion-hero > p:last-of-type {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.notion-cover {
  overflow: hidden;
  margin: 4px 0 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.notion-cover img {
  width: 100%;
  height: auto;
}

.notion-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.notion-metric {
  min-height: 86px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.notion-metric b {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 26px;
  font-weight: 650;
  line-height: 1;
}

.notion-metric span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notion-section {
  display: grid;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.notion-section h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 590;
  line-height: 1.22;
}

.notion-section > p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.notion-callout,
.notion-card,
.notion-table,
.notion-locked-pdf {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    #101010;
}

.notion-callout {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.notion-callout strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.4;
}

.notion-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.notion-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notion-card {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 18px;
}

.notion-card small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 640;
  line-height: 1;
}

.notion-card strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.35;
}

.notion-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.notion-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notion-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.notion-list li::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  content: "";
}

.notion-table {
  overflow: hidden;
}

.notion-row {
  display: grid;
  grid-template-columns: 0.78fr 1.15fr 1.25fr;
}

.notion-row + .notion-row {
  border-top: 1px solid var(--line);
}

.notion-cell {
  min-height: 86px;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.notion-cell + .notion-cell {
  border-left: 1px solid var(--line);
}

.notion-row.is-head .notion-cell {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.notion-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notion-step {
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 0%, rgba(244, 241, 234, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.035);
}

.notion-step small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
}

.notion-step strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.36;
}

.notion-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.notion-locked-pdf {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.notion-locked-pdf h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.notion-locked-pdf p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.76;
}

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

.notion-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.notion-actions a:hover,
.notion-actions a:focus-visible {
  border-color: rgba(244, 241, 234, 0.24);
  background: rgba(244, 241, 234, 0.11);
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.notion-actions a.is-primary {
  border-color: rgba(244, 241, 234, 0.22);
  background: var(--paper);
  color: var(--black);
}

.notion-actions a.is-primary:hover,
.notion-actions a.is-primary:focus-visible {
  border-color: var(--paper);
  background: #ffffff;
  color: #050505;
}

.compact-case {
  margin-top: 132px;
}

.experience {
  width: min(1340px, calc(100% - 64px));
  padding: 74px 0 148px;
}

.experience-timeline {
  position: relative;
  min-height: 202px;
  margin-bottom: 34px;
  --timeline-left: 0%;
  --timeline-width: 13.3%;
}

.timeline-line {
  position: absolute;
  right: 0;
  bottom: 54px;
  left: 0;
  height: 1px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(244, 241, 234, 0.38) 0,
      rgba(244, 241, 234, 0.38) 1px,
      transparent 1px,
      transparent 16px
    );
}

.timeline-duration {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: var(--timeline-left);
  width: var(--timeline-width);
  height: 15px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(244, 241, 234, 0.08), rgba(244, 241, 234, 0.24), rgba(244, 241, 234, 0.12)),
    rgba(244, 241, 234, 0.14);
  box-shadow: 0 0 24px rgba(244, 241, 234, 0.08);
  transform: translateY(-50%);
  transition:
    left 420ms cubic-bezier(0.22, 1, 0.36, 1),
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease,
    box-shadow 220ms ease;
  will-change: left, width;
}

.timeline-years {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--faint);
  font-size: 16px;
}

.timeline-item {
  position: absolute;
  bottom: 88px;
  display: grid;
  gap: 4px;
  width: var(--timeline-card-width, 154px);
  min-width: 0;
  max-width: var(--timeline-card-width, 154px);
  padding: 0;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  appearance: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform-origin: left bottom;
  transition:
    padding 240ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.timeline-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item strong {
  max-width: 100%;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 520;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.timeline-item small {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  transform: translateY(-4px);
  transition:
    opacity 180ms ease,
    max-height 220ms ease,
    transform 220ms ease;
}

.active-item {
  padding: 14px 16px 15px;
  background: rgba(244, 241, 234, 0.06);
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.08);
  transform: translateY(6px) scale(1.002);
}

.timeline-item:hover,
.timeline-item:focus-visible {
  outline: none;
  z-index: 5;
  width: var(--timeline-card-width, 154px);
  max-width: var(--timeline-card-width, 154px);
  padding: 14px 16px 15px;
  background: rgba(244, 241, 234, 0.06);
  box-shadow: inset 0 1px 0 rgba(244, 241, 234, 0.08);
  transform: translateY(6px) scale(1.002);
}

.timeline-item:hover strong,
.timeline-item:focus-visible strong {
  max-width: 100%;
}

.timeline-item:focus-visible {
  box-shadow:
    0 0 0 1px rgba(244, 241, 234, 0.22),
    0 0 0 4px rgba(244, 241, 234, 0.08);
}

.timeline-item:hover .timeline-icon,
.timeline-item:focus-visible .timeline-icon,
.active-item .timeline-icon {
  background: #fffaf0;
  color: #050505;
  transform: translateY(-1px) rotate(-1deg) scale(1.025);
}

.timeline-item:hover small,
.timeline-item:focus-visible small {
  opacity: 1;
  max-height: 108px;
  transform: translateY(0);
}

.mashang-item {
  left: 0;
  right: auto;
  --timeline-card-width: 13.3%;
}

.midea-item {
  left: 16.7%;
  --timeline-card-width: 18.8%;
}

.haiyu-item {
  left: 40%;
  --timeline-card-width: 18.8%;
}

.smzdm-item {
  left: 66.7%;
  --timeline-card-width: 10.7%;
}

.yuezhi-item {
  left: 80%;
  right: auto;
  --timeline-card-width: 16.5%;
}

.about {
  display: grid;
  gap: 10px;
  padding-bottom: 132px;
}

.about-avatar {
  overflow: hidden;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.about-avatar img,
.about-profile img,
.chat-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-bubble {
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.about-bio {
  display: grid;
  gap: 10px;
}

.about-bio [data-typewriter-line] {
  display: block;
}

.about-bio .is-typing-line::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 1em;
  margin-left: 3px;
  border-right: 1px solid currentColor;
  opacity: 0.72;
  vertical-align: -0.14em;
  animation: typeCursor 860ms steps(2, end) infinite;
}

@keyframes typeCursor {
  0%,
  45% {
    opacity: 0.72;
  }

  46%,
  100% {
    opacity: 0;
  }
}

.about-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.about-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #101010;
  color: var(--muted);
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.about-card:hover,
.about-card:focus-visible {
  border-color: rgba(244, 241, 234, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    #121212;
  transform: translateY(-2px);
}

.about-card b {
  position: absolute;
  right: 17px;
  bottom: 16px;
  color: rgba(244, 241, 234, 0.78);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.about-mail-card {
  display: grid;
  align-content: start;
  gap: 13px;
}

.mail-window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 5px;
}

.mail-window-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mail-window-dots i:nth-child(1) {
  background: #ff6b61;
}

.mail-window-dots i:nth-child(2) {
  background: #f6bd3a;
}

.mail-window-dots i:nth-child(3) {
  background: #2bd45c;
}

.about-mail-card span:not(.mail-window-dots) {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.about-mail-card strong {
  color: var(--muted);
  font-size: 16px;
  font-weight: 520;
}

.about-chat-card {
  position: relative;
  display: grid;
  align-content: start;
  isolation: isolate;
  cursor: pointer;
}

.about-chat-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 241, 234, 0.14), transparent 28%),
    linear-gradient(130deg, transparent 12%, rgba(255, 255, 255, 0.08), transparent 48%);
  opacity: 0.48;
  transform: translate3d(-8px, 8px, 0);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.about-chat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      115deg,
      transparent 16%,
      rgba(255, 255, 255, 0.03) 34%,
      rgba(255, 255, 255, 0.14) 48%,
      rgba(255, 255, 255, 0.03) 62%,
      transparent 78%
    );
  opacity: 0;
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
}

.about-chat-card > * {
  position: relative;
  z-index: 1;
}

.about-chat-card:hover::before,
.about-chat-card:focus-visible::before {
  opacity: 0.9;
  transform: translate3d(8px, -8px, 0);
}

.about-chat-card.is-chat-visible::after,
.about-chat-card:hover::after,
.about-chat-card:focus-visible::after {
  animation: chatCardSweep 2200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.chat-thread {
  display: grid;
  gap: 15px;
}

.chat-line {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  will-change: opacity, transform;
}

.about-chat-card.is-chat-visible .chat-line {
  animation: chatPopIn 920ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay);
}

.from-client {
  justify-content: flex-end;
}

.from-client .chat-avatar {
  order: 2;
}

.from-client .chat-content {
  align-items: flex-end;
}

.chat-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(244, 241, 234, 0.92), rgba(244, 241, 234, 0.66));
  color: var(--black);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  transform: scale(0.92);
}

.about-chat-card.is-chat-visible .chat-avatar {
  animation: chatAvatarPop 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--delay) + 120ms);
}

.chat-avatar-designer {
  background: #d8d8d8;
}

.chat-content {
  display: grid;
  gap: 7px;
  max-width: calc(100% - 46px);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-chat-card:hover .chat-content,
.about-chat-card:focus-visible .chat-content {
  transform: translateY(-2px);
}

.chat-role {
  color: var(--faint);
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
}

.about-chat-card.is-chat-visible .chat-role {
  animation: chatRoleFade 700ms ease forwards;
  animation-delay: calc(var(--delay) + 220ms);
}

.chat-message {
  position: relative;
  overflow: hidden;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 11px 14px;
  border-radius: 20px 20px 4px 20px;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.45;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.chat-message::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    linear-gradient(100deg, transparent 34%, rgba(255, 255, 255, 0.34) 50%, transparent 66%);
  opacity: 0;
  transform: translateX(-120%) rotate(8deg);
  pointer-events: none;
}

.about-chat-card.is-chat-visible .chat-message {
  animation: chatBubbleBreath 6200ms ease-in-out infinite;
  animation-delay: calc(var(--delay) + 1200ms);
}

.about-chat-card.is-chat-visible .chat-message::before {
  animation: chatBubbleSweep 1700ms ease both;
  animation-delay: calc(var(--delay) + 360ms);
}

.from-client .chat-message {
  background: var(--paper);
  color: var(--black);
}

.from-designer .chat-message {
  border-radius: 20px 20px 20px 4px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.chat-contact-cta {
  position: absolute;
  right: 16px;
  bottom: 15px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(244, 241, 234, 0.7);
  font-size: 13px;
  font-weight: 620;
  line-height: 1;
  transform: translateY(2px);
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.chat-contact-cta b {
  position: static;
  right: auto;
  bottom: auto;
  color: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

.about-chat-card:hover .chat-contact-cta,
.about-chat-card:focus-visible .chat-contact-cta {
  color: var(--text);
  transform: translateY(0);
}

@keyframes chatPopIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chatAvatarPop {
  0% {
    transform: scale(0.72);
  }

  62% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes chatRoleFade {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chatBubbleSweep {
  0% {
    opacity: 0;
    transform: translateX(-120%) rotate(8deg);
  }

  18%,
  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(120%) rotate(8deg);
  }
}

@keyframes chatBubbleBreath {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 12px 34px rgba(255, 255, 255, 0.055);
  }
}

@keyframes chatCardSweep {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-12deg);
  }

  20%,
  62% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-12deg);
  }
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-panel small {
  color: var(--faint);
  font-size: 13px;
}

.contact-panel strong {
  font-size: 16px;
  font-weight: 520;
}

.contact-panel a {
  width: fit-content;
}

body.modal-open {
  overflow: hidden;
}

.surprise-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.surprise-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(244, 241, 234, 0.1), transparent 34%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.surprise-dialog {
  position: relative;
  width: min(448px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.07), rgba(244, 241, 234, 0.035)),
    #080808;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.58);
  transform: translateY(10px) scale(0.98);
  transition: transform 220ms ease;
}

.surprise-modal.is-open .surprise-dialog {
  transform: translateY(0) scale(1);
}

.pdf-access-modal {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.pdf-access-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.pdf-access-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    radial-gradient(circle at 84% 16%, rgba(244, 241, 234, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(244, 241, 234, 0.07), rgba(244, 241, 234, 0.035)),
    #080808;
  box-shadow:
    0 40px 130px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transform: translateY(10px) scale(0.98);
  transition:
    width 240ms ease,
    transform 220ms ease;
}

.pdf-access-modal.is-open .pdf-access-dialog {
  transform: translateY(0) scale(1);
}

.pdf-access-modal.is-pdf-unlocked .pdf-access-dialog {
  width: min(1120px, 100%);
}

.pdf-access-dialog.is-invalid {
  animation: modal-invalid 320ms ease;
}

.pdf-access-dialog > small {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 13px;
}

.pdf-access-dialog h2 {
  max-width: 560px;
  margin-bottom: 12px;
  padding-right: 36px;
  color: var(--text);
  font-size: 20px;
  font-weight: 540;
  line-height: 1.35;
}

.pdf-access-dialog > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.pdf-access-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.pdf-access-form[hidden],
.pdf-viewer-panel[hidden] {
  display: none !important;
}

.pdf-access-form label {
  display: grid;
  gap: 8px;
}

.pdf-access-form label span {
  color: rgba(244, 241, 234, 0.72);
  font-size: 13px;
}

.pdf-access-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.pdf-access-form input::placeholder {
  color: rgba(244, 241, 234, 0.32);
}

.pdf-access-form input:focus {
  border-color: rgba(244, 241, 234, 0.3);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 0 3px rgba(244, 241, 234, 0.05);
}

.pdf-access-help {
  margin: -2px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.55;
}

.pdf-viewer-panel {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.pdf-viewer-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.pdf-viewer-toolbar span {
  color: var(--text);
  font-size: 13px;
  font-weight: 560;
}

.pdf-viewer-toolbar a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 180ms ease;
}

.pdf-viewer-toolbar a:hover,
.pdf-viewer-toolbar a:focus-visible {
  color: var(--text);
  outline: none;
}

.pdf-viewer-panel iframe {
  width: 100%;
  height: min(72vh, 720px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111;
}

@keyframes modal-invalid {
  0%,
  100% {
    transform: translateX(0);
  }

  28% {
    transform: translateX(-7px);
  }

  62% {
    transform: translateX(6px);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(244, 241, 234, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.surprise-dialog small {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 13px;
}

.surprise-dialog h2 {
  max-width: 300px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 540;
  line-height: 1.35;
}

.surprise-dialog p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.modal-secret[hidden],
.thread-spoiler-card[hidden],
.modal-secret-result[hidden],
.surprise-form[hidden] {
  display: none !important;
}

.modal-secret {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.surprise-modal.is-secret-mode .surprise-dialog {
  width: min(520px, 100%);
}

.thread-spoiler-card,
.modal-secret-result {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 234, 0.11);
  border-radius: 12px;
  background:
    radial-gradient(circle at 86% 16%, rgba(244, 241, 234, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 58px rgba(0, 0, 0, 0.26);
}

.thread-spoiler-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 10%, rgba(244, 241, 234, 0.08) 36%, transparent 62%),
    radial-gradient(circle at 18% 82%, rgba(244, 241, 234, 0.06), transparent 36%);
  content: "";
  opacity: 0.72;
}

.thread-spoiler-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.thread-profile-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
}

.thread-profile-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 50%;
  background: #d9d9d9;
}

.thread-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-profile-row strong {
  display: inline-flex;
  margin-right: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 620;
}

.thread-profile-row span:last-child {
  color: var(--faint);
  font-size: 13px;
}

.thread-spoiler-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(244, 241, 234, 0.92);
  font-size: 17px;
  font-weight: 520;
  line-height: 1.68;
}

.thread-spoiler-token {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 20px;
  max-height: 20px;
  margin: 0 3px;
  overflow: hidden;
  vertical-align: -0.26em;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
  white-space: nowrap;
  contain: layout paint;
}

.thread-spoiler-token::before,
.thread-spoiler-token::after {
  content: none;
}

.thread-noise-text {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  line-height: 0;
  white-space: nowrap;
  animation: thread-noise-field 5200ms ease-in-out infinite;
  will-change: transform;
}

.thread-noise-text i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(244, 241, 234, var(--alpha));
  box-shadow:
    0 0 4px rgba(244, 241, 234, 0.18),
    0 0 1px rgba(244, 241, 234, 0.42);
  filter: blur(var(--blur));
  transform: translate(-50%, -50%) scale(var(--scale));
  transform-origin: center;
  opacity: var(--alpha);
  animation: thread-noise-text var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

.thread-noise-text i:nth-child(4n) {
  background: rgba(244, 241, 234, var(--alpha-soft));
  animation-direction: alternate-reverse;
}

.thread-noise-text i:nth-child(5n) {
  opacity: var(--alpha-soft);
}

.thread-noise-text i:nth-child(7n) {
  animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
}

.thread-spoiler-hint {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: 999px;
  color: var(--faint);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.modal-secret-result {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.secret-waiting {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.secret-waiting strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 620;
}

.secret-waiting p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.secret-reveal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 12px;
}

.secret-reveal-card {
  display: grid;
  gap: 10px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.secret-reveal-card.is-wechat {
  gap: 12px;
}

.secret-reveal-card.is-phone {
  align-content: center;
}

.secret-reveal-card > span {
  color: var(--faint);
  font-size: 12px;
}

.secret-reveal-card > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.secret-reveal-media {
  justify-content: center;
}

.secret-reveal-card strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.secret-reveal-card small {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

@keyframes thread-noise-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(2px, -1px, 0) rotate(0.5deg);
  }

  50% {
    transform: translate3d(-2px, 2px, 0) rotate(-0.35deg);
  }

  75% {
    transform: translate3d(1px, 2px, 0) rotate(0.2deg);
  }
}

@keyframes thread-noise-scan {
  0%,
  100% {
    transform: translate3d(-3px, 1px, 0);
    opacity: 0.5;
  }

  45% {
    transform: translate3d(4px, -2px, 0);
    opacity: 0.72;
  }

  70% {
    transform: translate3d(1px, 3px, 0);
    opacity: 0.42;
  }
}

@keyframes thread-noise-field {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  34% {
    transform: translate3d(1px, -1px, 0);
  }

  68% {
    transform: translate3d(-1px, 1px, 0);
  }
}

@keyframes thread-noise-text {
  0% {
    opacity: var(--alpha-soft);
    transform: translate(calc(-50% - var(--dx)), calc(-50% + var(--dy))) scale(var(--scale));
  }

  38% {
    opacity: var(--alpha);
    transform: translate(-50%, -50%) scale(var(--scale));
  }

  62% {
    opacity: var(--alpha-strong);
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--scale));
  }

  100% {
    opacity: var(--alpha-soft);
    transform: translate(calc(-50% - var(--dx)), calc(-50% - var(--dy))) scale(var(--scale));
  }
}

@keyframes avatar-swap {
  0% {
    opacity: 0.58;
    transform: scale(0.94) rotate(-2deg);
  }

  58% {
    opacity: 1;
    transform: scale(1.07) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.surprise-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.surprise-form label {
  display: grid;
  gap: 8px;
}

.surprise-form label span {
  color: rgba(244, 241, 234, 0.72);
  font-size: 13px;
}

.surprise-form input,
.surprise-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.surprise-form input {
  min-height: 44px;
  padding: 0 13px;
}

.surprise-form textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
}

.surprise-form input::placeholder,
.surprise-form textarea::placeholder {
  color: rgba(244, 241, 234, 0.34);
}

.surprise-form input:focus,
.surprise-form textarea:focus {
  border-color: rgba(244, 241, 234, 0.28);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 0 3px rgba(244, 241, 234, 0.05);
}

.form-note,
.modal-feedback {
  margin: 0;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  transform-origin: center;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 420ms cubic-bezier(0.18, 1.7, 0.24, 1),
    border-color 180ms ease;
  will-change: transform;
}

.modal-primary {
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--black);
}

.modal-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

:root[data-theme="light"] .top-nav {
  border-bottom-color: rgba(17, 16, 14, 0.055);
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.72), rgba(244, 241, 234, 0.34));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.38);
}

:root[data-theme="light"] .top-nav::after {
  background: linear-gradient(180deg, rgba(244, 241, 234, 0.22), rgba(244, 241, 234, 0));
}

:root[data-theme="light"] .nav-avatar,
:root[data-theme="light"] .identity-photo {
  background: #fffaf0;
}

:root[data-theme="light"] .nav-logo img {
  filter: invert(1) contrast(1.05);
}

:root[data-theme="light"] .language-switch,
:root[data-theme="light"] .theme-switch {
  background: rgba(17, 16, 14, 0.045);
}

:root[data-theme="light"] .spotlight-beam {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.92) 0, rgba(216, 214, 207, 0.24) 15%, rgba(142, 147, 154, 0.1) 36%, transparent 68%),
    radial-gradient(ellipse at 48% 43%, rgba(212, 200, 174, 0.12) 0, transparent 33%);
  filter: blur(18px) saturate(0.9);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

:root[data-theme="light"] .spotlight-small {
  opacity: 0.38;
}

:root[data-theme="light"] .role-tags span {
  color: rgba(17, 16, 14, 0.62);
}

:root[data-theme="light"] .role-tags span:first-child {
  color: rgba(17, 16, 14, 0.9);
}

:root[data-theme="light"] .role-tags span::before {
  border-color: rgba(17, 16, 14, 0.4);
}

:root[data-theme="light"] .role-tags span:first-child::before {
  background: rgba(17, 16, 14, 0.86);
  border-color: rgba(17, 16, 14, 0.86);
}

:root[data-theme="light"] .role-tags span:not(:last-child)::after {
  background: rgba(17, 16, 14, 0.16);
}

:root[data-theme="light"] .intro-actions a,
:root[data-theme="light"] .intro-actions button,
:root[data-theme="light"] .case-info a,
:root[data-theme="light"] .contact-panel a,
:root[data-theme="light"] .dock-nav a {
  background: rgba(17, 16, 14, 0.045);
  color: rgba(17, 16, 14, 0.72);
}

:root[data-theme="light"] .intro-actions a:hover,
:root[data-theme="light"] .intro-actions button:hover,
:root[data-theme="light"] .intro-actions button:focus-visible,
:root[data-theme="light"] .case-info a:hover,
:root[data-theme="light"] .contact-panel a:hover,
:root[data-theme="light"] .dock-nav a:hover {
  background: rgba(17, 16, 14, 0.08);
  color: var(--text);
}

:root[data-theme="light"] .intro-actions .primary-action,
:root[data-theme="light"] .intro-actions .primary-action:hover,
:root[data-theme="light"] .intro-actions .primary-action:focus-visible,
:root[data-theme="light"] .dock-nav .dock-cta,
:root[data-theme="light"] .dock-nav .dock-cta:hover,
:root[data-theme="light"] .dock-nav .dock-cta:focus-visible,
:root[data-theme="light"] .modal-primary {
  border-color: #11100e;
  background: #11100e;
  color: #f7f2e9;
}

:root[data-theme="light"] .contact-spoiler-card {
  border-color: rgba(17, 16, 14, 0.1);
  background:
    radial-gradient(circle at 86% 18%, rgba(17, 16, 14, 0.06), transparent 34%),
    rgba(255, 250, 240, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

:root[data-theme="light"] .contact-spoiler-card:hover,
:root[data-theme="light"] .contact-spoiler-card:focus-visible,
:root[data-theme="light"] .contact-spoiler-card.is-active {
  border-color: rgba(17, 16, 14, 0.16);
  background:
    radial-gradient(circle at 86% 18%, rgba(17, 16, 14, 0.08), transparent 34%),
    rgba(255, 250, 240, 0.86);
  box-shadow: 0 18px 48px rgba(17, 16, 14, 0.12);
}

:root[data-theme="light"] .contact-spoiler-head small {
  color: rgba(17, 16, 14, 0.42);
}

:root[data-theme="light"] .contact-spoiler-card.is-unlocked .secret-status-unlocked,
:root[data-theme="light"] .spoiler-display {
  color: rgba(17, 16, 14, 0.78);
}

:root[data-theme="light"] .spoiler-obfuscation {
  background:
    radial-gradient(circle, rgba(17, 16, 14, 0.72) 0 1px, transparent 1.5px) 0 0 / 8px 8px,
    rgba(17, 16, 14, 0.06);
  color: rgba(17, 16, 14, 0.55);
}

:root[data-theme="light"] .wechat-qr-placeholder {
  background: #11100e;
  box-shadow: inset 0 0 0 1px rgba(17, 16, 14, 0.08);
}

:root[data-theme="light"] .wechat-qr-placeholder i {
  background: #fffaf0;
}

:root[data-theme="light"] .pdf-access-dialog {
  border-color: rgba(17, 16, 14, 0.12);
  background:
    radial-gradient(circle at 84% 16%, rgba(17, 16, 14, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.74)),
    #fffaf0;
  box-shadow:
    0 36px 96px rgba(17, 16, 14, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

:root[data-theme="light"] .pdf-access-form label span {
  color: rgba(17, 16, 14, 0.68);
}

:root[data-theme="light"] .pdf-access-form input,
:root[data-theme="light"] .pdf-viewer-toolbar {
  border-color: rgba(17, 16, 14, 0.12);
  background: rgba(17, 16, 14, 0.045);
  color: var(--text);
}

:root[data-theme="light"] .pdf-access-form input::placeholder,
:root[data-theme="light"] .pdf-access-help,
:root[data-theme="light"] .pdf-viewer-toolbar a {
  color: rgba(17, 16, 14, 0.48);
}

:root[data-theme="light"] .pdf-access-form input:focus {
  border-color: rgba(17, 16, 14, 0.2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(17, 16, 14, 0.05);
}

:root[data-theme="light"] .pdf-viewer-panel iframe {
  border-color: rgba(17, 16, 14, 0.12);
  background: #fff;
}

:root[data-theme="light"] .dock-nav {
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 0 20px 80px rgba(17, 16, 14, 0.16);
}

:root[data-theme="light"] .showcase-card,
:root[data-theme="light"] .tile.rail-tile,
:root[data-theme="light"] .case-showcase .tile,
:root[data-theme="light"] .empty-tile,
:root[data-theme="light"] .sales-cover-figure {
  background: #ebe5dc;
}

:root[data-theme="light"] .tile,
:root[data-theme="light"] .pdf-brief-note,
:root[data-theme="light"] .about-bubble,
:root[data-theme="light"] .contact-panel {
  background: rgba(255, 250, 240, 0.66);
}

:root[data-theme="light"] .showcase-card img,
:root[data-theme="light"] .tile img,
:root[data-theme="light"] .tile.rail-tile img,
:root[data-theme="light"] .case-showcase .tile img {
  opacity: 0.94;
  filter: saturate(0.92) contrast(1.02) brightness(0.98);
}

:root[data-theme="light"] .showcase-card:hover img,
:root[data-theme="light"] .tile:hover img,
:root[data-theme="light"] .tile.rail-tile:hover img,
:root[data-theme="light"] .case-showcase .tile:hover img {
  opacity: 1;
  filter: saturate(1) contrast(1.04) brightness(1);
}

:root[data-theme="light"] .case-rail-button {
  background: rgba(255, 250, 240, 0.78);
  color: rgba(17, 16, 14, 0.78);
  box-shadow: 0 18px 52px rgba(17, 16, 14, 0.16);
}

:root[data-theme="light"] .case-rail-button:hover,
:root[data-theme="light"] .case-rail-button:focus-visible {
  background: rgba(255, 250, 240, 0.94);
  color: var(--text);
}

:root[data-theme="light"] .pdf-card,
:root[data-theme="light"] .about-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 240, 0.44)),
    #fffaf0;
  box-shadow: 0 18px 54px rgba(17, 16, 14, 0.06);
}

:root[data-theme="light"] .pdf-card:hover,
:root[data-theme="light"] .about-card:hover,
:root[data-theme="light"] .about-card:focus-visible {
  border-color: rgba(17, 16, 14, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.56)),
    #fffef8;
}

:root[data-theme="light"] .pdf-card b,
:root[data-theme="light"] .about-card b,
:root[data-theme="light"] .pdf-metrics span {
  color: rgba(17, 16, 14, 0.7);
}

:root[data-theme="light"] .pdf-metrics span {
  background: rgba(17, 16, 14, 0.045);
}

:root[data-theme="light"] .pdf-strategy {
  border-color: rgba(17, 16, 14, 0.13);
  background:
    linear-gradient(135deg, rgba(17, 16, 14, 0.075), rgba(255, 250, 240, 0.5) 48%, rgba(49, 87, 255, 0.08)),
    #f7f2e9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 46px rgba(17, 16, 14, 0.08);
}

:root[data-theme="light"] .pdf-strategy small {
  border-color: rgba(17, 16, 14, 0.13);
  background: rgba(17, 16, 14, 0.06);
  color: rgba(17, 16, 14, 0.74);
}

:root[data-theme="light"] .case-info a,
:root[data-theme="light"] .pdf-access-row a,
:root[data-theme="light"] .pdf-access-row button,
:root[data-theme="light"] .notion-back-link,
:root[data-theme="light"] .notion-actions a {
  background: rgba(17, 16, 14, 0.045);
  color: rgba(17, 16, 14, 0.66);
}

:root[data-theme="light"] .case-info a:hover,
:root[data-theme="light"] .case-info a:focus-visible,
:root[data-theme="light"] .pdf-access-row a:hover,
:root[data-theme="light"] .pdf-access-row a:focus-visible,
:root[data-theme="light"] .pdf-access-row button:hover,
:root[data-theme="light"] .pdf-access-row button:focus-visible,
:root[data-theme="light"] .notion-back-link:hover,
:root[data-theme="light"] .notion-back-link:focus-visible,
:root[data-theme="light"] .notion-actions a:hover,
:root[data-theme="light"] .notion-actions a:focus-visible {
  border-color: rgba(17, 16, 14, 0.18);
  background: rgba(17, 16, 14, 0.07);
  color: var(--text);
}

:root[data-theme="light"] .pdf-access-row .is-primary,
:root[data-theme="light"] .notion-actions a.is-primary {
  border-color: rgba(17, 16, 14, 0.18);
  background: var(--paper);
  color: var(--black);
}

:root[data-theme="light"] .pdf-access-row .is-primary:hover,
:root[data-theme="light"] .pdf-access-row .is-primary:focus-visible,
:root[data-theme="light"] .notion-actions a.is-primary:hover,
:root[data-theme="light"] .notion-actions a.is-primary:focus-visible {
  border-color: #11100e;
  background: #11100e;
  color: #f7f2e9;
}

:root[data-theme="light"] .notion-callout,
:root[data-theme="light"] .notion-card,
:root[data-theme="light"] .notion-table,
:root[data-theme="light"] .notion-locked-pdf {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 250, 240, 0.5)),
    #fffaf0;
  box-shadow: 0 18px 54px rgba(17, 16, 14, 0.05);
}

:root[data-theme="light"] .notion-metric,
:root[data-theme="light"] .notion-step {
  background: rgba(255, 250, 240, 0.64);
}

:root[data-theme="light"] .notion-row.is-head .notion-cell {
  background: rgba(17, 16, 14, 0.045);
}

:root[data-theme="light"] .timeline-line {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(17, 16, 14, 0.26) 0,
      rgba(17, 16, 14, 0.26) 1px,
      transparent 1px,
      transparent 16px
    );
}

:root[data-theme="light"] .timeline-duration {
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.08), rgba(17, 16, 14, 0.22), rgba(17, 16, 14, 0.1)),
    rgba(17, 16, 14, 0.11);
  box-shadow: 0 0 24px rgba(17, 16, 14, 0.06);
}

:root[data-theme="light"] .active-item {
  background: rgba(17, 16, 14, 0.055);
  box-shadow: inset 0 1px 0 rgba(17, 16, 14, 0.08);
}

:root[data-theme="light"] .timeline-item:focus-visible {
  box-shadow:
    0 0 0 1px rgba(17, 16, 14, 0.18),
    0 0 0 4px rgba(17, 16, 14, 0.06);
}

:root[data-theme="light"] .timeline-item:hover .timeline-icon,
:root[data-theme="light"] .timeline-item:focus-visible .timeline-icon,
:root[data-theme="light"] .active-item .timeline-icon {
  background: #11100e;
  color: #f7f2e9;
}

:root[data-theme="light"] .from-client .chat-message {
  background: #11100e;
  color: #f7f2e9;
}

:root[data-theme="light"] .from-designer .chat-message,
:root[data-theme="light"] .modal-secondary,
:root[data-theme="light"] .surprise-form input,
:root[data-theme="light"] .surprise-form textarea,
:root[data-theme="light"] .modal-close {
  background: rgba(17, 16, 14, 0.045);
}

:root[data-theme="light"] .from-designer .chat-message {
  color: rgba(17, 16, 14, 0.82);
}

:root[data-theme="light"] .chat-contact-cta,
:root[data-theme="light"] .chat-contact-cta b {
  color: rgba(17, 16, 14, 0.62);
}

:root[data-theme="light"] .about-chat-card:hover .chat-contact-cta,
:root[data-theme="light"] .about-chat-card:focus-visible .chat-contact-cta,
:root[data-theme="light"] .about-chat-card:hover .chat-contact-cta b,
:root[data-theme="light"] .about-chat-card:focus-visible .chat-contact-cta b {
  color: var(--text);
}

:root[data-theme="light"] .chat-avatar {
  border-color: rgba(17, 16, 14, 0.12);
  background:
    linear-gradient(135deg, rgba(17, 16, 14, 0.92), rgba(17, 16, 14, 0.68));
  color: #f7f2e9;
}

:root[data-theme="light"] .chat-avatar-designer {
  background: #d9d9d9;
}

:root[data-theme="light"] .about-chat-card::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(17, 16, 14, 0.12), transparent 28%),
    linear-gradient(130deg, transparent 12%, rgba(17, 16, 14, 0.06), transparent 48%);
}

:root[data-theme="light"] .about-chat-card::after {
  background:
    linear-gradient(
      115deg,
      transparent 16%,
      rgba(17, 16, 14, 0.02) 34%,
      rgba(17, 16, 14, 0.1) 48%,
      rgba(17, 16, 14, 0.02) 62%,
      transparent 78%
    );
}

:root[data-theme="light"] .modal-backdrop {
  background:
    radial-gradient(circle at 50% 28%, rgba(17, 16, 14, 0.08), transparent 34%),
    rgba(244, 241, 234, 0.78);
}

:root[data-theme="light"] .surprise-dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 240, 0.58)),
    #fffaf0;
  box-shadow: 0 36px 120px rgba(17, 16, 14, 0.18);
}

:root[data-theme="light"] .thread-spoiler-card,
:root[data-theme="light"] .modal-secret-result {
  border-color: rgba(17, 16, 14, 0.1);
  background:
    radial-gradient(circle at 86% 16%, rgba(17, 16, 14, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 240, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 20px 50px rgba(17, 16, 14, 0.1);
}

:root[data-theme="light"] .thread-spoiler-card::before {
  background:
    linear-gradient(115deg, transparent 10%, rgba(17, 16, 14, 0.06) 36%, transparent 62%),
    radial-gradient(circle at 18% 82%, rgba(17, 16, 14, 0.045), transparent 36%);
}

:root[data-theme="light"] .thread-profile-row strong,
:root[data-theme="light"] .thread-spoiler-copy,
:root[data-theme="light"] .secret-waiting strong,
:root[data-theme="light"] .secret-reveal-card strong {
  color: rgba(17, 16, 14, 0.9);
}

:root[data-theme="light"] .thread-spoiler-token {
  background: transparent;
}

:root[data-theme="light"] .thread-noise-text i {
  background: rgba(17, 16, 14, var(--alpha));
  box-shadow:
    0 0 4px rgba(17, 16, 14, 0.1),
    0 0 1px rgba(17, 16, 14, 0.32);
}

:root[data-theme="light"] .thread-spoiler-hint,
:root[data-theme="light"] .secret-reveal-card {
  border-color: rgba(17, 16, 14, 0.08);
  background: rgba(17, 16, 14, 0.035);
}

:root[data-theme="light"] .surprise-form label span {
  color: rgba(17, 16, 14, 0.68);
}

:root[data-theme="light"] .surprise-form input::placeholder,
:root[data-theme="light"] .surprise-form textarea::placeholder {
  color: rgba(17, 16, 14, 0.36);
}

@keyframes spotlightLeft {
  0% {
    opacity: 0.42;
    transform: rotate(-19deg) translate3d(-106px, -18px, 0) scale(0.96);
  }

  50% {
    opacity: 0.66;
    transform: rotate(-17deg) translate3d(24px, 26px, 0) scale(1.02);
  }

  100% {
    opacity: 0.5;
    transform: rotate(-20deg) translate3d(96px, -4px, 0) scale(1);
  }
}

@keyframes spotlightRight {
  0% {
    opacity: 0.4;
    transform: rotate(19deg) translate3d(108px, -14px, 0) scale(0.96);
  }

  50% {
    opacity: 0.64;
    transform: rotate(17deg) translate3d(-26px, 24px, 0) scale(1.02);
  }

  100% {
    opacity: 0.5;
    transform: rotate(20deg) translate3d(-96px, 0, 0) scale(1);
  }
}

@keyframes spotlightSmall {
  0% {
    opacity: 0.32;
    transform: rotate(-14deg) translate3d(-72px, -12px, 0) scale(0.96);
  }

  50% {
    opacity: 0.54;
    transform: rotate(-10deg) translate3d(0, 18px, 0) scale(1.04);
  }

  100% {
    opacity: 0.38;
    transform: rotate(-16deg) translate3d(68px, -2px, 0) scale(1);
  }
}

@keyframes spotlightAmbient {
  0% {
    opacity: 0.62;
    transform: translate3d(-1.8%, -1%, 0) scale(1);
  }

  50% {
    opacity: 0.82;
    transform: translate3d(1.2%, 1.4%, 0) scale(1.035);
  }

  100% {
    opacity: 0.68;
    transform: translate3d(2%, -0.4%, 0) scale(1.018);
  }
}

.modal-actions button:hover,
.modal-actions button:focus-visible {
  transform: translateY(-1px) scale(1.035);
}

.modal-secondary:hover,
.modal-secondary:focus-visible {
  border-color: rgba(244, 241, 234, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

:root[data-theme="light"] .modal-secondary:hover,
:root[data-theme="light"] .modal-secondary:focus-visible {
  border-color: rgba(17, 16, 14, 0.18);
  background: rgba(17, 16, 14, 0.075);
  color: var(--text);
}

.modal-feedback {
  min-height: 20px;
  color: var(--accent);
}

.dock-nav {
  position: fixed;
  right: 50%;
  bottom: 24px;
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.86);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.46);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
  transform-origin: center;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 420ms cubic-bezier(0.18, 1.7, 0.24, 1);
  will-change: transform;
}

@media (max-width: 980px) {
  .intro {
    padding-top: 96px;
  }

  .gallery-large,
  .gallery-medium,
  .two-up-showcase,
  .system-showcase,
  .sales-showcase {
    grid-template-columns: 1fr;
  }

  .tile,
  .wide-tile,
  .empty-tile,
  .lower-tile,
  .medium-tile {
    grid-column: auto;
    min-height: 360px;
  }

  .case-showcase .tile,
  .two-up-showcase .tile,
  .system-showcase .showcase-feature,
  .system-showcase .showcase-support,
  .system-showcase .showcase-tall,
  .sales-showcase .tile {
    min-height: 360px;
  }

  .tile.rail-tile {
    min-height: 0;
  }

  .empty-tile {
    display: none;
  }

  .experience {
    width: min(100% - 32px, 512px);
  }

  .experience-timeline {
    display: grid;
    gap: 12px;
    min-height: 0;
  }

  .timeline-item {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 4px 12px;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 14px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transform: none;
  }

  .timeline-icon {
    grid-row: span 2;
    margin: 0;
  }

  .timeline-item small {
    opacity: 1;
    max-height: none;
    overflow: visible;
    transform: none;
  }

  .active-item {
    padding: 14px;
    border-radius: 12px;
    background: rgba(244, 241, 234, 0.045);
    transform: none;
  }

  .timeline-item strong {
    overflow: visible;
    text-overflow: initial;
  }

  .timeline-line,
  .timeline-years {
    display: none;
  }

  .notion-hero h1 {
    font-size: 54px;
  }

  .notion-meta-grid,
  .notion-card-grid,
  .notion-step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notion-row {
    grid-template-columns: 1fr;
  }

  .notion-cell + .notion-cell {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --showcase-card-gap: 10px;
    --showcase-height: 332px;
    --showcase-row-height: 159px;
  }

  body {
    font-size: 14px;
  }

  main {
    padding-bottom: 100px;
  }

  .intro {
    width: min(100% - 28px, 600px);
    padding: 74px 0 58px;
  }

  .hero-spotlight {
    top: -210px;
    height: 560px;
    width: 100vw;
  }

  .spotlight-beam {
    width: 420px;
    height: 980px;
    opacity: 0.45;
  }

  .spotlight-left {
    top: -320px;
    left: -245px;
  }

  .spotlight-right {
    top: -320px;
    right: -245px;
  }

  .spotlight-small {
    top: -54px;
    left: 46%;
    width: 180px;
    height: 390px;
  }

  .top-nav {
    height: 60px;
  }

  .top-nav-inner {
    width: calc(100% - 32px);
  }

  .nav-logo {
    width: 94px;
    height: 30px;
  }

  .nav-tools {
    gap: 8px;
  }

  .language-switch,
  .theme-switch {
    padding: 2px;
  }

  .language-switch button,
  .theme-switch button {
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .theme-switch button {
    min-width: 24px;
    width: 24px;
    padding: 0;
  }

  .theme-icon {
    width: 14px;
    height: 14px;
  }

  .nav-identity {
    gap: 8px;
  }

  .nav-avatar {
    width: 30px;
    height: 30px;
  }

  .nav-identity span:last-child {
    font-size: 14px;
  }

  .intro-profile {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 14px;
    margin-bottom: 24px;
  }

  .intro-avatar-lockup .identity-photo {
    width: 52px;
    height: 52px;
  }

  .role-tags,
  .intro-copy,
  .case-info h3,
  .case-info span,
  .case-text,
  .about-bubble,
  .dock-nav a {
    font-size: 15px;
  }

  .projects {
    width: min(100% - 20px, 1504px);
  }

  .case {
    margin-bottom: 58px;
  }

  .showcase-carousel {
    height: 332px;
    margin-right: -4px;
    margin-left: -4px;
  }

  .showcase-row {
    height: 159px;
  }

  .showcase-track,
  .showcase-set {
    gap: 10px;
  }

  .showcase-track {
    animation-duration: 46s;
  }

  .row-reverse {
    transform: translateX(-48px);
  }

  .compact-case {
    margin-top: 78px;
  }

  .tile,
  .wide-tile,
  .lower-tile,
  .medium-tile {
    min-height: 286px;
  }

  .case-showcase {
    gap: 10px;
  }

  .case-showcase .tile,
  .two-up-showcase .tile,
  .system-showcase .showcase-feature,
  .system-showcase .showcase-support,
  .system-showcase .showcase-tall,
  .sales-showcase .tile {
    min-height: 286px;
  }

  .tile.rail-tile {
    min-height: 0;
  }

  .case-rail {
    margin-right: -4px;
    margin-left: -4px;
  }

  .case-rail-button {
    width: 34px;
    height: 34px;
  }

  .case-rail-button.is-next {
    right: auto;
    left: 54px;
  }

  .case-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-actions {
    justify-content: flex-start;
  }

  .experience,
  .about,
  .contact-panel,
  .case-info,
  .case-text,
  .case-pdf-brief,
  .sales-cover-figure {
    width: min(100% - 28px, 512px);
  }

  .pdf-brief-grid {
    grid-template-columns: 1fr;
  }

  .pdf-card {
    min-height: 174px;
  }

  .case-detail-page .top-nav-inner,
  .case-detail-page .notion-case-main {
    width: min(100% - 28px, 512px);
  }

  .notion-case-main {
    padding: 88px 0 94px;
  }

  .notion-hero h1 {
    font-size: 42px;
  }

  .notion-hero > p:last-of-type {
    font-size: 16px;
  }

  .notion-meta-grid,
  .notion-card-grid,
  .notion-step-grid {
    grid-template-columns: 1fr;
  }

  .notion-metric,
  .notion-card,
  .notion-step {
    min-height: 0;
  }

  .experience {
    padding: 42px 0 98px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-card-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: 202px;
  }

  .dock-nav {
    right: 10px;
    left: 10px;
    justify-content: center;
    overflow-x: auto;
    transform: none;
  }

  .dock-nav a {
    min-height: 38px;
    padding: 0 14px;
  }

  .surprise-modal {
    align-items: end;
    padding: 12px;
  }

  .surprise-dialog,
  .pdf-access-dialog {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .pdf-access-modal {
    align-items: end;
    padding: 12px;
  }

  .pdf-access-modal.is-pdf-unlocked .pdf-access-dialog {
    width: 100%;
  }

  .pdf-viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdf-viewer-panel iframe {
    height: 62vh;
  }

  .secret-reveal-grid {
    grid-template-columns: 1fr;
  }

  .thread-spoiler-copy {
    font-size: 16px;
  }

  .thread-spoiler-token {
    width: 108px;
  }

  .modal-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav-tools {
    gap: 6px;
  }

  .nav-identity span:last-child {
    display: none;
  }

  .theme-switch button {
    min-width: 24px;
    width: 24px;
    padding: 0;
  }

  .nav-logo {
    width: 86px;
  }
}

@media (max-height: 680px) {
  .surprise-dialog,
  .pdf-access-dialog {
    padding: 20px;
  }

  .surprise-form {
    gap: 12px;
    margin-top: 18px;
  }

  .surprise-form textarea {
    min-height: 72px;
  }
}

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

  .chat-line,
  .chat-role {
    opacity: 1 !important;
    transform: none !important;
  }

.chat-avatar {
  transform: none !important;
}
}

.projects .case + .case,
.experience,
.about,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}
