@font-face {
  font-family: KJing;
  src: url("assets/fonts/JingHuaSong.subset.woff2?asset-recovery=20260904") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Notebook;
  src:
    url("assets/fonts/handwriting.woff2?asset-recovery=20260904") format("woff2"),
    url("assets/fonts/handwriting.ttf?asset-recovery=20260904") format("truetype");
  font-display: swap;
}
:root {
  --site-serif: KJing, "Songti SC", STSong, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* Keep the layout width stable while the splash temporarily locks scrolling. */
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: #fffdfb;
  color: #17120f;
  font-family: var(--site-serif);
}
body.is-splash-active {
  overflow: hidden;
}
.site-splash {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: hidden;
  background: #f27d00;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.48s ease;
}
.site-splash img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-splash.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 2.25rem, 0);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
.panel {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(238, 123, 0, 0.18);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  box-shadow: 0 4px 22px rgba(40, 24, 13, 0.05);
}
.topbar.visible {
  transform: translateY(0);
}
.brand {
  font-size: 18px;
  letter-spacing: 0.11em;
}
.brand span {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #ee7b00;
  margin-left: 10px;
}
.topbar nav {
  display: flex;
  gap: clamp(13px, 2vw, 32px);
  align-items: center;
  font-size: 14px;
}
.topbar nav a:hover {
  color: #ee7b00;
}
.language-toggle {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.topbar nav .nav-profile-wip {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.66);
  cursor: default;
  user-select: none;
}
.topbar nav .nav-profile-wip small {
  margin-left: 4px;
  color: #fff3e6;
  font: 10px/1 Arial, sans-serif;
  letter-spacing: 0.04em;
}
.works,
.travel,
.notes,
.friends {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.language-toggle {
  min-width: 2.4em;
  padding: 0.35em 0.55em;
  border: 1px solid rgba(238, 123, 0, 0.42);
  color: #ee7b00;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.22s ease, background-color 0.22s ease;
}
.language-toggle:hover,
.language-toggle:focus-visible {
  background: #ee7b00;
  color: #fff;
}
.hero {
  background: #fffaf7;
}
.hero-bg {
  position: absolute;
  inset: -4%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}
.hero-bg-portrait {
  background-image: url("assets/welcome/hero-portrait.png?asset-recovery=20260904");
  background-position: left center;
  background-size: auto 125%;
  opacity: 0.75;
}
.hero-copy {
  position: absolute;
  left: 7.3%;
  top: 35%;
  z-index: 2;
}
.eyebrow {
  display: block;
  color: #ee7b00;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.1vw, 72px);
  font-weight: 400;
  margin: 0 0 25px;
  letter-spacing: 0.02em;
}
.hero-copy h1 span {
  background: #ee7b00;
  color: #fff;
  padding: 0 0.14em 0.06em;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-copy p:not(.eyebrow) {
  font-size: clamp(17px, 1.7vw, 28px);
  line-height: 1.5;
  margin: 0;
}
.hero-vertical {
  position: absolute;
  left: 0;
  bottom: 0;
  color: #f5d9c9;
  font-size: clamp(36px, 5vw, 84px);
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
  line-height: 1;
}
.link-dock {
  position: absolute;
  left: 7.3%;
  bottom: 18%;
  z-index: 2;
}
.dock-label {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.link-row {
  height: 64px;
  width: min(600px, 72vw);
  background: #ffa073;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.link-row a,
.link-row button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fffaf7;
  color: #ee7b00;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition:
    transform 0.25s,
    background 0.25s;
}
.link-row a:hover,
.link-row button:hover {
  transform: translateY(-5px) rotate(-4deg);
  background: #ee7b00;
  color: white;
}
.scroll-mark {
  position: absolute;
  bottom: 18px;
  left: 50%;
  color: #ff996e;
  font: 32px Arial;
  z-index: 2;
  animation: float 2.2s ease-in-out infinite;
}
.orange {
  color: #ee7b00;
}
.section-heading {
  position: relative;
  z-index: 2;
  padding: 4.5vw 6vw 1vw;
}
.section-heading span {
  color: #ee7b00;
  font: 12px Arial;
  letter-spacing: 0.2em;
}
.section-heading h2 {
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 400;
  margin: 8px 0 0;
}
.works {
  background:
    linear-gradient(rgba(252, 251, 249, 0.8), rgba(252, 251, 249, 0.8)),
    url("assets/works/background-desk.png?asset-recovery=20260904") center/cover no-repeat;
  background-attachment: fixed;
}
.works-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 7vw;
  padding: 0 8vw 5vw;
}
.work-column h3 {
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 400;
  margin: 18px 0 8px;
}
.work-link {
  --work-image-height: 250px;
  display: block;
  transition: transform 0.3s;
}
.work-cover-frame {
  position: relative;
  display: block;
  isolation: isolate;
  height: var(--work-image-height);
  margin: 0;
  overflow: hidden;
  background: #f1eadc;
}
.work-cover-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #ee7b00;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.work-link:hover {
  transform: translateY(-7px);
}
.work-platform-badge {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(72px, 7vw, 96px);
  aspect-ratio: 1;
  margin: 0;
  filter: drop-shadow(0 9px 18px rgba(78, 35, 5, 0.24));
  opacity: 0;
  transform: translate(-50%, -38%) scale(0.82) rotate(-5deg);
  transition:
    opacity 0.22s ease,
    transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-platform-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.work-link:hover .work-cover-frame::after,
.work-link:focus-visible .work-cover-frame::after,
.work-link:hover .work-platform-badge,
.work-link:focus-visible .work-platform-badge {
  opacity: 1;
}
.work-link:hover .work-platform-badge,
.work-link:focus-visible .work-platform-badge {
  transform: translate(-50%, -50%) scale(1) rotate(0);
}
.work-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition:
    filter 0.3s,
    box-shadow 0.3s;
}
.work-link:hover .work-cover-image,
.work-link:focus-visible .work-cover-image {
  filter: saturate(1.15);
  box-shadow: 11px 11px 0 rgba(238, 123, 0, 0.32);
}
.work-title,
.minecraft span {
  display: block;
  font-size: 17px;
  margin-top: 5px;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.mini-grid .work-link {
  --work-image-height: 135px;
}
.music-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.music-tile {
  aspect-ratio: 1/1;
  background: #f38400;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 24px;
  transition:
    transform 0.3s,
    background 0.3s;
}
.music-tile:hover {
  background: #17120f;
  transform: rotate(-2deg) scale(1.025);
}
.music-tile small {
  font-size: 16px;
}
.minecraft {
  display: block;
  width: 58%;
  background: #fff;
  padding: 18px;
  transition: transform 0.3s;
}
.minecraft:hover {
  transform: translateY(-7px) rotate(1deg);
}
.minecraft img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}
.tools-note {
  margin-top: 48px !important;
}
.tools-note small {
  font-size: 14px;
  color: #6d625b;
}
.travel {
  background: #fff;
}
.travel-photo,
.travel-shade {
  position: absolute;
  inset: 0;
}
.travel-photo {
  background: url("assets/travel/main.webp?asset-recovery=20260904") center/cover;
  transform: scale(1.08);
  will-change: transform;
}
.travel-shade {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0 17%,
    rgba(255, 255, 255, 0.18) 35%,
    rgba(255, 145, 82, 0.12)
  );
}
.travel-vertical {
  position: absolute;
  left: 2.1%;
  top: 2%;
  z-index: 2;
  display: flex;
  gap: 13px;
  writing-mode: vertical-rl;
  font-size: clamp(20px, 2.4vw, 42px);
  line-height: 1.35;
}
.travel-vertical strong {
  background: #ffb25f;
  color: white;
  padding: 8px 4px;
  font-weight: 400;
}
.travel-vertical span {
  font-weight: 400;
}
.travel-vertical em {
  font-style: normal;
  font-size: 0.62em;
}
.travel-link {
  position: absolute;
  right: 3%;
  top: 3%;
  z-index: 2;
  color: white;
  font-size: clamp(17px, 1.7vw, 30px);
}
.travel-title {
  position: absolute;
  right: 3%;
  bottom: 8%;
  z-index: 2;
  color: white;
  text-align: right;
}
.travel-title small {
  font: 16px Georgia;
  letter-spacing: 0.08em;
}
.travel-title h2 {
  font-size: clamp(66px, 10vw, 190px);
  font-weight: 400;
  margin: 8px 0 0;
  line-height: 0.88;
}
.travel-mark {
  position: absolute;
  bottom: 3%;
  left: 18%;
  z-index: 2;
  color: white;
  font-size: 100px;
  transform: rotate(35deg);
}
.copyright {
  position: absolute;
  left: 5.5%;
  bottom: 3%;
  z-index: 2;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
}
.notes {
  background: #fffaf7;
  padding-bottom: 7vw;
}
.notes-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 1vw 8vw 3vw;
}
.blog-card,
.latest-note,
.message-board {
  border: 1px solid #ee7b00;
  background: #fff;
  padding: 30px;
}
.blog-card {
  background: #ee7b00;
  color: white;
  min-height: 220px;
}
.blog-card .eyebrow {
  color: white;
}
.blog-card h3,
.latest-note h3 {
  font-size: 34px;
  font-weight: 400;
  margin: 10px 0;
}
.blog-card p,
.latest-note p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 40ch;
}
.blog-card a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid currentColor;
}
.latest-note {
  background: linear-gradient(135deg, #fff, #fff0e7);
  position: relative;
}
.latest-note time {
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: #ee7b00;
  font-size: 13px;
}
.message-board {
  margin: 0 8vw;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #e7d8cf;
  padding-bottom: 16px;
}
.board-head h3 {
  font-size: 32px;
  font-weight: 400;
  margin: 4px 0 0;
}
.board-head > span {
  color: #ee7b00;
  font-size: 13px;
}
.message-form {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 10px;
  margin: 20px 0;
}
.message-form input,
.message-form textarea {
  border: 1px solid #d9cbc1;
  background: #fffaf7;
  padding: 12px;
  color: inherit;
}
.message-form textarea {
  min-height: 46px;
  resize: vertical;
}
.message-form button,
.download-link {
  border: 1px solid #ee7b00;
  background: #ee7b00;
  color: #fff;
  padding: 12px 18px;
  cursor: pointer;
}
.message-form button:hover {
  background: #17120f;
  border-color: #17120f;
}
.message-meta {
  display: flex;
  justify-content: space-between;
  color: #82766d;
  font-size: 12px;
  border-bottom: 1px solid #e7d8cf;
  padding-bottom: 10px;
}
.message-list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}
.message-item {
  padding: 14px 0;
  border-bottom: 1px dashed #e7d8cf;
}
.message-item strong {
  color: #ee7b00;
  margin-right: 12px;
}
.message-item time {
  font-size: 11px;
  color: #9b8e84;
}
.message-item p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.friends {
  background: #17120f;
  color: #fff;
  padding-bottom: 10vw;
  min-height: 62vh;
}
.friends .section-heading span {
  color: #ffb25f;
}
.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ee7b00;
  margin: 1vw 6vw 8vw;
}
.friend-grid a {
  min-height: 160px;
  background: #17120f;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    background 0.3s,
    color 0.3s;
}
.friend-grid a:hover {
  background: #ee7b00;
  color: #17120f;
}
.friend-grid b {
  font: 25px Georgia;
}
.friend-grid span {
  font-size: 14px;
  opacity: 0.75;
}
.footer-note {
  text-align: center;
  color: #ffb25f;
  font-size: 18px;
}
.profile-modal {
  width: min(860px, 90vw);
  padding: 0;
  border: 0;
  background: #fffaf7;
  color: #17120f;
  box-shadow: 0 22px 90px rgba(29, 17, 10, 0.28);
}
.profile-modal::backdrop {
  background: rgba(23, 18, 15, 0.45);
  backdrop-filter: blur(3px);
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 34px;
  cursor: pointer;
  z-index: 1;
}
.profile-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 440px;
}
.profile-layout > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  background: #f3eee9;
}
.profile-layout > div {
  padding: 60px 48px;
}
.profile-layout h2 {
  font-size: 52px;
  font-weight: 400;
  margin: 0 0 20px;
}
.profile-layout p {
  font-size: 18px;
  line-height: 1.8;
}
.profile-layout dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  font-size: 14px;
  margin: 28px 0;
}
.profile-layout dt {
  color: #ee7b00;
  letter-spacing: 0.1em;
}
.profile-layout dd {
  margin: 0;
}
.download-link {
  display: inline-block;
  margin-top: 10px;
}
@keyframes float {
  50% {
    transform: translateY(7px);
  }
}
@media (max-width: 800px) {
  .topbar {
    height: auto;
    min-height: 58px;
    padding: 12px 16px;
    align-items: flex-start;
  }
  .topbar nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 12px;
  }
  .brand {
    font-size: 15px;
  }
  .brand span {
    display: block;
    margin: 3px 0 0;
    font-size: 10px;
  }
  .hero-copy {
    left: 8%;
    top: 29%;
    max-width: 90%;
  }
  .hero-copy h1 {
    font-size: clamp(30px, 9vw, 48px);
  }
  .link-dock {
    left: 8%;
    bottom: 13%;
  }
  .link-row {
    width: 84vw;
    height: 58px;
  }
  .link-row a,
  .link-row button {
    width: 36px;
    height: 36px;
  }
  .works-layout,
  .notes-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 8vw;
    padding-right: 8vw;
  }
  .section-heading {
    padding: 12vw 8vw 5vw;
  }
  .works-layout {
    padding-bottom: 18vw;
  }
  .work-link {
    --work-image-height: 180px;
  }
  .mini-grid {
    gap: 12px;
  }
  .mini-grid .work-link {
    --work-image-height: 100px;
  }
  .music-tile {
    font-size: 18px;
  }
  .minecraft {
    width: 100%;
  }
  .travel-vertical {
    font-size: 17px;
    left: 4%;
  }
  .travel-title {
    right: 4%;
    bottom: 13%;
  }
  .travel-title h2 {
    font-size: 20vw;
  }
  .travel-link {
    font-size: 14px;
  }
  .travel-mark {
    left: 12%;
    font-size: 62px;
  }
  .copyright {
    left: 4%;
    font-size: 11px;
  }
  .message-board {
    margin: 0 8vw;
    padding: 20px;
  }
  .message-form {
    grid-template-columns: 1fr;
  }
  .friend-grid {
    grid-template-columns: 1fr 1fr;
    margin: 2vw 8vw 20vw;
  }
  .friend-grid a {
    min-height: 120px;
    padding: 16px;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-layout > img {
    height: 250px;
  }
  .profile-layout > div {
    padding: 30px 24px;
  }
  .profile-layout h2 {
    font-size: 38px;
  }
}
/* v1 refinement: direct asset fidelity and motion */
.link-row a,
.link-row button {
  background: #ffa073;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}
.link-row a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.25s;
}
.link-row a:hover img {
  transform: scale(1.15) rotate(5deg);
}
.hero-vertical {
  font-size: clamp(30px, 4.2vw, 76px);
  letter-spacing: 0.16em;
}
.works-layout {
  align-items: start;
}
.work-column h3:first-child,
.music-column h3:first-child {
  margin-top: 0;
}
.work-link {
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-link:hover {
  transform: translateY(-9px) rotate(-0.6deg);
}
.work-link:hover .work-cover-image,
.work-link:focus-visible .work-cover-image {
  transform: scale(1.012);
}
.music-tile.is-upcoming {
  cursor: default;
  filter: saturate(0.72);
}
.music-tile.is-upcoming small {
  color: #c86b12;
}
.travel-mask,
.travel-bar,
.travel-star,
.travel-triangle {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.travel-mask {
  left: 0;
  top: 0;
  width: 34.8%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
}
.travel-bar {
  object-fit: contain;
  mix-blend-mode: multiply;
  transform-origin: center;
}
.travel-bar-one {
  height: 68%;
  left: 15%;
  top: 19%;
}
.travel-bar-two {
  height: 32%;
  left: 20%;
  top: 39%;
}
.travel-star {
  width: 58px;
  right: 2.6%;
  top: 2.6%;
  animation: starPulse 3.2s ease-in-out infinite;
}
.travel-triangle {
  width: 26px;
  left: 18%;
  bottom: 9%;
}
.travel-vertical,
.travel-link {
  z-index: 4;
}
.profile-layout {
  min-height: 540px;
}
.profile-portrait {
  position: relative;
  background: #f3eee9;
  overflow: hidden;
}
.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: contrast(1.05);
}
.profile-portrait span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: #ee7b00;
  font: 12px Arial;
  letter-spacing: 0.15em;
}
.profile-paper {
  padding: 60px 48px;
  background: #f9f3e8 url("assets/profile/paper.webp?asset-recovery=20260904") center/cover;
}
.profile-hand {
  font-family: Notebook, var(--site-serif);
  line-height: 1.9 !important;
  font-size: 22px !important;
}
@keyframes starPulse {
  50% {
    transform: scale(1.08) rotate(3deg);
  }
}
@keyframes profileIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}
.profile-modal[open] {
  animation: profileIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.profile-paper {
  animation: paperSettle 0.55s 0.08s ease both;
}
@keyframes paperSettle {
  from {
    transform: translateX(14px) rotate(1.2deg);
    opacity: 0.55;
  }
  to {
    transform: translateX(0) rotate(0);
    opacity: 1;
  }
}
.travel-mask {
  width: 52%;
}
.travel-vertical {
  display: block;
  writing-mode: initial;
  width: 220px;
  height: 72vh;
}
.travel-vertical strong {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(46px, 3.65vw, 70px);
  height: 56.7vh;
  writing-mode: vertical-rl;
  display: block;
}
.travel-vertical span {
  position: absolute;
  left: 4.25vw;
  top: 0;
  writing-mode: vertical-rl;
  display: block;
}
.travel-vertical span {
  left: 6.3vw;
}
.travel-vertical em {
  position: absolute;
  left: 9.5vw;
  top: 0;
  writing-mode: vertical-rl;
  display: block;
}
.travel-title h2 {
  font-size: clamp(104px, 14vw, 286px);
  letter-spacing: -0.02em;
}
@media (max-width: 800px) {
  .link-row a img {
    width: 20px;
    height: 20px;
  }
  .travel-mask {
    width: 46%;
  }
  .travel-bar-one {
    height: 54%;
    left: 8%;
    top: 26%;
  }
  .travel-bar-two {
    height: 28%;
    left: 13%;
    top: 40%;
  }
  .travel-star {
    width: 34px;
    right: 4%;
    top: 4%;
  }
  .travel-triangle {
    left: 15%;
    bottom: 10%;
  }
  .profile-portrait {
    height: 250px;
  }
  .profile-paper {
    padding: 30px 24px;
  }
}

/* Travel composition calibration: preserve supplied artwork proportions. */
.travel-mask {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}
.travel-bar-one {
  height: 68%;
  left: 15%;
  top: 19%;
}
.travel-bar-two {
  height: 32%;
  left: 20%;
  top: 39%;
}
.travel-title h2 {
  font-size: clamp(68px, 14vw, 286px);
  line-height: 0.88;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .travel-mask {
    width: 52%;
    height: 100%;
    object-fit: fill;
  }
  .travel-bar-one {
    height: 54%;
    left: 8%;
    top: 26%;
  }
  .travel-bar-two {
    height: 28%;
    left: 13%;
    top: 40%;
  }
  .travel-shade {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.97) 0 22%,
      rgba(255, 255, 255, 0.22) 45%,
      rgba(255, 145, 82, 0.1)
    );
  }
}
@media (max-width: 800px) {
  .travel-title h2 {
    font-size: 20vw;
    max-width: 88vw;
    white-space: normal;
  }
  .travel-title small {
    font-size: 11px;
  }
  .travel-title {
    right: 4%;
    bottom: 13%;
    max-width: 90vw;
  }
}

@font-face {
  font-family: PersonalHand;
  src:
    url("assets/fonts/handwriting.woff2?asset-recovery=20260904") format("woff2"),
    url("assets/fonts/handwriting.ttf?asset-recovery=20260904") format("truetype");
  font-display: swap;
}
.profile-modal {
  width: min(96vw, calc(90vh * 16 / 9));
  max-width: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  color: #17120f;
}
.profile-modal::backdrop {
  background: rgba(23, 18, 15, 0.52);
  backdrop-filter: blur(4px);
}
.profile-layout {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16/9;
  background: #f3f2ef;
  overflow: hidden;
  isolation: isolate;
}
.profile-portrait {
  position: absolute;
  inset: 0 54% 0 0;
  background: linear-gradient(135deg, #f8f8f6, #efeeeb);
  overflow: hidden;
  z-index: 1;
}
.profile-portrait:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("assets/profile/paper.webp?asset-recovery=20260904");
  background-size: cover;
  mix-blend-mode: multiply;
}
.profile-portrait > img {
  position: absolute;
  width: 52%;
  height: auto;
  left: 23%;
  bottom: 5%;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
  z-index: 1;
}
.profile-portrait > span {
  display: none;
}
.profile-scribble {
  position: absolute;
  z-index: 2;
  left: 23%;
  top: 25%;
  width: 52%;
  aspect-ratio: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.profile-scribble img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: scribbleFrame 1.2s steps(1, end) infinite;
}
.profile-scribble img:nth-child(1) {
  animation-delay: 0s;
}
.profile-scribble img:nth-child(2) {
  animation-delay: 0.3s;
}
.profile-scribble img:nth-child(3) {
  animation-delay: 0.6s;
}
.profile-scribble img:nth-child(4) {
  animation-delay: 0.9s;
}
@keyframes scribbleFrame {
  0%,
  24.99% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}
.profile-paper {
  position: absolute;
  z-index: 3;
  left: 37%;
  top: -11%;
  width: 66%;
  height: 124%;
  padding: 14% 9% 9% 17%;
  background: #f9f6ed url("assets/profile/paper.webp?asset-recovery=20260904") center/cover;
  box-shadow: -18px 20px 32px rgba(35, 28, 20, 0.2);
  transform: rotate(7deg);
  transform-origin: 50% 50%;
  font-family: PersonalHand, cursive;
  line-height: 1.45;
}
.profile-paper h2 {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 8%;
  padding: 10px 22px 8px;
  background: #111923;
  color: white;
  font-family: PersonalHand, cursive;
  font-size: clamp(28px, 3.2vw, 54px);
  font-weight: 400;
  line-height: 1;
}
.profile-paper h2 small {
  font-size: 0.26em;
  letter-spacing: 0.15em;
  opacity: 0.8;
  align-self: flex-end;
}
.profile-paper p,
.profile-paper .profile-address,
.profile-paper .profile-resume {
  font-family: PersonalHand, cursive;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.45;
}
.profile-intro {
  margin: 0 0 8%;
}
.profile-contact {
  margin: 0 0 8%;
}
.profile-contact b {
  font-weight: 400;
}
.profile-address {
  margin: 0 0 8%;
}
.profile-address small {
  font-size: 0.58em;
}
.profile-resume {
  display: inline-block;
  text-decoration: none;
  margin-top: 2%;
  transition: transform 0.2s ease;
  color: #17120f;
}
.profile-resume:hover {
  transform: translateX(5px) rotate(-1deg);
}
.modal-close {
  position: absolute;
  right: -18px;
  top: -18px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border: 1px solid #17120f;
  background: #fff;
  color: #17120f;
  font: 28px/1 Arial;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.modal-close:hover {
  background: #ee7b00;
  color: #fff;
  transform: rotate(8deg);
}
@media (max-width: 800px) {
  .profile-modal {
    width: 94vw;
  }
  .profile-layout {
    height: 82vh;
    min-height: 600px;
    aspect-ratio: auto;
  }
  .profile-portrait {
    inset: 0 0 48% 0;
  }
  .profile-portrait > img {
    width: 39%;
    left: 8%;
    bottom: -4%;
  }
  .profile-scribble {
    left: 8%;
    top: 10%;
    width: 39%;
  }
  .profile-paper {
    left: 12%;
    top: 39%;
    width: 104%;
    height: 72%;
    padding: 12% 10% 8% 16%;
    transform: rotate(5deg);
  }
  .profile-paper h2 {
    font-size: 30px;
    margin-bottom: 5%;
  }
  .profile-paper p,
  .profile-paper .profile-address,
  .profile-paper .profile-resume {
    font-size: 21px;
  }
  .modal-close {
    right: 8px;
    top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-scribble img {
    animation: none;
  }
  .profile-scribble img:first-child {
    opacity: 1;
  }
  .profile-resume,
  .modal-close {
    transition: none;
  }
}
.travel-vertical em {
  background: #ff9a45;
  color: #fff;
  padding: 4px 2px;
  line-height: 1.08;
}
.travel-title {
  position: absolute;
}
.travel-title small {
  display: inline-block;
  margin-right: 1.5em;
  text-align: right;
}
.travel-roman {
  position: absolute;
  right: -0.02em;
  top: -0.3em;
  color: #fff;
  font:
    700 clamp(38px, 4vw, 78px)/1 Georgia,
    serif;
}
@media (max-width: 800px) {
  .travel-roman {
    font-size: 42px;
    right: -0.08em;
    top: -0.35em;
  }
}

/* Travel left typography and bars share the same reference columns as the artwork. */
.travel-vertical {
  left: 1.2%;
  top: 1.2%;
  width: 260px;
}
.travel-vertical strong {
  width: clamp(58px, 3.65vw, 74px);
  height: 56.7vh;
}
.travel-vertical span {
  left: 4.4vw;
}
.travel-vertical em {
  left: 4.4vw;
  top: 34vh;
}
.travel-vertical i {
  position: absolute;
  left: 4.4vw;
  top: 51vh;
  writing-mode: vertical-rl;
  font-style: normal;
  color: #17120f;
  font-size: 0.62em;
  line-height: 1.08;
}
.travel-bar-one {
  left: 19.8%;
  top: 18.8%;
  height: 68%;
}
.travel-bar-two {
  left: 26.4%;
  top: 44.8%;
  height: 32%;
}
@media (max-width: 800px) {
  .travel-vertical {
    left: 2.8%;
    top: 1.5%;
    width: 150px;
  }
  .travel-vertical strong {
    width: clamp(42px, 12vw, 58px);
    height: 55vh;
  }
  .travel-vertical span,
  .travel-vertical em,
  .travel-vertical i {
    left: 19vw;
  }
  .travel-vertical em {
    top: 31vh;
  }
  .travel-vertical i {
    top: 47vh;
  }
  .travel-bar-one {
    left: 49%;
    top: 17%;
    height: 68%;
  }
  .travel-bar-two {
    left: 65%;
    top: 44%;
    height: 32%;
  }
}

/* Original-site music covers, adapted to the new portfolio grid. */
.music-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.music-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #17120f;
  color: #fff;
  text-align: left;
  font-size: 18px;
  isolation: isolate;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}
.music-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.music-tile span {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 35%;
  padding: 14px 15px;
  background: rgba(23, 18, 15, 0.88);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 1.25;
}
@media (hover: hover) and (pointer: fine) {
  .music-tile span {
    opacity: 0;
    transform: translateY(102%);
    transition:
      transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease-in-out;
  }
  .music-tile:hover span,
  .music-tile:focus-visible span {
    opacity: 1;
    transform: translateY(0);
  }
}
.music-tile small {
  display: block;
  margin-top: 6px;
  font:
    11px/1.35 Arial,
    sans-serif;
  letter-spacing: 0.03em;
  color: #ffc19f;
}
.music-tile:hover {
  background: #17120f;
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 rgba(238, 123, 0, 0.38);
}
.music-tile:focus-visible {
  outline: 3px solid #ee7b00;
  outline-offset: 3px;
}
@media (hover: none), (pointer: coarse) {
  .music-tile span {
    opacity: 0;
    transform: translateY(102%);
    transition:
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease-in-out;
  }
  .music-tile:active span,
  .music-tile.is-info-visible span {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Friend links retain the old site's icons and verified destinations. */
.friend-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1vw 6vw 8vw;
}
.friend-grid a {
  min-height: 132px;
  padding: 22px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  background: #17120f;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease;
}
.friend-grid a img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #fff;
}
.friend-copy {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
}
.friend-grid b {
  font-family: var(--site-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}
.friend-grid small {
  font:
    12px/1.35 Arial,
    sans-serif;
  opacity: 0.7;
  overflow-wrap: anywhere;
}
.friend-grid a:hover {
  background: #ee7b00;
  color: #17120f;
  transform: translateY(-3px);
}
.friend-grid a:focus-visible {
  outline: 3px solid #ffb25f;
  outline-offset: -3px;
}
@media (max-width: 800px) {
  .music-grid {
    gap: 12px;
  }
  .music-tile {
    font-size: 15px;
  }
  .music-tile span {
    padding: 10px;
  }
  .friend-grid {
    grid-template-columns: 1fr;
    margin: 2vw 8vw 20vw;
  }
  .friend-grid a {
    min-height: 104px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 16px;
  }
  .friend-grid a img {
    width: 56px;
    height: 56px;
  }
  .friend-grid b {
    font-size: 20px;
  }
}

/* Final reference pass */
.link-row a,
.link-row button {
  border: 0;
}
.topbar nav a {
  position: relative;
}
.topbar nav a.active {
  color: #ee7b00;
}
.topbar nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: #ee7b00;
}
.scroll-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 34px;
  color: transparent;
  font-size: 0;
}
.scroll-mark img {
  display: block;
  width: 16px;
  height: 28px;
  object-fit: contain;
}
.section-heading h2 {
  margin-top: 0;
}
.travel-bar-one {
  left: 19.8%;
  top: 18.8%;
  height: 68%;
}
.travel-bar-two {
  left: 26.4%;
  top: 44.8%;
  height: 32%;
}
.travel-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.travel-link-star {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
}
.travel-title small {
  margin-right: 1.65em;
  line-height: 1.05;
}
.travel-roman {
  right: -0.02em;
  top: -0.27em;
}
.travel-mark {
  display: none;
}
.message-board > summary {
  list-style: none;
  cursor: pointer;
}
.message-board > summary::-webkit-details-marker {
  display: none;
}
.message-board > summary:after {
  content: "+";
  color: #ee7b00;
  font: 28px/1 Arial;
  transition: transform 0.2s ease;
}
.message-board[open] > summary:after {
  transform: rotate(45deg);
}
.message-board .board-head {
  display: flex;
}
.latest-note p:empty,
.latest-note time:empty {
  display: none;
}
.latest-note h3 {
  overflow-wrap: anywhere;
}
.site-copyright {
  margin: 0;
  text-align: center;
  color: #ffb25f;
  font:
    14px/1.4 Arial,
    sans-serif;
  letter-spacing: 0.06em;
}
.friend-grid a {
  min-height: 96px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}
.friend-grid a img {
  width: 54px;
  height: 54px;
}
.friend-grid b {
  font-size: 20px;
}
@media (max-width: 800px) {
  .friend-grid a {
    min-height: 88px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .friend-grid a img {
    width: 48px;
    height: 48px;
  }
  .friend-grid b {
    font-size: 18px;
  }
}
@media (max-width: 800px) {
  .travel-bar-one {
    left: 19.8%;
    top: 18.8%;
    height: 68%;
  }
  .travel-bar-two {
    left: 26.4%;
    top: 44.8%;
    height: 32%;
  }
  .travel-link {
    font-size: 14px;
    gap: 5px;
  }
  .travel-link-star {
    width: 15px;
    height: 15px;
  }
  .travel-title small {
    margin-right: 1.55em;
  }
  .travel-title h2 {
    font-size: clamp(72px, 14vw, 120px);
  }
}

/* Single orange token and a text-only travel rail. */
:root {
  --site-orange: #ee7b00;
}
.link-row {
  background: var(--site-orange);
}
.section-heading span,
.eyebrow,
.orange,
.topbar nav a.active,
.site-copyright {
  color: var(--site-orange);
}
.blog-card,
.message-form button,
.download-link {
  background: var(--site-orange);
  border-color: var(--site-orange);
}
.travel-shade {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0 17%,
    rgba(255, 255, 255, 0.18) 35%,
    rgba(238, 123, 0, 0.12)
  );
}
.hero-vertical {
  color: rgba(238, 123, 0, 0.2);
}
.travel-vertical strong {
  background: transparent;
  color: #17120f;
  padding: 0;
  font-weight: 400;
}
.travel-vertical em {
  background: transparent;
  color: #17120f;
  padding: 0;
}
.travel-vertical i {
  color: #17120f;
}
.music-tile small {
  color: var(--site-orange);
}
.friends .section-heading span,
.friends .footer-note {
  color: var(--site-orange);
}
.friend-grid a:focus-visible {
  outline-color: var(--site-orange);
}
.travel-photo {
  background-position: 42% center;
  transform: scale(1.14);
}
.travel-bar-one,
.travel-bar-two {
  display: none;
}
@media (max-width: 800px) {
  .travel-photo {
    background-position: 38% center;
    transform: scale(1.14);
  }
  .travel-vertical {
    width: 180px;
  }
  .travel-vertical strong {
    width: auto;
    height: auto;
    position: absolute;
    left: 0;
    top: 0;
    writing-mode: vertical-rl;
    font-size: 17px;
    line-height: 1.35;
  }
  .travel-vertical span {
    left: 19vw;
    font-size: 17px;
  }
  .travel-vertical em {
    left: 19vw;
    top: 31vh;
    font-size: 14px;
  }
  .travel-vertical i {
    left: 19vw;
    top: 47vh;
    font-size: 14px;
  }
}

/* Final travel alignment and compact activity rail. */
.recent-activity {
  margin: 0 0 22px;
  width: min(600px, 72vw);
  color: #17120f;
}
.recent-activity-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.recent-activity-head span {
  font-size: 18px;
}
.recent-activity-head small {
  color: var(--site-orange);
  font:
    11px/1 Arial,
    sans-serif;
  letter-spacing: 0.14em;
}
.recent-activity-line {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 6px 0;
  border-top: 1px solid rgba(238, 123, 0, 0.45);
  border-bottom: 1px solid rgba(238, 123, 0, 0.45);
  font-size: 14px;
}
.recent-activity-line i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--site-orange);
  box-shadow: 0 0 0 3px rgba(238, 123, 0, 0.16);
}
.recent-activity-line time {
  color: #725d4f;
  font:
    11px/1 Arial,
    sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.travel-title {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 0.45em;
  right: 3%;
  bottom: 8%;
  text-align: right;
}
.travel-title small {
  grid-column: 1;
  grid-row: 1;
  display: block;
  margin: 0;
  align-self: end;
  line-height: 1.02;
  text-align: right;
  white-space: nowrap;
}
.travel-roman {
  grid-column: 2;
  grid-row: 1;
  position: static;
  align-self: end;
  margin: 0;
  color: #fff;
  font:
    700 clamp(38px, 4vw, 78px)/0.84 Georgia,
    serif;
}
.travel-title h2 {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 8px 0 0;
  line-height: 0.88;
}
.travel-triangle {
  width: 20px;
  left: 18%;
  bottom: 6%;
}
.travel-vertical strong,
.travel-vertical span,
.travel-vertical em,
.travel-vertical i {
  white-space: nowrap;
  text-orientation: mixed;
}
@media (max-width: 800px) {
  .recent-activity {
    width: 84vw;
    margin-bottom: 16px;
  }
  .recent-activity-head {
    gap: 9px;
    margin-bottom: 6px;
  }
  .recent-activity-head span {
    font-size: 16px;
  }
  .recent-activity-head small {
    font-size: 9px;
  }
  .recent-activity-line {
    font-size: 12px;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 7px;
  }
  .recent-activity-line time {
    font-size: 10px;
  }
  .travel-vertical {
    left: 2.8%;
    top: 1.5%;
    width: min(180px, 46vw);
    height: 72vh;
    font-size: 17px;
  }
  .travel-vertical strong {
    left: 0;
    top: 0;
    font-size: 17px;
    line-height: 1.35;
  }
  .travel-vertical span {
    left: clamp(64px, 19vw, 84px);
    top: 0;
    font-size: 17px;
    line-height: 1.35;
  }
  .travel-vertical em {
    left: clamp(64px, 19vw, 84px);
    top: 31vh;
    font-size: 14px;
    line-height: 1.2;
  }
  .travel-vertical i {
    left: clamp(64px, 19vw, 84px);
    top: 47vh;
    font-size: 14px;
    line-height: 1.2;
  }
  .travel-title {
    right: 5%;
    bottom: 8%;
    max-width: 88vw;
    column-gap: 0.35em;
  }
  .travel-title small {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .travel-roman {
    font-size: 38px;
    line-height: 0.82;
  }
  .travel-title h2 {
    font-size: clamp(54px, 17vw, 92px);
    white-space: nowrap;
    margin-top: 7px;
  }
  .travel-triangle {
    width: 17px;
    left: 16%;
    bottom: 6%;
  }
}

/* Travel title is one responsive unit so the English label, I and Chinese title scale together. */
.travel-title {
  right: 3%;
  bottom: 4.8%;
  width: min(72vw, 820px);
  display: block;
  transform: none;
}
.travel-title-group {
  width: 100%;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: end;
  transform-origin: right bottom;
}
.travel-title-meta {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.52em;
  width: 100%;
  min-width: 0;
}
.travel-title-meta small {
  display: block;
  margin: 0;
  text-align: right;
  line-height: 1.02;
  white-space: nowrap;
}
.travel-title-meta .travel-roman {
  position: static;
  flex: none;
  line-height: 0.82;
}
.travel-title-group h2 {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  text-align: right;
  white-space: nowrap;
  line-height: 0.86;
}
.travel-triangle {
  left: 2.8%;
  bottom: 2.8%;
  width: 19px;
}
@media (max-width: 800px) {
  .travel-title {
    right: 4%;
    bottom: 4.5%;
    width: 86vw;
  }
  .travel-title-group {
    transform: scale(0.82);
  }
  .travel-title-meta {
    gap: 0.42em;
  }
  .travel-title-meta small {
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .travel-title-meta .travel-roman {
    font-size: 46px;
  }
  .travel-title-group h2 {
    font-size: clamp(72px, 16vw, 172px);
    margin-top: 6px;
  }
  .travel-triangle {
    left: 2.8%;
    bottom: 2.8%;
    width: 17px;
  }
  .copyright {
    left: 2.8%;
    bottom: 2.8%;
  }
}

/* Optical alignment against the supplied travel composition. */
.travel-title-group h2 {
  position: relative;
  left: 0.16em;
}
@media (max-width: 800px) {
  .travel-title-group h2 {
    left: 0.16em;
  }
  .copyright {
    left: 5.5%;
    bottom: 2.8%;
  }
}

/* Match the reference baselines: title group and triangle share the same bottom edge. */
.travel-title {
  bottom: 2.8%;
}
.travel-title-meta {
  align-items: flex-start;
}
.travel-title-meta small {
  align-self: flex-start;
  margin-top: 2px;
}
.travel-title-meta .travel-roman {
  align-self: flex-start;
  line-height: 0.9;
}
@media (max-width: 800px) {
  .travel-title {
    bottom: 2.8%;
  }
  .travel-title-meta small {
    margin-top: 1px;
  }
}

/* Final optical calibration for the reference title lockup. */
@media (max-width: 800px) {
  .travel-title-meta {
    gap: 0.34em;
  }
  .travel-title-meta small {
    font-size: 16px;
    line-height: 1.08;
    margin-top: 0;
  }
  .travel-title-meta .travel-roman {
    font-size: 52px;
    line-height: 0.88;
  }
  .copyright {
    bottom: 1.2%;
  }
}

/* Shared baseline and viewport-safe scale for the travel lockup. */
.travel-title {
  bottom: 2.8%;
  max-width: 72vw;
}
.travel-title-group h2 {
  font-size: clamp(68px, min(14vw, 18vh), 220px);
  line-height: 0.82;
  top: 0;
}
.travel .copyright {
  bottom: 2.8%;
  margin: 0;
  line-height: 1;
  transform: none;
}
.travel-triangle {
  bottom: 2.8%;
}
@media (max-width: 800px) {
  .travel-title {
    bottom: 2.8%;
    max-width: 86vw;
  }
  .travel-title-group h2 {
    font-size: clamp(62px, min(17vw, 14vh), 150px);
    line-height: 0.82;
    top: 0;
  }
  .travel-vertical strong,
  .travel-vertical span,
  .travel-vertical em,
  .travel-vertical i {
    font-size: 14px;
    line-height: 1.2;
  }
  .travel-vertical strong {
    height: auto;
  }
  .travel .copyright {
    bottom: 2.8%;
    margin: 0;
    line-height: 1;
    transform: none;
  }
}

/* Section navigation uses the supplied double-chevron asset at a quieter scale. */
.scroll-mark {
  width: 20px;
  height: 28px;
  bottom: 16px;
}
.scroll-mark img {
  width: 12px;
  height: 21px;
}
.notes > .scroll-mark {
  bottom: 18px;
}

/* Keep the secondary travel columns consistent and give each phrase its own vertical lane. */
.travel-vertical span,
.travel-vertical em,
.travel-vertical i {
  font-size: clamp(14px, 1.4vw, 22px);
  line-height: 1.2;
}
.travel-vertical em {
  top: 34vh;
}
.travel-vertical i {
  top: 54vh;
}
@media (max-width: 800px) {
  .travel-vertical span,
  .travel-vertical em,
  .travel-vertical i {
    font-size: 14px;
    line-height: 1.2;
  }
  .travel-vertical em {
    top: 33vh;
  }
  .travel-vertical i {
    top: 55vh;
  }
}

/* Brand navigation: the supplied white mark sits on the site orange. */
.topbar {
  background: rgba(238, 123, 0, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 4px 22px rgba(74, 35, 8, 0.16);
}
.brand {
  display: flex;
  align-items: center;
  height: 38px;
}
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand img {
  display: block;
  width: auto;
  height: 32px;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand span {
  display: none;
}
.topbar nav a {
  color: #fff;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 26px;
  padding: 0 7px;
  border-color: rgba(255, 255, 255, 0.62);
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}
.language-toggle i {
  margin: 0 3px;
  color: rgba(255, 255, 255, 0.48);
  font-style: normal;
}
.language-toggle .language-option {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.language-toggle[data-language="zh"] .language-option-zh,
.language-toggle[data-language="en"] .language-option-en {
  color: #fff;
  text-shadow: 0 1px 7px rgba(130, 58, 0, 0.26);
}
.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.language-transition {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 32vw;
  min-width: 280px;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(112deg, rgba(238, 123, 0, 0) 0 8%, #ee7b00 26%, #fff4e8 50%, #ee7b00 72%, rgba(238, 123, 0, 0) 92%);
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  transform: translate3d(-150%, 0, 0);
  will-change: transform, opacity;
}
body.is-language-switching .language-transition {
  animation: language-sweep 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.is-language-switching .language-toggle {
  animation: language-toggle-flip 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.is-language-switching .topbar nav {
  animation: language-nav-settle 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes language-sweep {
  0% { opacity: 0; transform: translate3d(-150%, 0, 0); }
  12% { opacity: 0.82; }
  76% { opacity: 0.64; }
  100% { opacity: 0; transform: translate3d(420%, 0, 0); }
}
@keyframes language-toggle-flip {
  0% { transform: perspective(120px) rotateY(0) scale(1); }
  48% { transform: perspective(120px) rotateY(172deg) scale(1.08); }
  100% { transform: perspective(120px) rotateY(360deg) scale(1); }
}
@keyframes language-nav-settle {
  0% { opacity: 0.45; transform: translate3d(8px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
.topbar nav a:hover,
.topbar nav a.active {
  color: #fff;
}
.topbar nav a.active:after {
  background: #fff;
}

/* Activity is intentionally Chinese-only and uses the single orange token. */
.recent-activity-head span {
  color: var(--site-orange);
}
.recent-activity-head small {
  display: none;
}

/* The Minecraft card follows the same image, label and lift treatment as the work cards. */
.minecraft {
  width: 100%;
  padding: 0;
  background: #fff;
  overflow: hidden;
  transition:
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s;
}
.minecraft img {
  height: 150px;
  padding: 18px;
  object-fit: contain;
  transition: transform 0.3s;
}
.minecraft span {
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  font-size: 17px;
  line-height: 1.25;
}
.minecraft:hover {
  transform: translateY(-9px) rotate(-0.6deg);
  box-shadow: 11px 11px 0 rgba(238, 123, 0, 0.32);
}
.minecraft:hover img {
  transform: scale(1.04);
}

/* The side copy is one continuous vertical phrase instead of three drifting lanes. */
.travel-vertical strong {
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.28;
}
.travel-vertical .travel-side-copy {
  position: absolute;
  left: clamp(70px, 8vw, 150px);
  top: 0;
  display: block;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: clamp(18px, 1.7vw, 28px) !important;
  line-height: 1.2 !important;
  font-style: normal;
}
.travel-title-meta small {
  transform: translateY(-0.3em);
}
.travel-roman {
  transform: translateY(-0.18em);
}
.travel-link-star {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.travel-link:hover .travel-link-star {
  transform: scale(1.42) rotate(26deg);
}
.site-copyright {
  font-family: "Noto Serif SC", var(--site-serif);
  font-size: 14px;
  letter-spacing: 0;
}
@media (max-width: 800px) {
  .brand img {
    height: 28px;
    max-width: 132px;
  }
  .travel-vertical strong {
    font-size: 18px;
    line-height: 1.28;
  }
  .travel-vertical .travel-side-copy {
    left: clamp(64px, 19vw, 84px);
    top: 0;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }
  .travel-title-meta small {
    transform: translateY(-0.3em);
  }
}

/* Profile modal: keep the paper content clear of its technical sidebar at every width. */
.profile-modal {
  max-height: 92vh;
  overflow: auto;
}
.profile-layout {
  overflow: visible;
}
.profile-portrait > img {
  mix-blend-mode: multiply;
}
.profile-paper {
  left: 38%;
  width: 64%;
  height: 110%;
  top: -5%;
  padding-left: 22%;
  overflow: visible;
}
.profile-paper p,
.profile-paper .profile-address,
.profile-paper .profile-resume {
  font-size: clamp(16px, 1.8vw, 28px);
}
.profile-scribble {
  left: 15%;
  top: 12%;
  width: 70%;
}
@media (max-width: 800px) {
  .profile-modal {
    width: 94vw;
    max-height: 94vh;
    overflow: auto;
  }
  .profile-layout {
    height: 88vh;
    min-height: 0;
    overflow: visible;
  }
  .profile-portrait {
    inset: 0 0 55% 0;
  }
  .profile-portrait > img {
    width: 48%;
    left: 5%;
    bottom: -4%;
    mix-blend-mode: multiply;
  }
  .profile-scribble {
    left: 4%;
    top: 5%;
    width: 68%;
  }
  .profile-paper {
    left: 7%;
    top: 32%;
    width: 92%;
    height: 67%;
    padding: 11% 9% 9% 24%;
    overflow: auto;
  }
  .profile-paper p,
  .profile-paper .profile-address,
  .profile-paper .profile-resume {
    font-size: 18px;
    line-height: 1.42 !important;
  }
}

/* Final profile calibration: clear the printed sidebar and keep the composition viewport-safe. */
@media (min-width: 801px) {
  .profile-modal {
    width: min(90vw, calc(82vh * 16 / 9));
    max-height: none;
    overflow: visible;
  }
  .profile-layout {
    overflow: visible;
  }
  .profile-layout > .profile-paper {
    left: 40%;
    top: -1%;
    width: 58%;
    height: 106%;
    padding: 60px 40px 30px clamp(150px, 16vw, 220px);
    overflow: hidden;
  }
  .profile-scribble {
    left: -10%;
    top: 20%;
    width: 120%;
  }
}
.profile-paper .profile-hand {
  font-size: clamp(18px, 1.75vw, 21px) !important;
  line-height: 1.45 !important;
}
.profile-intro,
.profile-contact,
.profile-address {
  margin-bottom: 4%;
}
.profile-modal.fallback-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  box-shadow:
    0 0 0 100vmax rgba(23, 18, 15, 0.52),
    0 22px 90px rgba(29, 17, 10, 0.28);
}
@media (max-width: 800px) {
  .profile-portrait > img {
    width: 48%;
    max-width: 240px;
  }
  .profile-scribble {
    left: -5%;
    top: 0;
    width: min(90%, 450px);
  }
  .profile-layout > .profile-paper {
    padding: 9% 9% 9% 29%;
  }
  .profile-paper .profile-hand {
    font-size: 18px !important;
    line-height: 1.42 !important;
  }
}
@media (min-width: 600px) and (max-width: 800px) {
  .profile-scribble {
    left: -3%;
    top: -40%;
  }
}

/* Travel type lockup, status rail and shared navigation marker. */
.topbar nav {
  position: relative;
}
.topbar nav a.active:after {
  display: none;
}
.topbar nav:after {
  content: "";
  position: absolute;
  left: var(--marker-x, 0px);
  bottom: -7px;
  width: var(--marker-width, 0px);
  height: 2px;
  background: #fff;
  opacity: 0;
  transition:
    left 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}
.topbar nav.has-marker:after {
  opacity: 1;
}
.brand img {
  height: 36px;
  max-width: 168px;
}
.travel-vertical {
  left: 2.8%;
  top: 2.5%;
  width: auto;
  height: auto;
}
.travel-vertical strong {
  width: auto;
  height: auto;
  position: relative;
  display: block;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: clamp(42px, 5vw, 80px);
  line-height: 0.96;
}
.travel-vertical .travel-side-copy {
  left: clamp(58px, 6.4vw, 104px);
  top: 0;
  font-size: clamp(17px, 1.55vw, 25px) !important;
  line-height: 1.04 !important;
}
.travel-link {
  right: 3%;
  top: 3%;
  gap: 0;
  font-size: clamp(17px, 1.7vw, 30px);
}
.travel-link-star {
  width: 38px;
  height: 38px;
  margin-right: -13px;
  position: relative;
  z-index: 1;
}
.travel-progress {
  position: absolute;
  right: 3%;
  top: 10%;
  z-index: 4;
  width: min(300px, 31vw);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.travel-progress > span {
  display: block;
  margin-bottom: 7px;
}
.travel-progress > div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}
.travel-progress i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.travel-progress b {
  font-weight: 400;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .brand img {
    height: 31px;
    max-width: 150px;
  }
  .travel-vertical {
    left: 4.2%;
    top: 2.5%;
  }
  .travel-vertical strong {
    font-size: clamp(40px, 7vw, 54px);
    line-height: 0.94;
  }
  .travel-vertical .travel-side-copy {
    left: clamp(57px, 9vw, 70px);
    font-size: 17px !important;
    line-height: 1.04 !important;
  }
  .travel-link {
    right: 4%;
    top: 3%;
    font-size: 14px;
  }
  /* The artwork has generous transparent padding: scale the visible star,
     while the negative margin keeps it deliberately tucked into the label. */
  .travel-link-star {
    width: 40px;
    height: 40px;
    margin-right: -17px;
    transform: scale(1.5);
  }
  .travel-link:hover .travel-link-star {
    transform: scale(2) rotate(26deg);
  }
  .travel-progress {
    right: 4%;
    top: 11%;
    width: min(244px, 52vw);
    font-size: 11px;
  }
  .travel-progress > span {
    margin-bottom: 5px;
  }
  .travel-progress > div {
    min-height: 25px;
    gap: 6px;
    padding: 4px 0;
  }
  .travel-progress i {
    width: 6px;
    height: 6px;
  }
}

/* Travel final composition: keep the left typography light, and anchor status
   information to the supplied triangle instead of letting it drift over the art. */
.travel-vertical strong {
  font-size: clamp(30px, 3.5vw, 56px);
  line-height: 0.98;
}
.travel-progress {
  left: 2.8%;
  right: auto;
  top: auto;
  bottom: clamp(58px, 8vh, 94px);
  width: min(340px, 32vw);
  padding: 9px 12px 10px;
  background: #ee7b00;
  color: #fff;
  letter-spacing: 0.06em;
}
.travel-progress > span {
  margin: 0 0 5px;
}
.travel-progress > div {
  min-height: 0;
  padding: 0;
  border: 0;
  gap: 8px;
}
.travel-progress i {
  background: #fff;
  box-shadow: none;
}
.travel-title-group h2 {
  text-shadow:
    -2px 2px 0 rgba(161, 62, 0, 0.42),
    0 5px 18px rgba(64, 22, 0, 0.38);
}

/* The portrait and its animated scribble share one proportional coordinate space. */
.profile-subject {
  position: absolute;
  z-index: 1;
  left: 23%;
  top: 50%;
  width: 52%;
  transform: translateY(-50%);
  mix-blend-mode: multiply;
}
.profile-subject > img {
  position: relative !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  mix-blend-mode: normal;
}
.profile-subject .profile-scribble {
  position: absolute !important;
  z-index: 2;
  left: -37% !important;
  top: -9% !important;
  width: 174% !important;
  aspect-ratio: 1;
  pointer-events: none;
}
.profile-subject .profile-scribble img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 801px) {
  .profile-paper .profile-hand {
    font-size: clamp(20px, 2vw, 26px) !important;
    line-height: 1.42 !important;
  }
}

@media (max-width: 800px) {
  .travel-vertical strong {
    font-size: clamp(28px, 5vw, 38px);
    line-height: 0.98;
  }
  .travel-vertical .travel-side-copy {
    left: clamp(48px, 7.6vw, 60px);
  }
  .travel-progress {
    left: 2.8%;
    bottom: clamp(52px, 8vh, 72px);
    width: min(140px, 30vw);
    padding: 6px 7px 7px;
    font-size: 11px;
  }
  .travel-progress > div {
    gap: 6px;
  }
  .travel-progress b {
    font-size: 10px;
  }
  .travel-title-group h2 {
    text-shadow:
      -1px 1px 0 rgba(161, 62, 0, 0.48),
      0 4px 14px rgba(64, 22, 0, 0.42);
  }
  .profile-subject {
    left: 5%;
    top: auto;
    bottom: -4%;
    width: 48%;
    transform: none;
  }
  .profile-subject .profile-scribble {
    left: -37% !important;
    top: -13% !important;
    width: 174% !important;
  }
}

/* On compact screens every navigation item lives in an intentional two-row grid. */
.topbar nav:after {
  top: calc(var(--marker-y, 0px) + var(--marker-height, 0px) + 4px);
  bottom: auto;
}
@media (max-width: 800px) {
  .topbar {
    min-height: 78px;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: minmax(112px, 1fr) auto;
    align-items: center;
  }
  .topbar nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    grid-auto-rows: 20px;
    justify-content: end;
    align-items: center;
    column-gap: clamp(9px, 2.5vw, 16px);
    row-gap: 7px;
    font-size: 12px;
  }
  .topbar nav a,
  .topbar nav .nav-profile-wip {
    white-space: nowrap;
    line-height: 20px;
  }
  .topbar nav .nav-profile-wip small {
    margin-left: 3px;
    font-size: 8px;
  }
  .topbar nav:after {
    height: 2px;
  }
}
@media (max-width: 440px) {
  .topbar {
    grid-template-columns: minmax(96px, 1fr) auto;
    padding: 7px 10px;
  }
  .brand img {
    height: 26px;
    max-width: 112px;
  }
  .brand-cluster {
    gap: 6px;
  }
  .language-toggle {
    min-width: 39px;
    height: 23px;
    padding: 0 4px;
    font-size: 9px;
    letter-spacing: 0.03em;
  }
  .language-toggle i {
    margin: 0 2px;
  }
  .topbar nav {
    column-gap: 7px;
    row-gap: 6px;
    font-size: 11px;
  }
}

/* Friend links are a compact contact sheet, followed by a distinct closing bar. */
.friends {
  min-height: 0;
  padding-bottom: 0;
}
.friend-grid {
  margin: clamp(10px, 1vw, 16px) 6vw clamp(18px, 2vw, 28px);
}
.friend-grid a {
  min-height: 78px;
  padding: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
}
.friend-grid a img {
  width: 48px;
  height: 48px;
}
.friend-grid b {
  font-size: 18px;
}
.site-copyright {
  margin: 0;
  padding: 14px 6vw;
  background: var(--site-orange);
  color: #fff !important;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45em;
  text-align: center;
  font-family: "Noto Serif SC", var(--site-serif);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.site-copyright small {
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
}
.site-copyright b {
  font-weight: 600;
}
@media (max-width: 800px) {
  .friends .section-heading {
    padding-bottom: clamp(14px, 3vw, 22px);
  }
  .friend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 5vw 18px;
  }
  .friend-grid a {
    min-height: 70px;
    padding: 8px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }
  .friend-grid a img {
    width: 38px;
    height: 38px;
  }
  .friend-grid b {
    font-size: 16px;
    line-height: 1.15;
  }
  .friend-grid small {
    font-size: 10px;
    line-height: 1.2;
  }
  .site-copyright {
    padding: 12px 5vw;
    font-size: 13px;
  }
}

/* Friend links: a quiet contact sheet instead of a heavy closing panel. */
.friends {
  background: #fff;
  color: var(--site-orange);
}
.friends .section-heading {
  padding: clamp(30px, 4vw, 56px) 6vw clamp(14px, 1.6vw, 22px);
}
.friends .section-heading h2 {
  margin: 0;
  color: var(--site-orange);
  font-size: clamp(32px, 4vw, 62px);
}
.friend-grid {
  gap: 12px;
  margin: 0 6vw clamp(22px, 3vw, 36px);
  background: transparent;
}
.friend-grid a {
  min-height: 88px;
  padding: 14px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  background: #fff;
  color: var(--site-orange);
  border: 1px solid rgba(238, 123, 0, 0.38);
  transform: none;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease;
}
.friend-grid a img {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(238, 123, 0, 0.22);
  background: #fff;
  filter: none;
  opacity: 1;
}
.friend-grid b {
  font-size: 18px;
  color: #17120f;
}
.friend-grid small {
  color: var(--site-orange);
  opacity: 1;
}
.friend-grid a:hover {
  background: #fffaf7;
  color: var(--site-orange);
  border-color: var(--site-orange);
  transform: translateY(-2px);
}
@media (max-width: 800px) {
  .friends .section-heading {
    padding: 28px 5vw 16px;
  }
  .friends .section-heading h2 {
    font-size: clamp(28px, 8vw, 38px);
  }
  .friend-grid {
    gap: 8px;
    margin: 0 5vw 18px;
  }
  .friend-grid a {
    min-height: 74px;
    padding: 9px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
  }
  .friend-grid a img {
    width: 40px;
    height: 40px;
  }
  .friend-grid b {
    font-size: 16px;
  }
}

@property --blog-glow-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --blog-glow-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 42%;
}
@property --blog-glow-o {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.44;
}

/* Compact notes panel and the original site's pointer-led blog gateway treatment. */
.notes {
  min-height: 0;
  padding-bottom: 68px;
}
.notes .section-heading {
  padding: clamp(30px, 4vw, 56px) 6vw clamp(12px, 1.4vw, 18px);
}
.notes .section-heading h2 {
  font-size: clamp(32px, 4vw, 62px);
  margin: 0;
}
.notes-intro {
  gap: 14px;
  padding: 0 8vw 18px;
}
.blog-card,
.latest-note {
  min-height: 180px;
  padding: 22px;
}
.blog-card {
  --blog-glow-x: 50%;
  --blog-glow-y: 42%;
  --blog-glow-o: 0.44;
  --blog-tilt-x: 0deg;
  --blog-tilt-y: 0deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 15rem 5rem at var(--blog-glow-x) var(--blog-glow-y),
      rgba(255, 253, 249, calc(var(--blog-glow-o) * 0.5)),
      transparent 72%
    ),
    conic-gradient(
      from 224deg at var(--blog-glow-x) var(--blog-glow-y),
      transparent 0 18%,
      rgba(255, 253, 249, calc(var(--blog-glow-o) * 0.28)) 22%,
      transparent 31% 100%
    ),
    linear-gradient(135deg, rgba(238, 123, 0, 0.97), rgba(210, 91, 0, 0.96));
  transform: perspective(900px) rotateX(var(--blog-tilt-x)) rotateY(var(--blog-tilt-y));
  transition:
    --blog-glow-x 0.58s cubic-bezier(0.19, 1, 0.22, 1),
    --blog-glow-y 0.58s cubic-bezier(0.19, 1, 0.22, 1),
    --blog-glow-o 0.42s ease,
    transform 0.42s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.22s ease;
}
.blog-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 9rem 16rem at var(--blog-glow-x) var(--blog-glow-y),
      rgba(255, 253, 249, calc(var(--blog-glow-o) * 0.2)),
      transparent 64%
    ),
    linear-gradient(
      128deg,
      transparent 20%,
      rgba(255, 255, 255, calc(var(--blog-glow-o) * 0.26)) 42%,
      transparent 58%
    );
  pointer-events: none;
}
.blog-card::after {
  content: "BLOG";
  position: absolute;
  right: -0.2rem;
  bottom: -0.65rem;
  z-index: 0;
  color: rgba(255, 253, 249, 0.17);
  font:
    4rem/0.82 Arial,
    sans-serif;
  pointer-events: none;
}
.blog-card > * {
  position: relative;
  z-index: 1;
}
.blog-card h3 {
  font-size: clamp(28px, 2.6vw, 38px);
  margin: 6px 0 0;
}
.blog-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.blog-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 0;
  background: #fff;
  color: var(--site-orange);
  box-shadow: 0 8px 16px rgba(89, 43, 28, 0.16);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.blog-card a:hover,
.blog-card a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(89, 43, 28, 0.2);
  outline: 0;
}
.message-board {
  margin: 0 8vw;
  padding: 18px 20px;
}
.board-head {
  padding-bottom: 12px;
}
.board-head h3 {
  font-size: clamp(24px, 2.5vw, 30px);
}
.message-form {
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 8px;
  margin: 14px 0;
}
.message-form input,
.message-form textarea {
  padding: 9px;
}
.message-form textarea {
  min-height: 42px;
}
.message-form button {
  padding: 9px 14px;
}
.message-list {
  padding-top: 10px;
}
.notes > .scroll-mark {
  bottom: 14px;
}
@media (max-width: 800px) {
  .notes {
    padding-bottom: 58px;
  }
  .notes .section-heading {
    padding: 28px 8vw 14px;
  }
  .notes .section-heading h2 {
    font-size: clamp(30px, 8vw, 42px);
  }
  .notes-intro {
    gap: 12px;
    padding: 0 8vw 12px;
  }
  .blog-card,
  .latest-note {
    min-height: 156px;
    padding: 18px;
  }
  .blog-card h3 {
    font-size: 28px;
  }
  .blog-card p {
    font-size: 14px;
  }
  .message-board {
    margin: 0 8vw;
    padding: 16px;
  }
  .board-head h3 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card a {
    transition: none;
  }
}

/* Original blog gateway assets and typography. */
.blog-particle-canvas {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1 !important;
  pointer-events: none;
}
.blog-card > .blog-leaf,
.blog-card > .eyebrow,
.blog-card > h3,
.blog-card > p,
.blog-card > a {
  z-index: 2;
}
.blog-leaf {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 0 10px;
  filter: brightness(0) invert(1);
  animation: blogLeafFloat 4.6s ease-in-out infinite;
}
.blog-card .eyebrow,
.blog-card p,
.blog-card a {
  font-family: "Times New Roman", Georgia, serif;
}
.blog-card .eyebrow {
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.82);
}
.blog-card h3 {
  font-family: var(--site-serif);
  line-height: 1.05;
}
.blog-card p {
  color: rgba(255, 253, 249, 0.88);
}
@keyframes blogLeafFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}
@media (max-width: 800px) {
  .blog-card {
    min-height: 208px;
  }
  .blog-leaf {
    width: 32px;
    height: 32px;
    margin-bottom: 7px;
  }
  .blog-card .eyebrow {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blog-leaf {
    animation: none;
  }
}

/* Original tea tip gateway. */
.floating-tip {
  position: fixed;
  right: 0.9rem;
  top: 50%;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  width: 3.35rem;
  min-height: 4.35rem;
  padding: 0.42rem 0.24rem 0.38rem;
  border: 1px solid rgba(238, 123, 0, 0.24);
  background: rgba(255, 253, 249, 0.9);
  color: var(--site-orange, #ee7b00);
  box-shadow: 0 8px 26px rgba(83, 42, 15, 0.12);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0.75rem, -50%, 0) scale(0.96);
  backdrop-filter: blur(14px);
  transition:
    opacity 0.42s ease,
    visibility 0.42s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease;
}
.floating-tip img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.floating-tip.is-visible,
.floating-tip:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(1);
}
.floating-tip:hover {
  background: #fff;
  transform: translate3d(-0.12rem, -50%, 0) scale(1.04);
}
.floating-tip:focus-visible {
  outline: 2px solid var(--site-orange, #ee7b00);
  outline-offset: 3px;
}
.tea-modal {
  width: min(320px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  color: #17120f;
  overflow: visible;
}
.tea-modal[open] {
  animation: teaModalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tea-modal.is-closing {
  animation: teaModalOut 0.2s ease-in both;
}
.tea-modal::backdrop {
  background: rgba(23, 18, 15, 0.43);
  backdrop-filter: blur(3px);
  animation: teaBackdropIn 0.28s ease both;
}
.tea-modal.is-closing::backdrop {
  animation: teaBackdropOut 0.2s ease both;
}
.tea-modal-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 32px 28px 28px;
  background: #fffdfb;
  box-shadow: 0 22px 60px rgba(23, 18, 15, 0.25);
  text-align: center;
}
.tea-modal-copy > span {
  color: var(--site-orange, #ee7b00);
  font:
    14px Notebook,
    var(--site-serif);
}
.tea-modal-copy h2 {
  margin: 0;
  font:
    400 25px/1.25 var(--site-serif);
}
.tea-modal-copy img {
  display: block;
  width: min(210px, 100%);
  height: auto;
  margin-top: 4px;
}
.tea-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #17120f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
@keyframes teaModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes teaModalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}
@keyframes teaBackdropIn {
  from {
    background: rgba(23, 18, 15, 0);
    backdrop-filter: blur(0);
  }
  to {
    background: rgba(23, 18, 15, 0.43);
    backdrop-filter: blur(3px);
  }
}
@keyframes teaBackdropOut {
  from {
    background: rgba(23, 18, 15, 0.43);
    backdrop-filter: blur(3px);
  }
  to {
    background: rgba(23, 18, 15, 0);
    backdrop-filter: blur(0);
  }
}
@media (max-width: 800px) {
  .floating-tip {
    right: 10px;
    top: auto;
    bottom: 12px;
    width: 46px;
    min-height: 46px;
    padding: 6px;
    transform: translate3d(0.75rem, 0, 0) scale(0.96);
  }
  .floating-tip img {
    width: 28px;
    height: 28px;
  }
  .floating-tip.is-visible,
  .floating-tip:focus-visible {
    transform: translate3d(0, 0, 0) scale(1);
  }
  .floating-tip:hover {
    transform: translate3d(-0.12rem, 0, 0) scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-tip,
  .tea-modal,
  .tea-modal::backdrop {
    transition: none;
    animation: none;
  }
}

/* Keep the welcome copy distinct from the fixed lower activity rail. */
.hero-copy {
  top: 20%;
}
@media (max-width: 800px) {
  .hero-copy {
    top: 20%;
    max-width: 84%;
  }
  /* Keep the portrait behind the welcome copy on narrow screens. */
  .hero-bg-portrait {
    background-position: 43% center;
    background-size: auto 100%;
    opacity: 0.5;
  }
}

/* Reusable scroll entrance and exit motion. Classes are attached only after JS loads. */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.985);
  filter: blur(4px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 0.5s ease var(--reveal-delay, 0ms);
}
.scroll-reveal.reveal-left {
  transform: translate3d(-42px, 12px, 0) rotate(-0.7deg);
}
.scroll-reveal.reveal-right {
  transform: translate3d(42px, 12px, 0) rotate(0.7deg);
}
.scroll-reveal.reveal-fade {
  transform: none;
  filter: none;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  filter: blur(0);
}
.scroll-reveal.reveal-fade.is-visible {
  transform: none;
}
.scroll-reveal.reveal-left.is-visible,
.scroll-reveal.reveal-right.is-visible {
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
}
.travel .scroll-reveal {
  transition-duration: 0.8s, 0.9s, 0.58s;
}
@media (max-width: 800px) {
  .scroll-reveal {
    transform: translate3d(0, 20px, 0);
    filter: blur(2px);
  }
  .scroll-reveal.reveal-left {
    transform: translate3d(-24px, 8px, 0) rotate(-0.4deg);
  }
  .scroll-reveal.reveal-right {
    transform: translate3d(24px, 8px, 0) rotate(0.4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Original-site global particle layer. */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
}

.travel-vertical strong .travel-quote-highlight {
  position: static;
  display: inline;
  width: auto;
  height: auto;
  padding: 0.09em 0.04em;
  background: var(--site-orange, #ee7b00);
  color: #fff;
  font: inherit;
  writing-mode: inherit;
  line-height: inherit;
}

/* Notes share one deliberate reading axis on narrow portrait screens. */
@media (max-width: 800px) {
  .notes {
    --notes-gutter: clamp(18px, 7vw, 34px);
    padding-bottom: 72px;
  }
  .notes .section-heading {
    padding: 34px var(--notes-gutter) 16px;
  }
  .notes .section-heading h2 {
    margin: 0;
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.08;
  }
  .notes-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: auto;
    margin: 0;
    padding: 0 var(--notes-gutter) 14px;
  }
  .notes-intro > article,
  .notes .message-board {
    width: 100%;
    min-width: 0;
  }
  .blog-card,
  .latest-note {
    min-height: 0;
    padding: 18px;
  }
  .blog-card {
    min-height: 198px;
  }
  .latest-note {
    min-height: 164px;
  }
  .latest-note h3 {
    margin: 10px 0 0;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
  }
  .notes .message-board {
    width: calc(100% - (var(--notes-gutter) * 2));
    margin: 0 var(--notes-gutter);
    padding: 16px 18px;
  }
  .notes .board-head {
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 13px;
  }
  .notes .board-head > div {
    min-width: 0;
  }
  .notes .board-head h3 {
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }
  .notes .board-head > span {
    flex: 0 0 auto;
    margin-top: 8px;
  }
  .notes .message-form,
  .notes .message-meta {
    min-width: 0;
  }
  .notes .message-meta {
    flex-wrap: wrap;
    gap: 5px 12px;
  }
}

/* Standalone novel entry, kept visually continuous with the main travel panel. */
.travel-standalone .topbar {
  transform: translateY(0);
}
.travel-standalone .travel-page-panel {
  min-height: 100svh;
}
.travel-standalone .topbar nav a[aria-current="page"] {
  color: var(--site-orange, #ee7b00);
}
.brand {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.latest-note {
  display: block;
  color: inherit;
  transition:
    transform 0.28s,
    box-shadow 0.28s;
}
.latest-note:hover,
.latest-note:focus-visible {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(238, 123, 0, 0.18);
}
.message-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.message-head time {
  flex: 1;
}
.message-item {
  position: relative;
  padding-right: 56px;
}
.message-item .reply {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 12px;
  background: #fff0df;
  border-left: 3px solid #ee7b00;
  color: #5f4435;
}
.message-item .reply strong {
  flex: 0 0 auto;
  color: #ee7b00;
}
.message-like {
  position: absolute;
  right: 0;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e7cdbd;
  background: #fffaf7;
  color: #a48777;
  padding: 5px 8px;
  font:
    12px Arial,
    sans-serif;
  cursor: pointer;
}
.message-like:hover,
.message-like.is-liked {
  border-color: #ee7b00;
  color: #ee7b00;
  background: #fff0df;
}
.message-like span:first-child {
  font-size: 15px;
  line-height: 1;
}
.admin-login-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(238, 123, 0, 0.32);
  background: #fffaf7;
  color: #17120f;
  box-shadow: 0 24px 80px rgba(45, 25, 14, 0.24);
}
.admin-login-dialog::backdrop {
  background: rgba(23, 18, 15, 0.42);
  backdrop-filter: blur(4px);
}
.admin-login-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #88776b;
  font-size: 28px;
  cursor: pointer;
}
.admin-login-panel {
  padding: 34px 32px 30px;
}
.admin-login-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #ee7b00;
  margin-bottom: 15px;
}
.admin-login-mark img {
  width: 25px;
  filter: brightness(0) invert(1);
}
.admin-login-kicker {
  margin: 0;
  color: #ee7b00;
  font:
    12px Arial,
    sans-serif;
  letter-spacing: 0.14em;
}
.admin-login-panel h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  font-weight: 400;
}
.admin-login-copy {
  margin: 0 0 22px;
  color: #88776b;
  font-size: 14px;
  line-height: 1.7;
}
.admin-login-panel > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}
.admin-password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.admin-password-row input {
  min-width: 0;
  border: 1px solid #eaded4;
  background: #fff;
  padding: 10px 11px;
}
.admin-password-row button {
  border: 1px solid #ee7b00;
  background: #ee7b00;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}
.admin-password-row button:hover {
  background: #17120f;
  border-color: #17120f;
}
.admin-login-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: #ee7b00;
  font-size: 12px;
}
@media (max-width: 600px) {
  .admin-login-panel {
    padding: 30px 22px 24px;
  }
  .admin-password-row {
    grid-template-columns: 1fr;
  }
  .admin-password-row button {
    width: 100%;
  }
}

/* Click trail: falling maple leaves at the click point. */
.falling-maple {
  position: fixed;
  left: var(--leaf-x, 50vw);
  top: var(--leaf-y, 50vh);
  width: var(--leaf-size, 1.4rem);
  height: var(--leaf-size, 1.4rem);
  background: linear-gradient(
    145deg,
    rgba(255, 216, 158, 0.98),
    rgba(255, 173, 92, 0.95) 54%,
    rgba(232, 120, 20, 0.92)
  );
  -webkit-mask: url("assets/blog/blog-leaf.svg?asset-recovery=20260904") center / contain no-repeat;
  mask: url("assets/blog/blog-leaf.svg?asset-recovery=20260904") center / contain no-repeat;
  pointer-events: none;
  z-index: 11;
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(var(--leaf-rotate, 0deg));
  animation: mapleFall var(--leaf-duration, 5.4s) cubic-bezier(0.3, 0.04, 0.34, 1) forwards;
  filter: drop-shadow(0 0.7rem 1rem rgba(238, 123, 0, 0.22))
    drop-shadow(0 0 0.55rem rgba(255, 179, 92, 0.28));
}

@keyframes mapleFall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--leaf-rotate, 0deg)) scale(0.86);
  }
  12% {
    opacity: 0.92;
  }
  58% {
    opacity: 0.72;
    transform: translate3d(calc(var(--leaf-drift, 4rem) * 0.52), 36vh, 0)
      rotate(calc(var(--leaf-rotate, 0deg) + 170deg)) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--leaf-drift, 4rem), 78vh, 0)
      rotate(calc(var(--leaf-rotate, 0deg) + 330deg)) scale(0.92);
  }
}

/* Message board pagination, mirroring the notebook pagination style. */
.message-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 26px 0 8px;
}
.message-pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #e7d8cf;
  background: #fffaf7;
  color: #82766d;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.message-pagination button:hover:not(:disabled),
.message-pagination button.is-active {
  border-color: #ee7b00;
  background: #ee7b00;
  color: #fff;
}
.message-pagination button:disabled {
  cursor: default;
  opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
  .site-splash {
    transition: opacity 0.2s ease;
  }
  .site-splash.is-leaving {
    transform: none;
  }
  .language-transition,
  body.is-language-switching .language-toggle,
  body.is-language-switching .topbar nav {
    animation: none;
  }
}

/* White lead phrases remain legible after removing the travel overlays. */
.travel-vertical strong {
  color: #fff;
}
.travel-vertical .travel-side-copy .travel-diary-label {
  color: #fff;
  font: inherit;
}
.travel-vertical .travel-side-copy {
  color: #fff;
}

/* Embedded browsers trade continuous compositing for a stable static presentation. */
html.performance-lite {
  scroll-behavior: auto;
}
html.performance-lite .hero-bg {
  will-change: auto;
}
html.performance-lite .works {
  background-attachment: scroll;
}
html.performance-lite .scroll-mark,
html.performance-lite .travel-star,
html.performance-lite .profile-scribbles img,
html.performance-lite .blog-leaf {
  animation: none !important;
}
html.performance-lite .floating-tip,
html.performance-lite dialog::backdrop {
  backdrop-filter: none !important;
}
html.performance-lite .topbar,
html.performance-lite .floating-tip {
  background-color: rgba(255, 253, 249, 0.98);
}
html.performance-lite .topbar {
  transform: translateY(0);
}
html.performance-lite .falling-maple {
  display: none;
}

@media (max-width: 800px) {
  .works {
    background-attachment: scroll;
  }
}

/* English needs a smaller vertical measure than the Chinese travel quote. */
@media (min-width: 801px) {
  html[lang="en"] .travel-vertical strong {
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1.06;
  }
}
