:root {
  --bg: #070c14;
  --ink: #e8eaee;
  --mute: #8693a5;
  --accent: #94a6bd;
  --gold: #c9a96a;
  --glass: rgba(170, 190, 215, 0.045);
  --line: rgba(170, 190, 215, 0.14);
}
#content-status:not([hidden]) {
  position: fixed;
  top: 100px;
  left: 24px;
  right: 24px;
  z-index: 20;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  font-weight: 300;
}
.orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.38;
  animation: drift 34s ease-in-out infinite alternate;
}
.o1 {
  width: 560px;
  height: 560px;
  background: #1c2f4a;
  top: -160px;
  left: -140px;
}
.o2 {
  width: 480px;
  height: 480px;
  background: #17263c;
  top: 38%;
  right: -160px;
  animation-duration: 42s;
}
.o3 {
  width: 400px;
  height: 400px;
  background: #2a3d57;
  bottom: -160px;
  left: 28%;
  animation-duration: 38s;
  opacity: 0.25;
}
@keyframes drift {
  to {
    transform: translate(70px, 50px) scale(1.12);
  }
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(7, 12, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 1px;
  background: var(--gold);
}
.bar {
  max-width: 1120px;
  margin: auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  padding: 6px 14px 6px 8px;
  margin: -6px -14px -6px -8px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 46px;
  height: 46px;
  display: block;
}
.brand b {
  font:
    500 1.35rem "Cormorant Garamond",
    serif;
  letter-spacing: 0.04em;
}
nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
nav a {
  color: var(--mute);
  text-decoration: none;
  font:
    400 0.9rem "Noto Sans TC",
    sans-serif;
  padding: 16px 18px;
  position: relative;
  transition: color 0.3s;
}
nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
nav a:hover,
nav a.on {
  color: var(--ink);
}
nav a:hover::after,
nav a.on::after {
  transform: scaleX(1);
}
#lang {
  margin-left: 14px;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 106, 0.45);
  background: none;
  font:
    500 0.82rem "Noto Sans TC",
    sans-serif;
  padding: 11px 18px;
  cursor: pointer;
  transition: 0.3s;
}
#lang:hover {
  background: var(--gold);
  color: #070c14;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
section {
  max-width: 1040px;
  margin: auto;
  padding: 120px 24px 40px;
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
}
.hero .sub {
  color: var(--mute);
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}
h1 {
  font:
    300 clamp(3.6rem, 13vw, 9.5rem)/1 "Cormorant Garamond",
    "Noto Serif TC",
    serif;
  letter-spacing: -0.02em;
  margin: 0.1em 0 0.2em;
  color: var(--ink);
}
.tag {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 60ch;
  font-weight: 300;
  color: #c4cedc;
}
html[lang="zh-Hant"] .tag {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.78rem, 3.7vw, 1.35rem);
}
.btns {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.btn {
  padding: 16px 34px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  transition: 0.3s;
}
.btn.p {
  background: var(--gold);
  border-color: var(--gold);
  color: #12100a;
  font-weight: 500;
}
.btn.p:hover {
  background: #d8bc82;
}
.btn:hover {
  transform: translateY(-2px);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 0;
  margin-top: 64px;
  max-width: 820px;
}
.facts > div {
  padding: 0 32px;
  border-left: 1px solid var(--line);
}
.facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.facts dt {
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 2px;
}
.facts dd {
  margin: 0;
  color: #c4cedc;
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .facts > div {
    padding: 0 20px 0 0;
    border: 0;
    width: 100%;
  }
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.chip {
  padding: 6px 16px;
  border-radius: 0;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
h2 {
  font:
    400 clamp(2rem, 4.6vw, 2.8rem)/1.25 "Cormorant Garamond",
    "Noto Serif TC",
    serif;
  margin-bottom: 30px;
  letter-spacing: 0.01em;
}
h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin-top: 14px;
  background: var(--gold);
}
h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 30px;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.glass::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --s: 14px;
  --c: var(--gold);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--s) 1px,
    linear-gradient(var(--c), var(--c)) 0 0/1px var(--s),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--s) 1px,
    linear-gradient(var(--c), var(--c)) 100% 100%/1px var(--s);
  background-repeat: no-repeat;
  transition: 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.glass.hot::after {
  --s: 34px;
}
.lead {
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 24px;
  color: #d3dbe6;
}
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.skill h3 {
  color: #c3cfdf;
}
.skill p {
  color: var(--mute);
  font-size: 0.94rem;
}
.note {
  color: var(--mute);
  margin-bottom: 24px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s,
    border-color 0.4s,
    background 0.4s;
}
.card.hot {
  background: rgba(170, 190, 215, 0.08);
}
.card p {
  color: #b9c5d6;
  font-size: 0.94rem;
}
.stack {
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gold);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin-top: auto;
  padding-top: 20px;
  justify-content: flex-start;
}
.project-links .demo {
  margin-top: 0;
  text-decoration: none;
}
.project-links .project-open {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #12100a;
  font-weight: 500;
}
.project-links .project-open:hover {
  background: #d8bc82;
  border-color: #d8bc82;
}
.demo {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.76rem;
  padding: 2px 12px;
  border-radius: 0;
  color: var(--mute);
  border: 1px dashed var(--line);
}
.sub-h {
  font:
    400 1.5rem "Cormorant Garamond",
    "Noto Serif TC",
    serif;
  margin: 48px 0 18px;
  color: var(--gold);
}
.tl {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  display: grid;
  gap: 18px;
}
.tl .glass {
  position: relative;
}
.tl .glass::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 36px;
  width: 9px;
  height: 9px;
  border-radius: 0;
  transform: rotate(45deg);
  background: var(--bg);
  border: 1px solid var(--gold);
}
.role {
  color: var(--mute);
}
.date {
  color: var(--gold);
  font-size: 0.88rem;
  margin-top: 6px;
}
.contact a {
  display: inline-block;
  padding: 10px 6px;
  margin: -10px -6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  word-break: break-all;
  background: linear-gradient(var(--gold), var(--gold)) 0 100%/0 1px no-repeat;
  transition: background-size 0.4s;
}
.contact a:hover {
  background-size: 100% 1px;
}
.contact .glass span {
  display: block;
  color: var(--mute);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.more {
  margin-top: 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(201, 169, 106, 0.5);
  color: var(--gold);
  font:
    400 0.88rem "Noto Sans TC",
    sans-serif;
  padding: 10px 8px 4px;
  margin: 4px -8px -4px;
  cursor: pointer;
  transition: 0.3s;
}
.more::after {
  content: " +";
}
.more:hover {
  border-color: var(--gold);
  letter-spacing: 0.06em;
}
dialog {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
  margin: auto;
  max-width: min(560px, 92vw);
  width: 100%;
  overflow: visible;
}
dialog::backdrop {
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(8px);
}
dialog[open] {
  animation: pop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.mbox {
  background: #0b121d;
  border: 1px solid var(--line);
  padding: 38px 36px;
  position: relative;
}
.mbox::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --s: 26px;
  --c: var(--gold);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--s) 1px,
    linear-gradient(var(--c), var(--c)) 0 0/1px var(--s),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--s) 1px,
    linear-gradient(var(--c), var(--c)) 100% 100%/1px var(--s);
  background-repeat: no-repeat;
}
.mbox h3 {
  font:
    400 1.7rem/1.3 "Cormorant Garamond",
    "Noto Serif TC",
    serif;
  margin-bottom: 6px;
}
.mbox .mrole {
  color: var(--accent);
}
.mbox .mdate {
  color: var(--gold);
  font-size: 0.88rem;
  margin: 4px 0 20px;
}
.mbox ol {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-left: 1px solid var(--line);
}
.mbox li {
  padding: 2px 0 10px 18px;
  position: relative;
}
.mbox li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 11px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: #0b121d;
  border: 1px solid var(--gold);
}
.mbox p {
  color: var(--mute);
  font-size: 0.94rem;
}
.mx {
  padding: 10px 14px;
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: 0;
  color: var(--mute);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.3s;
}
.mx:hover {
  color: var(--gold);
}
footer {
  text-align: center;
  color: var(--mute);
  padding: 70px 24px 40px;
  font-size: 0.88rem;
}
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1s,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (max-width: 640px) {
  .brand b {
    display: none;
  }
  .bar {
    padding: 8px 12px;
  }
  nav a {
    padding: 8px 8px;
    font-size: 0.82rem;
  }
  nav a::after {
    left: 8px;
    right: 8px;
  }
  #lang {
    margin-left: 6px;
    padding: 5px 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}
header::after {
  display: none;
}
#prog {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--gold);
}

.brand:hover img {
  animation: wig 0.7s ease-in-out;
}
@keyframes wig {
  20% {
    transform: rotate(-14deg);
  }
  40% {
    transform: rotate(11deg);
  }
  60% {
    transform: rotate(-8deg);
  }
  80% {
    transform: rotate(4deg);
  }
}
.ch {
  padding: 0.12em 0.05em;
  margin: -0.12em -0.05em;
  display: inline-block;
  opacity: 0;
  animation: up 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 80ms + 250ms);
  transition:
    transform 0.35s cubic-bezier(0.3, 1.8, 0.4, 1),
    color 0.3s;
}
.ch.done {
  animation: none;
  opacity: 1;
}
.ch.done:hover {
  transform: translateY(-12px) rotate(-4deg);
  color: var(--gold);
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(70%) rotate(6deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.hi {
  opacity: 0;
  animation: fade 1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s;
}
.btn:hover::before {
  left: 130%;
}
h2.rv::after {
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s;
}
h2.rv.in::after {
  width: 56px;
}
.glass.in {
  transition:
    opacity 1s,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.4s;
}
.glass.in.hot {
  transform: perspective(900px) translateY(-5px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition:
    opacity 1s,
    transform 0.2s ease-out,
    background 0.4s;
}
.cue {
  position: absolute;
  left: 24px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mute);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-decoration: none;
}
.cue i {
  display: block;
  width: 1px;
  height: 46px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--gold);
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop {
  to {
    top: 110%;
  }
}
.hero {
  position: relative;
}
.tl {
  --p: 0;
}
.tl::before {
  content: none;
}
.mx {
  transition:
    transform 0.4s,
    color 0.3s;
}
.mx:hover {
  transform: rotate(90deg);
}
@media (prefers-reduced-motion: reduce) {
  .ch,
  .hi {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
.spot {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(125, 155, 205, 0.16),
    rgba(201, 169, 106, 0.04) 45%,
    transparent 68%
  );
}
.o1 {
  translate: 0 calc(var(--sy, 0) * -0.1px);
}
.o2 {
  translate: 0 calc(var(--sy, 0) * -0.18px);
}
.o3 {
  translate: 0 calc(var(--sy, 0) * -0.06px);
}
.grid > .rv:nth-child(odd):not(.in) {
  transform: translate(-30px, 22px);
}
.grid > .rv:nth-child(even):not(.in) {
  transform: translate(30px, 22px);
}
.spark {
  position: fixed;
  width: 3px;
  height: 3px;
  background: var(--gold);
  pointer-events: none;
  z-index: 100;
}
.stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
}
.contact a,
.contact .glass span,
.sel {
  -webkit-user-select: text;
  user-select: text;
}
.pcs {
  position: absolute;
  right: 5%;
  top: 22%;
  width: min(310px, 25vw);
  height: 340px;
  pointer-events: none;
}
.pc {
  position: absolute;
  color: var(--accent);
  opacity: 0.75;
  overflow: visible;
  --r: 0deg;
  animation: fl 9s ease-in-out infinite;
}
.pc .g {
  stroke: var(--gold);
}
.pc .gf {
  stroke: #d6b878;
  stroke-width: 0.9;
  stroke-linecap: butt;
  opacity: 1;
}
.pc {
  pointer-events: auto;
}
.pc path,
.pc rect,
.pc circle,
.pc line {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ln 2.8s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
}
.pc *:nth-child(3n) {
  animation-delay: 1.5s;
}
.pc *:nth-child(3n + 1) {
  animation-delay: 1.9s;
}
.pc *:nth-child(3n + 2) {
  animation-delay: 2.3s;
}
.pc .anc {
  stroke: none;
  animation: none;
}
.pc .led {
  fill: var(--gold);
  stroke: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: blink 3.2s ease-in-out infinite;
}
.pc .fan {
  transform-box: fill-box;
  transform-origin: center;
  animation: rot 16s linear infinite;
}
.gpu {
  top: 0;
  left: 0;
  width: 100%;
  --r: -3deg;
}
.cpu {
  top: 176px;
  left: 4%;
  width: 28%;
  --r: 5deg;
  animation-duration: 11s;
  animation-delay: -3s;
}
.ram {
  top: 204px;
  left: 40%;
  width: 60%;
  --r: -2deg;
  animation-duration: 10s;
  animation-delay: -6s;
}
@keyframes fl {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r));
  }
  50% {
    transform: translateY(-9px) rotate(calc(var(--r) + 1.5deg));
  }
}
@keyframes ln {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
@media (max-width: 1100px) {
  .pcs {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc path,
  .pc rect,
  .pc circle,
  .pc line {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}
