.flip-bw {
  position: absolute;
  top: 50%;
  left: 50%;
  perspective: 2200px;
  touch-action: pan-y;
  isolation: isolate;
  z-index: 0;
}
.flip-bw::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  pointer-events: none;
  border-radius: 4px 14px 14px 4px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.07);
  transition:
    left 0.4s ease,
    width 0.35s ease,
    border-radius 0.35s ease;
  z-index: 0;
}
.flip-bw--spread::before {
  left: -100%;
  width: 200%;
  border-radius: 14px;
}
.flip-book {
  position: relative;
  z-index: 1;
  width: min(42vw, 480px);
  height: min(60vw, 680px);
  transform-style: preserve-3d;
  background: transparent;
}
.flip-page {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
}
.flip-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  box-shadow: inset -5px 0 20px #00000005;
  overflow: hidden;
  box-sizing: border-box;
}
.flip-cover-f {
  background-color: #002fa7;
  color: #fff;
  border-radius: 4px 14px 14px 4px;
  background-image: linear-gradient(120deg, #ffffff0d, #0000001a);
  box-shadow: inset 8px 0 20px #0003;
  padding: 50px 36px;
  justify-content: flex-end;
}
.flip-cover-b {
  transform: rotateY(180deg);
  background-color: #002fa7;
  color: #fff;
  border-radius: 14px 4px 4px 14px;
  background-image: linear-gradient(120deg, #0000001a, #ffffff0d);
  box-shadow: inset -8px 0 20px #0003;
  padding: 50px 36px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.flip-inner-page {
  background: #faf9f7 !important;
  padding: 0 !important;
  box-shadow: inset -3px 0 12px #00000008;
}
.flip-front {
  transform: rotateY(0);
  border-radius: 2px 10px 10px 2px;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  padding: 36px;
}
.flip-back {
  transform: rotateY(180deg);
  border-radius: 10px 2px 2px 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  background: #fafafa;
  padding: 36px;
}
.flip-meta {
  font-family:
    Monaco,
    Courier New,
    "Noto Sans SC",
    monospace;
  font-size: 9px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #002fa7;
}
.flip-cover-f .flip-meta {
  font-size: 10px;
}
.flip-cover-b .flip-meta {
  font-size: 10px;
}
html[data-language="zh"] .flip-cover-b .flip-meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
}
.flip-title {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(22px, 3.5vw, 32px);
  margin-bottom: 14px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}
.flip-prologue-page .flip-meta {
  margin-left: 18px;
  margin-bottom: 16px;
  letter-spacing: 2.6px;
}
.flip-prologue-title {
  position: relative;
  padding-left: 18px;
  margin-bottom: 20px;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.flip-prologue-title::before {
  content: "";
  position: absolute;
  top: 0.08em;
  bottom: 0.02em;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: #002fa7;
}
.flip-prologue-title span {
  display: inline-block;
  margin-top: 0.12em;
  margin-left: 0.7em;
  font-size: 1.18em;
  letter-spacing: -0.035em;
}
.flip-prologue-page .flip-desc {
  max-width: calc(100% - 18px);
  margin-left: 18px;
}
.flip-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  font-family: Georgia, "Noto Serif SC", serif;
}
.flip-pg-photo {
  padding: 24px 28px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.flip-photo-cap-top {
  font-family:
    Monaco,
    Courier New,
    "Noto Sans SC",
    monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #002fa7;
  margin-bottom: 12px;
  text-align: center;
  width: 82%;
}
.flip-photo-img {
  width: 78%;
  aspect-ratio: 4/3;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  box-shadow:
    0 12px 30px #002fa714,
    0 0 0 1px #002fa70d;
}
.flip-photo-cap-bot {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
  width: 82%;
  font-style: italic;
}
.flip-full-bleed {
  padding: 0 !important;
  align-items: stretch;
}
.flip-bleed-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.flip-photo-img-portrait {
  aspect-ratio: 3/4 !important;
  width: 74% !important;
}
.flip-cap-top-layout {
  justify-content: flex-start;
  padding-top: 32px !important;
}
.flip-cap-bot-layout {
  justify-content: flex-end;
  padding-bottom: 32px !important;
}
.flip-breath-pg {
  padding: 40px !important;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.flip-breath-line {
  width: 40px;
  height: 1px;
  background: #0000001f;
  margin-bottom: 16px;
}
.flip-breath-txt {
  font-family: Monaco, "Noto Sans SC", monospace;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0003;
}
.flip-nav {
  position: absolute;
  top: 50%;
  z-index: 200;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #002fa7;
  box-shadow: 0 4px 18px #0000001a;
  transform: translateY(-50%);
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.flip-nav:hover {
  background: #002fa7;
  color: #fff;
  box-shadow: 0 8px 28px #002fa740;
}
.flip-nav:active {
  transform: translateY(-50%) scale(0.95);
}
.flip-nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.flip-bottom {
  position: absolute;
  top: calc(50% + min(30vw, 340px) + 32px);
  bottom: auto;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 100;
}
.flip-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 300px;
}
.flip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0000001f;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.flip-dot:hover {
  background: #002fa74d;
}
.flip-dot.active {
  background: #002fa7;
  width: 20px;
  border-radius: 3px;
}
.flip-pn {
  font-family: Monaco, "Noto Sans SC", monospace;
  font-size: 10px;
  color: #00000038;
  letter-spacing: 1px;
}
.flip-cta {
  display: inline-block;
  margin-top: 24px;
  font-family: Monaco, "Noto Sans SC", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #002fa7;
  text-decoration: none;
  border: 1px solid #002fa7;
  padding: 9px 20px;
  transition: all 0.3s;
}
.flip-cta:hover {
  background: #002fa7;
  color: #fff;
}
.flip-story-overlay {
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}
.flip-story-overlay .flip-story-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
}
.flip-story-overlay .flip-story-bg:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #0000001a, #00000073);
}
.flip-vid-face {
  padding: 0 !important;
  overflow: hidden;
  position: relative;
}
.flip-vid-poster-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
  background: #faf9f7;
  box-sizing: border-box;
}
.flip-vid-poster {
  width: 82%;
  aspect-ratio: 4/3;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 4px;
  filter: brightness(0.6) saturate(1.1);
  transition: transform 0.5s ease;
  box-shadow:
    0 12px 30px #002fa714,
    0 0 0 1px #002fa70d;
}
.flip-vid-poster-wrap:hover .flip-vid-poster {
  transform: scale(1.03);
  filter: brightness(0.45) saturate(1.2);
}
.flip-vid-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  gap: 10px;
}
.flip-vid-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff26;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s;
}
.flip-vid-poster-wrap:hover .flip-vid-play {
  background: #002fa7a6;
  border-color: #002fa7e6;
  transform: scale(1.1);
}
.flip-vid-play svg {
  margin-left: 3px;
}
.flip-vid-title {
  font-family:
    Noto Sans SC,
    Georgia,
    serif;
  font-size: clamp(14px, 2.5vw, 20px);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.5px;
  max-width: 82%;
}
.flip-vid-sub {
  font-family:
    Monaco,
    Courier New,
    "Noto Sans SC",
    monospace;
  font-size: 9px;
  color: #fff6;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.flip-vid-inplace {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 600;
  -o-object-fit: contain;
  object-fit: contain;
  background: #faf9f7;
  outline: none;
  border-radius: 2px 10px 10px 2px;
  cursor: pointer;
  box-sizing: border-box;
  padding: 24px 28px;
}
.flip-video-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}
.flip-video-card__poster {
  position: relative;
  display: block;
  width: 82%;
  aspect-ratio: 854 / 480;
  height: auto;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.flip-video-card__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.6) saturate(1.1);
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}
.flip-video-card__poster:hover img {
  transform: scale(1.03);
  filter: brightness(0.45) saturate(1.2);
}
.flip-video-card__poster:hover .flip-vid-play {
  background: #002fa7a6;
  border-color: #002fa7e6;
  transform: scale(1.1);
}
.flip-video-card__poster .flip-vid-overlay {
  display: block;
}
.flip-video-card__poster .flip-vid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.flip-video-card__poster:hover .flip-vid-play {
  transform: translate(-50%, -50%) scale(1.1);
}
.flip-video-card__caption {
  width: 82%;
  max-width: calc(100% - 32px);
  height: 24px;
  flex: 0 0 24px;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  font-family:
    "Cormorant Garamond",
    "Noto Serif SC",
    "Iowan Old Style",
    Baskerville,
    Georgia,
    serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.035em;
  color: #888;
  text-align: center;
  text-shadow: none;
}
html[data-language="zh"] .flip-video-card__caption {
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.flip-video-card__player {
  position: relative;
  width: 82%;
  aspect-ratio: 854 / 480;
  height: auto;
  transform: none;
  padding: 0;
  box-sizing: border-box;
  background: #000;
  object-fit: contain;
  outline: 0;
  touch-action: auto;
}
.flip-epilogue-page {
  align-items: flex-start !important;
  text-align: left !important;
}
.flip-epilogue-page .flip-meta {
  margin-bottom: 16px;
  letter-spacing: 2.6px;
}
.flip-epilogue-page .flip-title {
  max-width: 92%;
}
.flip-epilogue-title {
  position: relative;
  margin-bottom: 20px;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.flip-epilogue-title span {
  display: flex;
  width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.32em;
  margin-top: 0.18em;
  font-size: 1.18em;
  letter-spacing: -0.035em;
  white-space: nowrap;
  word-break: keep-all;
}
.flip-epilogue-title span::before {
  content: "";
  display: block;
  flex: 0 0 clamp(30px, 5vw, 54px);
  height: 2px;
  border-radius: 2px;
  background: #002fa7;
}
.flip-epilogue-page .flip-desc {
  max-width: 82%;
}
.flip-quote-page {
  align-items: center !important;
  text-align: center !important;
}
.flip-quote-page .flip-meta + .flip-desc {
  max-width: 82% !important;
  font-size: clamp(13px, 1.4vw, 16px) !important;
  line-height: 1.65 !important;
}
.flip-quote-page .flip-desc + .flip-desc {
  margin-top: 22px !important;
  font-size: clamp(11px, 1vw, 13px) !important;
  color: #a7a7a7 !important;
}
@media (max-width: 900px) {
  #photography,
  #photography > .relative {
    height: calc(min(70vw, 620px) + 144px) !important;
    min-height: 0;
  }
  .flip-book {
    width: min(50vw, 440px);
    height: min(70vw, 620px);
  }
  #photography .flip-bw {
    top: calc(min(35vw, 310px) + 48px);
  }
  .flip-bottom {
    top: calc(min(70vw, 620px) + 80px);
  }
  #photography .flip-nav {
    width: 34px;
    height: 34px;
    opacity: 0.5;
    background: transparent;
    box-shadow: none;
  }
  #photography .flip-nav:nth-child(1) {
    left: calc(50% - min(50vw, 440px) + 8px) !important;
    right: auto !important;
  }
  #photography .flip-nav:nth-child(2) {
    right: calc(50% - min(50vw, 440px) + 8px) !important;
    left: auto !important;
  }
  #photography .flip-nav:hover,
  #photography .flip-nav:focus-visible {
    opacity: 0.9;
    background: transparent;
    color: #002fa7;
    box-shadow: none;
  }
  #photography .flip-nav:disabled {
    opacity: 0;
    pointer-events: none;
  }
}
@media (max-width: 640px) {
  #photography,
  #photography > .relative {
    height: calc(min(70vw, 425px) + 144px) !important;
  }
  .flip-book {
    width: 50vw;
    height: min(70vw, 425px);
  }
  #photography .flip-bw {
    top: calc(min(35vw, 212.5px) + 48px);
  }
  .flip-bottom {
    top: calc(min(70vw, 425px) + 80px);
  }
  .flip-nav {
    width: 38px;
    height: 38px;
  }
  #photography .flip-nav:nth-child(1) {
    left: 8px !important;
  }
  #photography .flip-nav:nth-child(2) {
    right: 8px !important;
  }
  .flip-front,
  .flip-back {
    padding: 18px;
  }
  .flip-pg-photo {
    padding: 14px 16px !important;
  }
  .flip-vid-play {
    width: 42px;
    height: 42px;
  }
  .flip-vid-play svg {
    width: 20px;
    height: 20px;
  }
  .flip-vid-title {
    font-size: 13px;
  }
  .flip-vid-inplace {
    padding: 14px 16px;
  }
}
.dial-wrapper {
  position: relative;
  padding-bottom: 40px;
}
.fan-stage {
  position: relative;
  width: 100%;
  max-width: 1300px;
  height: 520px;
  margin: 0 auto 24px;
  perspective: 1200px;
}
.fan-card-wrapper {
  position: absolute;
  left: 50%;
  top: 0;
  width: 280px;
  height: 400px;
  margin-left: -140px;
  transform-origin: center bottom;
  transition:
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.5s ease,
    opacity 0.5s ease,
    z-index 0s;
  cursor: default;
  background: transparent;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.fan-card-wrapper.active {
  cursor: pointer;
  z-index: 20;
}
.fan-card-wrapper.active:hover {
  box-shadow: none;
}
.fan-card-wrapper.active:hover .fan-flip-card:not(.flipped) {
  transform: translateY(-8px) scale(1.02);
}
.fan-card-wrapper.inactive {
  opacity: 0.6;
  cursor: pointer;
}
.fan-card-wrapper.inactive:hover {
  opacity: 0.85;
}
.fan-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
  background: transparent;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  will-change: transform;
}
.fan-flip-card.flipped {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.fan-flip-face {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  border-radius: 12px;
  box-shadow: 0 8px 32px #0000001f;
  overflow: visible;
}
.fan-flip-front {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  background: #fff;
  padding: 8px;
}
.fan-flip-front img {
  width: 100%;
  aspect-ratio: 3/4;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.fan-flip-front {
  background: #fff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}
.fan-flip-front img {
  width: 100%;
  flex: 1;
  min-height: 0;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.fan-flip-front-info {
  padding: 12px 8px 8px;
  text-align: left;
}
.fan-flip-front-info h3 {
  font-family:
    Crimson Pro,
    Georgia,
    serif;
  font-size: 20px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 3px;
}
.fan-flip-front-info .fan-subtitle {
  font-size: 11px;
  color: #00000080;
  letter-spacing: 0.3px;
}
.flip-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff0;
  transition: color 0.3s;
}
.fan-card-wrapper.active:hover .flip-hint {
  color: #ffffffb3;
}
.fan-flip-back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  background: #fff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fan-flip-back .era-back {
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #002fa7;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fan-flip-back .era-back:before {
  content: "";
  width: 28px;
  height: 1px;
  background: #002fa7;
  opacity: 0.4;
}
.fan-flip-back h3 {
  font-family:
    Crimson Pro,
    Georgia,
    serif;
  font-size: 24px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.fan-flip-back .subtitle-back {
  font-size: 13px;
  color: #002fa7;
  font-weight: 500;
  margin-bottom: 16px;
}
.fan-flip-back .description {
  font-size: 13px;
  line-height: 1.85;
  color: #1a1a1a99;
}
.fan-flip-back .fan-location {
  margin-top: auto;
  padding-top: 14px;
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(26, 26, 26, 0.58);
  text-transform: uppercase;
}
.dial-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.dial-clock {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.dial-arc-center {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%);
  pointer-events: none;
}
.dial-arc {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}
.dial-tick {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 12px;
  margin-left: -0.5px;
  background: #0000000f;
  transform-origin: 0.5px 500px;
}
.dial-marker {
  position: absolute;
  top: -50px;
  left: 50%;
  margin-left: -32px;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  pointer-events: auto;
  background: none;
  border: none;
  padding: 0;
  transform-origin: 32px 550px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dial-marker-year {
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #00000038;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.dial-marker-bar {
  width: 2px;
  height: 24px;
  border-radius: 1px;
  background: #00000014;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dial-marker-bar--sub {
  height: 16px;
  background: #0000000d;
}
.dial-marker--active .dial-marker-year {
  color: #002fa7;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(0, 47, 167, 0.1);
}
.dial-marker--active .dial-marker-bar {
  height: 38px;
  width: 2.5px;
  background: #002fa7;
  box-shadow: 0 0 10px #002fa740;
}
.dial-marker:hover:not(.dial-marker--active) .dial-marker-year {
  color: #002fa7;
}
.dial-marker:hover:not(.dial-marker--active) .dial-marker-bar {
  background: #002fa7;
}
.dial-pointer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.dial-pointer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #002fa7;
  box-shadow:
    0 0 0 3px #002fa71a,
    0 0 14px #002fa71f;
}
.dial-pointer-needle {
  width: 1.5px;
  height: 120px;
  background: linear-gradient(to top, #002fa7, #002fa70f);
  border-radius: 1px;
}
.dial-pointer-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #002fa7;
}
.dial-arc-outer {
  position: absolute;
  top: 58px;
  left: 50%;
  width: 1004px;
  height: 1004px;
  transform: translate(-50%);
  border-radius: 50%;
  border: 2px solid rgba(0, 47, 167, 0.03);
  pointer-events: none;
}
.dial-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  pointer-events: auto;
  touch-action: manipulation;
}
.dial-nav-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1a1a59;
  transition: color 0.3s;
  padding: 8px;
  touch-action: manipulation;
}
.dial-nav-btn:hover {
  color: #002fa7;
}
.dial-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.dial-nav-label {
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .fan-stage {
    height: 440px;
  }
  .fan-card-wrapper {
    width: 240px;
    height: 310px;
    margin-left: -120px;
  }
  .dial-clock {
    height: 200px;
  }
  .dial-arc-center {
    top: 50px;
    width: 800px;
    height: 800px;
  }
  .dial-arc-outer {
    top: 48px;
    width: 804px;
    height: 804px;
  }
  .dial-tick {
    transform-origin: 0.5px 400px;
  }
  .dial-marker {
    top: -45px;
    transform-origin: 32px 445px;
  }
  .dial-pointer-needle {
    height: 90px;
  }
}
@media (max-width: 640px) {
  .fan-stage {
    height: 380px;
  }
  .fan-card-wrapper {
    width: 200px;
    height: 260px;
    margin-left: -100px;
  }
  .fan-flip-front-overlay h3 {
    font-size: 20px;
  }
  .fan-flip-front-overlay .fan-subtitle {
    font-size: 10px;
  }
  .fan-flip-back h3 {
    font-size: 20px;
  }
  .fan-flip-back .description {
    font-size: 11px;
    line-height: 1.7;
  }
  .dial-clock {
    height: 170px;
  }
  .dial-arc-center {
    top: 45px;
    width: 600px;
    height: 600px;
  }
  .dial-arc-outer {
    top: 43px;
    width: 604px;
    height: 604px;
  }
  .dial-tick {
    transform-origin: 0.5px 300px;
  }
  .dial-marker {
    top: -40px;
    transform-origin: 32px 340px;
  }
  .dial-marker-year {
    font-size: 11px;
  }
  .dial-marker--active .dial-marker-year {
    font-size: 13px;
  }
  .dial-pointer-needle {
    height: 70px;
  }
  .dial-nav {
    gap: 20px;
  }
}
*,
:before,
:after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style: ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style: ;
}
*,
:before,
:after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
:before,
:after {
  --tw-content: "";
}
html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family:
    Noto Sans SC,
    system-ui,
    sans-serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  line-height: inherit;
}
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp,
pre {
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button,
select {
  text-transform: none;
}
button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}
:-moz-focusring {
  outline: auto;
}
:-moz-ui-invalid {
  box-shadow: none;
}
progress {
  vertical-align: baseline;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
summary {
  display: list-item;
}
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
dialog {
  padding: 0;
}
textarea {
  resize: vertical;
}
input::-moz-placeholder,
textarea::-moz-placeholder {
  opacity: 1;
  color: #9ca3af;
}
input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}
button,
[role="button"] {
  cursor: pointer;
}
:disabled {
  cursor: default;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}
img,
video {
  max-width: 100%;
  height: auto;
}
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}
.pointer-events-none {
  pointer-events: none;
}
.pointer-events-auto {
  pointer-events: auto;
}
.visible {
  visibility: visible;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.bottom-0 {
  bottom: 0;
}
.bottom-3 {
  bottom: 0.75rem;
}
.left-0 {
  left: 0;
}
.left-1\/2 {
  left: 50%;
}
.right-0 {
  right: 0;
}
.right-3 {
  right: 0.75rem;
}
.top-0 {
  top: 0;
}
.top-1\/2 {
  top: 50%;
}
.top-3 {
  top: 0.75rem;
}
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-50 {
  z-index: 50;
}
.z-\[5\] {
  z-index: 5;
}
.mx-6 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.-ml-2\.5 {
  margin-left: -0.625rem;
}
.-ml-3 {
  margin-left: -0.75rem;
}
.-ml-4 {
  margin-left: -1rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-2\.5 {
  margin-bottom: 0.625rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-\[52px\] {
  margin-bottom: 52px;
}
.ml-\[2px\] {
  margin-left: 2px;
}
.ml-\[5vw\] {
  margin-left: 5vw;
}
.mr-4 {
  margin-right: 1rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-3\.5 {
  margin-top: 0.875rem;
}
.mt-7 {
  margin-top: 1.75rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-5 {
  height: 1.25rem;
}
.h-7 {
  height: 1.75rem;
}
.h-\[18px\] {
  height: 18px;
}
.h-\[1em\] {
  height: 1em;
}
.h-\[200px\] {
  height: 200px;
}
.h-\[2px\] {
  height: 2px;
}
.h-\[320px\] {
  height: 320px;
}
.h-\[3px\] {
  height: 3px;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.h-screen {
  height: 100vh;
}
.min-h-\[500px\] {
  min-height: 500px;
}
.min-h-\[780px\] {
  min-height: 780px;
}
.min-h-screen {
  min-height: 100vh;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-5 {
  width: 1.25rem;
}
.w-7 {
  width: 1.75rem;
}
.w-\[100px\] {
  width: 100px;
}
.w-\[18px\] {
  width: 18px;
}
.w-\[200px\] {
  width: 200px;
}
.w-\[2px\] {
  width: 2px;
}
.w-\[500px\] {
  width: 500px;
}
.w-full {
  width: 100%;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-\[280px\] {
  max-width: 280px;
}
.max-w-\[540px\] {
  max-width: 540px;
}
.max-w-\[55\%\] {
  max-width: 55%;
}
.max-w-xl {
  max-width: 36rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-2 {
  --tw-translate-y: 0.5rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-8 {
  --tw-translate-y: 2rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes blobAbout {
  0%,
  to {
    transform: translateY(-50%) scale(1);
    border-radius: 60% 40% 50% 50%/50% 60% 40% 50%;
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    border-radius: 50%;
  }
}
.animate-blob-about {
  animation: blobAbout 6s ease-in-out infinite;
}
@keyframes blobExperience {
  0%,
  to {
    transform: translateY(-50%) scaleX(1);
    border-radius: 50%/60% 60% 40% 40%;
  }
  50% {
    transform: translateY(-50%) scaleX(1.4) translate(15px);
    border-radius: 40% 60% 60% 40%/50%;
  }
}
.animate-blob-experience {
  animation: blobExperience 8s ease-in-out infinite;
}
@keyframes blobTaste {
  0%,
  to {
    border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    transform: translateY(-50%) rotate(0) scale(1);
  }
  33% {
    border-radius: 40% 60% 70% 30%/30% 70%;
  }
  66% {
    border-radius: 30% 70% 50% 50%/50% 50% 70% 30%;
    transform: translateY(-50%) rotate(120deg) scale(1.2);
  }
}
.animate-blob-taste {
  animation: blobTaste 10s ease-in-out infinite;
}
@keyframes navBreathe {
  0%,
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0.65;
  }
}
.animate-nav-breathe {
  animation: navBreathe 4s ease-in-out infinite;
}
@keyframes nucleus1 {
  0%,
  to {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}
.animate-nucleus-1 {
  animation: nucleus1 4s ease-in-out infinite;
}
@keyframes nucleus2 {
  0%,
  to {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.75;
  }
}
.animate-nucleus-2 {
  animation: nucleus2 5s ease-in-out infinite;
}
@keyframes nucleus3 {
  0%,
  to {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}
.animate-nucleus-3 {
  animation: nucleus3 6s ease-in-out infinite;
}
@keyframes orbBreathe {
  0%,
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
    filter: blur(80px);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.4;
    filter: blur(100px);
  }
}
.animate-orb-breathe {
  animation: orbBreathe 4s ease-in-out infinite;
}
@keyframes orbExplode {
  0% {
    transform: translate(-50%, -50%) scale(1.7);
    opacity: 0.65;
    filter: blur(50px);
  }
  40% {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0.12;
    filter: blur(70px);
  }
  70% {
    transform: translate(-50%, -50%) scale(22);
    opacity: 0.06;
    filter: blur(110px);
  }
  to {
    transform: translate(-50%, -50%) scale(40);
    opacity: 0;
    filter: blur(160px);
  }
}
.animate-orb-explode {
  animation: orbExplode 1s ease-out forwards;
}
@keyframes orbFloat {
  0%,
  to {
    transform: translate(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-40px, 50px) scale(1.18);
    opacity: 0.25;
  }
}
.animate-orb-float {
  animation: orbFloat 6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes ringExplode {
  0% {
    transform: rotate(var(--current-rotation, 0deg)) scale(1);
    opacity: 1;
  }
  40% {
    transform: rotate(var(--current-rotation, 0deg)) scale(1.6);
    opacity: 0.7;
  }
  70% {
    transform: rotate(var(--current-rotation, 0deg)) scale(2.8);
    opacity: 0;
  }
  to {
    transform: rotate(var(--current-rotation, 0deg)) scale(4.5);
    opacity: 0;
  }
}
.animate-ring-explode {
  animation: ringExplode 1s ease-out forwards;
}
@keyframes ringRotate {
  0% {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-ring-rotate {
  animation: ringRotate 50s linear infinite;
}

.orbit-navigation-label {
  font-size: 8px;
  letter-spacing: 1.35px;
}

.orbit-navigation-separator {
  font-size: 9px !important;
  letter-spacing: 0 !important;
}

@keyframes titleExplode {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(6);
    opacity: 0.7;
  }
  to {
    transform: scale(18);
    opacity: 0;
    filter: blur(25px);
  }
}
.animate-title-explode {
  animation: titleExplode 1s ease-out forwards;
}
.cursor-grab {
  cursor: grab;
}
.cursor-grabbing {
  cursor: grabbing;
}
.cursor-pointer {
  cursor: pointer;
}
.resize {
  resize: both;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.items-stretch {
  align-items: stretch;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-12 {
  gap: 3rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.overflow-x-auto {
  overflow-x: auto;
}
.scroll-smooth {
  scroll-behavior: smooth;
}

/* Language switching performs an immediate scroll-anchor correction. */
html.language-anchor-lock,
html.language-anchor-lock body {
  scroll-behavior: auto !important;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.bg-\[\#F5F5F5\] {
  --tw-bg-opacity: 1;
  background-color: rgb(245 245 245 / var(--tw-bg-opacity, 1));
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/\[\.06\] {
  background-color: #0000000f;
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 248 248 / var(--tw-bg-opacity, 1));
}
.bg-klein {
  --tw-bg-opacity: 1;
  background-color: rgb(0 47 167 / var(--tw-bg-opacity, 1));
}
.bg-klein\/10 {
  background-color: #002fa71a;
}
.bg-white\/20 {
  background-color: #fff3;
}
.fill-klein {
  fill: #002fa7;
}
.fill-none {
  fill: none;
}
.fill-text-muted {
  fill: #a3a3a3;
}
.stroke-current {
  stroke: currentColor;
}
.object-contain {
  -o-object-fit: contain;
  object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
  object-fit: cover;
}
.p-6 {
  padding: 1.5rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.align-baseline {
  vertical-align: baseline;
}
.align-text-bottom {
  vertical-align: text-bottom;
}
.font-\[\'Cormorant_Garamond\'\] {
  font-family: Cormorant Garamond, "Noto Serif SC", serif;
}
.font-mono {
  font-family:
    JetBrains Mono,
    Noto Sans SC,
    monospace;
}
.font-script {
  font-family: "Pinyon Script", "Cormorant Garamond", cursive;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}
html[data-language="zh"] footer .font-script {
  font-family: "Zhi Mang Xing", "Noto Serif SC", cursive;
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.05;
}
.font-serif {
  font-family:
    Cormorant Garamond,
    "Noto Serif SC",
    serif;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[19px\] {
  font-size: 19px;
}
.text-\[22px\] {
  font-size: 22px;
}
.text-\[30px\] {
  font-size: 30px;
}
.text-\[34px\] {
  font-size: 34px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-light {
  font-weight: 300;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.not-italic {
  font-style: normal;
}
.leading-\[1\.5\] {
  line-height: 1.5;
}
.leading-none {
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-\[0\.25em\] {
  letter-spacing: 0.25em;
}
.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}
.tracking-\[3px\] {
  letter-spacing: 3px;
}
.text-\[\#002FA7\] {
  --tw-text-opacity: 1;
  color: rgb(0 47 167 / var(--tw-text-opacity, 1));
}
.text-\[\#1a1a1a\] {
  --tw-text-opacity: 1;
  color: rgb(26 26 26 / var(--tw-text-opacity, 1));
}
.text-\[\#ff2442\] {
  --tw-text-opacity: 1;
  color: rgb(255 36 66 / var(--tw-text-opacity, 1));
}
.text-accent {
  --tw-text-opacity: 1;
  color: rgb(201 169 98 / var(--tw-text-opacity, 1));
}
.text-black {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.text-black\/30 {
  color: #0000004d;
}
.text-black\/40 {
  color: #0006;
}
.text-black\/\[0\.18\] {
  color: #0000002e;
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-klein {
  --tw-text-opacity: 1;
  color: rgb(0 47 167 / var(--tw-text-opacity, 1));
}
.text-text {
  --tw-text-opacity: 1;
  color: rgb(10 10 10 / var(--tw-text-opacity, 1));
}
.text-text-muted {
  --tw-text-opacity: 1;
  color: rgb(163 163 163 / var(--tw-text-opacity, 1));
}
.text-text-secondary {
  --tw-text-opacity: 1;
  color: rgb(115 115 115 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-white\/80 {
  color: #fffc;
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
.opacity-\[0\.12\] {
  opacity: 0.12;
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),
    0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color),
    0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
    var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate)
    var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
    var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate)
    var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
    backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.transition-\[width\] {
  transition-property: width;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}
.duration-300 {
  transition-duration: 0.3s;
}
.duration-500 {
  transition-duration: 0.5s;
}
.duration-700 {
  transition-duration: 0.7s;
}
.duration-\[120ms\] {
  transition-duration: 0.12s;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    Noto Sans SC,
    system-ui,
    sans-serif;
  --tw-text-opacity: 1;
  color: rgb(10 10 10 / var(--tw-text-opacity, 1));
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.reveal {
  --tw-translate-y: 2rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  opacity: 0;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.reveal.visible {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  opacity: 1;
}
.link-underline {
  position: relative;
}
.link-underline:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0px;
  --tw-bg-opacity: 1;
  background-color: rgb(0 47 167 / var(--tw-bg-opacity, 1));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.3s;
}
.link-underline:hover:after {
  width: 100%;
}
.nav-bottom-item {
  position: relative;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.3s;
}
.nav-bottom-item:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.125rem;
  width: 0px;
  --tw-bg-opacity: 1;
  background-color: rgb(0 47 167 / var(--tw-bg-opacity, 1));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.3s;
}
.nav-bottom-item:hover:after {
  width: 100%;
}
.nav-bottom-item:hover {
  background: #002fa708;
}
.section-header-with-blob {
  position: relative;
  margin-bottom: 4rem;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

/* Experience follows Project's motion-first title order. */
#experience .section-header-with-blob {
  padding-left: 136px;
}

#experience .animate-blob-experience {
  right: auto !important;
  left: 0 !important;
}
.section-title-text {
  position: relative;
  z-index: 10;
  font-family:
    Cormorant Garamond,
    "Noto Serif SC",
    serif;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 6px;
}
.section-title-num {
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #00000040;
}

/* Social uses the same numbered chapter hierarchy as About, Experience and Project. */
#social .social-section-heading {
  display: block;
}

#social > div:first-child {
  min-height: 156px;
}

@media (min-width: 768px) {
  #social > div:first-child {
    align-items: flex-end !important;
  }

  #social .social-profile-copy {
    max-width: 390px !important;
    margin-top: 0;
  }
}

#social .social-section-heading-grid {
  display: grid;
  grid-template-columns: max-content max-content 112px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.75rem;
}

#social .social-section-number {
  grid-column: 1;
  grid-row: 1;
}

#social .social-section-heading h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #1a1a1a;
}

#social .social-title-motion {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  width: 112px;
  height: 72px;
  margin-left: 0.5rem;
}

#social .social-title-ribbon {
  position: absolute;
  display: block;
  filter: blur(0.35px);
  transform-origin: center;
  will-change: transform, border-radius, opacity;
}

#social .social-title-ribbon--main {
  top: 20px;
  left: 3px;
  width: 100px;
  height: 28px;
  border-radius: 68% 32% 72% 28% / 58% 64% 36% 42%;
  background: linear-gradient(112deg, rgba(61, 106, 232, 0.12), rgba(0, 47, 167, 0.58) 48%, rgba(61, 106, 232, 0.2));
  box-shadow: 0 10px 24px rgba(0, 47, 167, 0.08);
  animation: social-ribbon-flow 5.8s ease-in-out infinite;
}

#social .social-title-ribbon--echo {
  top: 37px;
  left: 26px;
  width: 72px;
  height: 20px;
  border-radius: 35% 65% 30% 70% / 62% 40% 60% 38%;
  background: linear-gradient(108deg, rgba(61, 106, 232, 0.08), rgba(26, 71, 201, 0.34), rgba(0, 47, 167, 0.1));
  animation: social-ribbon-echo 6.4s ease-in-out infinite;
}

@keyframes social-ribbon-flow {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-5deg) scaleX(0.94);
    border-radius: 68% 32% 72% 28% / 58% 64% 36% 42%;
    opacity: 0.62;
  }
  50% {
    transform: translate3d(5px, -3px, 0) rotate(3deg) scaleX(1.04);
    border-radius: 34% 66% 30% 70% / 45% 36% 64% 55%;
    opacity: 0.82;
  }
}

@keyframes social-ribbon-echo {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(4deg);
    opacity: 0.34;
  }
  50% {
    transform: translate3d(-5px, 3px, 0) rotate(-4deg) scaleX(1.08);
    opacity: 0.58;
  }
}

#social .social-section-kicker {
  grid-column: 2 / 4;
  grid-row: 2;
  margin: 0;
  color: rgba(0, 0, 0, 0.46);
  font-family: "JetBrains Mono", "Noto Sans SC", monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[data-language="zh"] #social .social-section-kicker {
  letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  #social > div:first-child {
    min-height: 132px;
  }

  #social .social-section-heading-grid {
    grid-template-columns: max-content max-content 86px;
    column-gap: 0.75rem;
  }

  #social .social-title-motion {
    width: 86px;
    height: 58px;
    margin-left: 0;
    transform: scale(0.78);
    transform-origin: left center;
  }
}

html[data-theme="dark"] #social .social-section-kicker {
  color: var(--dark-text-muted);
}
.project-card {
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(229 229 229 / var(--tw-border-opacity, 1));
  padding: 2rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.4s;
}
.project-card:hover {
  --tw-border-opacity: 1;
  border-color: rgb(0 47 167 / var(--tw-border-opacity, 1));
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px #002fa726;
}

/* Preserve intentional paragraph breaks in bilingual case-study descriptions. */
.project-card p {
  white-space: pre-line;
}
.skill-item {
  margin-left: -1rem;
  margin-right: -1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition-property: color, background-color, border-color, box-shadow,
    transform, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 0.3s;
}
.skill-item.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.skill-item.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

/* A quiet zebra stripe makes the project list easier to scan. */
#project .skill-item:nth-child(even) {
  background: rgba(0, 47, 167, 0.024);
}

@media (min-width: 768px) {
  #project .skill-name {
    flex: 0 0 180px;
  }
}

/* Give every desktop project row the same three-column rhythm. The tag group
   remains right-aligned, while its column now starts at a consistent point. */
@media (min-width: 1024px) {
  #project .skill-item {
    display: grid;
    grid-template-columns:
      145px
      minmax(0, 1fr)
      365px;
    column-gap: 0.5rem;
  }
  #project .skill-name,
  #project .skill-item > span:nth-child(2) {
    min-width: 0;
  }
  #project .skill-item > span:nth-child(2) {
    padding-left: 1.5rem;
    padding-right: 0.5rem;
    overflow-wrap: break-word;
  }
  #project .skill-name {
    flex: initial;
    white-space: nowrap;
  }
  #project .skill-item > div {
    min-width: 0;
    width: 100%;
    margin-left: 0;
    padding-left: 0.375rem;
    border-left: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    row-gap: 0.4rem;
  }
  #project .skill-item > div > span {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-size: 0.6875rem;
    white-space: nowrap;
  }
}

/* Keep project details visible and legible as the layout narrows. */
@media (max-width: 1023px) {
  #project .skill-item {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
    align-items: start;
    gap: 0.45rem 1rem;
  }
  #project .skill-name {
    grid-column: 1;
    grid-row: 1;
    flex: initial;
  }
  #project .skill-item > span:nth-child(2) {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
  #project .skill-item > div {
    display: flex !important;
    grid-column: 2;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

@media (max-width: 640px) {
  #project .skill-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  #project .skill-name,
  #project .skill-item > span:nth-child(2),
  #project .skill-item > div {
    grid-column: 1;
  }
  #project .skill-name {
    grid-row: 1;
  }
  #project .skill-item > span:nth-child(2) {
    grid-row: 2;
  }
  #project .skill-item > div {
    grid-row: 3;
  }
}

#project .skill-item > div > span {
  border: 0;
  background: rgba(0, 47, 167, 0.032);
  color: #002fa7;
}
#project .skill-item:hover > div > span {
  background: rgba(0, 47, 167, 0.06);
  color: #002fa7;
}
.skill-item:hover {
  background:
    radial-gradient(ellipse at 22% 16%, rgba(255, 255, 255, 0.94) 0 7%, rgba(255, 255, 255, 0.28) 26%, transparent 52%),
    radial-gradient(ellipse at 84% 108%, rgba(42, 94, 225, 0.26), transparent 66%),
    rgba(206, 222, 255, 0.2);
  transform: translateX(6px);
  box-shadow:
    -4px 0 0 #002fa7,
    inset 0 -9px 17px rgba(0, 47, 167, 0.1),
    inset 8px 8px 18px rgba(255, 255, 255, 0.32),
    0 12px 28px rgba(36, 91, 224, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(175%) contrast(108%);
  backdrop-filter: blur(14px) saturate(175%) contrast(108%);
}
.skill-item:hover .skill-name,
.skill-item:focus-visible .skill-name {
  --tw-text-opacity: 1;
  color: rgb(0 47 167 / var(--tw-text-opacity, 1));
}
.skill-item:focus-visible {
  outline: 2px solid #002fa7;
  outline-offset: 3px;
  background: rgba(206, 222, 255, 0.28);
  transform: translateX(6px);
}
.timeline-item {
  display: grid;
  gap: 3rem;
  border-bottom-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(240 240 240 / var(--tw-border-opacity, 1));
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  grid-template-columns: 180px 1fr;
}
.timeline-item:last-child {
  border-bottom-width: 0px;
}
.xhs-card {
  display: flex;
  max-width: 28rem;
  align-items: center;
  gap: 2rem;
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(229 229 229 / var(--tw-border-opacity, 1));
  padding: 2rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.4s;
}
.xhs-card.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.xhs-card.overflow-x-auto::-webkit-scrollbar {
  display: none;
}
.xhs-card:hover {
  --tw-border-opacity: 1;
  border-color: rgb(0 47 167 / var(--tw-border-opacity, 1));
  box-shadow: 0 10px 40px -10px #002fa726;
}
.contact-link:hover {
  --tw-text-opacity: 1;
  color: rgb(201 169 98 / var(--tw-text-opacity, 1));
}
.flex.overflow-x-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.flex.overflow-x-auto::-webkit-scrollbar {
  display: none;
}
.nav-catalog-item {
  border-right-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(229 229 229 / var(--tw-border-opacity, 1));
}
.nav-catalog-item:last-child {
  border-right-width: 0px;
}
.nav-arrow-flow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.nav-arrow-flow:before {
  content: "\2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  \2192  ";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 8px;
  color: #002fa70f;
  animation: arrowFlow 12s linear infinite;
}
@keyframes arrowFlow {
  0% {
    transform: translateY(-50%) translate(0);
  }
  to {
    transform: translateY(-50%) translate(-50%);
  }
}
::-moz-selection {
  background: #002fa726;
}
::selection {
  background: #002fa726;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    --tw-translate-y: 0px;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
      rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
      scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .section-title-text {
    letter-spacing: 4px;
  }
  .timeline-item {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.5rem;
  }
}
@media (max-width: 600px) {
  .section-title-text {
    letter-spacing: 3px;
    font-size: 1.5rem;
    line-height: 2rem;
  }

  #experience .section-header-with-blob {
    padding-left: 108px;
  }
}
.fill-text-muted {
  fill: #1a1a1a66;
}
.fill-klein,
.hover\:fill-klein:hover {
  fill: #002fa7;
}
.ballpit-container {
  border: 1px solid rgba(0, 47, 167, 0.15);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 47, 167, 0.05) 0%,
    transparent 70%
  );
  transition: border-color 0.4s ease;
}
.ballpit-container:hover {
  border-color: #002fa766;
}
@media (max-width: 767px) {
  .ballpit-container {
    height: 260px !important;
    border-radius: 12px;
  }
}
.about-tag {
  padding: 0.25rem 0.625rem;
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748bd9;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 2px;
  background: transparent;
  transition: all 0.3s ease;
}
.about-tag:hover {
  background: #94a3b814;
  border-color: #94a3b866;
  color: #475569f2;
}
.about-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  cursor: default;
}
.about-photo-glow {
  position: absolute;
  top: -12px;
  right: -12px;
  bottom: -12px;
  left: -12px;
  border-radius: 12px;
  background: radial-gradient(
    ellipse at 45% 35%,
    rgba(0, 47, 167, 0.06) 0%,
    rgba(0, 47, 167, 0.02) 50%,
    transparent 80%
  );
  filter: blur(16px);
  z-index: 0;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}
.group:hover .about-photo-glow {
  opacity: 1;
}
.about-photo-frame {
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 2px;
  z-index: 0;
  transition: all 0.5s ease;
}
.group:hover .about-photo-frame {
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  border-color: #94a3b833;
}
.about-photo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: top;
  object-position: top;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 24px #0000000f,
    0 1px 4px #00000008;
  transition: all 0.5s ease;
}
.group:hover .about-photo-img {
  transform: translateY(-3px);
  box-shadow:
    0 12px 36px #00000014,
    0 2px 8px #0000000a;
}
@media (max-width: 767px) {
  .about-photo-wrap {
    max-width: 280px;
    margin: 0 auto;
  }
}
.xhs-film-card {
  position: relative;
  align-self: flex-start;
  flex-shrink: 0;
  width: 280px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}
.xhs-film-card:hover {
  transform: translateY(-5px);
  border-color: #002fa72e;
  box-shadow:
    0 12px 36px #002fa714,
    0 2px 8px #0000000a;
}
.xhs-film-card:before {
  content: attr(data-frame);
  position: absolute;
  top: 12px;
  left: 14px;
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #ffffff80;
  z-index: 5;
  pointer-events: none;
}
.xhs-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.xhs-cover-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.xhs-film-card:hover .xhs-cover-img {
  transform: scale(1.06);
}
.xhs-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.xhs-info-bar {
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.xhs-info-title {
  font-family:
    -apple-system,
    PingFang SC,
    Hiragino Sans GB,
    Microsoft YaHei,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #1a1a1a;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  white-space: nowrap;
}
.xhs-film-card:hover .xhs-info-title,
.xhs-film-card:focus-visible .xhs-info-title {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* Keep the card footer compact; the carousel reserves its hover space below. */
#social > .relative {
  min-height: 442px;
}
.xhs-info-likes {
  flex-shrink: 0;
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 12px;
  color: #1a1a1a;
  display: none !important;
  align-items: center;
  gap: 4px;
}
.xhs-stat-val {
  font-family:
    Playfair Display,
    serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  background: linear-gradient(135deg, #002fa7, #3d6ae8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 640px) {
  #social > .relative {
    min-height: 390px;
  }

  .xhs-film-card {
    width: 240px;
  }
  .xhs-cover {
    aspect-ratio: 3 / 4;
  }
}
.about-tag-flow {
  position: relative;
  display: inline-block;
  font-family:
    JetBrains Mono,
    "Noto Sans SC",
    monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  color: #002fa7;
  background: transparent;
  cursor: default;
  border: none;
  border-radius: 2px;
}
.about-tag-flow:before,
.about-tag-flow:after {
  content: "";
  position: absolute;
  border-radius: 2px;
}
.about-tag-flow:before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1px;
  background: conic-gradient(
    from var(--tag-angle, 0deg),
    rgba(0, 47, 167, 0.05),
    rgba(0, 47, 167, 0.5),
    rgba(26, 71, 201, 0.7),
    rgba(0, 47, 167, 0.5),
    rgba(0, 47, 167, 0.05)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: tagBorderSpin 3s linear infinite;
}
.about-tag-flow:after {
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  background: #f5f5f5;
  z-index: -1;
}
@keyframes tagBorderSpin {
  0% {
    --tag-angle: 0deg;
  }
  to {
    --tag-angle: 360deg;
  }
}
@property --tag-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.about-cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: #002fa7;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.6s step-end infinite;
}

/* About copy appears as a single, quiet transition instead of typing out. */
.about-copy-reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: none;
}
#about.scroll-section-reveal.is-visible .about-copy-reveal {
  animation: aboutCopyReveal 0.45s 0.25s ease-out both;
}
@keyframes aboutCopyReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cursorBlink {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.about-bold-keyword {
  font-weight: inherit;
  color: #002fa7;
}
.about-fade-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: none;
}
#about.scroll-section-reveal.is-visible .about-fade-line {
  animation: fadeLineIn 0.8s ease-out forwards;
}
@keyframes fadeLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hover\:rotate-90:hover {
  --tw-rotate: 90deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:bg-white\/30:hover {
  background-color: #ffffff4d;
}
.hover\:fill-klein:hover {
  fill: #002fa7;
}
.hover\:text-accent:hover {
  --tw-text-opacity: 1;
  color: rgb(201 169 98 / var(--tw-text-opacity, 1));
}
.hover\:text-klein:hover {
  --tw-text-opacity: 1;
  color: rgb(0 47 167 / var(--tw-text-opacity, 1));
}
.group:hover .group-hover\:translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group:hover .group-hover\:text-klein {
  --tw-text-opacity: 1;
  color: rgb(0 47 167 / var(--tw-text-opacity, 1));
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
@media (min-width: 768px) {
  .md\:mx-\[60px\] {
    margin-left: 60px;
    margin-right: 60px;
  }
  .md\:mb-0 {
    margin-bottom: 0;
  }
  .md\:block {
    display: block;
  }
  .md\:min-h-\[600px\] {
    min-height: 600px;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:items-end {
    align-items: flex-end;
  }
  .md\:gap-10 {
    gap: 2.5rem;
  }
  .md\:gap-8 {
    gap: 2rem;
  }
  .md\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .md\:px-\[60px\] {
    padding-left: 60px;
    padding-right: 60px;
  }
  .md\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  .md\:text-\[32px\] {
    font-size: 32px;
  }
  .md\:text-\[40px\] {
    font-size: 40px;
  }
  .md\:text-\[52px\] {
    font-size: 52px;
  }
}
@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }
}


/* Homepage-specific styles */
.portfolio-logo {
  position: fixed;
  /* Its circular glass shell extends 12px beyond this layout box. */
  top: 34px;
  left: 38px;
  z-index: 1000;
  display: flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  padding: 0;
  isolation: isolate;
  transition: opacity 0.2s ease;
}
.portfolio-logo::before {
  position: absolute;
  z-index: -1;
  inset: -12px;
  content: "";
  border: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 31% 22%, rgba(255, 255, 255, 0.95) 0 5%, rgba(255, 255, 255, 0.38) 15%, transparent 34%),
    radial-gradient(ellipse at 66% 72%, rgba(42, 94, 225, 0.26), transparent 56%),
    radial-gradient(circle at 48% 44%, rgba(255, 255, 255, 0.12), transparent 64%),
    rgba(205, 221, 255, 0.07);
  box-shadow:
    inset 0 -12px 22px rgba(0, 47, 167, 0.13),
    inset 10px 10px 22px rgba(255, 255, 255, 0.14),
    0 12px 34px rgba(36, 91, 224, 0.22);
  -webkit-backdrop-filter: blur(16px) saturate(190%) contrast(112%);
  backdrop-filter: blur(16px) saturate(190%) contrast(112%);
}
.portfolio-logo::after {
  position: absolute;
  top: -5px;
  left: 12px;
  z-index: 0;
  width: 42%;
  height: 23%;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  filter: blur(1.5px);
  pointer-events: none;
}
.portfolio-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.12) saturate(1.15) drop-shadow(0 0 10px rgba(61, 106, 232, 0.3));
}
.top-navigation {
  position: fixed;
  /*
   * Align the *visible* glass controls rather than their layout boxes.
   * The logo's circular shell extends 12px beyond its box; this shell
   * extends 5px. These offsets align both visible shells at 22px from
   * the top and 26px from their respective viewport sides.
   */
  top: 27px;
  right: 31px;
  z-index: 1000;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 16px;
  padding: 3px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  isolation: isolate;
}
.top-navigation::before {
  position: absolute;
  z-index: -1;
  inset: -5px;
  content: "";
  border: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 31% 22%, rgba(255, 255, 255, 0.95) 0 5%, rgba(255, 255, 255, 0.38) 15%, transparent 34%),
    radial-gradient(ellipse at 66% 72%, rgba(42, 94, 225, 0.26), transparent 56%),
    radial-gradient(circle at 48% 44%, rgba(255, 255, 255, 0.12), transparent 64%),
    rgba(205, 221, 255, 0.07);
  box-shadow:
    inset 0 -12px 22px rgba(0, 47, 167, 0.13),
    inset 10px 10px 22px rgba(255, 255, 255, 0.14),
    0 12px 34px rgba(36, 91, 224, 0.22);
  -webkit-backdrop-filter: blur(16px) saturate(190%) contrast(112%);
  backdrop-filter: blur(16px) saturate(190%) contrast(112%);
}
.top-navigation::after {
  position: absolute;
  top: -5px;
  left: 12px;
  z-index: 0;
  width: 42%;
  height: 23%;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  filter: blur(1.5px);
  pointer-events: none;
}
.top-navigation a {
  position: relative;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  color: #002fa7;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.top-navigation a:hover,
.top-navigation a:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.38);
  color: #001b66;
}
.top-navigation a.is-active {
  background: #002fa7;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 47, 167, 0.24);
}
.navigation-toggle {
  display: none;
}
#hero > div:last-child svg text {
  font-size: 14px;
}
#hero > div:last-child:has(> div:nth-child(2) span.opacity-100) {
  z-index: 2001 !important;
}
#hero > div:last-child > div:nth-child(2) span.opacity-100 {
  font-size: clamp(24px, 3vw, 30px);
}
.fan-subtitle {
  white-space: pre-line;
}
#project > div {
  display: flex;
  flex-direction: column;
}

#project > div > h3:has(.project-subtitle-mark--case) {
  order: 1;
}
#project > div > div:has(> .project-card) {
  order: 2;
}
#project > div > div:has(> h3 .project-subtitle-mark--projects) {
  order: 3;
  margin-top: 4rem;
  margin-bottom: 0;
}
#project > div > h3:has(.project-subtitle-mark--case),
#project > div > div:has(> h3 .project-subtitle-mark--projects) > h3 {
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.75rem;
  letter-spacing: normal;
}
.project-subtitle-mark {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.5px solid #002fa7;
}
.project-subtitle-mark--case {
  border-radius: 50%;
}
.project-subtitle-mark--case::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: #002fa7;
  transform: translate(-50%, -50%);
}
.project-subtitle-mark--projects {
  margin-top: 2px;
  border-radius: 3px;
}
.project-subtitle-mark--projects::before {
  position: absolute;
  top: -5px;
  left: 2px;
  width: 8px;
  height: 4px;
  content: "";
  border: 1.5px solid #002fa7;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
#project .project-card h4 {
  font-weight: 600;
}
.fan-subtitle-italic {
  display: block;
  font-style: italic;
}
.subtitle-back-italic {
  display: block;
  font-style: italic;
}
.fan-flip-back {
  overflow: hidden;
}
@media (max-width: 900px) {
  .fan-stage {
    height: 470px;
  }
  .fan-card-wrapper {
    height: 350px;
  }
  .fan-flip-back {
    padding: 20px 18px;
  }
  .fan-flip-back .description {
    font-size: 12px;
    line-height: 1.6;
  }
}
@media (max-width: 640px) {
  .fan-stage {
    height: 430px;
  }
  .fan-card-wrapper {
    height: 320px;
  }
  .fan-flip-back {
    padding: 16px 14px;
  }
  .fan-flip-back .era-back {
    margin-bottom: 8px;
    font-size: 8px;
  }
  .fan-flip-back h3 {
    margin-bottom: 4px;
    font-size: 18px;
  }
  .fan-flip-back .subtitle-back {
    margin-bottom: 8px;
    font-size: 11px;
  }
  .fan-flip-back .description {
    font-size: 10px;
    line-height: 1.48;
  }
  .fan-flip-back .fan-location {
    padding-top: 7px;
    font-size: 8px;
    letter-spacing: 1px;
  }
}
.resume-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px !important;
}
.resume-download-button {
  position: relative;
  display: inline-flex;
  width: 200px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 27% 18%, rgba(255, 255, 255, 0.82), transparent 36%),
    radial-gradient(ellipse at 76% 105%, rgba(38, 93, 224, 0.25), transparent 66%),
    rgba(204, 220, 255, 0.13);
  box-shadow:
    inset 0 -10px 20px rgba(0, 47, 167, 0.1),
    inset 8px 8px 18px rgba(255, 255, 255, 0.2),
    0 10px 26px rgba(36, 91, 224, 0.16);
  color: #123cac;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px) saturate(185%) contrast(110%);
  backdrop-filter: blur(16px) saturate(185%) contrast(110%);
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.resume-download-button::after {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-left: 9px;
  background: currentColor;
  content: "";
  opacity: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4M5 15.5v2.25A2.25 2.25 0 0 0 7.25 20h9.5A2.25 2.25 0 0 0 19 17.75V15.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4M5 15.5v2.25A2.25 2.25 0 0 0 7.25 20h9.5A2.25 2.25 0 0 0 19 17.75V15.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.resume-download-button:hover {
  color: #002fa7;
  transform: translateY(-2px);
  background:
    radial-gradient(ellipse at 27% 18%, rgba(255, 255, 255, 0.92), transparent 36%),
    radial-gradient(ellipse at 76% 105%, rgba(38, 93, 224, 0.34), transparent 66%),
    rgba(204, 220, 255, 0.2);
  box-shadow:
    inset 0 -10px 20px rgba(0, 47, 167, 0.13),
    inset 8px 8px 18px rgba(255, 255, 255, 0.24),
    0 14px 30px rgba(36, 91, 224, 0.24);
}

/* Match the résumé download to the currently selected site language. */
.resume-downloads .resume-download-button:nth-child(2) {
  display: none;
}

html[data-language="zh"] .resume-downloads .resume-download-button:first-child {
  display: none;
}

html[data-language="zh"] .resume-downloads .resume-download-button:nth-child(2) {
  display: inline-flex;
}

html[data-language="zh"]:not(.localized-hero-complete) .resume-downloads {
  pointer-events: none;
  opacity: 0 !important;
  transform: translateY(6px) !important;
}

html[data-language="zh"].localized-hero-complete .resume-downloads {
  pointer-events: auto;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Align the portrait and the full copy column on the same horizontal centerline. */
#about > div {
  align-items: center;
}

/* Stack the about portrait and copy before the two-column layout becomes cramped. */
@media (max-width: 1180px) {
  #about {
    min-height: auto;
    align-items: flex-start;
  }
  #about > div {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  #about > div > div:first-child {
    width: min(80vw, 380px);
    min-height: 0;
    aspect-ratio: 4 / 5;
    flex-shrink: 1;
  }
  #about > div > div:nth-child(2) {
    width: 100%;
    max-width: 620px;
    flex: none;
  }
}
/* Align the compact logo and menu controls by their visible outer shells. */
@media (max-width: 1180px) {
  .top-navigation {
    top: 76px;
    right: 28px;
    left: auto;
    width: max-content;
    max-width: calc(100vw - 36px);
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .top-navigation a {
    /* Keep the open menu at its compact phone rhythm at every mobile-nav
       width, rather than adding vertical space above 640px. */
    padding: 7px 10px;
    font-size: 12px;
    text-align: left;
  }
  .top-navigation::before {
    inset: -10px;
    border-radius: inherit;
  }
  .top-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  .navigation-toggle {
    position: fixed;
    /* Align the button's visible circle with the logo's visible circle. */
    top: 18px;
    right: 18px;
    z-index: 1001;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background:
      radial-gradient(ellipse at 31% 22%, rgba(255, 255, 255, 0.95) 0 5%, rgba(255, 255, 255, 0.38) 15%, transparent 34%),
      radial-gradient(ellipse at 66% 72%, rgba(42, 94, 225, 0.26), transparent 56%),
      radial-gradient(circle at 48% 44%, rgba(255, 255, 255, 0.12), transparent 64%),
      rgba(205, 221, 255, 0.07);
    box-shadow:
      inset 0 -12px 22px rgba(0, 47, 167, 0.13),
      inset 10px 10px 22px rgba(255, 255, 255, 0.14),
      0 12px 34px rgba(36, 91, 224, 0.22);
    -webkit-backdrop-filter: blur(16px) saturate(190%) contrast(112%);
    backdrop-filter: blur(16px) saturate(190%) contrast(112%);
    cursor: pointer;
  }
  .navigation-toggle::after {
    position: absolute;
    top: 5px;
    left: 11px;
    width: 42%;
    height: 23%;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    filter: blur(1.5px);
    pointer-events: none;
  }
  .navigation-toggle span {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: #002fa7;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .navigation-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .navigation-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .navigation-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  #hero {
    align-items: center;
    min-height: auto !important;
    padding: 120px 24px !important;
  }
  #hero > div:first-child {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  #hero > div:last-child {
    top: 50% !important;
    right: auto !important;
    left: 50% !important;
    z-index: 1 !important;
    width: min(520px, 82vw) !important;
    height: min(520px, 82vw) !important;
    transform: translate(-50%, -50%) !important;
  }
  .portfolio-logo {
    position: fixed;
    /* On compact layouts the circular logo shell is its element box. */
    top: 18px;
    left: 18px;
    width: 70px;
    height: 70px;
    transform: none;
  }
  .portfolio-logo::before {
    inset: 0;
  }
  .portfolio-logo::after {
    top: 5px;
    left: 11px;
  }
  .portfolio-logo img {
    width: 42px;
    height: 42px;
  }
}
@media (max-width: 640px) {
  #hero {
    min-height: auto !important;
    padding: 106px 20px !important;
  }
  .top-navigation {
    top: 76px;
    right: 28px;
    width: max-content;
    max-width: calc(100vw - 36px);
    border-radius: 28px;
  }
  .top-navigation.is-open a {
    font-size: 12px;
  }
  .top-navigation a {
    /* Do not introduce a second, taller/looser menu rhythm at this
       breakpoint: its compact layout is shared with the full mobile menu. */
    padding: 7px 10px;
    font-size: 12px;
    letter-spacing: 0.07em;
  }
  .resume-download-button {
    /* Keep the compact desktop width on small screens instead of stretching
       the visible language button across the whole row. */
    width: 200px;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    padding: 0 12px;
    font-size: clamp(10px, 2.8vw, 12px);
  }
  .resume-downloads {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .portfolio-logo {
    top: 18px;
    left: 18px;
    width: 70px;
    height: 70px;
  }
  .portfolio-logo::before {
    inset: 0;
  }
  .portfolio-logo::after {
    top: 5px;
    left: 11px;
  }
  .portfolio-logo img {
    width: 42px;
    height: 42px;
  }
  .navigation-toggle {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
  }
  .navigation-toggle span {
    width: 18px;
  }
  #about > div {
    padding-left: 0;
    padding-right: 0;
    gap: 2rem;
  }
  #about > div > div:first-child {
    width: min(82vw, 320px);
  }
  #about h2 {
    font-size: 28px;
    margin-bottom: 2rem;
  }
  #about h2 .text-klein {
    font-size: 32px;
  }
  #about .flex.gap-3.mb-8 {
    flex-wrap: wrap;
    gap: 8px;
  }
  #about .about-tag-flow {
    padding: 7px 12px;
    font-size: 11px;
  }
  #hero > div:first-child {
    padding-top: 0;
    padding-bottom: 0;
  }
  #hero > div:last-child {
    width: 82vw !important;
    height: 82vw !important;
  }
}
/* Contact section: a gentle bowl-shaped lower edge for the ballpit. */
#contact {
  /* An oversized ellipse keeps the bowl round and lets it meet both edges tangentially. */
  border-radius: 0 0 75% 75% / 0 0 clamp(60px, 7vw, 116px) clamp(60px, 7vw, 116px);
}

#contact .section-title {
  margin-right: 0 !important;
}

@media (max-width: 640px) {
  #contact {
    min-height: 430px !important;
    border-radius: 0 0 75% 75% / 0 0 58px 58px;
  }

  #contact > div.relative.z-10 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Photography: large, centered portrait prints with a deliberate slim margin. */
#photography .flip-photo-img-portrait {
  width: auto !important;
  height: 90% !important;
  max-width: 95% !important;
  align-self: center !important;
  margin-inline: auto !important;
  background-position: center !important;
  background-repeat: no-repeat;
}

#photography .flip-photo-with-location {
  position: relative;
}

#photography .flip-photo-with-location::after {
  content: attr(data-location);
  position: absolute;
  top: calc(100% + clamp(9px, 1vw, 16px));
  left: 0;
  color: #002fa7;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: clamp(0.56rem, 0.7vw, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

#photography .flip-photo-location-right::after {
  left: auto;
  right: 0;
  text-align: right;
}

/* Sections arrive quietly as they enter the viewport. */
.scroll-section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Give each chapter its own entrance, while keeping the motion restrained. */
#about.scroll-section-reveal {
  filter: blur(8px);
  transform: translateY(26px) scale(0.985);
  transition-duration: 0.72s;
}
#about.scroll-section-reveal.is-visible {
  filter: blur(0);
  transform: translateY(0) scale(1);
}

#experience.scroll-section-reveal {
  clip-path: inset(0 0 0 10%);
  transform: translateX(-34px);
  transition-duration: 0.7s;
}
#experience.scroll-section-reveal.is-visible {
  clip-path: inset(0);
  transform: translateX(0);
}

#project.scroll-section-reveal {
  transform: translateY(28px) rotate(-0.6deg);
  transform-origin: 50% 100%;
  transition-duration: 0.68s;
}
#project.scroll-section-reveal.is-visible {
  transform: translateY(0) rotate(0);
}

#photography.scroll-section-reveal {
  clip-path: inset(7% 0 0 0 round 24px);
  transform: scale(0.975);
  transition-duration: 0.82s;
}
#photography.scroll-section-reveal.is-visible {
  clip-path: inset(0 round 0);
  transform: scale(1);
}

#social.scroll-section-reveal {
  transform: translateX(38px);
  transition-duration: 0.64s;
}
#social.scroll-section-reveal.is-visible {
  transform: translateX(0);
}

#contact.scroll-section-reveal {
  filter: blur(6px);
  transform: translateY(18px) scale(0.97);
  transition-duration: 0.76s;
}
#contact.scroll-section-reveal.is-visible {
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-section-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Homepage theme switch */
.nav-preferences {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.language-switch {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 28px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  border: 1px solid rgba(0, 47, 167, 0.18);
  border-radius: 999px;
  color: #002fa7;
  background: rgba(225, 233, 255, 0.58);
  box-shadow: inset 0 1px 3px rgba(0, 47, 167, 0.08);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.language-switch::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 20px;
  content: "";
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0, 32, 112, 0.2);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.language-switch:hover,
.language-switch:focus-visible {
  outline: none;
  border-color: rgba(0, 47, 167, 0.42);
  box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.08), inset 0 1px 3px rgba(0, 47, 167, 0.08);
}

.language-switch-label {
  position: relative;
  z-index: 1;
  width: 20px;
  color: rgba(0, 47, 167, 0.38);
  font-family: "JetBrains Mono", "Noto Sans SC", monospace;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  transition: color 0.25s ease;
}

.language-switch-label--zh {
  color: #002fa7;
}

html[data-language="en"] .language-switch::before {
  transform: translateX(27px);
}

html[data-language="en"] .language-switch-label--zh {
  color: rgba(0, 47, 167, 0.38);
}

html[data-language="en"] .language-switch-label--en {
  color: #002fa7;
}

.theme-switch {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  border: 1px solid rgba(0, 47, 167, 0.18);
  border-radius: 999px;
  color: #002fa7;
  background: rgba(225, 233, 255, 0.58);
  box-shadow: inset 0 1px 3px rgba(0, 47, 167, 0.08);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.theme-switch::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  content: "";
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0, 32, 112, 0.2);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.theme-switch:hover,
.theme-switch:focus-visible {
  outline: none;
  border-color: rgba(0, 47, 167, 0.42);
  box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.08), inset 0 1px 3px rgba(0, 47, 167, 0.08);
}

.theme-switch-icon {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.theme-switch-icon--sun {
  color: #002fa7;
}

.theme-switch-icon--moon {
  color: rgba(0, 47, 167, 0.38);
}

/* Homepage dark palette */
html[data-theme="dark"] {
  color-scheme: dark;
  --dark-bg: #0c111d;
  --dark-surface: #121a2a;
  --dark-surface-raised: #182236;
  --dark-line: rgba(174, 195, 239, 0.16);
  --dark-text: #edf2fb;
  --dark-text-secondary: #b9c4d8;
  --dark-text-muted: #8996ad;
  --dark-accent: #8eaeff;
  background: var(--dark-bg);
}

html[data-theme="dark"] body {
  color: var(--dark-text);
  background:
    radial-gradient(circle at 88% 3%, rgba(47, 91, 202, 0.16), transparent 34rem),
    radial-gradient(circle at 5% 48%, rgba(22, 65, 155, 0.11), transparent 30rem),
    var(--dark-bg);
}

html[data-theme="dark"] .theme-switch {
  border-color: rgba(145, 177, 255, 0.3);
  color: #dce6ff;
  background: rgba(15, 25, 47, 0.8);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .theme-switch::before {
  background: #315bc2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateX(20px);
}

html[data-theme="dark"] .theme-switch-icon--sun {
  color: rgba(190, 207, 246, 0.4);
}

html[data-theme="dark"] .theme-switch-icon--moon {
  color: #ffffff;
}

html[data-theme="dark"] .language-switch {
  border-color: rgba(145, 177, 255, 0.3);
  color: #dce6ff;
  background: rgba(15, 25, 47, 0.8);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .language-switch::before {
  background: #315bc2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .language-switch-label {
  color: rgba(190, 207, 246, 0.4);
}

html[data-theme="dark"] .language-switch-label--zh,
html[data-theme="dark"][data-language="en"] .language-switch-label--en {
  color: #ffffff;
}

html[data-theme="dark"][data-language="en"] .language-switch-label--zh {
  color: rgba(190, 207, 246, 0.4);
}

.i18n-zh-only {
  display: none !important;
}

/* Case-study cards show one language at a time, following the site switch. */
.case-card-copy--zh {
  display: none;
}

html[data-language="zh"] .case-card-copy--en {
  display: none;
}

html[data-language="zh"] .case-card-copy--zh {
  display: inline;
}

html[data-language="zh"] .i18n-en-only {
  display: none !important;
}

html[data-language="zh"] .localized-hero-title,
html[data-language="zh"] .localized-hero-intro {
  display: block !important;
}

/* CJK glyphs fill more of the em box than Cormorant Garamond, so the
   translated hero is optically matched while retaining the same layout. */
html[data-language="zh"] #hero .localized-hero-title {
  font-size: clamp(35px, 4.6vw, 59px) !important;
}

html[data-language="zh"] #hero .localized-hero-intro {
  font-size: clamp(20px, 2.95vw, 33px) !important;
}

html[data-language="zh"] .localized-about-headline,
html[data-language="zh"] .localized-about-copy {
  display: block !important;
  font-family: "Noto Serif SC", serif !important;
  font-weight: 300;
}

html[data-language="zh"] .localized-about-tags {
  display: flex !important;
}

.localized-hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #002fa7;
  animation: localized-hero-cursor-blink 1s steps(1, end) infinite;
}

@keyframes localized-hero-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

html[data-theme="dark"] #root .bg-\[\#F5F5F5\] {
  background-color: transparent !important;
}

html[data-theme="dark"] #root .bg-gray-100,
html[data-theme="dark"] #root .bg-white\/20 {
  background-color: rgba(139, 164, 222, 0.1) !important;
}

html[data-theme="dark"] #root .bg-klein {
  background-color: #315bc2 !important;
}

html[data-theme="dark"] #hero .bg-klein,
html[data-theme="dark"] #hero .localized-hero-cursor {
  background-color: var(--dark-accent) !important;
}

html[data-theme="dark"] #root .bg-klein\/10 {
  background-color: rgba(110, 154, 255, 0.14) !important;
}

html[data-theme="dark"] #root .text-text,
html[data-theme="dark"] #root .text-black,
html[data-theme="dark"] #root .text-gray-900,
html[data-theme="dark"] #root .text-\[\#1a1a1a\],
html[data-theme="dark"] #project > div > h3:has(.project-subtitle-mark--case),
html[data-theme="dark"] #project > div > div:has(> h3 .project-subtitle-mark--projects) > h3 {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #root .text-text-secondary,
html[data-theme="dark"] #root .text-gray-600,
html[data-theme="dark"] #root .text-black\/40 {
  color: var(--dark-text-secondary) !important;
}

html[data-theme="dark"] #root .text-text-muted,
html[data-theme="dark"] #root .text-black\/30,
html[data-theme="dark"] #root .text-black\/\[0\.18\] {
  color: var(--dark-text-muted) !important;
}

html[data-theme="dark"] #root .text-klein,
html[data-theme="dark"] #root .text-\[\#002FA7\],
html[data-theme="dark"] .link-underline,
html[data-theme="dark"] .contact-link {
  color: var(--dark-accent) !important;
}

html[data-theme="dark"] #root .fill-text-muted {
  fill: #8795ae;
}

html[data-theme="dark"] #root .fill-klein,
html[data-theme="dark"] #root .hover\:fill-klein:hover {
  fill: var(--dark-accent);
}

html[data-theme="dark"] .link-underline::after,
html[data-theme="dark"] .nav-bottom-item::after {
  background-color: var(--dark-accent);
}

html[data-theme="dark"] .section-title-num {
  color: rgba(219, 230, 255, 0.38);
}

html[data-theme="dark"] .project-card {
  border-color: var(--dark-line);
  background: rgba(17, 25, 42, 0.58);
}

html[data-theme="dark"] .project-card:hover {
  border-color: rgba(142, 174, 255, 0.75);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.68);
}

html[data-theme="dark"] #project .project-card h4 {
  color: var(--dark-text);
}

html[data-theme="dark"] #project .skill-item:nth-child(even) {
  background: rgba(126, 151, 211, 0.07);
}

html[data-theme="dark"] #project .skill-item > div > span {
  color: var(--dark-accent);
  background: rgba(110, 154, 255, 0.11);
}

html[data-theme="dark"] #project .skill-item:hover,
html[data-theme="dark"] #project .skill-item:focus-visible {
  background:
    radial-gradient(ellipse at 22% 16%, rgba(174, 197, 255, 0.13) 0 7%, transparent 48%),
    radial-gradient(ellipse at 84% 108%, rgba(48, 98, 230, 0.26), transparent 66%),
    rgba(25, 39, 72, 0.7);
  box-shadow:
    -4px 0 0 #6f98ff,
    inset 0 -9px 17px rgba(17, 56, 151, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] #project .skill-item:hover .skill-name,
html[data-theme="dark"] #project .skill-item:focus-visible .skill-name {
  color: var(--dark-accent);
}

html[data-theme="dark"] .project-subtitle-mark,
html[data-theme="dark"] .project-subtitle-mark--projects::before {
  border-color: var(--dark-accent);
}

html[data-theme="dark"] .project-subtitle-mark--case::after {
  background: var(--dark-accent);
}

html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .xhs-card,
html[data-theme="dark"] .nav-catalog-item {
  border-color: var(--dark-line);
}

html[data-theme="dark"] .fan-flip-front,
html[data-theme="dark"] .fan-flip-back {
  background: var(--dark-surface-raised);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .fan-flip-front-info h3,
html[data-theme="dark"] .fan-flip-back h3 {
  color: var(--dark-text);
}

html[data-theme="dark"] .fan-flip-front-info .fan-subtitle,
html[data-theme="dark"] .fan-flip-back .description {
  color: var(--dark-text-secondary);
}

html[data-theme="dark"] .fan-flip-back .era-back,
html[data-theme="dark"] .fan-flip-back .subtitle-back,
html[data-theme="dark"] .dial-marker--active .dial-marker-year,
html[data-theme="dark"] .dial-nav-btn:hover {
  color: var(--dark-accent);
}

html[data-theme="dark"] .dial-marker:hover:not(.dial-marker--active) .dial-marker-year {
  color: var(--dark-accent);
}

html[data-theme="dark"] .dial-marker:hover:not(.dial-marker--active) .dial-marker-bar {
  background: var(--dark-accent);
}

html[data-theme="dark"] #root .dial-nav-btn:hover svg {
  color: var(--dark-accent) !important;
}

html[data-theme="dark"] .fan-flip-back .era-back::before,
html[data-theme="dark"] .dial-marker--active .dial-marker-bar,
html[data-theme="dark"] .dial-pointer-dot {
  background: var(--dark-accent);
}

html[data-theme="dark"] .fan-flip-back .fan-location,
html[data-theme="dark"] .dial-marker-year,
html[data-theme="dark"] .dial-nav-btn {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .dial-arc,
html[data-theme="dark"] .dial-arc-outer {
  border-color: rgba(173, 194, 239, 0.13);
}

html[data-theme="dark"] .dial-tick,
html[data-theme="dark"] .dial-marker-bar,
html[data-theme="dark"] .dial-marker-bar--sub {
  background: rgba(190, 207, 246, 0.14);
}

html[data-theme="dark"] .dial-nav [class*="bg-black"] {
  background: rgba(190, 207, 246, 0.24);
}

html[data-theme="dark"] #root .dial-nav [class*="bg-klein"] {
  background-color: var(--dark-accent) !important;
}

html[data-theme="dark"] .dial-pointer-needle {
  background: linear-gradient(to top, var(--dark-accent), rgba(142, 174, 255, 0.06));
}

html[data-theme="dark"] .dial-pointer-arrow {
  border-bottom-color: var(--dark-accent);
}

html[data-theme="dark"] .flip-face,
html[data-theme="dark"] .flip-back,
html[data-theme="dark"] .flip-inner-page,
html[data-theme="dark"] .flip-vid-poster-wrap,
html[data-theme="dark"] .flip-vid-inplace {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background: var(--dark-surface-raised) !important;
  box-shadow: inset -4px 0 18px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .flip-cover-f,
html[data-theme="dark"] .flip-cover-b {
  color: #ffffff;
  background-color: #173d9c !important;
}

/* Keep the final blank page visually continuous with the blue back cover. */
html[data-theme="dark"] .flip-page:last-child .flip-front {
  background-color: #173d9c !important;
}

html[data-theme="dark"] .flip-title {
  color: var(--dark-text);
}

html[data-theme="dark"] #photography .flip-title span {
  color: var(--dark-accent) !important;
}

html[data-theme="dark"] .flip-prologue-title::before {
  background: var(--dark-accent);
}

html[data-theme="dark"] .flip-epilogue-title span::before {
  background: var(--dark-accent);
}

html[data-theme="dark"] .flip-desc,
html[data-theme="dark"] .flip-photo-cap-bot,
html[data-theme="dark"] .flip-pn,
html[data-theme="dark"] .flip-breath-txt {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .flip-meta,
html[data-theme="dark"] .flip-photo-cap-top,
html[data-theme="dark"] .flip-cta,
html[data-theme="dark"] #photography .flip-photo-with-location::after {
  color: var(--dark-accent);
}

html[data-theme="dark"] .flip-cta {
  border-color: var(--dark-accent);
}

html[data-theme="dark"] .flip-cta:hover {
  color: #ffffff;
  background: #315bc2;
}

html[data-theme="dark"] .flip-photo-img {
  background-color: #222c40;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), 0 0 0 1px var(--dark-line);
}

html[data-theme="dark"] .flip-breath-line,
html[data-theme="dark"] .flip-dot {
  background: rgba(190, 207, 246, 0.16);
}

html[data-theme="dark"] .flip-dot.active {
  background: var(--dark-accent);
}

html[data-theme="dark"] .flip-nav {
  color: var(--dark-accent);
  background: var(--dark-surface-raised);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .flip-nav:hover {
  color: #ffffff;
  background: #315bc2;
}

html[data-theme="dark"] .xhs-film-card,
html[data-theme="dark"] .xhs-info-bar {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background: var(--dark-surface-raised);
}

html[data-theme="dark"] .xhs-info-title,
html[data-theme="dark"] .xhs-info-likes {
  color: var(--dark-text);
}

html[data-theme="dark"] .about-tag,
html[data-theme="dark"] .about-tag-flow {
  color: var(--dark-accent);
  border-color: rgba(142, 174, 255, 0.24);
}

html[data-theme="dark"] #about .about-tag-flow {
  isolation: isolate;
  color: #a9c0ff;
}

html[data-theme="dark"] #about .about-tag-flow::before {
  background: conic-gradient(
    from var(--tag-angle, 0deg),
    rgba(142, 174, 255, 0.08),
    rgba(142, 174, 255, 0.34),
    rgba(91, 130, 232, 0.5),
    rgba(142, 174, 255, 0.34),
    rgba(142, 174, 255, 0.08)
  );
}

html[data-theme="dark"] #about .about-tag-flow::after {
  background: rgba(20, 29, 48, 0.94);
  box-shadow: inset 0 1px 0 rgba(221, 231, 255, 0.05);
  transition: background 0.25s ease;
}

html[data-theme="dark"] #about .about-tag-flow:hover::after {
  background: rgba(29, 43, 72, 0.96);
}

html[data-theme="dark"] .about-tag:hover {
  color: #dbe6ff;
  border-color: rgba(142, 174, 255, 0.48);
  background: rgba(110, 154, 255, 0.1);
}

html[data-theme="dark"] .about-photo-frame,
html[data-theme="dark"] .about-photo-img {
  border-color: var(--dark-line);
}

html[data-theme="dark"] .about-photo-img {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .resume-download-button {
  color: #c8d8ff;
  background:
    radial-gradient(ellipse at 27% 18%, rgba(182, 203, 255, 0.12), transparent 36%),
    radial-gradient(ellipse at 76% 105%, rgba(38, 93, 224, 0.3), transparent 66%),
    rgba(22, 34, 63, 0.76);
  box-shadow:
    inset 0 -10px 20px rgba(0, 20, 75, 0.3),
    inset 8px 8px 18px rgba(180, 202, 255, 0.05),
    0 10px 26px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .resume-download-button:hover {
  color: #e2ebff;
  background:
    radial-gradient(ellipse at 27% 18%, rgba(182, 203, 255, 0.18), transparent 36%),
    radial-gradient(ellipse at 76% 105%, rgba(55, 108, 239, 0.38), transparent 66%),
    rgba(27, 42, 78, 0.84);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .ballpit-container {
  border-color: rgba(142, 174, 255, 0.22);
  background: radial-gradient(ellipse at center, rgba(65, 106, 210, 0.12), transparent 70%);
}

html[data-theme="dark"] .top-navigation::before,
html[data-theme="dark"] .portfolio-logo::before,
html[data-theme="dark"] .navigation-toggle,
html[data-theme="dark"] .back-to-top {
  background:
    radial-gradient(ellipse at 31% 22%, rgba(205, 220, 255, 0.18) 0 5%, rgba(143, 170, 233, 0.09) 15%, transparent 34%),
    radial-gradient(ellipse at 66% 72%, rgba(54, 101, 225, 0.25), transparent 56%),
    rgba(17, 27, 51, 0.72);
  box-shadow:
    inset 0 -12px 22px rgba(0, 14, 52, 0.42),
    inset 10px 10px 22px rgba(179, 201, 255, 0.05),
    0 12px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .top-navigation::after,
html[data-theme="dark"] .portfolio-logo::after,
html[data-theme="dark"] .navigation-toggle::after,
html[data-theme="dark"] .back-to-top::after {
  background: rgba(202, 219, 255, 0.15);
}

html[data-theme="dark"] .top-navigation a {
  color: #bcd0ff;
}

html[data-theme="dark"] .top-navigation a:hover,
html[data-theme="dark"] .top-navigation a:focus-visible {
  color: #ffffff;
  background: rgba(142, 174, 255, 0.14);
}

html[data-theme="dark"] .top-navigation a.is-active {
  color: #ffffff;
  background: #315bc2;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .navigation-toggle span {
  background: #bcd0ff;
}

html[data-theme="dark"] .back-to-top {
  color: #bcd0ff;
}

html[data-theme="dark"] .back-to-top:hover,
html[data-theme="dark"] .back-to-top:focus-visible {
  color: #ffffff;
}

html[data-theme="dark"] .portfolio-logo img {
  filter: drop-shadow(0 0 12px rgba(73, 119, 239, 0.38));
}

html[data-theme="dark"] #root [class*="animate-blob"] {
  opacity: 0.55;
  filter: brightness(1.35) saturate(0.9);
}

/* Keep every homepage chapter on the same dark canvas. Several sections use
   inline light backgrounds, so these theme rules intentionally win. */
html[data-theme="dark"] #root,
html[data-theme="dark"] #hero,
html[data-theme="dark"] #about,
html[data-theme="dark"] #experience,
html[data-theme="dark"] #project,
html[data-theme="dark"] #photography,
html[data-theme="dark"] #social,
html[data-theme="dark"] #contact,
html[data-theme="dark"] #root > footer {
  background: var(--dark-bg) !important;
}

html[data-theme="dark"] #hero h1 {
  color: var(--dark-accent) !important;
}

html[data-theme="dark"] #hero p {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #hero > .absolute.z-50 > div:last-child {
  background: linear-gradient(
    to left,
    var(--dark-bg) 0%,
    rgba(12, 17, 29, 0.82) 30%,
    rgba(12, 17, 29, 0) 70%
  ) !important;
}

html[data-theme="dark"] #about h2,
html[data-theme="dark"] #about .about-fade-line {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #about .about-copy-reveal,
html[data-theme="dark"] #about .about-copy-reveal p {
  color: var(--dark-text-secondary) !important;
}

html[data-theme="dark"] #about .about-bold-keyword,
html[data-theme="dark"] #about .text-klein {
  color: var(--dark-accent) !important;
}

html[data-theme="dark"] #social h2,
html[data-theme="dark"] #contact h2,
html[data-theme="dark"] #contact .section-title {
  color: var(--dark-text) !important;
}

html[data-theme="dark"] #social h2 em,
html[data-theme="dark"] #social .text-\[\#002FA7\] {
  color: var(--dark-accent) !important;
}

html[data-theme="dark"] #social > .relative > .absolute.left-0 {
  background: linear-gradient(90deg, var(--dark-bg) 20%, transparent) !important;
}

html[data-theme="dark"] #social > .relative > .absolute.right-0 {
  background: linear-gradient(-90deg, var(--dark-bg) 20%, transparent) !important;
}

html[data-theme="dark"] #contact + footer,
html[data-theme="dark"] footer {
  color: var(--dark-text-secondary);
  background: var(--dark-bg) !important;
}

html[data-theme="dark"] footer .text-text,
html[data-theme="dark"] footer p {
  color: var(--dark-text-secondary) !important;
}

@media (max-width: 1180px) {
  .nav-preferences {
    align-self: flex-start;
    margin: 8px 10px 0;
  }

  .top-navigation .theme-switch,
  .top-navigation .language-switch {
    width: 48px;
    height: 28px;
    min-height: 28px;
    flex: 0 0 48px;
    margin: 0;
  }

  .top-navigation .language-switch {
    width: 58px;
    flex-basis: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-switch,
  .theme-switch::before,
  .language-switch,
  .language-switch::before,
  body {
    transition: none;
  }
}

/* Keep the hero frame stable while only the middle introduction types. */
#hero > div:first-child > h1 {
  font-size: 0 !important;
}

html[data-language="zh"] #hero > div:first-child > h1.localized-hero-title {
  font-size: 0 !important;
}

#hero > div:first-child > h1::before {
  display: block;
  color: inherit;
  font-family: inherit;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.25;
}

#hero > div:first-child > h1:not(.localized-hero-title)::before {
  content: "I'm Rain,";
}

html[data-language="zh"] #hero > div:first-child > .localized-hero-title::before {
  content: "我是刘瑞颍，";
  font-size: clamp(35px, 4.6vw, 59px);
}

#hero > div:first-child > h1 > * {
  display: none !important;
}

#hero > div:first-child > p {
  overflow: visible;
}

html .resume-downloads,
html[data-language="zh"]:not(.localized-hero-complete) .resume-downloads {
  pointer-events: auto;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 640px) {
  /* Preserve the compact layout's existing optical shift while the
     introduction and résumé now follow their natural content height. */
  #hero > div:first-child > h1,
  #hero > div:first-child > p {
    transform: translateY(8px);
  }

}

/* Use one fade rhythm across the homepage while preserving each chapter's motif. */
#hero > div:first-child {
  animation: homepage-hero-fade-in 0.68s ease-out both;
}

@keyframes homepage-hero-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#about.scroll-section-reveal,
#experience.scroll-section-reveal,
#project.scroll-section-reveal,
#photography.scroll-section-reveal,
#social.scroll-section-reveal,
#contact.scroll-section-reveal {
  transition-duration: 0.68s;
}

@media (prefers-reduced-motion: reduce) {
  #hero > div:first-child {
    opacity: 1;
    animation: none;
  }
}

/* Shared case-study return control, anchored at the homepage's lower-right edge. */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  place-items: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 31% 22%, rgba(255, 255, 255, 0.95) 0 5%, rgba(255, 255, 255, 0.38) 15%, transparent 34%),
    radial-gradient(ellipse at 66% 72%, rgba(42, 94, 225, 0.26), transparent 56%),
    radial-gradient(circle at 48% 44%, rgba(255, 255, 255, 0.12), transparent 64%),
    rgba(205, 221, 255, 0.07);
  box-shadow:
    inset 0 -12px 22px rgba(0, 47, 167, 0.13),
    inset 10px 10px 22px rgba(255, 255, 255, 0.14),
    0 12px 34px rgba(36, 91, 224, 0.22);
  color: #002fa7;
  cursor: pointer;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s, background 0.2s ease, color 0.2s ease;
}

.back-to-top::after {
  position: absolute;
  top: 5px;
  left: 11px;
  z-index: 0;
  width: 42%;
  height: 23%;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  filter: blur(1.5px);
  pointer-events: none;
}

.back-to-top span {
  position: relative;
  z-index: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  outline: none;
  color: #001b66;
}

/* Match the back-to-top interaction: the menu control only tightens its
   line color, with no extra motion or glow. */
.navigation-toggle:hover,
.navigation-toggle:focus-visible {
  outline: none;
}

.navigation-toggle:hover span,
.navigation-toggle:focus-visible span {
  background: #001b66;
}

html[data-theme="dark"] .navigation-toggle:hover span,
html[data-theme="dark"] .navigation-toggle:focus-visible span {
  background: #ffffff;
}

/* This switches at the same point as the hamburger navigation. Until then,
   the orbit stays beside the copy and remains fully interactive. */
@media (max-width: 1180px) {
  #hero > div:first-child {
    position: relative;
    z-index: 1;
  }

  #hero .orbit-navigation-shell {
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.78) !important;
    transform-origin: center;
  }

  #hero .orbit-navigation-shell .animate-ring-rotate,
  #hero .orbit-navigation-shell .animate-ring-explode {
    pointer-events: none !important;
  }

  /* The right-to-left fade belongs to the side-by-side composition. Once the
     orbit sits behind the copy, show its full circumference instead. */
  #hero .orbit-navigation-shell > div[style*="linear-gradient"] {
    opacity: 0 !important;
  }
}
