:root {
  --ink: #070809;
  --paper: #f7f3e8;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.2);
  --accent: #ffc857;
  --accent-2: #7fd8be;
  --accent-3: #ff8d9a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--ink);
}

body {
  margin: 0;
  color: #ffffff;
  font-family: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.video-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.62), rgba(7, 8, 9, 0.42) 46%, rgba(7, 8, 9, 0.78));
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem max(1.5rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 8, 9, 0.38);
  backdrop-filter: blur(14px);
  transition: background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 8, 9, 0.74);
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.top-nav a {
  padding: 0.5rem 0.72rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.dot-nav {
  position: fixed;
  top: 50%;
  right: 1.35rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  transform: translateY(-50%);
}

.dot-nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  text-decoration: none;
}

.dot-nav a::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.dot-nav a.is-active::before {
  width: 1.25rem;
  height: 0.34rem;
  border-radius: 999px;
  background: var(--accent);
}

.dot-nav a::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: 2.5rem;
  white-space: nowrap;
  padding: 0.32rem 0.58rem;
  border-radius: 5px;
  color: #ffffff;
  background: rgba(7, 8, 9, 0.78);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dot-nav a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.scroll-shell {
  position: relative;
  z-index: 1;
}

.panel {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 7rem max(1.5rem, calc((100vw - 1180px) / 2)) 4rem;
  scroll-snap-align: start;
}

.panel-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.panel-home {
  justify-content: center;
  text-align: center;
}

.home-inner {
  max-width: 920px;
  padding-bottom: 3.5rem;
}

.kicker {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.name {
  margin: 0;
  font-size: 6.5rem;
  font-weight: 800;
  line-height: 0.95;
}

.tagline {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.cue {
  position: relative;
  display: block;
  width: 1px;
  height: 4rem;
  margin: 3rem auto 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.cue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48%;
  background: var(--accent);
  animation: cue-move 1.8s ease-in-out infinite;
}

@keyframes cue-move {
  0% {
    transform: translateY(-110%);
  }
  100% {
    transform: translateY(230%);
  }
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-no {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
}

.section-head h2 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.section-rule {
  align-self: center;
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 4rem;
  align-items: start;
}

.about-main h3,
.skills-panel h3 {
  margin: 0 0 1.2rem;
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 700;
}

.placeholder-copy {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-2);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.9;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.fact dt {
  color: var(--faint);
  font-size: 0.9rem;
}

.fact dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

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

.award-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 2rem;
  align-items: baseline;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.award-link {
  position: relative;
  padding-right: 3.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.award-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.award-link::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.award-link:hover::after,
.award-link:focus-visible::after {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.award-link:focus-visible,
.project-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.award-index {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
}

.award-body h3,
.timeline h3 {
  margin: 0 0 0.45rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.award-body p,
.timeline p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 1rem;
}

.award-note,
.role-note {
  color: var(--faint);
  font-size: 0.9rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2.5rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--accent-2);
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  min-height: 12rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 8, 9, 0.28);
  backdrop-filter: blur(6px);
}

.project-link {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.project-link:hover {
  border-color: rgba(255, 200, 87, 0.65);
  background: rgba(7, 8, 9, 0.42);
  transform: translateY(-3px);
}

.project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}

.project-card-head .project-meta {
  margin-bottom: 0;
}

.project-meta {
  margin-bottom: 2.2rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.play-badge {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.play-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  border-top: 0.4rem solid transparent;
  border-bottom: 0.4rem solid transparent;
  border-left: 0.65rem solid #ffffff;
  transform: translate(-50%, -50%);
}

.project-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.skills-panel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.skills-panel h3 {
  margin: 0;
  white-space: nowrap;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-tags li {
  padding: 0.45rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem max(1.5rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--faint);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 8, 9, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.media-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  display: grid;
  place-items: center;
  max-width: min(1100px, 96vw);
  max-height: 88svh;
}

.modal-media {
  display: none;
  max-width: 100%;
  max-height: 84svh;
  border-radius: 8px;
  background: #000000;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.modal-media.is-active {
  display: block;
}

.modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--ink);
}

body.is-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

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

  .skills-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .skill-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .top-nav {
    gap: 0.1rem;
  }

  .top-nav a {
    padding: 0.45rem 0.48rem;
    font-size: 0.76rem;
  }

  .dot-nav {
    right: 0.55rem;
    gap: 0.85rem;
  }

  .dot-nav a::after {
    display: none;
  }

  .panel {
    padding: 6rem 1.25rem 3rem;
  }

  .name {
    font-size: 3.6rem;
  }

  .section-head {
    gap: 0.7rem;
    margin-bottom: 2.2rem;
  }

  .section-head h2 {
    font-size: 2.1rem;
  }

  .placeholder-copy {
    font-size: 1.08rem;
  }

  .award-row,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.35rem 0;
  }

  .award-link {
    padding-right: 3rem;
  }

  .award-index {
    font-size: 1.1rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .modal-close {
    top: 0.7rem;
    right: 0.7rem;
    width: 2.7rem;
    height: 2.7rem;
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  .name {
    font-size: 4rem;
  }

  .panel {
    padding-top: 5.5rem;
  }
}

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

  .cue::before {
    animation: none;
  }
}
