:root {
  --paper: #f3efe6;
  --ink: #18211b;
  --muted: #667069;
  --line: rgba(24, 33, 27, 0.2);
  --acid: #dfff52;
  --blue: #3067e8;
  --red: #e65032;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 18px 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 230, 0.88);
  backdrop-filter: blur(12px);
}

.brand { font-weight: 800; letter-spacing: -0.04em; }
.brand span { color: var(--muted); font-weight: 500; }
.site-header nav { display: flex; gap: 32px; font-size: 13px; }
.site-header nav a { transition: opacity 180ms ease; }
.site-header nav a:hover { opacity: 0.45; }
.header-contact { justify-self: end; font-size: 13px; border-bottom: 1px solid; }

.hero {
  min-height: calc(100vh - 61px);
  padding: 8vh 4vw 5vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #2fa35d; box-shadow: 0 0 0 5px rgba(47, 163, 93, 0.13); }

.hero h1 {
  max-width: 1200px;
  margin: 4vh 0;
  font: 500 clamp(64px, 9.6vw, 154px)/0.95 var(--serif);
  letter-spacing: -0.08em;
}

.circled { position: relative; display: inline-block; font-style: italic; }
.circled::after { content: ""; position: absolute; inset: -4% -10% -7% -8%; border: 3px solid var(--ink); border-radius: 48% 52% 45% 55%; transform: rotate(-5deg); }

.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.hero-bottom p { max-width: 560px; margin: 0; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.75; }
.round-link { width: 112px; height: 112px; border: 1px solid var(--ink); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; transition: transform 250ms ease, background 250ms ease; }
.round-link strong { font-size: 22px; }
.round-link:hover { transform: rotate(-8deg); background: var(--acid); }

.marquee { overflow: hidden; border-block: 1px solid var(--ink); background: var(--acid); padding: 14px 0; font: 600 16px var(--serif); }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { white-space: nowrap; padding-right: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-grid { display: grid; grid-template-columns: 24% 1fr; padding: 130px 4vw; border-bottom: 1px solid var(--line); }
.section-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lead { max-width: 920px; margin: 0 0 70px; font: 500 clamp(36px, 5.2vw, 74px)/1.15 var(--serif); letter-spacing: -0.045em; }
.about-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8vw; max-width: 900px; line-height: 1.8; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 80px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 28px 0; }
.facts dt { font: 500 clamp(42px, 5vw, 72px) var(--serif); }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.timeline { border-top: 1px solid var(--ink); }
.job { position: relative; display: grid; grid-template-columns: 22% 1fr auto; gap: 30px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.job-time, .company { color: var(--muted); font-size: 13px; }
.job h2 { margin: 0 0 6px; font: 500 clamp(25px, 3vw, 38px) var(--serif); }
.job p:last-child { max-width: 620px; line-height: 1.75; color: var(--muted); }
.job-index { align-self: center; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: var(--serif); }

.projects { padding: 130px 4vw; }
.projects-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 52px; }
.projects-head p { margin: 0; font: 500 clamp(25px, 3vw, 40px) var(--serif); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.project-card { grid-column: span 6; padding: 18px; border: 1px solid var(--ink); }
.project-card:last-child { grid-column: 4 / span 6; margin-top: 30px; }
.project-meta { display: flex; justify-content: space-between; padding-bottom: 18px; font-size: 10px; letter-spacing: 0.12em; }
.project-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card h2 { margin: 22px 0 8px; font: 500 clamp(24px, 2.5vw, 36px) var(--serif); }
.project-card > p { margin: 0 0 10px; max-width: 520px; line-height: 1.65; color: var(--muted); }

.visual-ai { display: grid; place-items: center; background: var(--blue); color: white; }
.visual-ai > span { z-index: 2; text-align: center; font: 700 clamp(36px, 5vw, 70px)/0.85 var(--sans); letter-spacing: -0.08em; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; }
.orbit-one { width: 78%; height: 34%; transform: rotate(25deg); }
.orbit-two { width: 78%; height: 34%; transform: rotate(-25deg); }
.visual-ai::after { content: ""; width: 11px; height: 11px; background: var(--acid); border-radius: 50%; position: absolute; top: 24%; right: 20%; }
.visual-city { background: var(--red); }
.sun { position: absolute; width: 24%; aspect-ratio: 1; background: #ffd966; border-radius: 50%; top: 10%; right: 12%; }
.city-type { position: absolute; z-index: 2; left: 8%; bottom: 7%; color: #fff7e9; font: 600 clamp(48px, 7vw, 104px)/0.78 var(--serif); }
.street { position: absolute; bottom: -28%; right: -8%; width: 70%; height: 55%; background: #1d2820; transform: rotate(-14deg); }
.visual-system { display: grid; place-items: center; background: #1b211d; color: var(--acid); }
.visual-system > span { z-index: 2; text-align: center; font: 500 clamp(24px, 3vw, 44px)/1.05 var(--serif); }
.tiles { position: absolute; inset: 8%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; opacity: .4; transform: rotate(-8deg) scale(1.15); }
.tiles i { border: 1px solid var(--acid); border-radius: 50%; }

.contact { margin-top: 30px; padding: 130px 4vw 30px; background: var(--ink); color: var(--paper); }
.contact > p { margin: 0 0 22px; color: #aeb6b0; }
.contact > a { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #778078; padding-bottom: 25px; font: 500 clamp(64px, 12vw, 180px)/1 var(--serif); letter-spacing: -0.07em; }
.contact > a span { font-family: var(--sans); font-size: .5em; }
.contact-footer { display: flex; justify-content: space-between; padding-top: 50px; color: #aeb6b0; font-size: 11px; letter-spacing: .08em; }
.contact-footer button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { min-height: 790px; padding-top: 7vh; }
  .hero h1 { font-size: clamp(58px, 18vw, 90px); letter-spacing: -0.09em; }
  .hero-bottom { align-items: start; flex-direction: column; }
  .round-link { align-self: flex-end; width: 92px; height: 92px; }
  .section-grid { display: block; padding: 90px 5vw; }
  .section-label { margin-bottom: 45px; }
  .lead { margin-bottom: 45px; font-size: 38px; }
  .about-details { grid-template-columns: 1fr; gap: 5px; }
  .facts { margin-top: 45px; }
  .facts dt { font-size: 44px; }
  .facts dd { max-width: 70px; }
  .job { grid-template-columns: 1fr auto; }
  .job-time { grid-column: 1 / -1; }
  .job-index { grid-column: 2; grid-row: 2; }
  .projects { padding: 90px 5vw; }
  .projects-head { display: block; }
  .projects-head p { margin-top: 25px; }
  .project-grid { display: block; }
  .project-card, .project-card:last-child { margin: 0 0 20px; }
  .contact { padding: 90px 5vw 25px; }
  .contact > a { font-size: 20vw; }
  .contact-footer { flex-wrap: wrap; gap: 18px; }
  .contact-footer span:nth-child(2) { order: 3; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
