:root {
  --bg: #0c0a09;
  --bg-2: #151210;
  --ink: #f4eee8;
  --muted: #a3988e;
  --line: rgba(244, 238, 232, 0.12);
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.16);
  --max: 1120px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  position: relative;
}

.bg-shader {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

html.no-shader .bg-shader {
  display: none;
}

html.no-shader body {
  background:
    radial-gradient(900px 500px at 78% 8%, rgba(255, 90, 30, 0.14), transparent 55%),
    var(--bg);
}

main {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

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

::selection {
  background: var(--accent);
  color: #1a0c07;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #1a0c07;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.58);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: center;
  padding: 2.2rem 0 2.4rem;
}

.display {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  cursor: default;
}

.display em {
  display: block;
  margin-top: 0.18em;
  font-style: normal;
  font-size: 0.28em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  max-width: 22em;
  margin: 1.4rem 0 0;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 0.28rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0c07;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn:hover {
  color: #1a0c07;
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
  filter: none;
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(100%, 300px);
  cursor: pointer;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(255, 80, 20, 0.18);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-media:hover img {
  transform: scale(1.03);
}

.hero-media.is-erupt img {
  transform: scale(1.06);
  box-shadow: 0 8px 80px rgba(255, 90, 30, 0.55);
}

.hero-media figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.prose p {
  margin: 0 0 1.05rem;
  max-width: 62ch;
  color: #ddd4cb;
}

.roles {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.roles li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.roles strong {
  font-weight: 600;
}

.roles span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.quote {
  margin: 0 0 2.2rem;
  max-width: 24em;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0 0 2.4rem;
}

.stat {
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--accent);
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.community-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.community-notes p {
  margin: 0;
  color: #ddd4cb;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.shots figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}

.shots img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s var(--ease);
}

.shots figure:hover img {
  transform: scale(1.035);
}

.shots figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.shots-wide img {
  height: 280px;
}

.shots-street {
  grid-template-columns: repeat(4, 1fr);
}

.shots-street img {
  height: 260px;
}

.work-list {
  display: grid;
  gap: 0;
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(8rem, 0.4fr) minmax(0, 1.5fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.work:last-child {
  border-bottom: 1px solid var(--line);
}

.work h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work .kind {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work p {
  margin: 0;
  color: #d8cfc6;
  font-size: 0.98rem;
}

.work {
  transition: transform 0.25s var(--ease);
}

.work:hover h3,
.work:hover .kind {
  color: var(--accent);
}

.work:hover {
  transform: translateX(6px);
}

article.work {
  cursor: default;
}

article.work:hover {
  transform: none;
}

article.work:hover h3,
article.work:hover .kind {
  color: inherit;
}

.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.craft h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.craft p {
  margin: 0;
  color: #ddd4cb;
}

.along {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.along li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.along strong {
  font-weight: 600;
}

.along span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.sites {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.site {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.site:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.site img {
  height: 28px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.site-word {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site b {
  display: block;
  margin-top: 2.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.site span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-links {
  display: grid;
  gap: 0.55rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.contact-links a:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-links svg.contact-icon {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
}

.contact-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.icon-github,
.icon-bilibili,
.icon-xhs {
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.icon-github {
  -webkit-mask-image: url("./assets/icons/github.svg");
  mask-image: url("./assets/icons/github.svg");
}

.icon-bilibili {
  -webkit-mask-image: url("./assets/icons/bilibili.svg");
  mask-image: url("./assets/icons/bilibili.svg");
}

.icon-xhs {
  width: 40px;
  height: 18px;
  flex-basis: 40px;
  -webkit-mask-image: url("./assets/icons/xiaohongshu.svg");
  mask-image: url("./assets/icons/xiaohongshu.svg");
}

.contact-links small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer {
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.egg-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 50;
  transform: translateX(-50%) translateY(12px);
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 14, 12, 0.92);
  color: var(--ink);
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.egg-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s var(--ease) forwards;
}

.hero-copy { animation-delay: 0.05s; }
.hero-media { animation-delay: 0.16s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .contact-grid,
  .sites,
  .community-notes,
  .craft,
  .along {
    grid-template-columns: 1fr;
  }

  .shots-street {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 1.6rem;
    gap: 1.6rem;
  }

  .hero-media {
    justify-self: start;
    width: min(72vw, 280px);
    order: -1;
  }

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

  .work {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.15rem 0;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .nav-links {
    display: none;
    position: absolute;
    inset: var(--nav-h) 0 auto;
    background: #120f0d;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    font-size: 1.05rem;
    color: var(--ink);
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand small {
    display: none;
  }

  .section {
    padding: 3.4rem 0;
  }

  .shots:not(.shots-street) {
    grid-template-columns: 1fr;
  }

  .shots img,
  .shots-wide img,
  .shots-street img {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-shader { display: none; }
  .reveal,
  .btn,
  .site,
  .work,
  .shots img,
  .hero-media img {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: #0c0a09;
    backdrop-filter: none;
  }
}
