:root {
  --blue: #1768f2;
  --blue-dark: #0d3fb4;
  --blue-soft: #eaf3ff;
  --ink: #101828;
  --muted: #657084;
  --line: #dce4ef;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  padding: 14px clamp(22px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 750; }
.brand img { width: 54px; height: 40px; object-fit: contain; filter: brightness(0) saturate(100%) invert(38%) sepia(98%) saturate(3750%) hue-rotate(213deg) brightness(96%); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 10px 15px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); background: var(--blue-soft); outline: none; }

.hero {
  position: relative;
  min-height: min(880px, 100vh);
  padding: 122px clamp(22px, 5vw, 80px) 48px;
  display: grid;
  grid-template-columns: minmax(360px, .86fr) minmax(480px, 1.14fr);
  grid-template-rows: 1fr auto;
  gap: 20px 24px;
  align-items: center;
  background: linear-gradient(112deg, #fff 0 49%, #f6faff 49% 100%);
  border-bottom: 1px solid var(--line);
}

.hero > * { min-width: 0; }

.hero::before {
  position: absolute;
  inset: auto auto 0 0;
  width: 44%;
  height: 5px;
  content: "";
  background: var(--blue);
}

.hero-copy { position: relative; z-index: 2; max-width: 680px; animation: rise .65s ease both; }
.kicker, .section-label { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; }
.kicker { display: flex; align-items: center; gap: 10px; }
.kicker span { width: 28px; height: 2px; background: var(--blue); }

.hero h1 { margin-top: 28px; font-size: clamp(42px, 4vw, 62px); font-weight: 350; line-height: 1.16; }
.hero h1 strong { color: var(--blue); font-weight: 760; }
.hero-intro { max-width: 500px; margin-top: 28px; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.8; }

.primary-action {
  width: fit-content;
  margin-top: 38px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
  background: var(--blue);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.primary-action:hover, .primary-action:focus-visible { background: var(--blue-dark); transform: translateY(-2px); outline: none; }

.mobius-stage { position: relative; z-index: 1; width: 100%; min-width: 0; height: min(59vw, 620px); min-height: 460px; overflow: hidden; }
.mobius-stage canvas { display: block; width: 100%; max-width: 100%; height: 100%; }
.mobius-stage p { position: absolute; right: 14px; bottom: 10px; color: #7890ad; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }

.hero-signature { align-self: end; display: flex; align-items: center; gap: 12px; }
.hero-signature img { width: 42px; height: 42px; object-fit: cover; border: 2px solid var(--blue); border-radius: 50%; }
.hero-signature p { display: grid; gap: 3px; font-size: 12px; }
.hero-signature span { color: var(--muted); font-size: 10px; }

.works { padding: clamp(76px, 9vw, 138px) clamp(22px, 5vw, 80px) 110px; }
.works-heading { margin-bottom: 54px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; }
.works-heading h2 { margin-top: 14px; font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.works-heading > p { max-width: 460px; justify-self: end; color: var(--muted); font-size: 14px; line-height: 1.9; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project {
  position: relative;
  min-height: 218px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color .25s ease, background .25s ease;
}
.project-featured { grid-row: span 2; min-height: 436px; background: var(--blue-soft); }
.project-number, .project-type { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.project-arrow { justify-self: end; color: var(--blue); font-size: 22px; }
.project-title { align-self: end; display: grid; gap: 10px; }
.project-title strong { color: var(--blue); font-size: clamp(30px, 4vw, 55px); line-height: 1; }
.project-title span { color: var(--muted); font-size: 13px; }
.project:hover, .project:focus-visible { color: #fff; background: var(--blue); outline: none; }
.project:hover *, .project:focus-visible * { color: #fff; }

.site-footer { min-height: 190px; padding: 36px clamp(22px, 5vw, 80px); display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 56px; color: #fff; background: #0b1b38; }
.site-footer img { width: 150px; filter: brightness(0) invert(1); }
.site-footer p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.7; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .hero { min-height: 900px; grid-template-columns: 1fr; grid-template-rows: auto minmax(330px, 1fr) auto; background: linear-gradient(180deg, #fff 0 45%, #f6faff 45% 100%); }
  .hero-copy { padding-top: 22px; }
  .mobius-stage { height: 410px; min-height: 0; }
  .hero-signature { grid-row: 3; }
}

@media (max-width: 640px) {
  .site-header { height: 70px; padding-top: 10px; padding-bottom: 10px; }
  .brand img { width: 45px; }
  .brand span { display: none; }
  .site-nav a:first-child { display: none; }
  .hero { min-height: 820px; padding-top: 100px; padding-bottom: 28px; grid-template-rows: auto 300px auto; }
  .hero h1 { margin-top: 20px; font-size: clamp(40px, 11.5vw, 56px); }
  .hero-intro { margin-top: 20px; font-size: 15px; }
  .primary-action { margin-top: 26px; }
  .mobius-stage { height: 300px; }
  .mobius-stage p { display: none; }
  .works-heading { grid-template-columns: 1fr; }
  .works-heading > p { justify-self: start; }
  .project-grid { grid-template-columns: 1fr; }
  .project, .project-featured { min-height: 190px; grid-row: auto; }
  .site-footer { grid-template-columns: 1fr; align-items: start; gap: 24px; }
}

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