:root {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #eef7fb;
  --text: #17202a;
  --muted: #5c6977;
  --line: #d8e6ef;
  --blue: #2563eb;
  --cyan: #0ea5b7;
  --green: #12a37f;
  --shadow: 0 18px 48px rgba(28, 84, 130, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 8%, rgba(14, 165, 183, 0.08), transparent 30rem),
    radial-gradient(circle at 84% 0%, rgba(37, 99, 235, 0.07), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #f4f8fb 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #e8f7fb);
  color: var(--blue);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(216, 230, 239, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.nav-links a {
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
}

.section-band {
  padding: 72px 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100svh - 20px));
  align-items: center;
  overflow: hidden;
  padding: 64px 0 92px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 36px 0 auto auto;
  z-index: -2;
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  border: 1px solid rgba(14, 165, 183, 0.12);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(235, 249, 253, 0.62)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(37, 99, 235, 0.05) 32px 33px);
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto auto 64px 7%;
  z-index: -1;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 183, 0.32), transparent);
  content: "";
}

.hero-content {
  width: min(100%, 760px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(54px, 9vw, 118px);
}

h2 {
  font-size: clamp(30px, 5vw, 52px);
}

h3 {
  font-size: 19px;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 21px);
}

.identity-strip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  border: 1px solid rgba(216, 230, 239, 0.9);
  border-radius: var(--radius);
  padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(28, 84, 130, 0.08);
}

.avatar-image {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.identity-strip div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.identity-strip strong,
.identity-strip span {
  overflow-wrap: anywhere;
}

.identity-strip span {
  color: var(--muted);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}

.hero-routes div {
  display: grid;
  min-width: 156px;
  gap: 3px;
  border: 1px solid rgba(216, 230, 239, 0.9);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(28, 84, 130, 0.08);
}

.hero-routes span {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.hero-routes strong {
  font-size: 14px;
  line-height: 1.3;
}

.mark-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.mark-cloud img {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(216, 230, 239, 0.88);
  border-radius: var(--radius);
  background: white;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(28, 84, 130, 0.08);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 720;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(14, 165, 183, 0.36);
  box-shadow: 0 12px 26px rgba(28, 84, 130, 0.1);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  min-height: 258px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(28, 84, 130, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow);
  outline: none;
}

.project-card.primary-project {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 249, 253, 0.96)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent);
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: #e9f7fb;
  object-fit: cover;
}

.project-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
}

.project-card h3 {
  margin-top: 22px;
}

.project-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.project-link {
  margin-top: 26px;
  color: var(--blue);
  font-weight: 760;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 84, 130, 0.06);
}

.focus-item {
  min-height: 210px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.focus-item:last-child {
  border-right: 0;
}

.focus-index {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.focus-mark {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(28, 84, 130, 0.08);
}

.focus-item h3 {
  margin-top: 22px;
}

.focus-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 10px;
}

.note-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
}

.note-row span {
  color: var(--cyan);
  font-weight: 760;
}

.note-row strong {
  min-width: 0;
  font-size: 17px;
}

.disabled-link {
  cursor: default;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--blue);
  outline: none;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

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

@media (max-width: 900px) {
  .hero {
    min-height: 720px;
    padding-top: 64px;
    padding-bottom: 88px;
  }

  .project-grid,
  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-item:nth-child(2) {
    border-right: 0;
  }

  .focus-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    min-width: 0;
  }

  .section-band {
    padding: 48px 0;
  }

  .hero {
    min-height: 590px;
    padding: 28px 0 34px;
  }

  .hero::before {
    inset: auto -80px 80px auto;
    width: 260px;
    height: 260px;
  }

  .hero::after {
    inset: auto 0 38px 0;
    width: 100%;
  }

  h1 {
    font-size: clamp(48px, 18vw, 74px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-routes {
    display: none;
  }

  .hero-routes div {
    width: 100%;
  }

  .project-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .project-card.primary-project {
    grid-column: span 1;
  }

  .focus-item,
  .focus-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .focus-item:last-child {
    border-bottom: 0;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
