:root {
  --bg: #0b0d14;
  --bg-2: #11182b;
  --panel: #121725;
  --text: #f4f7ff;
  --muted: rgba(244, 247, 255, 0.66);
  --line: rgba(244, 247, 255, 0.16);
  --blue: #5a88ff;
  --blue-2: #7ea6ff;
  --red: #ff4e45;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 22%, rgba(90,136,255,.2), transparent 22%),
    radial-gradient(circle at 82% 74%, rgba(255,78,69,.16), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

a { color: inherit; text-decoration: none; }

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: #05060a;
  transition: opacity .65s ease, visibility .65s ease;
}
.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-core {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.loading-box {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  background: linear-gradient(180deg, rgba(90,136,255,.22), rgba(255,255,255,.04));
  font-family: "Instrument Serif", serif;
  font-size: 2.6rem;
}
.loading-slash {
  width: 110px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--red), transparent);
  transform: skewX(-42deg);
}
.loading-core p {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(244,247,255,.72);
}

.page-shell {
  width: min(var(--max), calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 80px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px 0 24px;
}
.brand,
.nav {
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand { color: rgba(244,247,255,.86); }
.nav {
  display: flex;
  gap: 16px;
  color: rgba(244,247,255,.62);
}
.nav a:hover { color: #fff; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(12px, 3vw, 40px) 0 clamp(40px, 6vw, 88px);
}
.hero-left,
.hero-right,
.section-head,
.identity-strip,
.project-list,
.contact-link { position: relative; z-index: 1; }
.eyebrow,
.panel-label,
.section-index {
  margin: 0;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,247,255,.6);
}
.hero-code {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(244,247,255,.14);
  background: rgba(255,255,255,.04);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(244,247,255,.74);
}
.hero-left h1,
.section-head h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.04em;
}
.hero-left h1 {
  margin-top: 12px;
  font-size: clamp(4.8rem, 10vw, 9rem);
}
.hero-left h1 span {
  display: block;
  color: var(--blue-2);
}
.hero-left h1 em {
  display: block;
  font-style: normal;
  color: rgba(244,247,255,.92);
}
.lede {
  max-width: 30rem;
  margin: 20px 0 0;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(244,247,255,.78);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.button.primary {
  background: linear-gradient(180deg, var(--blue), #3f6ff3);
  color: #fff;
}
.button.ghost {
  border-color: rgba(244,247,255,.24);
  color: #fff;
}

.hero-right {
  position: relative;
  display: grid;
  gap: 16px;
}
.hero-panel {
  border: 1px solid rgba(244,247,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-panel-main {
  min-height: 292px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-panel-main::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 84px;
  height: 84px;
  border-top: 2px solid rgba(244,247,255,.14);
  border-right: 2px solid rgba(244,247,255,.14);
  transform: skew(-18deg);
}
.hero-panel-main strong {
  margin-top: 12px;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: .98;
}
.hero-panel-sub {
  min-height: 120px;
  padding: 18px;
}
.hero-panel-sub p {
  margin: 10px 0 0;
  line-height: 1.62;
  color: rgba(244,247,255,.76);
}
.hero-panel-sub.blue {
  background: linear-gradient(180deg, rgba(90,136,255,.22), rgba(255,255,255,.04));
}
.hero-panel-sub.dark {
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(255,255,255,.02));
}
.hero-diagonal {
  position: absolute;
  right: -8px;
  top: -16px;
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: rotate(-35deg);
  box-shadow: 0 0 22px rgba(90,136,255,.4);
}

.section {
  padding: clamp(58px, 7vw, 88px) 0;
  border-top: 1px solid rgba(244,247,255,.08);
}
.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
}
.identity-strip,
.project-list {
  display: grid;
  gap: 14px;
}
.identity-strip {
  grid-template-columns: repeat(3, 1fr);
}
.identity-strip p,
.project-list article p {
  margin: 0;
  color: rgba(244,247,255,.8);
  line-height: 1.68;
}
.identity-strip p,
.project-list article {
  padding: 18px;
  border: 1px solid rgba(244,247,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.project-list {
  grid-template-columns: 1.18fr 1fr 1fr;
}
.project-card {
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 44px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
.project-card strong {
  display: block;
  margin-top: 12px;
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244,247,255,.9);
}
.project-card.featured-card {
  background: linear-gradient(180deg, rgba(90,136,255,.18), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}
.project-card.dark-card {
  background: linear-gradient(180deg, rgba(0,0,0,.36), rgba(255,255,255,.03));
}
.project-card.accent-card {
  background: linear-gradient(180deg, rgba(255,78,69,.12), rgba(255,255,255,.04));
}
.project-list article span {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244,247,255,.62);
}
.contact-link {
  display: inline-flex;
  font-size: 1rem;
  color: rgba(244,247,255,.8);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .72s ease, transform .72s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .identity-strip,
  .project-list { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}

@media (max-width: 720px) {
  .page-shell { width: min(var(--max), calc(100vw - 20px)); }
  .topbar { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .hero-left h1 { font-size: clamp(4rem, 18vw, 6rem); }
}
