:root {
  --ink: #11130f;
  --paper: #f1efe8;
  --paper-soft: #e5e2d8;
  --acid: #d8ff3e;
  --blue: #5f75ff;
  --line: rgba(17, 19, 15, 0.18);
  --muted: #62645d;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 239, 232, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.15em;
  text-decoration: none;
}

.brand-mark {
  width: 13px;
  height: 13px;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 50% 50% 2px 50%;
  transform: rotate(45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: calc(100svh - 76px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: clamp(42px, 7vw, 112px) 4vw 38px;
  border-right: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font: 650 12px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 9em;
  margin: 28px 0;
  font-size: clamp(52px, 8.2vw, 132px);
  font-weight: 760;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero-lede {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 70px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 600 11px/1.5 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #1b1c19;
}

.hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 19, 15, 0.03), rgba(17, 19, 15, 0.48)),
    linear-gradient(90deg, transparent 50%, rgba(216, 255, 62, 0.11));
  content: "";
}

.visual-label {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  color: white;
}

.visual-label strong {
  max-width: 9em;
  font-size: clamp(25px, 3.3vw, 54px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.visual-label span {
  font: 650 11px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.route {
  position: relative;
  display: flex;
  min-height: min(66vw, 760px);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 72px);
  overflow: hidden;
  text-decoration: none;
}

.route + .route {
  border-left: 1px solid var(--line);
}

.route-design {
  background: var(--ink);
  color: var(--paper);
}

.route-ai {
  background: var(--acid);
}

.route-index {
  font: 700 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.16em;
}

.route h2 {
  position: relative;
  z-index: 2;
  max-width: 8em;
  margin: auto 0 24px;
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.route p {
  position: relative;
  z-index: 2;
  max-width: 30rem;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.72;
}

.route-arrow {
  position: absolute;
  top: 44px;
  right: 44px;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 30px;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.route:hover .route-arrow,
.route:focus-visible .route-arrow {
  transform: rotate(-35deg);
}

.route-design:hover .route-arrow {
  background: var(--paper);
  color: var(--ink);
}

.route-ai:hover .route-arrow {
  background: var(--ink);
  color: var(--acid);
}

.route-grid {
  position: absolute;
  right: -8%;
  bottom: -8%;
  width: 64%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.13;
}

.route-grid::before,
.route-grid::after {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
}

.route-grid::before {
  inset: 18%;
}

.route-grid::after {
  inset: 38%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer a {
  text-underline-offset: 4px;
}

.page-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 42svh;
  border-bottom: 1px solid var(--line);
}

.page-intro-main {
  padding: clamp(54px, 8vw, 120px) 4vw;
  border-right: 1px solid var(--line);
}

.page-intro h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(64px, 10vw, 148px);
}

.page-intro-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  padding: clamp(42px, 6vw, 84px) 4vw;
}

.page-intro-side p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
}

.project {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  min-height: 700px;
  border-bottom: 1px solid var(--line);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 72px) 4vw;
  border-right: 1px solid var(--line);
}

.project-number {
  color: var(--muted);
  font: 700 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.16em;
}

.project h2 {
  margin: auto 0 20px;
  font-size: clamp(58px, 8vw, 116px);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.project-copy > p {
  max-width: 35rem;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tag {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 650 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--ink);
  color: white;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover {
  background: var(--blue);
}

.project-preview {
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 88px);
  overflow: hidden;
  background: #d9dcff;
}

.app-window {
  width: min(900px, 100%);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 15, 0.32);
  border-radius: 10px;
  background: #f9f9f7;
  box-shadow: 24px 28px 0 rgba(95, 117, 255, 0.22);
  transform: rotate(-1.2deg);
}

.app-bar {
  display: flex;
  height: 10%;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
  border-bottom: 1px solid var(--line);
  font: 700 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.app-dots {
  display: flex;
  gap: 6px;
}

.app-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.22;
}

.app-body {
  display: grid;
  height: 90%;
  grid-template-columns: 19% 1fr;
}

.app-sidebar {
  padding: 12%;
  border-right: 1px solid var(--line);
}

.app-sidebar::before,
.app-sidebar::after {
  display: block;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--ink);
  content: "";
  opacity: 0.12;
}

.app-sidebar::after {
  width: 70%;
}

.app-canvas {
  display: grid;
  grid-template-rows: 30% 1fr;
  gap: 5%;
  padding: 5%;
}

.app-summary {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 3%;
}

.app-summary div,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.app-summary div:first-child {
  background: var(--acid);
}

.app-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
  align-items: center;
}

.app-timeline::before {
  position: absolute;
  right: 4%;
  left: 4%;
  top: 50%;
  height: 2px;
  background: rgba(17, 19, 15, 0.15);
  content: "";
}

.timeline-card {
  z-index: 1;
  height: 62%;
  box-shadow: 0 10px 24px rgba(17, 19, 15, 0.08);
}

.timeline-card:nth-child(2) {
  height: 76%;
  background: var(--ink);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    letter-spacing: 0.1em;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 12px;
  }

  .nav a:first-child {
    display: none;
  }

  .hero,
  .page-intro,
  .project {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .page-intro-main,
  .project-copy {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-copy {
    padding-top: 64px;
  }

  .hero-visual {
    min-height: 58svh;
  }

  .routes {
    grid-template-columns: 1fr;
  }

  .route {
    min-height: 520px;
  }

  .route + .route {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .page-intro-side {
    min-height: 300px;
  }

  .project {
    min-height: 0;
  }

  .project-copy {
    min-height: 520px;
  }

  .project-preview {
    min-height: 520px;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
