:root {
  --paper: #f4fafb;
  --paper-bright: #fbffff;
  --ink: #061f2c;
  --muted: #667b83;
  --line: rgba(6, 31, 44, 0.15);
  --accent: #56c5df;
  --sky: #e0f7fc;
  --sky-deep: #d3f2fa;
  --cyan: #56c5df;
  --deep-cyan: #0c6b86;
  --acid: #b9f2fb;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-padding: clamp(1.25rem, 5vw, 5rem);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: auto;
}

html:not(.js) {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 17%, rgba(112, 216, 239, 0.2), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.13;
  pointer-events: none;
}

::selection {
  color: var(--paper-bright);
  background: var(--ink);
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

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

.site-header {
  position: fixed;
  z-index: 80;
  top: 0.5rem;
  left: 50%;
  width: min(calc(100% - 2rem), 61.25rem);
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  transition:
    opacity 280ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear;
}

.js .site-header:not(.is-visible) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 1.5rem));
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.4, 0, 1, 1),
    visibility 0s linear 320ms;
}

.header-shell {
  display: flex;
  align-items: center;
  min-height: 2.875rem;
  padding: 0.25rem 0.375rem 0.25rem 1rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.nav-logo {
  display: block;
  width: 1.6875rem;
  height: 0.5625rem;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  margin-right: 0.45rem;
  font-size: 0.875rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.75rem;
  color: #445c66;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: rgba(6, 31, 44, 0.045);
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.header-link,
.footer a {
  position: relative;
}

.header-link::after,
.footer a::after {
  position: absolute;
  right: 0;
  bottom: -0.25rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.header-link:hover::after,
.header-link:focus-visible::after,
.footer a:hover::after,
.footer a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  color: #233f4a;
  background: transparent;
  border-radius: 0.75rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.header-link:hover {
  color: var(--ink);
  background: rgba(6, 31, 44, 0.045);
}

.header-link::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav .nav-github-mobile,
.nav-toggle {
  display: none;
}

.nav-toggle {
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0.8rem;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 0.75rem;
  width: 1.35rem;
  height: 1px;
  background: var(--ink);
  transition:
    top 220ms ease,
    transform 220ms ease;
}

.nav-toggle span:first-child {
  top: 1.15rem;
}

.nav-toggle span:last-child {
  top: 1.65rem;
}

.nav-open .nav-toggle span:first-child {
  top: 1.4rem;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  top: 1.4rem;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(6rem, 9vh, 7rem) clamp(1.25rem, 5.5vw, 6rem)
    clamp(6rem, 12vh, 9rem);
  overflow: hidden;
  background: linear-gradient(
    -53.644deg,
    var(--sky) 43.079%,
    rgb(248, 255, 255) 100%
  );
}

.hero-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  pointer-events: none;
}

.hero-backdrop img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(108%, 78rem);
  max-width: none;
  height: auto;
  opacity: 0.82;
  transform: translate(-50%, -50%) rotate(-1deg);
}

.grid-warp-layer {
  --grid-x: 50%;
  --grid-y: 50%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 240ms ease;
  mask-image: radial-gradient(
    circle 9.5rem at var(--grid-x) var(--grid-y),
    black 0,
    rgba(0, 0, 0, 0.8) 34%,
    transparent 74%
  );
  -webkit-mask-image: radial-gradient(
    circle 9.5rem at var(--grid-x) var(--grid-y),
    black 0,
    rgba(0, 0, 0, 0.8) 34%,
    transparent 74%
  );
  pointer-events: none;
}

.grid-warp-layer img {
  opacity: 0.92;
  filter: url("#grid-warp-filter");
  will-change: filter;
}

.hero.grid-is-active .grid-warp-layer {
  opacity: 1;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -9rem;
  bottom: -15rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(
    circle,
    rgba(86, 197, 223, 0.2) 0,
    rgba(86, 197, 223, 0) 68%
  );
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(17rem, 0.76fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 5rem);
  width: 100%;
  max-width: 95rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(2rem, 5vh, 4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.4rem);
  color: #315563;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.status-dot {
  position: relative;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--accent);
  border-radius: 50%;
}

.status-dot::after {
  position: absolute;
  inset: -0.25rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.65);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

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

h1 {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.hero-title {
  width: min(100%, 50.6rem);
}

.hero-title img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-icon-link {
  display: grid;
  width: 2.728rem;
  height: 2.728rem;
  place-items: center;
  overflow: hidden;
  background: #00222e;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-icon-link:hover,
.hero-icon-link:focus-visible {
  box-shadow: 0 0 0 1px var(--cyan);
  outline: none;
  transform: translateY(-0.2rem);
}

.hero-icon-fill {
  display: block;
  width: 100%;
  height: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 10.5rem;
  padding: 0.95rem 1.1rem 0.95rem 1.3rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--ink);
}

.button-primary:hover {
  color: var(--ink);
  background: var(--acid);
}

.button-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.9rem;
}

.hero-art {
  position: relative;
  display: grid;
  width: min(100%, 30rem);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  margin-top: -2rem;
}

.hero-art::before {
  position: absolute;
  z-index: 0;
  inset: 17%;
  background: conic-gradient(
    from 120deg,
    rgba(86, 197, 223, 0.62),
    rgba(224, 247, 252, 0) 38%,
    rgba(12, 107, 134, 0.3) 64%,
    rgba(224, 247, 252, 0)
  );
  border-radius: 50%;
  content: "";
  filter: blur(22px);
  animation: aura-pulse 6s ease-in-out infinite;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: 49%;
  padding: 0.6rem;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 1.15rem 1.15rem 0 var(--cyan);
  animation: portrait-float 7s ease-in-out infinite;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.8) contrast(1.03);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(12, 107, 134, 0.23);
  border-radius: 50%;
}

.orbit-one {
  inset: 6%;
  animation: orbit-breathe 8s ease-in-out infinite;
}

.orbit-one::before {
  position: absolute;
  top: -0.26rem;
  left: 50%;
  width: 0.52rem;
  height: 0.52rem;
  background: var(--deep-cyan);
  border: 0.16rem solid rgba(224, 247, 252, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 1rem rgba(12, 107, 134, 0.45);
  content: "";
}

.orbit-two {
  inset: 18%;
  border-style: dashed;
  animation: rotate 44s linear infinite reverse;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes portrait-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.6rem);
  }
}

@keyframes orbit-breathe {
  0%,
  100% {
    opacity: 0.66;
    transform: scale(0.99);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes aura-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: rotate(0) scale(0.96);
  }
  50% {
    opacity: 0.92;
    transform: rotate(12deg) scale(1.06);
  }
}

.orbit-note {
  position: absolute;
  z-index: 3;
  padding: 0.45rem 0.65rem;
  color: var(--paper-bright);
  background: var(--deep-cyan);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.orbit-note-top {
  top: 14%;
  right: 0;
  transform: rotate(5deg);
  animation: note-float-top 5.5s ease-in-out infinite;
}

.orbit-note-bottom {
  bottom: 13%;
  left: 0;
  transform: rotate(-5deg);
  animation: note-float-bottom 6s ease-in-out infinite;
}

@keyframes note-float-top {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }
  50% {
    transform: translateY(-0.35rem) rotate(3deg);
  }
}

@keyframes note-float-bottom {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(0.35rem) rotate(-3deg);
  }
}

.cross {
  position: absolute;
  z-index: 3;
  width: 1rem;
  height: 1rem;
}

.cross::before,
.cross::after {
  position: absolute;
  background: var(--ink);
  content: "";
}

.cross::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.cross::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.cross-one {
  top: 7%;
  left: 21%;
}

.cross-two {
  right: 12%;
  bottom: 4%;
}

.ticker {
  overflow: hidden;
  margin-top: clamp(1.5rem, 3vw, 3rem);
  color: var(--paper-bright);
  background: var(--ink);
  transform: rotate(-1.3deg) scale(1.02);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 1.2rem 0;
  animation: ticker 28s linear infinite;
}

.ticker span {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  letter-spacing: 0.08em;
}

.ticker i {
  padding: 0 2.2rem;
  color: var(--accent);
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 12rem) var(--page-padding);
}

.section-heading {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: end;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.section-index,
.section-en {
  padding-bottom: 0.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.section-heading h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 10vw, 11rem);
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.about-lead {
  max-width: 40rem;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 3.5rem);
  line-height: 1.45;
  letter-spacing: -0.045em;
}

.about-lead em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.about-body {
  align-self: end;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
  color: #4d4b45;
  font-size: 1rem;
  line-height: 2;
}

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

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 16rem;
  padding: 1.5rem clamp(1rem, 2.5vw, 2.5rem) 2rem;
}

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

.principle-number {
  display: block;
  margin-bottom: 5rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.principle h3 {
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
}

.principle p {
  max-width: 17rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.work {
  position: relative;
  overflow: hidden;
  color: var(--paper-bright);
  background: var(--ink);
}

.work::before {
  position: absolute;
  top: 10%;
  right: -10rem;
  width: 35rem;
  height: 35rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 6rem rgba(255, 255, 255, 0.018),
    0 0 0 12rem rgba(255, 255, 255, 0.012);
}

.work-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) var(--page-padding);
}

.section-heading-light {
  border-color: rgba(255, 255, 255, 0.22);
}

.section-heading-light .section-index,
.section-heading-light .section-en {
  color: rgba(255, 255, 255, 0.55);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(20rem, 0.7fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.project-visual {
  position: relative;
}

.project-visual::before {
  position: absolute;
  z-index: -1;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid rgba(216, 255, 62, 0.45);
  content: "";
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.17);
  filter: saturate(0.75) brightness(0.93);
  transition:
    filter 350ms ease,
    transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-visual:hover img {
  filter: saturate(1) brightness(1);
  transform: translateY(-0.4rem);
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-type {
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.project h3 {
  margin-bottom: 1.8rem;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.project-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  color: var(--ink);
  background: var(--paper-bright);
  border-radius: 50%;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.project-arrow:hover {
  background: var(--acid);
  transform: rotate(45deg);
}

.project-description {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
  line-height: 1.9;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--mono);
  font-size: 0.59rem;
}

.more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  transition: color 180ms ease;
}

.more-link:hover {
  color: var(--acid);
}

.contact {
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.contact-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
}

.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.outline-dark {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.contact-side {
  padding-bottom: 0.8rem;
}

.contact-side > p {
  max-width: 25rem;
  margin-bottom: 2rem;
  color: var(--muted);
  line-height: 1.9;
}

.contact-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button-dark {
  color: var(--paper-bright);
  background: var(--ink);
}

.button-dark:hover {
  color: var(--ink);
  background: var(--accent);
}

.copy-button {
  padding: 1rem 1.15rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.84rem;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.copy-button:hover {
  background: var(--paper-bright);
  border-color: var(--ink);
}

.copy-status {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, var(--max-width));
  min-height: 8rem;
  margin: 0 auto;
  padding: 1.5rem var(--page-padding);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer .brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer > a {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: clamp(4rem, 9vw, 6rem);
    padding-bottom: 2rem;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-art {
    width: min(48vw, 20rem);
    margin-top: -3rem;
    margin-right: 1rem;
    justify-self: end;
  }

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

  .about-body {
    max-width: 38rem;
  }

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

  .contact-main {
    grid-template-columns: 1fr;
  }

  .contact-side {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 0.5rem;
    width: calc(100% - 1.25rem);
  }

  .header-shell {
    position: relative;
    min-height: 2.875rem;
    padding: 0.25rem 0.25rem 0.25rem 0.8rem;
    border-radius: 0.75rem;
  }

  .header-shell .brand-name {
    font-size: 0.72rem;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem;
    background: rgba(249, 255, 255, 0.94);
    border: 1px solid rgba(6, 31, 44, 0.1);
    border-radius: 1rem;
    box-shadow: 0 1.4rem 3rem rgba(13, 63, 79, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.45rem) scale(0.98);
    transform-origin: top;
    visibility: hidden;
    transition:
      opacity 180ms ease,
      transform 220ms ease,
      visibility 0s linear 220ms;
    backdrop-filter: blur(20px) saturate(1.2);
  }

  .site-header.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav a {
    justify-content: space-between;
    min-height: 3rem;
    padding: 0 0.9rem;
    font-size: 0.9rem;
  }

  .nav .nav-github-mobile {
    display: flex;
    margin-top: 0.25rem;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-toggle {
    display: block;
  }

  .header-link {
    display: none;
  }

  .hero {
    padding: 6.25rem 1.25rem 4rem;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 3.25rem;
  }

  h1 {
    margin-bottom: 2.5rem;
  }

  .hero-title {
    width: 100%;
  }

  .hero-art {
    width: min(68vw, 17rem);
    margin-top: -1rem;
    margin-right: -1.2rem;
  }

  .orbit-note {
    display: none;
  }

  .section-heading {
    grid-template-columns: 2rem 1fr;
  }

  .section-en {
    display: none;
  }

  .about-grid {
    gap: 2.5rem;
  }

  .about-lead {
    font-size: 1.9rem;
  }

  .about-body {
    padding: 0;
    border-left: 0;
  }

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

  .principle {
    min-height: auto;
    padding: 1.5rem 0;
  }

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

  .principle-number {
    margin-bottom: 2.3rem;
  }

  .project {
    padding-top: 3rem;
  }

  .project-visual::before {
    inset: 0.7rem -0.7rem -0.7rem 0.7rem;
  }

  .project-title-row {
    gap: 0.5rem;
  }

  .project-arrow {
    width: 2.8rem;
    height: 2.8rem;
  }

  .contact h2 {
    font-size: clamp(3.6rem, 17vw, 5.5rem);
  }

  .outline-dark {
    -webkit-text-stroke-width: 1px;
  }

  .footer {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .footer p {
    display: none;
  }
}

@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;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #46443e;
    --line: rgba(21, 21, 19, 0.35);
  }
}
