@font-face {
  font-family: Portfolio Serif;
  src: url("/type/italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #142e48;
  --muted: #4c6378;
  --blue: #245baf;
  --line: #d7e2ec;
  --page: #fbfdff;
  --serif: "Portfolio Serif", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #3578d0;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
button svg,
a svg {
  flex: none;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 1360px;
  width: 88%;
  margin: auto;
}
.skip {
  position: fixed;
  z-index: 50;
  left: 15px;
  top: -80px;
  padding: 10px 20px;
  background: white;
}
.skip:focus {
  top: 10px;
}
.mast {
  position: relative;
  z-index: 4;
  background: #f7fbffed;
  border-bottom: 1px solid #cfdeec;
}
.headwrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand b {
  font-size: 22px;
  letter-spacing: -1.25px;
  font-weight: 650;
}
.mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  height: 32px;
  width: 34px;
  position: relative;
}
.mark i {
  width: 6px;
  height: 23px;
  background: linear-gradient(160deg, #79c5f9, #164e99 70%);
  transform: skew(-23deg);
  border-radius: 3px;
}
.mark i:first-child {
  height: 13px;
  align-self: flex-end;
  margin-bottom: 5px;
}
.mark i:last-child {
  height: 17px;
  align-self: flex-start;
  margin-top: 4px;
}
.headwrap nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 520;
}
.headwrap nav a,
.text-action {
  transition: color 0.18s;
}
.headwrap nav a:hover,
.text-action:hover {
  color: #1674c3;
}
.gh {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  border: 1px solid #cedce8;
  background: #ffffff80;
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 14px;
}
.gh:hover {
  background: #fff;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    110deg,
    #f7fbff 2%,
    #edf6fc 37%,
    #cae0f3 75%,
    #d7e9f7
  );
  border-bottom: 1px solid #dce7ef;
}
.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, #edf6fd75, transparent 13%);
}
.hero-atmos {
  position: absolute;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 36% 24% at 85% 20%, #ffffffed, transparent 80%),
    radial-gradient(ellipse 40% 10% at 67% 68%, #ffffffc4, transparent 90%),
    radial-gradient(ellipse 40% 55% at 21% 61%, #fff, transparent 82%),
    radial-gradient(ellipse 46% 22% at 79% 98%, #b5d6f0, transparent 80%);
  animation: sky-flow 18s ease-in-out infinite alternate;
}
.hero-inner {
  position: relative;
  min-height: clamp(495px, 41vw, 630px);
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 45%;
  padding: 52px 0 58px;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}
.role {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #406383;
  letter-spacing: 0.12em;
  font-size: 0.91rem;
  font-weight: 550;
  margin-bottom: 20px;
}
.role span {
  height: 1.5px;
  width: 29px;
  background: #5889ae;
}
.hero h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-size: clamp(62px, 5.7vw, 91px);
  font-weight: 550;
  line-height: 1.11;
  letter-spacing: 0.035em;
  color: #122e49;
}
.hero h1 em {
  font-family: var(--serif);
  display: block;
  font-size: clamp(61px, 5.8vw, 96px);
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 400;
  color: #527fa8;
  margin: 1px 0 24px;
}
.intro {
  max-width: 390px;
  font-size: 1rem;
  line-height: 1.9;
  color: #496378;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 27px;
}
.primary,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
}
.primary {
  padding: 13px 28px;
  color: white;
  border-radius: 24px;
  background: #173d60;
  box-shadow:
    inset 0 1px 0 #ffffff30,
    0 4px 13px #305d7e19;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary:hover {
  background: #265a87;
  transform: translateY(-2px);
}
.text-action {
  color: #395b75;
  border-bottom: 1px solid #8eabbe;
  padding: 3px 0;
}
.hero-object {
  position: absolute;
  right: -3%;
  width: 64%;
  height: 100%;
  top: 0;
  isolation: isolate;
  pointer-events: none;
}
.sky-poster,
.hero-object > canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.motion {
  position: absolute;
  bottom: 22px;
  right: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  height: 37px;
  width: 37px;
  border-radius: 50%;
  border: 1px solid #a8bfd3aa;
  background: #ffffff62;
  backdrop-filter: blur(16px);
}
.motion span {
  display: flex;
}
.motion .is-play,
[data-still] .motion .is-pause {
  display: none;
}
[data-still] .motion .is-play {
  display: flex;
}
[data-still] .hero-atmos {
  animation-play-state: paused;
}
@keyframes sky-flow {
  to {
    transform: translate(3%, -1%) scale(1.04);
  }
}
.section {
  padding: 60px 0 75px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 17px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: clamp(30px, 2.7vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.055em;
  font-weight: 650;
}
.section-roman {
  font: italic 1.45rem/1.1 var(--serif);
  color: #66839d;
  letter-spacing: -0.03em;
}
.work-grid {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  gap: 25px;
}
.work-card {
  min-width: 0;
}
.work-open {
  background: none;
  padding: 0;
  text-align: left;
  width: 100%;
  display: block;
}
.cover {
  overflow: hidden;
  background: #e3eff8;
  position: relative;
  border-radius: 16px;
  border: 1px solid #bccedc85;
  isolation: isolate;
  aspect-ratio: 1.92;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.work-open:hover .cover img {
  transform: scale(1.028);
}
.cover-cta {
  position: absolute;
  right: 13px;
  bottom: 12px;
  background: #fbfdfff5;
  border: 1px solid #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  font-size: 0.8rem;
  color: #243d52;
  box-shadow: 0 1px 6px #28435c1a;
}
.work-meta {
  margin-top: 18px;
  color: #5c7890;
  font-size: 0.85rem;
  letter-spacing: 0.035em;
}
.work-card h3 {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1.45;
  margin: 3px 0 6px;
  font-weight: 630;
}
.work-card > p,
.row-detail {
  color: var(--muted);
  line-height: 1.78;
}
.viewer {
  margin-top: 30px;
  scroll-margin: 15px;
  border: 1px solid #bfd1e1;
  border-radius: 16px;
  background: #e5eef6;
  overflow: hidden;
  animation: come-in 0.32s ease-out;
}
.viewer-bar,
.viewer-bar > div,
.viewer-bar a,
.viewer-bar button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.viewer-bar {
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f3f8fc;
}
.viewer-bar strong {
  font-size: 1rem;
}
.viewer-bar a {
  font-size: 0.85rem;
}
.viewer-bar button,
.lightbox button {
  background: transparent;
  border-radius: 50%;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.viewer-bar button:hover {
  background: #dce8f2;
}
.view-screen {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: min(76svh, 850px);
  min-height: 360px;
  background: radial-gradient(ellipse at 50% 5%, #f0f8ff, #ccdde9);
}
.view-screen iframe {
  height: 100%;
  width: 100%;
  border: 0;
  background: white;
}
.viewer[data-layout="mobile"] iframe {
  max-width: 480px;
}
.viewer:fullscreen {
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.viewer:fullscreen .view-screen {
  flex: 1;
  max-height: none;
}
.resume-band {
  background: linear-gradient(120deg, #edf5fb, #f6faff);
  border-block: 1px solid #dde8f0;
}
.resume-inner {
  display: grid;
  grid-template-columns: 34% 1fr;
  padding: 70px 0;
  gap: 20px;
}
.resume-intro .section-heading {
  margin-bottom: 26px;
}
.resume-switch {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.resume-switch button {
  color: #567086;
  background: transparent;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.95rem;
}
.resume-switch button[aria-pressed="true"] {
  background: #d9e9f6;
  color: #1d527c;
  font-weight: 620;
}
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  margin: 0;
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid #d3e1ec;
}
.timeline li:first-child {
  padding-top: 5px;
  border: 0;
}
.timeline time {
  font-size: 0.86rem;
  color: #50728e;
  padding-top: 5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.timeline h3,
.photo-grid h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.row-role {
  color: #3f5d76;
  margin: 4px 0 7px;
  font-size: 0.93rem;
}
.row-detail {
  font-size: 0.95rem;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-open {
  width: 100%;
  background: #dde9f2;
  padding: 0;
  border-radius: 11px;
  overflow: hidden;
}
.photo-open img {
  width: 100%;
  aspect-ratio: 1.49;
  object-fit: cover;
  transition: transform 0.4s;
}
.photo-open:hover img {
  transform: scale(1.035);
}
figcaption {
  padding-top: 10px;
}
figcaption p,
figcaption small {
  color: #597084;
  font-size: 0.9rem;
}
figcaption small {
  font-size: 0.8rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 27px 0;
  color: #536c80;
  font-size: 0.86rem;
}
.footer-inner > a:last-child {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
footer {
  border-top: 1px solid var(--line);
}
.lightbox {
  border: 0;
  padding: 16px;
  width: min(96vw, 1150px);
  background: #102638;
  color: #fff;
  border-radius: 16px;
}
.lightbox::backdrop {
  background: #061728d9;
  backdrop-filter: blur(8px);
}
.lightbox > img {
  max-height: 75svh;
  width: 100%;
  object-fit: contain;
}
.lightbox .light-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #183245da;
  color: #fff;
  display: grid;
  place-items: center;
}
.light-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}
.light-controls button {
  color: white;
  font-size: 1.8rem;
  line-height: 1;
}
.light-caption {
  text-align: center;
}
.light-caption small {
  display: block;
  color: #c5d5e0;
}
.skyline {
  display: none;
}
@keyframes come-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1550px) {
  .hero-inner {
    min-height: 650px;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: 90%;
  }
  .hero-copy {
    width: 47%;
  }
  .hero-object {
    right: -5%;
    width: 63%;
  }
  .headwrap {
    gap: 24px;
  }
  .resume-inner {
    grid-template-columns: 26% 1fr;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .resume-intro .section-heading {
    display: block;
  }
  .resume-intro .section-roman {
    display: block;
    margin-top: 8px;
  }
  .work-grid {
    gap: 18px;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 18px;
  }
  .wrap {
    width: 89%;
  }
  .headwrap {
    height: 60px;
    gap: 14px;
  }
  .brand {
    gap: 5px;
  }
  .brand b {
    font-size: 18px;
  }
  .mark {
    transform: scale(0.83);
    transform-origin: left center;
    width: 29px;
  }
  .headwrap nav {
    gap: 14px;
    font-size: 0.85rem;
  }
  .gh {
    width: 30px;
    height: 30px;
    justify-content: center;
    padding: 0;
  }
  .gh span {
    display: none;
  }
  .hero-inner {
    display: block;
    min-height: 0;
  }
  .hero-copy {
    width: 100%;
    padding: 40px 0 0;
  }
  .role {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: 58px;
  }
  .hero h1 em {
    font-size: 54px;
    margin: 3px 0 17px;
  }
  .intro {
    font-size: 0.94rem;
    max-width: 92%;
    line-height: 1.85;
  }
  .hero-actions {
    margin-top: 18px;
    gap: 20px;
  }
  .primary {
    padding: 11px 22px;
  }
  .hero-object {
    position: relative;
    top: auto;
    right: auto;
    width: 114%;
    margin: -8px 0 -8px -7%;
    height: clamp(220px, 60vw, 320px);
  }
  .motion {
    bottom: 12px;
    right: 0;
    width: 32px;
    height: 32px;
  }
  .section {
    padding: 37px 0 45px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 21px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .section-roman {
    font-size: 1.25rem;
  }
  .work-grid,
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cover {
    border-radius: 12px;
  }
  .work-meta {
    margin-top: 10px;
  }
  .work-card h3 {
    font-size: 23px;
  }
  .work-card > p {
    font-size: 0.94rem;
  }
  .viewer-bar {
    padding: 6px 8px;
  }
  .viewer-bar > div {
    gap: 2px;
  }
  .viewer-bar strong {
    max-width: 42%;
    font-size: 0.89rem;
  }
  .viewer-bar button {
    width: 31px;
  }
  .view-screen {
    height: 70svh;
    min-height: 340px;
  }
  .resume-inner {
    display: block;
    padding: 40px 0;
  }
  .resume-intro .section-heading {
    display: flex;
    margin-bottom: 18px;
  }
  .resume-intro .section-roman {
    margin: 0;
  }
  .resume-switch {
    flex-direction: row;
    gap: 3px;
    margin-bottom: 23px;
  }
  .resume-switch button {
    font-size: 0.86rem;
    padding: 5px 12px;
  }
  .timeline li {
    padding: 14px 0;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 13px;
  }
  .photo-grid figure:first-child {
    grid-column: 1/-1;
  }
  .footer-inner {
    gap: 9px;
    flex-wrap: wrap;
  }
  .footer-inner .brand b {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
