:root {
  color-scheme: dark;
  --bg: #06080d;
  --bg-soft: #0a0f1a;
  --panel: #0f1724;
  --panel-strong: #121d2f;
  --text: #eef6ff;
  --muted: #8fa3b8;
  --line: rgba(125, 227, 255, 0.16);
  --accent: #32d7ff;
  --accent-strong: #7c5cff;
  --accent-warm: #ff4fd8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.site-bg {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(125, 227, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 227, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(50, 215, 255, 0.18), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(124, 92, 255, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(5, 7, 12, 0.86), rgba(8, 17, 31, 0.78) 48%, rgba(5, 7, 12, 0.90)),
    url('/assets/img/site-background.jpg');
  background-size: 44px 44px, 44px 44px, auto, auto, auto, cover;
  background-position: center;
  transform: translateZ(0);
  will-change: transform;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header, main, .site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(5, 7, 12, 0.82);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #031018;
  background: linear-gradient(135deg, var(--accent), #d5f8ff);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(50, 215, 255, 0.42);
}
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 15px; }
.site-nav a:hover { color: var(--accent); }

.section-band {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
}
.section-narrow { width: min(920px, calc(100% - 40px)); }

#about { padding-top: 48px; }

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 860px);
  align-items: center;
  gap: clamp(36px, 7vw, 84px);
  padding-top: 42px;
}
.hero-copy h1 {
  margin: 10px 0 18px;
  max-width: 980px;
  color: var(--text);
  font-size: clamp(52px, 9vw, 116px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(50, 215, 255, 0.16);
}
.lead { max-width: 760px; margin-left: auto; margin-right: auto; color: #b5c7d9; font-size: 20px; }
.lead.small { font-size: 18px; }
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}
.button.primary {
  color: #031018;
  background: linear-gradient(135deg, var(--accent), #bdf4ff);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(50, 215, 255, 0.22);
}
.button.secondary {
  color: var(--text);
  background: rgba(15, 23, 36, 0.74);
}
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
.row-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.muted { color: var(--muted); max-width: 420px; margin: 0; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 34px;
  align-items: center;
}
.about-grid > p { margin: 0; font-size: 18px; color: #b5c7d9; }
.fact-list { margin: 0; display: grid; gap: 12px; }
.fact-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); }
dd { margin: 0; color: var(--text); font-weight: 800; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.work-card {
  background: linear-gradient(180deg, rgba(18, 29, 47, 0.88), rgba(10, 15, 26, 0.92));
  border: 1px solid rgba(125, 227, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #05070c;
  border-bottom: 1px solid rgba(50, 215, 255, 0.18);
}
.work-card-body { padding: 20px; }
.work-card h3 { margin: 6px 0 8px; font-size: 22px; line-height: 1.25; }
.work-card p { margin: 0; color: var(--muted); }
.tag { color: var(--accent) !important; font-size: 13px; font-weight: 900; }

.timeline { display: grid; gap: 18px; }
.timeline article {
  padding: 0 0 22px 26px;
  border-left: 2px solid var(--accent);
}
.timeline time { color: var(--muted); font-size: 14px; }
.timeline h3 { margin: 4px 0 6px; font-size: 22px; }
.timeline p { margin: 0; color: var(--muted); }

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.contact-section h2 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 48px); }
.contact-links { display: grid; gap: 12px; }
.contact-links a {
  display: block;
  padding: 16px 18px;
  background: rgba(15, 23, 36, 0.82);
  border: 1px solid rgba(125, 227, 255, 0.14);
  border-radius: 8px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.contact-links a:hover { border-color: rgba(50, 215, 255, 0.42); color: var(--accent); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: rgba(5, 7, 12, 0.92);
  border-top: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 900;
}
.text-link:hover { color: #d5f8ff; text-decoration: underline; }
.work-card h3 a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 14px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 48px; }
  .row-heading, .about-grid, .contact-section { grid-template-columns: 1fr; display: grid; }
  .work-grid { grid-template-columns: 1fr; }
  .section-band { width: min(100% - 32px, 1120px); padding: 54px 0; }
  .site-footer { flex-direction: column; }
}
