:root {
  --paper: #f2f0e9;
  --paper-deep: #e7e3d8;
  --ink: #171713;
  --muted: #77766f;
  --line: rgba(23, 23, 19, .16);
  --acid: #ff5f32;
  --blue: #3557ff;
  --dark: #161713;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 2%, rgba(255,255,255,.9), transparent 32rem),
    var(--paper);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .17;
  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='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  display: flex;
  width: min(calc(100% - 48px), var(--max));
  height: 86px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}
.wordmark { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.wordmark span { color: var(--acid); }
nav { display: flex; gap: 28px; }
nav a { color: #484944; font-size: 12px; text-decoration: none; }
nav a:hover { color: var(--blue); }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 130px 0 82px;
}
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 28px; color: var(--blue); font: 700 11px/1 ui-monospace, monospace; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(72px, 12vw, 164px); font-weight: 820; letter-spacing: -.09em; line-height: .82; }
.lead { max-width: 620px; margin-top: 42px; font-family: "Noto Serif SC", SimSun, serif; font-size: clamp(22px, 3vw, 38px); line-height: 1.55; overflow-wrap: anywhere; }
.aside { margin-top: 20px; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.hero-object { position: relative; min-height: 440px; }
.orbit { position: absolute; border: 1px solid var(--ink); border-radius: 50%; }
.orbit-one { top: 30px; right: 25px; width: 330px; height: 330px; transform: rotate(-12deg) skewX(16deg); }
.orbit-two { top: 75px; right: 70px; width: 240px; height: 270px; border-color: var(--acid); transform: rotate(25deg) skewY(-12deg); }
.cursor-mark { position: absolute; top: 172px; right: 172px; color: var(--blue); font-size: 46px; font-weight: 200; }
.coordinate { position: absolute; right: 0; bottom: 32px; font: 10px/1.7 ui-monospace, monospace; letter-spacing: .12em; text-align: right; }
.scroll-cue { position: absolute; bottom: 34px; left: 0; font-size: 11px; letter-spacing: .1em; text-decoration: none; }
.scroll-cue span { display: inline-block; margin-left: 10px; color: var(--acid); }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 126px 0; }
.section-heading { display: grid; grid-template-columns: 70px 1fr auto; align-items: end; margin-bottom: 62px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.section-heading > span { color: var(--acid); font: 700 12px/1 ui-monospace, monospace; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 5vw, 64px); letter-spacing: -.06em; line-height: .9; }
.section-heading p { color: var(--muted); font: 10px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.section-heading.compact { margin-bottom: 42px; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.project-card { position: relative; min-height: 340px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s, color .25s, transform .25s; }
.project-card:hover { z-index: 2; color: #fff; background: var(--blue); transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--acid); }
.project-card.featured { grid-row: span 2; min-height: 680px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--dark); color: #fff; }
.project-card.featured::before { position: absolute; top: 105px; left: 50%; width: 190px; height: 190px; content: ""; border: 1px solid rgba(255,255,255,.45); border-radius: 45% 55% 52% 48%; transform: translateX(-50%) rotate(15deg); }
.project-card.featured::after { position: absolute; top: 135px; left: 50%; width: 130px; height: 130px; content: ""; border: 1px solid var(--acid); border-radius: 60% 40% 47% 53%; transform: translateX(-50%) rotate(-25deg); }
.card-meta { position: absolute; top: 28px; right: 30px; left: 30px; display: flex; justify-content: space-between; font: 10px/1 ui-monospace, monospace; letter-spacing: .12em; opacity: .72; }
.status { display: flex; align-items: center; gap: 7px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #81e878; box-shadow: 0 0 0 3px rgba(129,232,120,.16); }
.project-card h3 { max-width: 500px; margin: 0 0 30px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.045em; }
.project-card p { max-width: 460px; margin-top: 10px; font-family: "Noto Serif SC", SimSun, serif; font-size: 16px; line-height: 1.85; }
.card-arrow { position: absolute; right: 30px; bottom: 30px; color: var(--acid); font-size: 26px; }

.thoughts { width: 100%; max-width: none; padding: 126px max(24px, calc((100vw - var(--max)) / 2)); color: #efeee8; background: var(--dark); }
.section-heading.inverse { border-color: rgba(255,255,255,.18); }
.section-heading.inverse p { color: #92938b; }
.thought-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.thought-list article { min-height: 390px; padding: 34px 42px 50px 0; border-top: 1px solid rgba(255,255,255,.16); }
.thought-list article:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.16); }
.thought-list article:nth-child(even) { padding-left: 42px; }
.thought-list article > span { display: block; margin-bottom: 70px; color: var(--acid); font-size: 17px; }
.thought-list p { max-width: 490px; margin-top: 14px; font-family: "Noto Serif SC", SimSun, serif; font-size: clamp(18px, 2.2vw, 27px); line-height: 1.75; }

.manuscript { display: grid; grid-template-columns: .75fr 1.6fr; gap: 80px; }
.manuscript-kicker { font-family: "Noto Serif SC", SimSun, serif; font-size: 25px; line-height: 1.7; }
.chapters { border-top: 1px solid var(--line); }
.chapters article { display: grid; grid-template-columns: 100px 180px 1fr; gap: 18px; padding: 38px 0 44px; border-bottom: 1px solid var(--line); }
.chapters article > span { color: var(--acid); font: 10px/1.4 ui-monospace, monospace; letter-spacing: .1em; }
.chapters h3 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.chapters p, .chapters blockquote { grid-column: 3; margin: 0 0 14px; font-family: "Noto Serif SC", SimSun, serif; font-size: 17px; line-height: 1.9; }
.chapters blockquote { padding-left: 18px; border-left: 2px solid var(--blue); }

.notes { padding-top: 80px; }
.timeline { margin-left: 70px; border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 170px 1fr; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--blue); font: 11px/1.8 ui-monospace, monospace; letter-spacing: .08em; }
.timeline p { max-width: 670px; font-family: "Noto Serif SC", SimSun, serif; font-size: 18px; line-height: 1.8; }

.search-tool { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; width: min(calc(100% - 48px), var(--max)); margin: 40px auto 0; padding: 70px; color: #fff; background: var(--blue); box-shadow: 14px 14px 0 var(--acid); }
.tool-number { font: 10px/1 ui-monospace, monospace; letter-spacing: .13em; opacity: .72; }
.search-tool h2 { margin: 32px 0 16px; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.07em; }
.search-tool p { color: rgba(255,255,255,.72); font-size: 13px; }
.search-tool form { align-self: center; }
.search-box { display: flex; border-bottom: 2px solid rgba(255,255,255,.8); }
.search-box input { width: 100%; padding: 22px 0; border: 0; outline: 0; color: #fff; background: transparent; font: 23px/1.3 inherit; }
.search-box input::placeholder { color: rgba(255,255,255,.52); }
.search-box button { width: 66px; border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 30px; }
.search-links { display: flex; gap: 28px; margin-top: 24px; }
.search-links a { font: 700 12px/1 ui-monospace, monospace; letter-spacing: .08em; text-decoration: none; }
.search-links a span { color: #ffb8a2; }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.about .section-heading { grid-template-columns: 70px 1fr; align-self: start; }
.about-copy { padding-top: 4px; }
.about-copy p { margin-bottom: 18px; font-family: "Noto Serif SC", SimSun, serif; font-size: clamp(20px, 2.5vw, 31px); line-height: 1.75; }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 45px; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 45px 0 54px; border-top: 1px solid var(--line); }
.footer-name { font-weight: 800; letter-spacing: .08em; }
.footer-legal { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 11px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--blue); }
.back-top { font-size: 11px; letter-spacing: .08em; text-decoration: none; }

@media (max-width: 840px) {
  .site-header { height: 70px; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero h1 { font-size: clamp(74px, 25vw, 130px); }
  .hero-object { position: absolute; top: 95px; right: -30px; z-index: -1; min-height: 320px; opacity: .34; }
  .orbit-one { width: 240px; height: 240px; }
  .orbit-two { width: 180px; height: 200px; }
  .cursor-mark { top: 128px; right: 120px; }
  .coordinate { display: none; }
  .section { padding: 92px 0; }
  .section-heading { grid-template-columns: 45px 1fr; }
  .section-heading p { display: none; }
  .project-grid, .thought-list { grid-template-columns: 1fr; }
  .project-card.featured { grid-row: auto; min-height: 560px; }
  .thought-list article:nth-child(odd) { border-right: 0; }
  .thought-list article:nth-child(even) { padding-left: 0; }
  .thought-list article { min-height: 0; padding: 30px 0 55px; }
  .thought-list article > span { margin-bottom: 38px; }
  .manuscript, .search-tool, .about { grid-template-columns: 1fr; gap: 48px; }
  .chapters article { grid-template-columns: 76px 1fr; }
  .chapters article > span { grid-column: 1; }
  .chapters h3 { grid-column: 2; }
  .chapters p, .chapters blockquote { grid-column: 2; }
  .timeline { margin-left: 0; }
  .search-tool { padding: 45px 32px; }
  footer { grid-template-columns: 1fr auto; }
  .footer-legal { grid-row: 2; }
}

@media (max-width: 520px) {
  .site-header, .hero, .section, .search-tool, footer { width: calc(100% - 32px); }
  .hero { min-height: 840px; padding-bottom: 100px; }
  .hero h1 { font-size: 82px; }
  .lead { width: calc(100vw - 32px); max-width: 330px; margin-top: 34px; font-size: 23px; word-break: break-all; }
  .section-heading h2 { font-size: 40px; }
  .project-card { min-height: 320px; padding: 26px; }
  .project-card.featured { min-height: 530px; }
  .card-meta { right: 25px; left: 25px; }
  .chapters article { display: block; }
  .chapters h3 { margin: 13px 0 28px; }
  .timeline article { grid-template-columns: 90px 1fr; gap: 12px; }
  .timeline p { font-size: 16px; }
  .search-tool { margin-top: 0; padding: 40px 24px; box-shadow: 8px 8px 0 var(--acid); }
  .about { gap: 8px; }
  footer { grid-template-columns: 1fr; align-items: start; }
  .footer-legal { grid-row: auto; }
  .back-top { display: none; }
}

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