/* ---------- Tokens ---------- */
:root {
  --ink: #0B1017;
  --ink-2: #15191F;
  --paper: #ECE5D8;
  --cream: #EDE6DA;
  --steel: #A8BCD0;
  --muted: #6B665C;
  --body-dark: #2A2D33;
  --sub-dark: #4A4740;
  --line-light: rgba(21, 25, 31, .18);
  --line-dark: rgba(237, 230, 218, .14);
  --gutter: clamp(20px, 4vw, 56px);
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--steel); }
img { max-width: 100%; }

.wrap { max-width: 1440px; margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.section--light { background: var(--paper); color: var(--ink-2); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: end;
}
.section-head .mono { color: var(--muted); }

.h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(44px, 6vw, 88px);
  letter-spacing: -.04em;
  line-height: .95;
}

/* ---------- Pill buttons ---------- */
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px 0 17px;
  border-radius: 999px;
  background: linear-gradient(180deg, #262B33, #181C22);
  border: 1px solid rgba(237, 230, 218, .3);
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .2s, background .2s;
}
.pill:hover {
  border-color: rgba(237, 230, 218, .6);
  background: linear-gradient(180deg, #2E343D, #1C2027);
  color: var(--cream);
}
.pill__in {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 78% 18%, rgba(120, 140, 166, .26), transparent 70%),
    radial-gradient(45% 50% at 12% 95%, rgba(96, 110, 130, .22), transparent 70%),
    radial-gradient(30% 30% at 50% 55%, rgba(237, 230, 218, .05), transparent 70%),
    var(--ink);
  color: var(--cream);
  padding: 28px var(--gutter) 56px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
}
.nav__mark { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--cream); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  font-size: 14px;
  color: rgba(237, 230, 218, .78);
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(48px, 8vw, 96px);
  color: rgba(237, 230, 218, .55);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 32px 64px;
  align-items: end;
  margin-top: 28px;
}
.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(56px, 9vw, 136px);
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__intro {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: end;
  max-width: 640px;
  flex-wrap: wrap;
}
.portrait {
  width: clamp(176px, 18vw, 248px);
  height: clamp(176px, 18vw, 248px);
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(237, 230, 218, .24);
  background: #1a1410;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: rotate(14deg) scale(1.14);
  transform-origin: 50% 45%;
}
.hero__text { display: flex; flex-direction: column; gap: 14px; min-width: 0; flex: 1 1 240px; }
.hero__tagline {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(237, 230, 218, .82);
  text-wrap: pretty;
}
.hero__connect { margin-top: 6px; font-size: 10px; letter-spacing: .16em; color: rgba(237, 230, 218, .55); }
.hero__text .pills { margin-top: 4px; }

.hero__rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: clamp(48px, 7vw, 80px) 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: rgba(237, 230, 218, .55);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(237, 230, 218, .04);
  border: 1px solid rgba(237, 230, 218, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--cream);
  transition: background .2s;
}
.card:hover { background: rgba(237, 230, 218, .08); color: var(--cream); }
.card__top { display: flex; justify-content: space-between; letter-spacing: .12em; color: rgba(237, 230, 218, .55); }
.card__stat { display: flex; align-items: baseline; gap: 12px; }
.card__num { font-size: clamp(56px, 5vw, 76px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.card__unit { letter-spacing: .12em; color: var(--steel); }
.card__title { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.card__sub { margin-top: 4px; font-size: 14px; color: rgba(237, 230, 218, .6); }

/* ---------- Work ---------- */
.project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 32px 64px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  scroll-margin-top: 24px;
}
.project:first-of-type { margin-top: clamp(48px, 6vw, 80px); }
.project__meta { color: var(--muted); }
.project__title {
  margin: 18px 0 0;
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -.03em;
  line-height: 1.02;
}
.project__role { margin-top: 10px; font-size: 16px; color: var(--sub-dark); }
.project__body {
  margin: 28px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body-dark);
  text-wrap: pretty;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 25, 31, .2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: start;
  border-radius: 14px;
  background: var(--ink-2);
  color: var(--cream);
  overflow: hidden;
}
.metric { padding: clamp(20px, 2.4vw, 32px); }
.metric + .metric { border-left: 1px solid rgba(237, 230, 218, .12); }
.metric__num { font-size: clamp(48px, 5.4vw, 84px); letter-spacing: -.045em; line-height: 1; }
.metric__label { margin-top: 14px; letter-spacing: .12em; color: var(--steel); }

/* ---------- About ---------- */
.about {
  background: radial-gradient(50% 40% at 15% 10%, rgba(120, 140, 166, .18), transparent 70%), var(--ink);
  color: var(--cream);
}
.about__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 64px;
  align-items: end;
}
.about__lede {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(237, 230, 218, .78);
  text-wrap: pretty;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.fact { padding: 28px 24px; border-left: 1px solid var(--line-dark); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact__num { font-size: clamp(40px, 5vw, 72px); letter-spacing: -.04em; line-height: 1; }
.fact__label { margin-top: 12px; letter-spacing: .12em; color: var(--steel); }

.about__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 72px);
}
.globe-col { position: sticky; top: 6vh; align-self: start; }
.globe {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.logos {
  position: relative;
  width: min(100%, 280px);
  height: 76px;
  margin: 4px auto 0;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.logos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  background: #FFFFFF;
  object-fit: contain;
  opacity: 0;
  transition: opacity .45s;
}
.logos img.is-active { opacity: 1; }
.logos .logo-auas { padding: 12px 16px; }
.logos .logo-stern { object-fit: cover; }
.logos .logo-shanghai { padding: 4px 8px; }

/* Single-column About: pin a compact globe strip to the top so it never covers the city text.
   736px is where the two 320px columns plus gap stop fitting. */
@media (max-width: 735px) {
  .about__body { grid-template-columns: 1fr; }
  .globe-col {
    top: 0;
    z-index: 2;
    margin-inline: calc(-1 * var(--gutter));
    padding: 12px var(--gutter) 14px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
  }
  .globe { max-width: min(220px, 58vw); }
  .logos { width: min(100%, 220px); height: 60px; }
  .city-labels { margin-top: 12px; }
  .city { min-height: 60vh; }
}

.city-labels { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
.city-labels span { color: var(--cream); opacity: .35; transition: opacity .3s; }
.city-labels span.is-active { opacity: 1; }

.city {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
  opacity: .35;
  transition: opacity .4s;
}
.city.is-active { opacity: 1; }
.city__coords { color: var(--steel); }
.city__name {
  margin: 16px 0 0;
  font-weight: 500;
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: -.04em;
  line-height: 1;
}
.city__text {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(237, 230, 218, .8);
  text-wrap: pretty;
}
.timeline { display: flex; flex-direction: column; margin-top: 28px; font-size: 15px; }
.timeline__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(237, 230, 218, .1);
}
.timeline__date {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(237, 230, 218, .55);
  white-space: nowrap;
}

/* ---------- How I work ---------- */
.statement {
  margin: clamp(40px, 5vw, 72px) 0 0;
  max-width: 1180px;
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 400;
  color: var(--ink-2);
  text-wrap: pretty;
}
.statement span { color: #8C8679; }
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 7vw, 96px);
}
.principle { padding-top: 22px; border-top: 1px solid var(--line-light); }
.principle .mono { color: var(--muted); }
.principle__title { margin-top: 28px; font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.principle__text {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--sub-dark);
  text-wrap: pretty;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: var(--muted);
}
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.review {
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 14px;
  background: var(--ink-2);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.review .mono { letter-spacing: .12em; color: #D9B98A; }
.review blockquote {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  letter-spacing: -.015em;
  color: rgba(237, 230, 218, .5);
}
.review figcaption { font-size: 14px; color: rgba(237, 230, 218, .6); }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(50% 60% at 85% 10%, rgba(120, 140, 166, .2), transparent 70%),
    radial-gradient(40% 50% at 5% 100%, rgba(96, 110, 130, .16), transparent 70%),
    var(--ink);
  color: var(--cream);
  padding: clamp(64px, 8vw, 104px) var(--gutter) 28px;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: end;
}
.contact__eyebrow { color: rgba(237, 230, 218, .55); }
.contact .h2 { margin-top: 20px; text-wrap: balance; }
.contact__text {
  margin: 24px 0 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(237, 230, 218, .75);
  text-wrap: pretty;
}
.contact .pills { margin-top: 32px; }
.details { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-dark); }
.details__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  color: var(--cream);
}
a.details__row:hover { color: var(--steel); }
.details__row .mono { color: rgba(237, 230, 218, .55); }
.details__value { font-size: 16px; text-align: right; }
.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: rgba(237, 230, 218, .45);
}
.footer-bar a { color: rgba(237, 230, 218, .45); }
