:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #12345b;
  --muted: #58708a;
  --accent: #246da8;
  --line: #cbdced;
  --media-bg: #e9eef4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #123f72;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  width: min(100% - 40px, 960px);
  margin: 0 auto;
  padding: 72px 0 48px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 span {
  margin-left: 0.18em;
  font-family: "STSong", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", "宋体", serif;
  font-size: 0.78em;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
}

.intro-copy > p {
  max-width: 640px;
  margin-bottom: 16px;
}

.profile-links,
.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.profile-links {
  margin-top: 25px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portrait-frame {
  margin-bottom: 0;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--media-bg);
  filter: saturate(0.92) contrast(1.02);
}

.work-section {
  padding-top: 64px;
}

.projects {
  padding-top: 78px;
}

.section-heading {
  margin-bottom: 26px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(250px, 38%) 1fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--media-bg);
}

.work-media video,
.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.project-video {
  cursor: zoom-in;
}

.work-media:hover video,
.work-media:hover img {
  transform: scale(1.018);
  filter: saturate(1.04);
}

.venue-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(18, 52, 91, 0.9);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
}

h3 a {
  color: var(--ink);
  text-decoration: none;
}

h3 a:hover {
  color: var(--accent);
}

.authors,
.venue,
.work-summary {
  margin-bottom: 7px;
}

.author-note {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.authors,
.venue {
  font-size: 0.92rem;
}

.intro-copy > p a {
  color: #4f8fc4;
  text-decoration: none;
}

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

.intro-copy > p a:hover,
.intro-copy > p a:focus-visible {
  color: #4f8fc4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.authors a:hover,
.authors a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.venue {
  color: var(--muted);
  font-style: italic;
}

.work-summary {
  color: #365674;
}

.work-links {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer {
  margin-top: 62px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer p {
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(7, 25, 45, 0.88);
  backdrop-filter: blur(8px);
}

.video-modal[hidden] {
  display: none;
}

.modal-player {
  display: block;
  width: min(100%, 1100px);
  max-height: 85vh;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(10, 32, 55, 0.55);
  color: #fff;
  font: 300 2rem/1 Arial, sans-serif;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, 620px);
    padding-top: 42px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .portrait-frame {
    width: min(82vw, 380px);
    order: -1;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-media {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-media video,
  .work-media img {
    transition: none;
  }
}
