:root {
  --ink: #0b111a;
  --paper: #f4f0e8;
  --paper-2: #fbfaf6;
  --blue: #188ed1;
  --blue-bright: #56c6ff;
  --blue-dark: #052b48;
  --red: #ef4d48;
  --line: #161d27;
  --muted: #68717e;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: #fff;
  background: rgba(8, 15, 24, .97);
  border-bottom: 1px solid rgba(86, 198, 255, .46);
  backdrop-filter: blur(14px);
}
.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: baseline; text-decoration: none; font-weight: 900; letter-spacing: -.04em; }
.brand-main { font-size: 21px; }
.brand-sub { margin-left: 5px; color: var(--blue-bright); font-size: 14px; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 12px;
  color: #c9d3de;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: .18s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.nav-links .nav-github { margin-left: 6px; color: #fff; border-color: rgba(255,255,255,.3); }
.nav-links .nav-github:hover { color: var(--ink); background: var(--blue-bright); border-color: var(--blue-bright); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #071726;
  background-image:
    linear-gradient(97deg, rgba(6, 17, 30, .74) 0%, rgba(6, 17, 30, .50) 30%, rgba(6, 17, 30, .20) 58%, rgba(8, 124, 174, .08) 100%),
    url("./hero-bg.jpg");
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to right, transparent, #000 38%, #000);
}
.hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -230px;
  top: -280px;
  border: 88px solid rgba(255,255,255,.06);
  border-radius: 50%;
}
.hero-shell {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  min-height: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 50px;
  padding: 48px 0 44px;
}
.hero-copy { max-width: 670px; }
.eyebrow, .section-kicker {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
}
.eyebrow { display: flex; align-items: center; color: #bdeaff; }
.eyebrow span { width: 34px; height: 2px; margin-right: 12px; background: var(--blue-bright); }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero h1 em { color: var(--blue-bright); font-style: normal; text-shadow: 0 4px 0 rgba(0,0,0,.28), 0 2px 26px rgba(3, 10, 17, .6); }
.hero h1 { text-shadow: 0 2px 26px rgba(3, 10, 17, .6); }
.hero-copy .eyebrow { margin: 24px 0 0; font-size: 13px; }
.hero-intro { max-width: 620px; margin: 20px 0 0; color: #d3e2ec; font-size: 16px; line-height: 1.85; text-shadow: 0 1px 14px rgba(3, 10, 17, .55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(5, 12, 18, .72);
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 rgba(5, 12, 18, .72); }
.button svg { width: 19px; height: 19px; fill: currentColor; }
.button-primary { color: #fff; background: var(--blue); }
.button-light { color: var(--ink); background: #fff; }
.hero-status { display: flex; align-items: center; gap: 9px; margin: 16px 0 0; color: #c3d5e0; font-size: 12px; text-shadow: 0 1px 10px rgba(3, 10, 17, .5); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #55e99a; box-shadow: 0 0 0 5px rgba(85,233,154,.11); }

.hero-art { position: relative; min-height: 400px; isolation: isolate; }
.art-photo {
  position: absolute;
  z-index: 3;
  top: 44px;
  right: 26px;
  width: min(320px, 76%);
  margin: 0;
  padding: 12px 12px 10px;
  background: #fdfbf6;
  border: 2px solid var(--ink);
  box-shadow: 18px 18px 0 rgba(2, 19, 31, .38);
  transform: rotate(-2.4deg);
}
.art-photo img { display: block; width: 100%; height: auto; }
.art-photo figcaption { padding: 10px 2px 4px; color: #57606b; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-align: center; }
.art-star { position: absolute; z-index: 5; left: 54px; top: 38px; font-size: 50px; color: var(--blue-bright); transform: rotate(16deg); }
.orbit { position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.orbit-one { width: 270px; height: 270px; right: 62px; top: 70px; }
.orbit-two { width: 360px; height: 120px; right: 15px; top: 145px; transform: rotate(-22deg); }

.projects-section {
  padding: 104px 0 116px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(11,17,26,.09) .8px, transparent .9px);
  background-size: 10px 10px;
}
.section-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section-kicker { color: var(--red); }

.category-block + .category-block { margin-top: 84px; }
.category-head { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; }
.category-title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: .02em; }
.category-sub { color: var(--red); font-size: 11px; font-weight: 1000; letter-spacing: .22em; transform: translateY(1px); }
.category-rule { flex: 1; border-top: 2px solid var(--line); }
.category-count { padding: 4px 10px; color: #fff; background: var(--red); border: 2px solid var(--line); box-shadow: 3px 3px 0 rgba(11,17,26,.16); font-size: 11px; font-weight: 1000; letter-spacing: .14em; }
.category-count-soon { color: var(--ink); background: var(--blue-bright); }

.article-placeholder { position: relative; background: var(--paper-2); border: 2px solid var(--line); box-shadow: 10px 10px 0 rgba(11,17,26,.16); }
.article-placeholder-inner { margin: 18px; padding: 84px 32px; border: 2px dashed #c3c9d1; text-align: center; }
.article-placeholder-kicker { margin: 0 0 18px; color: var(--red); font-size: 11px; font-weight: 1000; letter-spacing: .22em; }
.article-placeholder h3 { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.015em; }
.article-placeholder p { max-width: 460px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 2; letter-spacing: .02em; }
.article-placeholder-tag { display: inline-block; margin-top: 26px; padding: 8px 14px; color: var(--ink); background: var(--blue-bright); font-size: 12px; font-weight: 1000; letter-spacing: .1em; transform: rotate(-2deg); box-shadow: 4px 4px 0 rgba(11,17,26,.2); }

.project-card { position: relative; background: var(--paper-2); border: 2px solid var(--line); box-shadow: 10px 10px 0 rgba(11,17,26,.16); }
.project-label { position: absolute; z-index: 2; top: -22px; left: 22px; padding: 12px 20px 11px; color: #fff; background: var(--red); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--line); font-size: 12px; font-weight: 1000; letter-spacing: .12em; }
.project-main { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 430px; }
.project-copy { padding: 72px 54px 50px; border-right: 2px solid var(--line); }
.project-no { margin: 0 0 20px; color: var(--red); font-size: 11px; font-weight: 1000; letter-spacing: .18em; }
.project-copy h3 { margin: 0 0 22px; font-size: clamp(36px, 4vw, 55px); line-height: 1.1; letter-spacing: -.025em; }
.project-copy > p:not(.project-no) { max-width: 520px; margin: 0; color: #596270; font-size: 14px; line-height: 1.95; letter-spacing: .02em; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.project-tags span { padding: 7px 10px; background: #fff; border: 1px solid var(--line); font-size: 11px; font-weight: 800; }
.project-actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.text-link { padding-bottom: 4px; font-size: 14px; font-weight: 1000; text-decoration: none; border-bottom: 2px solid currentColor; }
.text-link:hover { color: var(--blue); }
.muted-link { color: #6a727e; }
.project-data { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 70px 46px 42px; overflow: hidden; background: #e8edf1; font-variant-numeric: tabular-nums; }
.project-data::before { content: "DATA"; position: absolute; right: -18px; bottom: -32px; color: rgba(11,17,26,.045); font-size: 150px; font-weight: 1000; letter-spacing: -.08em; }
.data-head { position: relative; z-index: 1; display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--line); font-size: 10px; font-weight: 1000; letter-spacing: .14em; }
.live { display: flex; align-items: center; gap: 7px; }
.live i { width: 7px; height: 7px; background: #17af6d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(23,175,109,.13); }
.metric-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid #aeb6bf; border-top: 1px solid #aeb6bf; margin-top: 22px; }
.metric-grid > div { min-height: 94px; padding: 17px; background: rgba(255,255,255,.58); border-right: 1px solid #aeb6bf; border-bottom: 1px solid #aeb6bf; }
.metric-grid small, .top-model small { display: block; margin-bottom: 9px; color: #69727d; font-size: 11px; }
.metric-grid strong { font-size: clamp(21px, 2.6vw, 32px); letter-spacing: -.04em; }
.top-model { position: relative; z-index: 1; margin-top: 14px; padding: 15px 17px; color: #fff; background: var(--ink); }
.top-model small { color: #aeb9c5; }
.top-model strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.data-updated { position: relative; z-index: 1; margin: 14px 0 0; color: #66717d; font-size: 11px; }

.about-section { padding: 40px 0; color: #fff; background: var(--ink); border-top: 8px solid var(--blue); }
.about-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.about-section .section-kicker { color: var(--blue-bright); margin-bottom: 14px; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 56px; }
.about-grid h2 { max-width: 700px; margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
.about-grid p { margin: 0 0 14px; color: #adb8c5; font-size: 15px; line-height: 1.75; }
.about-avatar {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--blue-bright);
  box-shadow: 0 0 0 7px rgba(86, 198, 255, .16);
}
.about-grid > div:last-child { display: flex; align-items: center; gap: 22px; }
.about-grid a { color: var(--blue-bright); font-size: 14px; font-weight: 900; text-decoration: none; border-bottom: 2px solid currentColor; }

.site-footer { width: min(var(--max), calc(100% - 40px)); min-height: 112px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.site-footer div { display: flex; align-items: baseline; gap: 10px; }
.site-footer strong { font-size: 16px; }
.site-footer div span, .site-footer p { color: #767e87; font-size: 11px; }
.site-footer p span { margin-left: 18px; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-shell { grid-template-columns: 1fr; min-height: auto; padding-top: 56px; }
  .hero-copy { max-width: 760px; }
  .hero-art { min-height: 440px; }
  .art-photo { top: 36px; right: auto; left: 50%; transform: translateX(-50%) rotate(-2.4deg); }
  .project-main, .about-grid { grid-template-columns: 1fr; }
  .project-copy { border-right: 0; border-bottom: 2px solid var(--line); }
  .about-grid { gap: 36px; }
  .about-grid > div { max-width: 600px; }
}

@media (max-width: 660px) {
  html { scroll-padding-top: 60px; }
  .nav-shell { width: min(100% - 24px, var(--max)); height: 60px; }
  .brand-main { font-size: 18px; }
  .brand-sub { font-size: 12px; }
  .nav-links { gap: 1px; overflow-x: auto; }
  .nav-links a { padding: 8px; font-size: 12px; }
  .nav-links a:nth-child(3), .nav-links a:nth-child(4) { display: none; }
  .nav-links .nav-github { margin-left: 2px; }
  .hero-shell, .section-shell, .about-shell, .site-footer { width: min(100% - 28px, var(--max)); }
  .hero-shell { gap: 28px; padding: 44px 0 46px; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .hero-intro { font-size: 14px; }
  .button { width: 100%; }
  .hero-art { min-height: 360px; }
  .art-photo { top: 30px; width: min(250px, 84%); }
  .orbit-two { display: none; }
  .projects-section { padding: 80px 0 88px; }
  .category-block + .category-block { margin-top: 60px; }
  .category-head { gap: 10px; margin-bottom: 22px; }
  .article-placeholder-inner { margin: 12px; padding: 56px 18px; }
  .project-label { left: 14px; }
  .project-copy { padding: 64px 24px 36px; }
  .project-data { padding: 40px 20px 30px; }
  .metric-grid strong { font-size: 21px; }
  .about-section { padding: 32px 0; }
  .site-footer { min-height: 138px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 12px; }
  .site-footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
