/* Home — The whole picture. The shared stylesheet still serves Resources. */
.home-page { --serif: "Source Serif 4", Georgia, serif; --content-width: 928px; position: relative; min-height: max(100vh, 136.25vw); }
.home-page .navbar { position: relative; top: auto; padding-top: 55px; }
.home-page .navbar-inner { width: 185px; height: 42px; padding: 4px 3px; gap: 0; box-shadow: none; transform: translateX(-10.5px); }
.home-page .nav-tab { flex-shrink: 0; }
.home-page .nav-tab--active { width: 72px; padding: 0; }
.home-content { display: flex; flex-direction: column; gap: 54px; padding-top: 45px; }
.home-content > * { width: 100%; }
.introduction { display: flex; flex-direction: column; gap: 30px; }
.identity { display: flex; align-items: center; gap: 24px; }
.home-portrait { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.identity h1 { font: 500 56px/58.8px var(--serif); letter-spacing: 0; }
.inline-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; min-height: 29px; font: 400 17px/28.05px var(--serif); color: var(--body); }
.inline-cluster { display: inline-flex; align-items: center; flex-wrap: wrap; column-gap: 4px; }
.inline-copy a { font-family: var(--sans); color: inherit; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.inline-copy a:hover { color: var(--accent); }
.inline-logo { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.pku-logo { width: 28px; height: 28px; object-fit: cover; }
.apple-logo { width: 14px; height: 17px; object-fit: cover; }
.layered-logo { position: relative; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.layered-logo img { display: block; position: absolute; max-width: none; }
.bmw-logo { width: 22px; height: 22px; }
.cornell-logo { width: 24px; height: 24px; }
.intro-group { display: flex; flex-direction: column; gap: 12px; }
.minor-heading { font: 500 20px/28px var(--serif); }
.career-lines { display: flex; flex-direction: column; gap: 8px; }
.career-separator { font-family: var(--sans); }
.experiments { display: flex; flex-direction: column; gap: 18px; }
.section-heading { font: 500 28px/36px var(--serif); }
.gallery-heading { line-height: 58.8px; min-height: 59px; }
.section-lede { font: 400 15px/24px var(--serif); color: var(--muted); }
.experiment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.experiment { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.experiment-image { display: block; width: 100%; aspect-ratio: 43 / 23; height: auto; object-fit: cover; border-radius: 14px; }
.experiment-preview-link { display: block; border-radius: 14px; }
.experiment h3 { font: 600 20px/24px "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 0, "WONK" 1; }
.experiment p { font: 400 15px/22.5px var(--sans); color: var(--body); }
.travel { display: flex; flex-direction: column; gap: 16px; }
.travel-explorer { display: grid; grid-template-columns: 480px minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px; }
.globe-stage { position: relative; width: 100%; aspect-ratio: 1; min-width: 0; overflow: clip; touch-action: pan-y; cursor: grab; outline-offset: 2px; border-radius: 18px; }
.globe-stage.is-dragging { cursor: grabbing; }
.globe-coordinate-space { position: absolute; inset: 0 auto auto 0; width: 480px; height: 480px; transform: scale(var(--globe-scale, 1)); transform-origin: top left; }
/* Match the sphere's center (240, 230) and radius (207) at every screen size. */
.globe-glass {
  position: absolute;
  left: 33px;
  top: 23px;
  width: 414px;
  height: 414px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .66), rgba(250, 249, 246, .34) 72%);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, .9), inset -10px -14px 26px rgba(121, 132, 109, .06), 0 14px 32px -20px rgba(44, 52, 38, .24);
}
.globe-fallback, .travel-globe, .globe-pins, .globe-callout, .globe-leader { position: absolute; left: 0; top: 0; }
.globe-fallback, .travel-globe, .globe-pins, .globe-callout { width: 480px; height: 480px; }
.travel-globe { opacity: 0; pointer-events: none; }
.globe-stage.is-ready .travel-globe { opacity: 1; }
.globe-stage.is-ready .globe-fallback { visibility: hidden; }
.globe-fallback, .globe-leader { display: block; pointer-events: none; }
.globe-pins { pointer-events: none; }
.travel-pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; border-radius: 50%; }
.travel-pin::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.travel-pin img { display: block; pointer-events: none; }
.travel-pin.is-back { visibility: hidden; pointer-events: none; }
.travel-pin.is-selected { z-index: 1; }
.travel-pin:focus-visible { outline: 1px solid #b4613b; outline-offset: 3px; }
.globe-callout { pointer-events: none; }
.globe-tooltip { position: absolute; left: 35px; top: 68px; width: 126px; padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; border: .7px solid #e3e5db; border-radius: 7px; background: var(--bg); }
.globe-tooltip [data-country-label] { font: 400 10px/14px "Young Serif", Georgia, serif; color: #b4613b; }
.globe-tooltip [data-country-coordinates] { font: 400 9px/13.5px var(--mono); color: #77786e; white-space: nowrap; }
.travel-details { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.travel-memory { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.travel-memory h3 { font: 500 26px/31.2px var(--serif); }
.travel-memory p { max-width: 300px; font: 400 14px/21.7px var(--serif); color: var(--body); }
.travel-memory [data-memory-copy]:not([hidden]) { margin-top: 10px; }
.rotation-toggle { position: absolute; right: 0; bottom: 0; opacity: 0; pointer-events: none; border: 1px solid var(--hairline); background: var(--bg); border-radius: 20px; padding: 7px 12px; font: 12px var(--sans); color: var(--muted); cursor: pointer; transition: opacity .15s; }
.globe-stage:focus-within .rotation-toggle, .globe-stage:hover .rotation-toggle { opacity: 1; pointer-events: auto; }
.contact { display: flex; flex-direction: column; gap: 14px; }
.contact > p { min-height: 26px; font: 400 16px/25.6px var(--sans); color: var(--body); }
.contact-links { display: flex; align-items: center; gap: 28px; }
.contact-links a { display: block; position: relative; width: 24px; height: 24px; border-radius: 4px; }
.contact-links a::before { content: ""; position: absolute; inset: -10px; }
.contact-links img { display: block; max-width: none; }
.social-scale { display: block; width: 48px; height: 48px; transform: scale(.5); transform-origin: top left; }
.contact-links a:hover { opacity: .65; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -70px; padding: 12px 18px; background: var(--bg); color: var(--ink); border: 1px solid var(--hairline); border-radius: 8px; z-index: 101; }
.skip-link:focus { top: 12px; }
.home-page button:focus-visible, .globe-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.home-page h1, .home-page h2 { font-optical-sizing: none; font-variation-settings: "opsz" 20; }
@media (max-width: 927px) {
  .travel-explorer { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .current-role { row-gap: 4px; }
}
@media (max-width: 640px) {
  .home-page .navbar { padding-top: 28px; }
  .home-page .navbar-inner { transform: none; }
  .home-content { padding: 44px 24px 72px; gap: 44px; }
  .introduction { gap: 25px; }
  .identity { gap: 20px; }
  .home-portrait { width: 80px; height: 80px; }
  .identity h1 { font-size: 40px; line-height: 46px; }
  .inline-copy { font-size: 16px; line-height: 27px; row-gap: 5px; }
  .inline-cluster { column-gap: 4px; }
  .career-separator { display: none; }
  .career-lines .inline-copy:first-child { flex-direction: column; align-items: flex-start; }
  .research-line { display: block; }
  .research-line > span { margin-right: 4px; }
  .section-heading { font-size: 25px; line-height: 34px; }
  .gallery-heading { min-height: 0; }
  .experiment-grid { grid-template-columns: 1fr; gap: 30px; }
  .experiments { gap: 16px; }
  .travel-explorer { grid-template-columns: 1fr; gap: 14px; padding: 0; }
  .globe-stage { max-width: 480px; justify-self: center; }
  .travel-details { padding: 0 16px; }
  .travel-memory h3 { font-size: 24px; }
  .rotation-toggle { opacity: 1; pointer-events: auto; font-size: 11px; padding: 6px 10px; }
  .contact > p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .rotation-toggle { transition: none; } }
