:root {
  --bg: #0c0b09;
  --bg-soft: #141210;
  --ink: #f3ece3;
  --muted: #a89d90;
  --line: rgba(243, 236, 227, 0.12);
  --accent: #e8c07a;
  --accent-2: #c45c26;
  --green: #8fbf7a;
  --serif: "Noto Serif SC", "Instrument Serif", Georgia, serif;
  --sans: "Noto Sans SC", "Syne", system-ui, sans-serif;
  --display: "Syne", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.cursor, .cursor-dot {
  display: none;
}

@media (pointer: fine) {
  .cursor, .cursor-dot { display: block; }
  body { cursor: none; }
  a, button { cursor: none; }
}

.cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 80;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s;
}

.cursor.grow {
  width: 64px;
  height: 64px;
  background: rgba(232, 192, 122, 0.08);
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 81;
  transform: translate(-50%, -50%);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 36px;
  mix-blend-mode: difference;
}

.nav-mark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav-meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(143, 191, 122, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(143, 191, 122, 0); }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 28px;
  height: 18px;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 6px 0;
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 100vh;
  padding: 120px 36px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-name-en {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 12vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.hero-name-zh {
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 64px);
  font-weight: 500;
  color: var(--accent);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  max-width: 1100px;
}

.hero-lead {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.5;
  max-width: 28ch;
}

.hero-roles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-roles span {
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  right: 36px;
  bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  color: var(--muted);
}

.section {
  padding: 120px 36px;
  border-top: 1px solid var(--line);
}

.section-index {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
}

.about h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.25;
  font-weight: 500;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 48ch;
}

.facts {
  list-style: none;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.facts li {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.facts span { color: var(--muted); }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 28s linear infinite;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.project {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.project.reverse { grid-template-columns: 0.85fr 1.15fr; }
.project.reverse .project-visual { order: 2; }

.project-visual {
  min-height: 320px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 220px;
  height: 220px;
  right: 12%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0d7a2, #c45c26 55%, #1a120c 80%);
  filter: blur(1px);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
}

.v2 .bars {
  position: absolute;
  inset: 40px;
  background: repeating-linear-gradient(
    90deg,
    rgba(232, 192, 122, 0.15) 0 18px,
    transparent 18px 36px
  );
}

.v2 .bars::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 20%;
  width: 46%;
  height: 46%;
  background: var(--accent-2);
  opacity: 0.75;
}

.ring {
  position: absolute;
  inset: 18%;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.ring.delay {
  inset: 28%;
  border-color: var(--accent-2);
}

.type-stack {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 120px;
  color: var(--accent);
}

.project-year {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.project h3 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 14px;
}

.project-body p {
  color: var(--muted);
  max-width: 42ch;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.tags span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--muted);
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.now-card {
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 220px;
  background: linear-gradient(180deg, rgba(243,236,227,0.03), transparent);
}

.now-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 14px;
}

.now-card p { color: var(--muted); }

.contact-title {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.15;
  font-weight: 500;
}

.mail {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
}

.socials {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 36px 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
    mix-blend-mode: normal;
    background: rgba(12, 11, 9, 0.7);
    backdrop-filter: blur(12px);
  }
  .nav-links, .nav-meta { display: none; }
  .nav-toggle { display: block; }

  .mobile-menu.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 28px;
    font-family: var(--serif);
    font-size: 36px;
  }

  .hero-bottom, .about-grid, .project, .project.reverse, .now-grid {
    grid-template-columns: 1fr;
  }
  .project.reverse .project-visual { order: 0; }
  .hero-roles { justify-content: flex-start; }
  .scroll-hint { display: none; }
  .section { padding: 88px 22px; }
  .hero { padding: 110px 22px 48px; }
}
