/* The opening shot and the homepage sequence. */
.cinema-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(636px, calc(100svh - 128px), 950px);
  padding: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.cinema-hero-scene,
.cinema-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cinema-hero-scene {
  left: 23%;
  overflow: hidden;
}

.cinema-site .cinema-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 47%;
  filter: grayscale(1) contrast(1.22) brightness(.8);
  transform: translate3d(var(--cinema-drift-x, 0px), var(--cinema-drift-y, 0px), 0) scale(1.075);
}

.cinema-hero-shade {
  background:
    linear-gradient(0deg, #0a0a0a 0%, #0a0a0ab8 16%, transparent 49%),
    linear-gradient(90deg, #0a0a0a 9%, #0a0a0a 23%, #0a0a0ae0 32%, #0a0a0a8c 48%, transparent 72%),
    linear-gradient(180deg, #05050580, transparent 32%);
}

.cinema-hero-frame {
  position: absolute;
  z-index: 3;
  inset: 17px max(17px, calc((100% - 1400px) / 2));
  pointer-events: none;
  border: 1px solid #f1f1f121;
  background:
    linear-gradient(#e4e4e480, #e4e4e480) top left / 20px 1px,
    linear-gradient(#e4e4e480, #e4e4e480) top left / 1px 20px,
    linear-gradient(#e4e4e480, #e4e4e480) bottom right / 20px 1px,
    linear-gradient(#e4e4e480, #e4e4e480) bottom right / 1px 20px;
  background-repeat: no-repeat;
}

.cinema-hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  padding-block: clamp(56px, 8.2vh, 116px) 42px;
}

.cinema-hero-primary {
  align-self: center;
  padding-bottom: 30px;
}

.cinema-hero-role {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 22px;
  color: #e1e1e1;
  font: 500 .86rem/1.4 var(--cinema-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cinema-hero-role::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.cinema-hero-role span {
  color: #a0a0a0;
}

.cinema-hero h1 {
  width: fit-content;
  margin: 0 0 29px;
  font: 400 clamp(5.25rem, 10.35vw, 10.5rem)/.87 var(--cinema-display);
  letter-spacing: -.065em;
}

.cinema-hero h1 span {
  display: block;
  width: fit-content;
  margin: 22px 0 0 .1em;
  font: 400 clamp(1.65rem, 3.1vw, 3.15rem)/1.2 "Juanxi Brush", "Kaiti TC", KaiTi, serif;
  letter-spacing: .15em;
}

.cinema-hero-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  max-width: 580px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: #d1d1d1;
  font-size: .9rem;
}

.cinema-hero-interests li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.cinema-hero-interests li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9b9b9b;
}

.cinema-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cinema-hero-actions .cinema-button {
  min-width: 120px;
}

.cinema-hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
}

.cinema-hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.cinema-hero-social a {
  color: #cfcfcf;
  font-size: .875rem;
  text-decoration: underline;
  text-decoration-color: #787878;
  text-underline-offset: .32em;
}

.cinema-hero-social a:hover {
  text-decoration-color: #fff;
}

.cinema-hero-quote {
  width: min(100%, 414px);
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid #9c9c9c;
}

.cinema-hero-quote p {
  margin: 0;
  color: #dfdfdf;
}

.cinema-hero-quote p[lang="zh-Hant"] {
  font: 400 clamp(.91rem, 1.3vw, 1.125rem)/1.65 "Songti TC", "Noto Serif CJK TC", "MingLiU", serif;
  letter-spacing: .04em;
}

.cinema-hero-quote p[lang="en"] {
  margin-top: 6px;
  color: #bcbcbc;
  font: italic 400 1rem/1.4 Georgia, serif;
}

.cinema-contents {
  position: relative;
  border-block: 1px solid var(--cinema-line);
  background: var(--cinema-panel);
}

.cinema-contents > .container {
  display: flex;
  flex-wrap: wrap;
}

.cinema-contents a {
  flex: 1 1 25%;
  min-width: 0;
  padding: 16px 8px;
  border-right: 1px solid var(--cinema-line);
  color: var(--cinema-muted);
  font: 400 .86rem/1.5 var(--cinema-mono);
  text-align: center;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}

.cinema-contents a:first-child {
  border-left: 1px solid var(--cinema-line);
}

.cinema-contents a:is(:hover, :focus-visible) {
  background: #252525;
  color: #fff;
}

@keyframes cinema-opening-shot {
  from { scale: 1.16; opacity: .42; }
  to { scale: 1; opacity: 1; }
}

@keyframes cinema-opening-title {
  from { clip-path: inset(0 0 100%); transform: translateY(20px); opacity: .3; }
  to { clip-path: inset(0); transform: translateY(0); opacity: 1; }
}

@keyframes cinema-opening-credit {
  from { transform: translateY(12px); opacity: .24; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .cinema-site .cinema-hero-image {
    animation: cinema-opening-shot 2.6s var(--cinema-ease) both !important;
  }

  .cinema-site .cinema-hero h1 {
    animation: cinema-opening-title .95s var(--cinema-ease) .06s both !important;
  }

  .cinema-site .cinema-hero-credit {
    animation: cinema-opening-credit .85s var(--cinema-ease) both !important;
  }

  .cinema-site .cinema-hero-interests { animation-delay: .18s !important; }
  .cinema-site .cinema-hero-actions { animation-delay: .26s !important; }
  .cinema-site .cinema-hero-bottom { animation-delay: .34s !important; }
}

/* Portrait, chronology and news. */
.cinema-home :is(#section-1, #experience-section, #news-section) {
  padding: clamp(54px, 8vw, 118px) 0 !important;
  border-bottom: 1px solid var(--cinema-line);
  background: var(--cinema-bg);
}

.cinema-home :is(#section-1, #experience-section, #news-section) > .container {
  padding-top: 0;
  border: 0;
}

.cinema-home #experience-section {
  background: #101010;
}

.cinema-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 22px;
  margin-bottom: clamp(24px, 4.5vw, 54px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cinema-line);
}

.cinema-section-heading .section-subtitle {
  margin: 0;
  color: var(--cinema-muted);
}

.cinema-home .profile-image-container {
  display: flex;
  padding: 8px;
  border: 1px solid #575757;
  background: #171717;
}

.cinema-home .profile-image-wrapper {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 2 / 3;
  border: 0;
}

.cinema-home .profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  background: #151515;
  filter: none;
}

.cinema-home .profile-image--alternate {
  filter: grayscale(1) contrast(1.1) brightness(.89);
}

.cinema-home .about-card,
.cinema-home .contact-info,
.cinema-home .info-card,
.cinema-home .info-card:hover {
  background: transparent;
}

.cinema-home .about-name.calligraphy-name {
  color: var(--cinema-ink);
  font-family: var(--cinema-display);
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
}

.cinema-home .calligraphy-name .calligraphy-chinese,
.cinema-home .about-bio strong,
.cinema-home .about-bio a {
  color: var(--cinema-ink);
}

.cinema-home .about-title,
.cinema-home .about-affiliation {
  color: var(--cinema-muted) !important;
}

.cinema-home :is(.about-bio p, .links-list a, .links-list a i, .contact-email, .wechat-info, .position-org, .info-card h6) {
  color: var(--cinema-muted) !important;
}

.cinema-home .about-bio p {
  font-size: 1rem;
}

.cinema-home .about-bio a {
  text-decoration-color: #777;
}

.cinema-home .about-bio a:hover,
.cinema-home .links-list a:hover {
  color: #fff !important;
  text-decoration-color: #fff;
}

.cinema-home .info-card {
  padding: 18px 0 8px;
}

.cinema-home .info-card .community-link-logo--featured {
  width: 60px;
  height: 60px;
  padding: 5px;
  background: #e9e9e9;
}

.cinema-home .career-group {
  scroll-margin-top: 12px;
}

.cinema-home .career-entry {
  align-items: center;
}

.cinema-home :is(.career-entry p, .career-dates, .news-date, .news-category, .news-tag, .news-toggle) {
  color: var(--cinema-muted);
}

.cinema-home :is(.career-dates, .news-date) {
  font-family: var(--cinema-mono);
}

.cinema-home .career-logo {
  height: 60px;
  border: 1px solid #bfbfbf;
  background: #dedede;
  padding: 8px;
}

.cinema-home .career-logo img {
  width: 100%;
  max-height: 100%;
}

.cinema-home .news-item,
.cinema-home .news-body,
.cinema-home .news-header:hover,
.cinema-home .cta-card {
  background: transparent;
}

.cinema-home .news-header[aria-controls]:is(:hover, :focus-visible, [aria-expanded="true"]) {
  background: #151515;
}

.cinema-home .news-header:focus-visible {
  outline-offset: -2px;
}

.cinema-home .news-header[aria-expanded="true"] .news-toggle i,
.cinema-home .news-body strong {
  color: var(--cinema-ink);
}

.cinema-home .news-body p,
.cinema-home .cta-text {
  color: var(--cinema-muted);
}

.cinema-home .cta-title {
  font: 400 clamp(1.85rem, 3.4vw, 3rem)/1.08 var(--cinema-display);
  letter-spacing: -.025em;
}

@keyframes cinema-news-open {
  from { opacity: .45; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .cinema-home .news-content.show .news-body {
    animation: cinema-news-open .35s var(--cinema-ease) both !important;
  }
}

@media (max-width: 991.98px) {
  .cinema-hero {
    min-height: clamp(640px, calc(100svh - 118px), 840px);
  }

  .cinema-hero-scene {
    left: 13%;
  }

  .cinema-hero-shade {
    background:
      linear-gradient(0deg, #0a0a0a, #0a0a0aa8 20%, transparent 55%),
      linear-gradient(90deg, #0a0a0a 12%, #0a0a0acc 27%, #0a0a0a40 55%, transparent 80%),
      linear-gradient(180deg, #0a0a0a7d, transparent 30%);
  }

  .cinema-hero-frame {
    inset: 12px;
  }

  .cinema-hero-bottom {
    align-items: start;
    flex-direction: column-reverse;
  }

  .cinema-home .profile-image-container {
    width: min(100%, 340px);
  }
}

@media (max-width: 575.98px) {
  .cinema-hero {
    min-height: 0;
  }

  .cinema-hero-scene {
    inset: 0 0 auto;
    height: 330px;
  }

  .cinema-site .cinema-hero-image {
    object-position: 52% 45%;
  }

  .cinema-hero-shade {
    background:
      linear-gradient(0deg, #0a0a0a calc(100% - 322px), #0a0a0a66 calc(100% - 232px), transparent),
      linear-gradient(90deg, #0a0a0a4d, transparent 58%);
  }

  .cinema-hero-frame {
    inset: 8px;
  }

  .cinema-hero-content {
    padding-block: 190px 27px;
  }

  .cinema-hero-primary {
    padding-bottom: 29px;
  }

  .cinema-hero-role {
    margin-bottom: 13px;
    font-size: .78rem;
    letter-spacing: .1em;
  }

  .cinema-hero-role::before {
    width: 22px;
  }

  .cinema-hero h1 {
    margin-bottom: 17px;
    font-size: clamp(3.65rem, 13.35vw, 5.2rem);
  }

  .cinema-hero h1 span {
    margin-top: 12px;
  }

  .cinema-hero-interests {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 3px 14px;
    margin-bottom: 20px;
  }

  .cinema-hero-interests li::after {
    display: none !important;
  }

  .cinema-hero-bottom {
    gap: 18px;
  }

  .cinema-hero-social {
    gap: 4px 17px;
  }

  .cinema-hero-quote {
    padding-left: 13px;
  }

  .cinema-hero-quote p[lang="en"] {
    font-size: .92rem;
  }

  .cinema-contents a {
    flex-basis: 50%;
    padding: 10px 4px;
  }

  .cinema-contents a:nth-child(3) {
    border-left: 1px solid var(--cinema-line);
  }

  .cinema-contents a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cinema-line);
  }
}

@media (max-width: 360px) {
  .cinema-hero h1 {
    font-size: clamp(2.7rem, 16vw, 3.55rem);
  }
}
