@font-face {
  font-family: "Smiley Sans CN";
  src: url("/assets/fonts/SmileySans-Oblique.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  unicode-range:
    U+2E80-2EFF,
    U+2F00-2FDF,
    U+3000-303F,
    U+31C0-31EF,
    U+3400-4DBF,
    U+4E00-9FFF,
    U+F900-FAFF,
    U+FF00-FFEF;
}

:root {
  color-scheme: only light;
  --paper: #f3efe7;
  --paper-deep: #ebe4d9;
  --paper-light: #faf7f1;
  --ink: #171714;
  --muted: #706c64;
  --line: rgba(23, 23, 20, 0.17);
  --line-light: rgba(23, 23, 20, 0.09);
  --accent: #ef6c47;
  --accent-dark: #d75535;
  --display: "Bricolage Grotesque", "Franklin Gothic Medium", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --cjk: "Smiley Sans CN", "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", sans-serif;
  --page-pad: clamp(1.25rem, 3.4vw, 4rem);
  --content-max: 1540px;
  --ease-out: cubic-bezier(0.18, 0.8, 0.28, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 62%);
  opacity: 0.33;
}

::selection {
  color: var(--paper-light);
  background: var(--accent);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accent {
  color: var(--accent);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.9rem var(--page-pad);
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.wordmark::after {
  position: absolute;
  right: -0.5rem;
  bottom: 0.15rem;
  width: 0.28rem;
  height: 0.28rem;
  content: "";
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 240ms var(--ease-out);
}

.wordmark:hover::after,
.wordmark:focus-visible::after {
  transform: scale(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 3.4rem);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav > a:not(.github-link) {
  position: relative;
  padding: 0.35rem 0;
}

.site-nav > a:not(.github-link)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after,
.site-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.github-link svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: currentColor;
  transition: transform 260ms var(--ease-out);
}

.github-link:hover svg {
  transform: rotate(-12deg) translateY(-1px);
}

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  isolation: isolate;
  padding: 17vh var(--page-pad) 6rem;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: 3.5vw;
  bottom: 5.8vh;
  width: clamp(10rem, 17vw, 20rem);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(239, 108, 71, 0.16);
  border-radius: 44% 56% 52% 48% / 48% 43% 57% 52%;
  opacity: 0.72;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(94vw, 1740px);
  pointer-events: none;
}

.hero-note {
  margin: 0 0 clamp(1.5rem, 4vh, 3rem) 0.35rem;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 7.55vw, 9.2rem);
  font-weight: 500;
  letter-spacing: -0.077em;
  line-height: 0.86;
}

.hero-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.hero-line:nth-child(2) {
  margin-top: 0.21em;
}

.hero-line:nth-child(3) {
  margin-top: 0.22em;
}

.flight-trail {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.paper-plane {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: clamp(7.5rem, 11vw, 12.5rem);
  margin-top: clamp(-2.6rem, -3vw, -2rem);
  margin-left: clamp(-6.25rem, -5.5vw, -3.75rem);
  pointer-events: none;
  filter: drop-shadow(0 12px 10px rgba(45, 41, 33, 0.1));
  will-change: transform;
}

.paper-plane__body {
  width: 100%;
  transform-origin: 48% 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.paper-plane__body svg {
  width: 100%;
  overflow: visible;
}

.xiaozhi-mascot {
  position: absolute;
  z-index: 3;
  right: clamp(0.75rem, 2.2vw, 2.5rem);
  bottom: clamp(3.1rem, 4.5vh, 4.4rem);
  width: clamp(11.5rem, 16vw, 17rem);
  aspect-ratio: 0.9;
  margin: 0;
  cursor: help;
  outline: none;
}

.xiaozhi-mascot__motion,
.xiaozhi-mascot__float,
.xiaozhi-mascot__portrait {
  position: absolute;
  inset: 0;
}

.xiaozhi-mascot__motion {
  transform-origin: 50% 80%;
  will-change: transform;
}

.xiaozhi-mascot__float {
  animation: xiaozhi-idle 5.8s ease-in-out infinite;
}

.xiaozhi-mascot__portrait {
  overflow: hidden;
}

.xiaozhi-mascot__portrait img {
  position: absolute;
  top: -30%;
  left: -39%;
  width: 156%;
  max-width: none;
  user-select: none;
}

.xiaozhi-mascot__bubble {
  position: absolute;
  z-index: 2;
  right: 72%;
  bottom: 77%;
  width: max-content;
  max-width: min(15rem, calc(100vw - 2rem));
  padding: 0.72rem 0.88rem 0.78rem;
  border: 1px solid rgba(23, 23, 20, 0.09);
  border-radius: 0.9rem 0.9rem 0.24rem 0.9rem;
  color: var(--ink);
  background: rgba(250, 247, 241, 0.92);
  box-shadow: 0 12px 32px rgba(45, 41, 33, 0.08);
  font-family: var(--cjk);
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0.45rem, 0.4rem, 0) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-out);
  backdrop-filter: blur(12px);
}

.xiaozhi-mascot__bubble::after {
  position: absolute;
  right: -1px;
  bottom: -0.42rem;
  width: 0.8rem;
  height: 0.8rem;
  content: "";
  border-right: 1px solid rgba(23, 23, 20, 0.09);
  background: rgba(250, 247, 241, 0.92);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.xiaozhi-mascot__bubble strong,
.xiaozhi-mascot__bubble span {
  display: block;
}

.xiaozhi-mascot__bubble strong {
  margin-bottom: 0.12rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.xiaozhi-mascot__bubble span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.xiaozhi-mascot:hover .xiaozhi-mascot__bubble,
.xiaozhi-mascot:focus-visible .xiaozhi-mascot__bubble {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes xiaozhi-idle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.plane-view {
  opacity: 0;
  transition: opacity 110ms ease-out;
}

.paper-plane__body[data-face="level"] .plane-view--level,
.paper-plane__body[data-face="bank-right"] .plane-view--bank-right,
.paper-plane__body[data-face="edge-right"] .plane-view--edge-right,
.paper-plane__body[data-face="bank-left"] .plane-view--bank-left,
.paper-plane__body[data-face="edge-left"] .plane-view--edge-left {
  opacity: 1;
}

.plane-face {
  fill: rgba(250, 247, 241, 0.96);
}

.plane-fold {
  fill: rgba(224, 220, 213, 0.82);
}

.plane-shadow {
  fill: rgba(193, 190, 184, 0.78);
}

.plane-view--bank-left .plane-face,
.plane-view--edge-left .plane-face {
  fill: rgba(238, 235, 228, 0.98);
}

.plane-view--bank-left .plane-fold,
.plane-view--edge-left .plane-fold {
  fill: rgba(250, 247, 241, 0.92);
}

.plane-view--bank-left .plane-shadow,
.plane-view--edge-left .plane-shadow {
  fill: rgba(176, 173, 167, 0.76);
}

.plane-view--edge-right .plane-shadow,
.plane-view--edge-left .plane-shadow {
  fill: rgba(151, 148, 142, 0.7);
}

.plane-line {
  fill: none;
  stroke: rgba(23, 23, 20, 0.65);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 2.7rem;
  left: var(--page-pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 4rem;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--ink);
  transform: translateX(-100%);
  animation: cue-line 2.4s var(--ease-out) infinite;
}

@keyframes cue-line {
  0%, 22% { transform: translateX(-100%); }
  64%, 100% { transform: translateX(100%); }
}

.flight-hint {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  bottom: 2.7rem;
  margin: 0;
  color: var(--muted);
}

.flight-hint::before {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.65rem;
  content: "";
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.section {
  position: relative;
  padding: clamp(7rem, 13vw, 13rem) var(--page-pad);
}

.section-shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.section--now {
  color: var(--paper-light);
  background: var(--ink);
}

.section--now::before {
  position: absolute;
  top: 4.25rem;
  right: var(--page-pad);
  content: "NOW";
  color: rgba(243, 239, 231, 0.035);
  font-size: min(26vw, 26rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.7;
  pointer-events: none;
}

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(5rem, 9vw, 9rem);
}

.section-heading > h2,
.section-heading > div {
  grid-column: 2;
}

.section-heading .section-index {
  grid-row: 1;
  grid-column: 1;
}

.section-index {
  margin: 0;
  color: var(--muted);
}

.section--now .section-index {
  color: rgba(250, 247, 241, 0.5);
}

.section-heading h2,
.about-preview h2 {
  max-width: 12ch;
  margin-bottom: 2.1rem;
  font-size: clamp(3rem, 5.8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: 0.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.85rem;
  font-weight: 500;
}

.text-link span {
  transition: transform 250ms var(--ease-out);
}

.text-link:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.now-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(250, 247, 241, 0.24);
}

.now-item {
  position: relative;
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  padding: 1.2rem clamp(1.2rem, 2.4vw, 2.6rem) 1.5rem 0;
  border-right: 1px solid rgba(250, 247, 241, 0.15);
}

.now-item:not(:first-child) {
  padding-left: clamp(1.2rem, 2.4vw, 2.6rem);
}

.now-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.now-item__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(250, 247, 241, 0.55);
}

.now-item__dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(239, 108, 71, 0.3);
  animation: quiet-pulse 2.8s ease-out infinite;
}

@keyframes quiet-pulse {
  0%, 55%, 100% { box-shadow: 0 0 0 0 rgba(239, 108, 71, 0); }
  70% { box-shadow: 0 0 0 0.45rem rgba(239, 108, 71, 0.12); }
}

.now-item h3 {
  max-width: 14ch;
  margin: auto 0 1.4rem;
  font-size: clamp(1.9rem, 2.7vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.now-item > p {
  max-width: 33rem;
  margin-bottom: 2.6rem;
  color: rgba(250, 247, 241, 0.62);
  font-size: 0.92rem;
  line-height: 1.65;
}

.now-item__meta {
  color: rgba(250, 247, 241, 0.38);
}

.section--projects {
  padding-bottom: clamp(8rem, 12vw, 13rem);
}

.section-heading--split {
  grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1.45fr);
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  position: relative;
  display: grid;
  min-height: clamp(25rem, 38vw, 38rem);
  grid-template-columns: minmax(3.5rem, 0.22fr) minmax(18rem, 0.88fr) minmax(16rem, 0.9fr);
  gap: clamp(1rem, 2.5vw, 3rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.project-row__number {
  align-self: start;
  padding-top: 0.45rem;
  color: var(--muted);
}

.project-row__copy {
  position: relative;
  z-index: 2;
}

.project-row__category {
  margin-bottom: 1.5rem;
  color: var(--accent-dark);
}

.project-row h2,
.project-row h3 {
  margin-bottom: 1.65rem;
  font-size: clamp(3.3rem, 6.8vw, 8.4rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.project-row__description {
  max-width: 37rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.65;
}

.project-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-row__tags li {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-row__status {
  position: absolute;
  right: 0;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--muted);
}

.project-row__status span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
}

.project-mark {
  position: relative;
  width: min(29vw, 27rem);
  aspect-ratio: 1;
  justify-self: center;
  transition: transform 700ms var(--ease-out);
}

.project-row:hover .project-mark {
  transform: rotate(3deg) scale(1.025);
}

.project-mark__orbit,
.project-mark__core,
.project-mark__line {
  position: absolute;
  display: block;
}

.project-mark__orbit {
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.project-mark__core {
  top: 50%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.project-mark__line {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: rotate(-18deg);
}

.project-mark--hypercar .project-mark__orbit {
  border-radius: 38% 62% 44% 56% / 61% 34% 66% 39%;
  transform: rotate(17deg);
}

.project-mark--hypercar .project-mark__core {
  top: 64%;
  left: 39%;
  width: 18%;
  box-shadow: 4.5rem -3.5rem 0 -0.5rem var(--ink);
}

.project-mark--hypercar .project-mark__line {
  top: 59%;
  left: 15%;
  width: 72%;
  transform: rotate(8deg);
}

.project-mark--hermes .project-mark__orbit {
  inset: 13%;
  border-color: var(--accent);
  border-style: dashed;
}

.project-mark--hermes .project-mark__core {
  width: 22%;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 1.4rem rgba(239, 108, 71, 0.15);
}

.project-mark--hermes .project-mark__line {
  left: 50%;
  width: 50%;
  transform-origin: left;
  transform: rotate(-42deg);
}

.project-mark--muse-hermes .project-mark__orbit {
  inset: 14% 8%;
  border-radius: 2.5rem;
  transform: rotate(-7deg);
}

.project-mark--muse-hermes .project-mark__core {
  top: 38%;
  left: 41%;
  width: 24%;
  border-radius: 1.1rem;
  transform: translate(-50%, -50%) rotate(8deg);
}

.project-mark--muse-hermes .project-mark__line {
  top: 63%;
  left: 20%;
  width: 63%;
  background: var(--accent);
  transform: rotate(15deg);
}

.section--about {
  color: var(--paper-light);
  background: var(--accent);
}

.about-preview {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(20rem, 1.15fr) minmax(12rem, 0.43fr);
  gap: 2rem;
  align-items: start;
}

.about-preview .section-index {
  color: rgba(250, 247, 241, 0.62);
}

.about-preview__copy p {
  max-width: 43rem;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
}

.about-preview__stamp {
  display: grid;
  place-items: center;
  align-self: center;
  aspect-ratio: 1;
  color: rgba(250, 247, 241, 0.8);
}

.about-preview__stamp span,
.about-preview__stamp svg {
  grid-area: 1 / 1;
}

.about-preview__stamp span {
  transform: rotate(-9deg);
}

.about-preview__stamp svg {
  width: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(250, 247, 241, 0.52);
  stroke-width: 1;
}

.about-preview__stamp svg path {
  stroke-width: 2;
}

.site-footer {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 1.6rem var(--page-pad) 1.9rem;
  background: var(--paper);
  font-family: var(--cjk);
  font-synthesis: none;
}

.site-footer__icp {
  color: rgba(112, 108, 100, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-align: center;
  transition: color 180ms ease;
}

.site-footer__icp:hover,
.site-footer__icp:focus-visible {
  color: var(--muted);
}

.inner-page {
  font-family: var(--cjk);
  font-synthesis: none;
}

.inner-page .wordmark,
.inner-page .github-link,
.inner-page .project-row h2,
.inner-page .project-row h3 {
  font-family: var(--display);
}

.inner-page .site-header {
  border-bottom: 1px solid var(--line-light);
}

.section-tabs {
  position: relative;
  display: flex;
  width: 100%;
  max-width: var(--content-max);
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2rem, 5vw, 6rem);
  overflow: hidden;
  margin: 0 auto;
  padding: clamp(8rem, 12vw, 11rem) var(--page-pad) clamp(2.5rem, 5vw, 4.5rem);
  isolation: isolate;
}

.section-tabs::after {
  position: absolute;
  z-index: -1;
  top: clamp(5.5rem, 8vw, 7.5rem);
  right: clamp(1rem, 8vw, 8rem);
  content: attr(data-section-index);
  color: transparent;
  font-family: var(--display);
  font-size: clamp(7rem, 14vw, 14rem);
  font-weight: 600;
  letter-spacing: -0.1em;
  line-height: 0.7;
  -webkit-text-stroke: 1px var(--line-light);
  pointer-events: none;
}

.section-tabs a {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  padding: 0.2rem 0.1rem;
  color: rgba(23, 23, 20, 0.2);
  font-family: var(--display), var(--cjk);
  font-size: clamp(2.7rem, 5vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1;
  white-space: nowrap;
  transition: color 260ms var(--ease-out), transform 260ms var(--ease-out);
}

.section-tabs a:hover,
.section-tabs a:focus-visible {
  color: rgba(23, 23, 20, 0.55);
  transform: translateY(-0.12rem);
}

.section-tabs a[aria-current="page"] {
  color: var(--ink);
}

.section-tab__number {
  position: absolute;
  top: -0.7rem;
  left: 0.12rem;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.section-tab__label {
  position: relative;
  z-index: 1;
}

.section-tabs a[aria-current="page"] .section-tab__label::after {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.01em;
  left: -0.08em;
  height: 0.18em;
  content: "";
  background: rgba(239, 108, 71, 0.72);
  transform: scaleX(1);
  transform-origin: left;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: min(58rem, 92svh);
  align-content: end;
  overflow: hidden;
  padding: clamp(10rem, 22vh, 15rem) var(--page-pad) clamp(5rem, 9vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.page-kicker {
  margin-bottom: clamp(2rem, 4vw, 4rem);
  color: var(--muted);
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 14ch;
  margin: 0;
  font-size: clamp(4.3rem, 8.8vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.078em;
  line-height: 0.85;
}

.inner-page .page-hero h1 {
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.page-intro {
  max-width: 34rem;
  margin: clamp(2.5rem, 4vw, 4rem) 0 0 43%;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.65;
}

.page-hero__mark {
  position: absolute;
  right: 9vw;
  bottom: 18%;
  width: clamp(9rem, 18vw, 20rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.page-hero__mark span {
  position: absolute;
  top: 50%;
  left: -22%;
  width: 144%;
  height: 1px;
  background: var(--accent);
  transform: rotate(-19deg);
}

.page-hero__mark i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.page-hero__rings {
  position: absolute;
  right: 5vw;
  bottom: 11%;
  width: clamp(14rem, 29vw, 31rem);
  aspect-ratio: 1;
}

.page-hero__rings span {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.page-hero__rings span:nth-child(2) {
  inset: 23%;
  border-color: var(--accent);
}

.page-hero__rings span:nth-child(3) {
  inset: 39%;
  border-color: var(--ink);
  background: var(--accent);
}

.page-content {
  padding: clamp(6rem, 12vw, 12rem) var(--page-pad);
}

.page-content--now {
  color: var(--paper-light);
  background: var(--ink);
}

.now-list--full {
  max-width: var(--content-max);
  margin: 0 auto;
}

.now-list--full .now-item {
  min-height: clamp(28rem, 42vw, 42rem);
}

.page-note {
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(18rem, 1fr);
  gap: 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 11rem) var(--page-pad);
}

.page-note > .mono {
  color: var(--accent-dark);
}

.page-note > p:last-child {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.page-content--projects {
  padding-top: 0;
  padding-bottom: 0;
}

.project-list--full {
  max-width: var(--content-max);
  margin: 0 auto;
}

.project-list--full .project-row {
  min-height: clamp(32rem, 47vw, 47rem);
}

.page-note--project {
  margin-top: clamp(3rem, 6vw, 6rem);
}

.page-hero--about {
  min-height: min(64rem, 100svh);
}

.inner-page .section-tabs + .page-hero {
  min-height: min(40rem, 68svh);
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.about-doodle {
  position: absolute;
  right: 8vw;
  bottom: 16%;
  width: clamp(11rem, 23vw, 25rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 46% 54% 65% 35% / 39% 42% 58% 61%;
  transform: rotate(11deg);
}

.about-doodle span,
.about-doodle i,
.about-doodle b {
  position: absolute;
  display: block;
}

.about-doodle span {
  top: 18%;
  left: 18%;
  width: 24%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.about-doodle i {
  right: 11%;
  bottom: 24%;
  width: 51%;
  height: 1px;
  background: var(--ink);
  transform: rotate(-27deg);
}

.about-doodle b {
  right: 20%;
  bottom: 12%;
  width: 0.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}

.about-story {
  display: grid;
  max-width: var(--content-max);
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 0.8fr);
  gap: clamp(3rem, 9vw, 10rem);
  margin: 0 auto;
}

.about-story__lead {
  margin: 0;
  font-size: clamp(2.4rem, 4.7vw, 5.8rem);
  letter-spacing: -0.058em;
  line-height: 1;
}

.about-story__body {
  align-self: end;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.7;
}

.about-story__body p:last-child {
  margin-bottom: 0;
}

.about-fields {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: 3rem;
}

.about-fields > .section-index {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.about-fields__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-fields article {
  min-height: 19rem;
  padding: 1.5rem 2.5rem 2rem 0;
  border-bottom: 1px solid var(--line);
}

.about-fields article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.about-fields article:nth-child(even) {
  padding-left: 2.5rem;
}

.about-fields article > span {
  color: var(--accent-dark);
}

.about-fields h2 {
  max-width: 12ch;
  margin: 4rem 0 1.2rem;
  font-size: clamp(2rem, 3.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.about-fields article p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) minmax(18rem, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 8vw, 8rem);
  padding: clamp(4rem, 9vw, 9rem) var(--page-pad);
  color: var(--paper-light);
  background: var(--accent);
}

.contact-strip > p {
  color: rgba(250, 247, 241, 0.65);
}

.contact-strip > a {
  width: max-content;
  max-width: 100%;
  font-size: clamp(2.8rem, 6vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.contact-strip > a span {
  display: inline-block;
  font-size: 0.55em;
  transition: transform 260ms var(--ease-out);
}

.contact-strip > a:hover span {
  transform: translate(0.3rem, -0.3rem);
}

.error-page {
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  place-items: stretch;
  padding: 0;
}

.error-page main {
  width: min(70rem, 100%);
  place-self: center;
  padding: var(--page-pad);
}

.error-page .mono {
  color: var(--muted);
}

.error-page h1 {
  margin: 2rem 0 3rem;
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.78;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition:
    opacity 700ms var(--ease-out) var(--reveal-delay, 0ms),
    transform 700ms var(--ease-out) var(--reveal-delay, 0ms);
}

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

.hero-line.reveal:nth-child(1) { --reveal-delay: 80ms; }
.hero-line.reveal:nth-child(2) { --reveal-delay: 150ms; }
.hero-line.reveal:nth-child(3) { --reveal-delay: 220ms; }

@media (max-width: 980px) {
  .hero {
    padding-top: 20vh;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 9.5vw, 6.5rem);
  }

  .section-heading,
  .section-heading--split {
    grid-template-columns: minmax(6rem, 0.35fr) minmax(0, 1.65fr);
  }

  .now-list {
    grid-template-columns: 1fr;
  }

  .now-item,
  .now-list--full .now-item {
    min-height: 21rem;
    padding: 1.3rem 0 2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(250, 247, 241, 0.15);
  }

  .now-item:not(:first-child) {
    padding-left: 0;
  }

  .now-item:last-child {
    border-bottom: 0;
  }

  .now-item h3 {
    margin-top: 5.2rem;
  }

  .project-row {
    grid-template-columns: 3rem minmax(17rem, 1.1fr) minmax(13rem, 0.9fr);
  }

  .about-preview {
    grid-template-columns: minmax(6rem, 0.3fr) minmax(20rem, 1fr);
  }

  .about-preview__stamp {
    display: none;
  }

  .page-intro {
    margin-left: 32%;
  }

  .page-hero__mark,
  .page-hero__rings,
  .about-doodle {
    right: 2vw;
    opacity: 0.58;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 1.15rem;
  }

  body::before {
    background-size: 36px 36px;
  }

  .site-header {
    align-items: flex-start;
    padding-top: 1.25rem;
  }

  .site-nav {
    max-width: 78%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem 1.1rem;
    font-size: 0.78rem;
  }

  .section-tabs {
    justify-content: flex-start;
    gap: clamp(0.9rem, 4vw, 1.5rem);
    padding-top: 7.5rem;
    padding-bottom: 2.4rem;
  }

  .section-tabs::after {
    top: 4.2rem;
    right: -0.5rem;
    font-size: 9rem;
    opacity: 0.7;
  }

  .section-tabs a {
    font-size: clamp(2rem, 10.5vw, 2.7rem);
  }

  .section-tab__number {
    top: -0.55rem;
    font-size: 0.48rem;
  }

  .github-link span {
    display: none;
  }

  .hero {
    min-height: 47rem;
    padding-top: 24vh;
  }

  .hero::after {
    right: -4rem;
    bottom: 4rem;
  }

  .hero-note {
    margin-bottom: 1.7rem;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 10vw, 3.2rem);
    letter-spacing: -0.072em;
    line-height: 0.88;
  }

  .paper-plane {
    width: 6.8rem;
    opacity: 0.9;
  }

  .flight-hint {
    display: none;
  }

  .scroll-cue {
    bottom: 1.7rem;
  }

  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section-heading,
  .section-heading--split {
    display: block;
    margin-bottom: 4.5rem;
  }

  .section-heading .section-index {
    margin-bottom: 3rem;
  }

  .section-heading h2,
  .about-preview h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .project-row,
  .project-list--full .project-row {
    min-height: 41rem;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.8rem;
    align-content: start;
    padding: 2rem 0 3.5rem;
  }

  .project-row__copy {
    grid-column: 2;
  }

  .project-row h2,
  .project-row h3 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  .project-mark {
    grid-column: 1 / -1;
    width: min(72vw, 18rem);
    margin-top: 1rem;
  }

  .project-row__status {
    right: auto;
    left: 3.3rem;
  }

  .about-preview {
    display: block;
  }

  .about-preview > .section-index {
    margin-bottom: 3rem;
  }

  .page-hero {
    min-height: 46rem;
    padding-top: 9rem;
    padding-bottom: 4rem;
  }

  .inner-page .section-tabs + .page-hero {
    min-height: 30rem;
    padding-top: 2.4rem;
    padding-bottom: 3.5rem;
  }

  .page-hero h1 {
    max-width: 10ch;
    font-size: clamp(3.8rem, 16vw, 6.5rem);
  }

  .inner-page .page-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 14.5vw, 5.4rem);
    line-height: 0.96;
  }

  .page-intro {
    max-width: 26rem;
    margin: 3rem 0 0;
  }

  .page-hero__mark,
  .page-hero__rings,
  .about-doodle {
    top: 21%;
    right: -4rem;
    bottom: auto;
    width: 12rem;
    opacity: 0.3;
  }

  .page-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .page-note {
    display: block;
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .page-note > .mono {
    margin-bottom: 3rem;
  }

  .page-note > p:last-child {
    font-size: clamp(2rem, 9vw, 3.3rem);
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

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

  .about-fields article,
  .about-fields article:nth-child(even) {
    min-height: 16rem;
    padding: 1.25rem 0 2rem;
    border-right: 0;
  }

  .about-fields h2 {
    margin-top: 3rem;
  }

  .contact-strip {
    display: block;
  }

  .contact-strip > p {
    margin-bottom: 4rem;
  }

  .contact-strip > a {
    font-size: clamp(2.9rem, 13vw, 5.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .flight-trail {
    display: none;
  }
}

/* Unified minimal direction: warm paper, generous space, no decorative rules. */
body::before {
  display: none;
}

.site-header,
.inner-page .site-header,
.page-hero,
.now-list,
.project-list,
.project-row,
.now-item,
.about-fields article,
.about-fields article:nth-child(odd) {
  border: 0;
}

.site-header {
  color: var(--ink);
}

.inner-page .site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  background: rgba(243, 239, 231, 0.88);
  backdrop-filter: blur(18px);
}

.site-nav > a:not(.github-link)::after {
  right: auto;
  bottom: -0.05rem;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%) scale(0);
  transform-origin: center;
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after,
.site-nav > a[aria-current="page"]::after {
  transform: translateX(-50%) scale(1);
  transform-origin: center;
}

.home,
.home main,
.home .hero {
  height: 100svh;
  min-height: 100svh;
}

.home {
  overflow: hidden;
}

.home .site-header,
.home main {
  transition: opacity 240ms ease, transform 280ms var(--ease-out);
}

.home.is-leaving .site-header,
.home.is-leaving main {
  opacity: 0;
  transform: translateY(-1rem);
}

.hero {
  padding-top: clamp(9rem, 20vh, 14rem);
}

.hero::after {
  display: none;
}

.scroll-cue {
  gap: 0.65rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.scroll-cue::after {
  content: "↓";
  color: var(--accent);
  font-size: 1rem;
  transition: transform 220ms var(--ease-out);
}

.scroll-cue:hover::after,
.scroll-cue:focus-visible::after {
  transform: translateY(0.22rem);
}

.scroll-cue i,
.scroll-cue i::after {
  display: none;
}

.inner-page main,
.page-content,
.page-content--now,
.page-content--projects,
.about-story,
.about-fields,
.contact-strip {
  color: var(--ink);
  background: var(--paper);
}

.page-hero {
  min-height: clamp(38rem, 76svh, 54rem);
  align-content: center;
  padding-top: clamp(7rem, 14vh, 11rem);
  padding-bottom: clamp(5rem, 10vh, 8rem);
}

.page-hero--about {
  min-height: clamp(42rem, 88svh, 62rem);
}

.page-hero h1,
.inner-page .page-hero h1 {
  max-width: 13ch;
  font-size: clamp(4.2rem, 8vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.page-intro {
  max-width: 34rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0 43%;
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.8;
}

.page-hero__mark,
.page-hero__rings,
.about-doodle {
  display: none;
}

.inner-page {
  overscroll-behavior-y: none;
}

.inner-page .site-header,
.inner-page main {
  transition: opacity 240ms ease, transform 280ms var(--ease-out);
}

.inner-page.is-returning-home .site-header,
.inner-page.is-returning-home main {
  opacity: 0;
  transform: translateY(1rem);
}

.inner-page .section-tabs {
  position: relative;
  display: flex;
  width: 100%;
  max-width: var(--content-max);
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2rem, 5vw, 6rem);
  overflow: visible;
  margin: 0 auto;
  padding: clamp(7rem, 11vw, 10rem) var(--page-pad) clamp(2.5rem, 4vw, 4rem);
}

.inner-page .section-tabs::after {
  display: none;
}

.inner-page .section-tabs a {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  padding: 0.16em 0.04em;
  color: rgba(23, 23, 20, 0.18);
  font-family: var(--display);
  font-size: clamp(3.4rem, 6.6vw, 7.3rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.86;
  white-space: nowrap;
  transition: color 240ms ease, transform 260ms var(--ease-out);
}

.inner-page .section-tabs a:hover,
.inner-page .section-tabs a:focus-visible {
  color: rgba(23, 23, 20, 0.55);
  transform: translateY(-0.12rem);
}

.inner-page .section-tabs a[aria-current="page"] {
  color: var(--ink);
}

.inner-page .section-tab__number {
  position: absolute;
  top: -0.65rem;
  left: 0.1rem;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.inner-page .section-tab__label {
  position: relative;
  z-index: 1;
}

.inner-page .section-tabs a[aria-current="page"] .section-tab__label::after {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.01em;
  left: -0.08em;
  height: 0.18em;
  content: "";
  border-radius: 0.08em;
  background: rgba(239, 108, 71, 0.68);
}

.inner-page .section-tabs + .page-hero {
  min-height: clamp(34rem, 66svh, 48rem);
  padding-top: clamp(3rem, 7vh, 6rem);
  padding-bottom: clamp(5rem, 9vh, 7rem);
}

.page-content {
  padding-top: clamp(7rem, 13vw, 13rem);
  padding-bottom: clamp(7rem, 13vw, 13rem);
}

.now-list--full,
.project-list--full {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.now-list--full {
  display: block;
}

.now-list--full .now-item {
  display: block;
  width: min(100%, 64rem);
  min-height: 0;
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.now-list--full .now-item:nth-child(even) {
  margin-left: auto;
}

.now-item h2 {
  max-width: 12ch;
  margin: 0 0 clamp(1.8rem, 3vw, 3rem);
  font-family: var(--cjk);
  font-size: clamp(3.3rem, 6.5vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.now-item > p:last-child {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.8;
}

.page-content--projects {
  padding: clamp(5rem, 8vw, 9rem) var(--page-pad) clamp(9rem, 15vw, 16rem);
}

.project-list--full .project-row--minimal {
  position: relative;
  display: grid;
  min-height: clamp(34rem, 52vw, 52rem);
  grid-template-columns: minmax(11rem, 0.42fr) minmax(18rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 8rem);
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.project-row__number {
  color: rgba(239, 108, 71, 0.14);
  font-family: var(--display);
  font-size: clamp(8rem, 17vw, 18rem);
  font-weight: 600;
  letter-spacing: -0.1em;
  line-height: 0.7;
}

.project-row__copy {
  grid-column: auto;
}

.project-row h2 {
  max-width: 10ch;
  margin: 0 0 clamp(1.8rem, 3vw, 3rem);
  font-family: var(--cjk);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.project-row[data-project="xiaozhi"] h2 {
  font-weight: 400;
  letter-spacing: -0.055em;
}

.project-row__description {
  max-width: 37rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.8;
}

.about-story {
  padding-top: clamp(8rem, 14vw, 14rem);
}

.about-story__lead {
  max-width: 14ch;
}

.about-fields {
  padding-top: clamp(4rem, 8vw, 8rem);
}

.about-fields__list {
  gap: clamp(5rem, 9vw, 10rem) clamp(3rem, 8vw, 9rem);
}

.about-fields article,
.about-fields article:nth-child(even) {
  min-height: 0;
  padding: 0;
}

.about-fields h2 {
  margin: 0 0 1.4rem;
}

.contact-strip {
  display: block;
  margin: 0;
  padding-top: clamp(9rem, 16vw, 16rem);
  padding-bottom: clamp(9rem, 16vw, 16rem);
}

.contact-strip > a {
  display: inline-block;
  color: var(--ink);
  transition: color 220ms ease;
}

.contact-strip > a:hover,
.contact-strip > a:focus-visible {
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
    padding-top: 1.25rem;
  }

  .site-nav {
    max-width: none;
    flex-wrap: nowrap;
    gap: clamp(0.9rem, 4vw, 1.35rem);
    font-size: 0.76rem;
  }

  .hero {
    padding-top: clamp(8.5rem, 24vh, 12rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.35rem);
  }

  .hero-line:nth-child(3) {
    font-size: 0.8em;
  }

  .inner-page .section-tabs {
    justify-content: space-between;
    gap: 0.7rem;
    padding: 5.8rem var(--page-pad) 1.8rem;
  }

  .inner-page .section-tabs a {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .inner-page .section-tab__number {
    top: -0.48rem;
    font-size: 0.48rem;
  }

  .inner-page .section-tabs + .page-hero,
  .inner-page .section-tabs + .page-hero--about {
    min-height: clamp(34rem, 68svh, 42rem);
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .page-hero,
  .page-hero--about {
    min-height: clamp(38rem, 82svh, 50rem);
    padding-top: 7.5rem;
    padding-bottom: 5rem;
  }

  .page-hero h1,
  .inner-page .page-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.6rem, 15vw, 5.4rem);
  }

  .page-hero--projects h1 .accent {
    display: inline-block;
    font-size: 0.75em;
    white-space: nowrap;
  }

  .page-intro {
    max-width: 28rem;
    margin: 3rem 0 0;
    line-height: 1.72;
  }

  .now-list--full .now-item,
  .now-list--full .now-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 5rem 0;
  }

  .now-item h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .project-list--full .project-row--minimal {
    display: block;
    min-height: 34rem;
    padding: 5rem 0;
  }

  .project-row__number {
    position: absolute;
    z-index: 0;
    top: 4rem;
    left: -0.04em;
    font-size: clamp(9rem, 42vw, 13rem);
  }

  .project-row__copy {
    position: relative;
    z-index: 1;
    padding-top: 8rem;
  }

  .project-row h2 {
    font-size: clamp(4rem, 19vw, 6.2rem);
  }

  .about-story {
    gap: 4rem;
  }

  .about-fields__list {
    gap: 5rem;
  }

  .contact-strip > a {
    font-size: clamp(2.8rem, 12.5vw, 5rem);
  }
}

/* Continuous single-page workbench. */
.home {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.home main {
  height: auto;
  min-height: 0;
}

.home .hero {
  height: 100svh;
  min-height: max(46rem, 100svh);
}

.home .site-header {
  position: fixed;
  background: rgba(243, 239, 231, 0.88);
  backdrop-filter: blur(18px);
}

.workbench {
  position: relative;
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--cjk);
  font-synthesis: none;
}

.workbench-panel[hidden] {
  display: none !important;
}

.workbench .section-tabs {
  position: relative;
  display: flex;
  width: 100%;
  max-width: var(--content-max);
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2rem, 5vw, 6rem);
  overflow: visible;
  margin: 0 auto;
  padding: clamp(7rem, 11vw, 10rem) var(--page-pad) clamp(2.5rem, 4vw, 4rem);
}

.workbench .section-tabs::after {
  display: none;
}

.workbench .section-tabs a {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  padding: 0.16em 0.04em;
  color: rgba(23, 23, 20, 0.18);
  font-family: var(--display);
  font-size: clamp(3.4rem, 6.6vw, 7.3rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.86;
  white-space: nowrap;
  transition: color 180ms ease;
}

.workbench .section-tabs a:hover,
.workbench .section-tabs a:focus-visible {
  color: rgba(23, 23, 20, 0.55);
  transform: none;
}

.workbench .section-tabs a[aria-current] {
  color: var(--ink);
}

.workbench .section-tab__number {
  position: absolute;
  top: -0.65rem;
  left: 0.1rem;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.workbench .section-tab__label {
  position: relative;
  z-index: 1;
}

.workbench .section-tabs a[aria-current] .section-tab__label::after {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.01em;
  left: -0.08em;
  height: 0.18em;
  content: "";
  border-radius: 0.08em;
  background: rgba(239, 108, 71, 0.68);
}

.workbench .page-hero {
  min-height: clamp(28rem, 58svh, 42rem);
  align-content: center;
  padding-top: clamp(4rem, 7vh, 6rem);
  padding-bottom: clamp(5rem, 9vh, 7rem);
}

.workbench .page-hero h2 {
  position: relative;
  z-index: 2;
  max-width: 13ch;
  margin: 0;
  font-family: var(--cjk);
  font-size: clamp(4rem, 7.5vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.workbench .page-hero--projects h2 .accent {
  display: inline-block;
  font-size: 0.78em;
  white-space: nowrap;
}

.workbench .page-hero--now h2,
.workbench .page-hero--about h2 {
  line-height: 1.08;
}

.workbench .project-row__description {
  white-space: pre-line;
}

.about-story__lead {
  max-width: 19ch;
  font-size: clamp(1.55rem, 2.4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.workbench .about-fields h3 {
  max-width: 12ch;
  margin: 0 0 1.4rem;
  font-family: var(--cjk);
  font-size: clamp(2rem, 3.4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.contact-strip > a {
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

@media (max-width: 720px) {
  .home .site-nav {
    gap: clamp(0.85rem, 3.6vw, 1.3rem);
    font-size: 0.82rem;
  }

  .home .hero {
    min-height: max(42rem, 100svh);
  }

  .xiaozhi-mascot {
    right: 0.35rem;
    bottom: 3.6rem;
    width: clamp(9.25rem, 41vw, 11rem);
  }

  .xiaozhi-mascot__bubble {
    right: 0;
    bottom: 92%;
  }

  .workbench .section-tabs {
    justify-content: space-between;
    gap: 0.7rem;
    padding: 5.8rem var(--page-pad) 1.8rem;
  }

  .workbench .section-tabs a {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .workbench .section-tab__number {
    top: -0.48rem;
    font-size: 0.48rem;
  }

  .workbench .page-hero,
  .workbench .page-hero--about {
    min-height: clamp(29rem, 58svh, 36rem);
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
  }

  .workbench .page-hero h2 {
    max-width: 11ch;
    font-size: clamp(3.2rem, 13vw, 4.8rem);
  }

  .workbench .page-hero--projects h2 .accent {
    display: inline-block;
    font-size: 0.8em;
    white-space: nowrap;
  }

  .workbench .page-intro {
    margin: 3rem 0 0;
  }

  .about-story__lead {
    max-width: 18ch;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    line-height: 1.22;
  }

  .workbench .about-fields h3 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .contact-strip > a {
    font-size: clamp(1.35rem, 5.5vw, 1.8rem);
  }
}
