:root {
  color-scheme: dark;
  --bg: #050711;
  --bg-deep: #03050d;
  --surface: rgba(12, 16, 32, 0.82);
  --surface-soft: rgba(13, 18, 37, 0.58);
  --border: rgba(148, 163, 220, 0.18);
  --border-strong: rgba(148, 163, 220, 0.28);
  --text: #f7f7fb;
  --muted: #9499ac;
  --muted-strong: #b8bccb;
  --blue: #4f6fff;
  --violet: #8b5cf6;
  --accent-gradient: linear-gradient(110deg, #506cff 0%, #8a5cf5 100%);
  --container: 1280px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 69% 9%, rgba(54, 68, 195, 0.12), transparent 27rem),
    radial-gradient(circle at 6% 52%, rgba(27, 50, 113, 0.13), transparent 36rem),
    var(--bg);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(122, 139, 210, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 139, 210, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.25) 78%, transparent);
  content: "";
  pointer-events: none;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--bg);
  background: var(--text);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-shell {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), 1024px);
  min-height: 76px;
  padding: 10px 16px 10px 28px;
  margin: 20px auto 0;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(8, 11, 24, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border-strong);
  background: rgba(7, 10, 22, 0.9);
}

.brand,
.footer-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(132, 144, 212, 0.22);
  border-radius: 12px;
  color: #9e9bff;
  background: linear-gradient(145deg, rgba(84, 105, 255, 0.14), rgba(139, 92, 246, 0.08));
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 14px 19px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.site-nav a::after {
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-gradient);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scaleX(0.45);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(86, 102, 180, 0.08);
}

.site-nav a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(24, 30, 55, 0.65);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--text);
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.25px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
  gap: 24px;
  align-items: center;
  min-height: calc(100svh - 116px);
  padding-block: 88px 118px;
}

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

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(54px, 5.4vw, 82px);
  font-weight: 830;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 span,
.section-heading h2 span,
.about h2 span {
  color: transparent;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy > p {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 680;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button svg,
.text-link svg,
.row-action svg,
.record-row > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

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

.button-primary {
  color: white;
  background: var(--accent-gradient);
  box-shadow: 0 16px 38px rgba(84, 91, 255, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 20px 48px rgba(84, 91, 255, 0.32);
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(8, 11, 24, 0.58);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(128, 119, 255, 0.52);
}

.hero-art {
  position: relative;
  z-index: 1;
  width: 108%;
  margin-left: -3%;
}

.hero-art::before {
  position: absolute;
  inset: 14% 6% 10% 8%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(63, 72, 234, 0.15);
  filter: blur(80px);
  content: "";
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.96) contrast(1.03);
  mask-image: radial-gradient(ellipse 78% 72% at center, black 48%, transparent 100%);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(
    ellipse 78% 72% at center,
    black 48%,
    transparent 100%
  );
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transform: translateX(-50%);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  border-color: rgba(128, 119, 255, 0.52);
  color: #aaa8ff;
}

.scroll-cue svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  animation: cue 2.4s ease-in-out infinite;
}

.projects,
.records,
.about {
  padding-block: 112px;
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(42px, 4.2vw, 64px);
  font-weight: 810;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-heading > p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-heading::after,
.about h2::after {
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--accent-gradient);
  content: "";
}

.featured-project {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  height: 400px;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 81% 26%, rgba(78, 89, 224, 0.12), transparent 28rem),
    rgba(8, 11, 24, 0.58);
  box-shadow: var(--shadow);
}

.featured-project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 52px;
}

.project-index {
  color: #8982ff;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 16px;
  font-weight: 740;
}

.featured-project h3 {
  margin: 38px 0 12px;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -0.035em;
}

.featured-project p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  margin-top: auto;
  border-bottom: 1px solid #736dfa;
  color: #aaa8ff;
  font-weight: 660;
}

.text-link svg,
.row-action svg {
  transition: transform 180ms ease;
}

.text-link:hover svg,
.text-link:focus-visible svg,
.project-row:hover .row-action svg,
.project-row:focus-visible .row-action svg {
  transform: translateX(4px);
}

.featured-project-art {
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
}

.featured-project-art img {
  width: 110%;
  height: 100%;
  max-width: none;
  margin-left: -10%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.project-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.project-row,
.record-row {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.project-row {
  display: grid;
  grid-template-columns: 64px minmax(130px, 0.5fr) minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 106px;
  padding: 24px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(8, 11, 24, 0.52);
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform 200ms ease;
}

.project-row:hover,
.project-row:focus-visible {
  border-color: rgba(128, 119, 255, 0.38);
  background: rgba(15, 19, 39, 0.8);
  transform: translateY(-2px);
}

.project-row strong {
  font-size: 21px;
}

.project-row > span:nth-child(3) {
  color: var(--muted);
}

.row-action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #9b97ff;
  font-size: 14px;
}

.records {
  padding-top: 148px;
}

.record-list {
  border-top: 1px solid var(--border);
}

.record-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 100px 24px;
  gap: 26px;
  align-items: center;
  min-height: 116px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition:
    color 180ms ease,
    padding 180ms ease,
    background 180ms ease;
}

.record-row:hover,
.record-row:focus-visible {
  padding-inline: 22px;
  background: rgba(69, 79, 155, 0.055);
}

.record-row strong {
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -0.02em;
}

.record-row time {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.record-row > svg {
  color: #8982ff;
}

.record-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 18px rgba(101, 99, 255, 0.62);
}

.about {
  padding-top: 80px;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 81% 42%, rgba(69, 77, 207, 0.13), transparent 28rem),
    rgba(8, 11, 24, 0.58);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px;
}

.about-copy p {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.9;
}

.orbit-art {
  display: grid;
  place-items: center;
  color: rgba(115, 111, 251, 0.46);
}

.orbit-art svg {
  width: min(92%, 460px);
  filter: drop-shadow(0 18px 38px rgba(65, 74, 239, 0.18));
}

.orbit-art ellipse {
  stroke-width: 1;
}

.site-footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 42px;
  align-items: center;
  padding-block: 34px 52px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-size: 20px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
}

.site-footer nav a,
.compliance a {
  transition: color 180ms ease;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.compliance a:hover,
.compliance a:focus-visible {
  color: var(--text);
}

.compliance {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
}

.detail-dialog {
  width: min(calc(100% - 36px), 560px);
  padding: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(72, 83, 222, 0.15), transparent 20rem),
    #090c19;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

.detail-dialog::backdrop {
  background: rgba(1, 3, 9, 0.72);
  backdrop-filter: blur(9px);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(20, 25, 46, 0.66);
  cursor: pointer;
}

.dialog-close svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.dialog-label {
  margin: 0 0 18px;
  color: #9590ff;
  font-size: 13px;
}

.detail-dialog h2 {
  margin: 0;
  font-size: 30px;
}

.detail-dialog > p:last-of-type {
  margin: 20px 0 32px;
  color: var(--muted-strong);
  line-height: 1.8;
}

.detail-dialog form {
  display: flex;
  justify-content: flex-end;
}

.detail-dialog .button {
  min-height: 48px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
}

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

@keyframes cue {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 112px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    width: 100%;
    max-width: 780px;
    margin: -30px auto 0;
  }

  .scroll-cue {
    display: none;
  }

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

  .featured-project-art {
    max-height: 360px;
  }

  .featured-project-art img {
    width: 100%;
    height: auto;
    margin: -11% 0;
  }

  .project-row {
    grid-template-columns: 54px 150px minmax(0, 1fr);
  }

  .row-action {
    grid-column: 2 / -1;
  }

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

  .compliance {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 92px;
  }

  .section-shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 62px;
    padding: 8px 10px 8px 16px;
    margin-top: 12px;
    border-radius: 20px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    visibility: hidden;
    background: rgba(8, 11, 24, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
    backdrop-filter: blur(22px);
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 16px;
    text-align: center;
  }

  .hero {
    gap: 42px;
    padding-block: 88px 72px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .hero-copy > p {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 32px;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    margin-top: -10px;
  }

  .projects,
  .records,
  .about {
    padding-block: 80px;
  }

  .records {
    padding-top: 98px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .about h2 {
    font-size: 40px;
  }

  .featured-project {
    min-height: 0;
    border-radius: 22px;
  }

  .featured-project-copy {
    min-height: 330px;
    padding: 32px 26px;
  }

  .featured-project h3 {
    margin-top: 30px;
    font-size: 42px;
  }

  .featured-project-art {
    max-height: 250px;
  }

  .project-row {
    grid-template-columns: 38px 1fr;
    gap: 12px 16px;
    min-height: 0;
    padding: 24px 20px;
  }

  .project-row > span:nth-child(3) {
    grid-column: 2;
    line-height: 1.7;
  }

  .row-action {
    grid-column: 2;
    margin-top: 6px;
  }

  .record-row {
    grid-template-columns: 12px minmax(0, 1fr) 20px;
    gap: 15px;
    min-height: 100px;
    padding: 20px 4px;
  }

  .record-row time {
    grid-column: 2;
    grid-row: 2;
  }

  .record-row > svg {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .record-row:hover,
  .record-row:focus-visible {
    padding-inline: 10px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .about-copy {
    padding: 36px 26px 0;
  }

  .orbit-art {
    min-height: 240px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 36px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .compliance {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .detail-dialog {
    padding: 34px 26px 28px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
