:root {
  --paper: #f2f0e9;
  --ink: #141614;
  --muted: #696b65;
  --line: #c9c8c0;
  --signal: #d7ff46;
  --coral: #ff654f;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--signal); color: var(--ink); }

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  left: -500px;
  top: -500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,255,70,.2), transparent 68%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: auto;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font: 800 24px/1 Arial, sans-serif; }
.accent { color: var(--coral); }
nav { display: flex; gap: 34px; font-size: 14px; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .25s; }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; border: 0; background: none; width: 42px; height: 42px; padding: 10px; }
.menu-button span { display: block; height: 1px; background: currentColor; margin: 7px 0; transition: transform .25s; }

.hero {
  min-height: calc(100svh - 80px);
  max-width: var(--max);
  margin: auto;
  padding: 52px 40px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr);
  gap: 56px;
  align-items: center;
  position: relative;
}
.eyebrow, .section-number { font: 700 11px/1.4 Arial, sans-serif; letter-spacing: 1.5px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #4fbd62; box-shadow: 0 0 0 4px rgba(79,189,98,.13); }
.hero h1 { margin: 28px 0; font-size: clamp(52px, 6.2vw, 104px); line-height: .96; font-weight: 750; }
.title-line { white-space: nowrap; }
.hero h1 em, .contact h2 em { font-family: Georgia, "Songti SC", serif; font-weight: 400; }
.hero h1 em { position: relative; z-index: 0; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; bottom: 4%; width: 105%; height: 21%; background: var(--signal); z-index: -1; transform: rotate(-1deg); }
.hero-intro { max-width: 540px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.text-link { display: inline-flex; gap: 28px; align-items: center; margin-top: 24px; padding-bottom: 7px; border-bottom: 1px solid currentColor; font-weight: 700; }
.text-link span { transition: transform .25s; }
.text-link:hover span { transform: translate(4px, 4px); }
.hero-visual { position: relative; height: min(70vh, 690px); min-height: 470px; overflow: hidden; background: var(--ink); }
#terrain { width: 100%; height: 100%; display: block; }
.visual-label { position: absolute; inset: 18px 20px auto; display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font: 700 9px/1 Arial, sans-serif; letter-spacing: 1.3px; }
.visual-mark { position: absolute; right: -4px; bottom: -54px; color: var(--signal); font: 900 min(23vw, 310px)/1 Arial, sans-serif; }
.scroll-note { position: absolute; left: 40px; bottom: 20px; font: 700 9px/1 Arial, sans-serif; letter-spacing: 1.5px; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll-note span { display: block; height: 38px; width: 1px; background: var(--ink); }

.ticker { overflow: hidden; background: var(--ink); color: var(--paper); transform: rotate(-1deg); width: 102%; margin-left: -1%; }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 28px; padding: 15px 0; animation: ticker 22s linear infinite; font: 700 13px/1 Arial, sans-serif; letter-spacing: 1.2px; }
.ticker i { color: var(--signal); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 1300px) {
  .scroll-note { display: none; }
}

.section-shell { max-width: var(--max); margin: auto; padding: 130px 40px; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 76px); line-height: 1; }
.section-heading > p:last-child { margin: 0; color: var(--muted); text-align: right; }
.project { display: grid; grid-template-columns: 90px 1.3fr 1fr 48px; gap: 28px; align-items: center; min-height: 168px; border-bottom: 1px solid var(--line); cursor: default; transition: padding .25s, background .25s; }
.project:hover { padding: 0 20px; background: #e7e5de; }
.project-index { font: 700 12px/1 Arial, sans-serif; color: var(--muted); }
.project h3 { margin: 0; font-size: clamp(25px, 3vw, 42px); }
.project p { color: var(--muted); line-height: 1.6; }
.project-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; transition: background .2s, transform .2s; }
.project:hover .project-arrow { background: var(--signal); transform: rotate(45deg); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.project-tags span { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 3px; }

.about { background: var(--ink); color: var(--paper); }
.about-inner { padding-top: 110px; padding-bottom: 110px; }
.about .section-number { color: var(--signal); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; margin-top: 76px; }
.about h2 { margin: 0; font-size: clamp(50px, 6.5vw, 96px); line-height: 1.05; }
.about-copy > p { margin: 0 0 25px; font-size: 18px; line-height: 1.8; color: #b9bbb5; }
.about-copy strong { color: var(--paper); }
.facts { margin: 54px 0 0; }
.facts div { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid #3e403d; }
.facts dt { color: #777b74; }
.facts dd { margin: 0; }

.contact { min-height: 620px; display: flex; flex-direction: column; justify-content: space-between; }
.contact-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.contact h2 { margin: 60px 0 0; font-size: clamp(54px, 7.5vw, 116px); line-height: .96; }
.contact h2 em { color: var(--coral); }
.contact-actions { display: flex; align-items: end; gap: 34px; }
.contact-button { flex: 0 0 174px; aspect-ratio: 1; border-radius: 50%; background: var(--signal); display: flex; flex-direction: column; justify-content: space-between; padding: 28px; font-weight: 700; transition: transform .3s, background .3s; }
.contact-button:hover { transform: rotate(-7deg) scale(1.04); background: var(--coral); }
.button-arrow { align-self: end; font-size: 28px; }
.social-links { width: 150px; }
.social-links a { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.social-links a:last-child { border-bottom: 1px solid var(--line); }
.social-links a span:last-child { transition: transform .2s; }
.social-links a:hover span:last-child { transform: translate(3px, -3px); }

footer { max-width: var(--max); margin: auto; padding: 24px 40px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
footer p { font-size: 12px; color: var(--muted); }
.back-top { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }

@media (max-width: 820px) {
  .site-header { height: 68px; padding: 0 20px; }
  .menu-button { display: block; }
  nav { position: fixed; z-index: 9; top: 68px; left: 0; right: 0; background: var(--ink); color: var(--paper); padding: 32px 20px; flex-direction: column; font-size: 22px; transform: translateY(-130%); transition: transform .3s; }
  nav.open { transform: translateY(0); }
  .hero { min-height: auto; padding: 50px 20px 42px; display: flex; flex-direction: column; gap: 42px; align-items: stretch; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-visual { height: 58vh; min-height: 420px; }
  .scroll-note { display: none; }
  .section-shell { padding: 90px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .section-heading > p:last-child { text-align: left; }
  .project { grid-template-columns: 40px 1fr 44px; gap: 12px; padding: 26px 0; }
  .project > div { grid-column: 2; }
  .project-index { grid-column: 1; grid-row: 1; align-self: start; margin-top: 9px; }
  .project-arrow { grid-column: 3; grid-row: 1; }
  .project:hover { padding: 26px 8px; }
  .about-grid { grid-template-columns: 1fr; gap: 54px; margin-top: 48px; }
  .contact { min-height: 570px; }
  .contact-row { flex-direction: column; align-items: flex-start; }
  .contact-actions { width: 100%; align-items: end; justify-content: space-between; gap: 20px; }
  .contact-button { flex-basis: 138px; padding: 22px; }
  .social-links { width: min(150px, 42vw); }
  footer { padding: 22px 20px; }
}

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