/* ==========================================================================
   PROFESSIONAL EXPERIENCE — project 03 detail modal content
   The modal shell uses the shared .cine-modal classes from project-modal.css.
   ========================================================================== */

/* ---------- 1. Homepage card trigger ---------- */
.project-entry--prof {
  position: relative;
}

.project-entry--prof .project-entry-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}

.project-entry--prof .project-entry-aside .project-entry-media {
  width: 100%;
}

.project-entry--prof .project-entry-media img {
  transition: transform 0.7s var(--ease);
}

.project-entry--prof .project-entry-title {
  transition: color 0.3s var(--ease);
}

.project-entry--prof:focus-within .project-entry-title,
.project-entry--prof:focus-within .project-entry-view {
  color: var(--blue);
}

@media (hover: hover) and (pointer: fine) {
  .project-entry--prof:hover .project-entry-media img {
    transform: scale(1.035);
  }

  .project-entry--prof:hover .project-entry-title,
  .project-entry--prof:hover .project-entry-view {
    color: var(--blue);
  }
}

/* ---------- 2. Placeholders ---------- */
.prof-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(23, 25, 29, 0.05) 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  text-align: center;
}

.prof-placeholder__mark {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--blue);
}

.prof-placeholder__label {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.prof-placeholder__hint {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.prof-placeholder--hero {
  aspect-ratio: 16 / 7;
}

.prof-hero__media {
  aspect-ratio: 16 / 7;
  margin: 0 0 clamp(22px, 3vw, 34px);
  overflow: hidden;
}

.prof-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  object-fit: cover;
  object-position: center bottom;
}

.prof-placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.prof-placeholder--photo {
  aspect-ratio: 4 / 3;
}

.prof-placeholder--wide {
  aspect-ratio: 16 / 9;
}

.prof-media {
  min-width: 0;
}

/* Real images added later keep their own ratio. */
.prof-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

/* ---------- 3. Hero ---------- */
.prof-hero__title {
  max-width: 100%;
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.prof-hero__title::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 14px;
  background: var(--blue);
  vertical-align: 0.14em;
}

.prof-hero__cn {
  margin-top: 12px;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.prof-hero__intro {
  max-width: 680px;
  margin-top: clamp(16px, 2.2vw, 24px);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.95;
  color: var(--ink);
}

.prof-hero__intro--follow {
  margin-top: 10px;
}

/* ---------- 4. Sections ---------- */
.prof-section {
  margin-top: clamp(38px, 4.6vw, 56px);
  padding-top: clamp(30px, 3.6vw, 44px);
  border-top: 1px solid var(--line);
}

.prof-section__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prof-section__num {
  color: var(--blue);
}

.prof-section__en {
  color: var(--muted);
}

.prof-section__title {
  margin-top: 14px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.prof-section__lead {
  max-width: 64ch;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink);
}

/* ---------- 5. Role facts ---------- */
.prof-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(24px, 3vw, 32px);
}

.prof-fact {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.prof-fact__label {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.prof-fact__value {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- 6. Welfare highlight ---------- */
.prof-stat {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 3.6vw, 42px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.prof-stat__value {
  flex: 0 0 auto;
  font-size: clamp(3.6rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--ink);
  white-space: nowrap;
}

.prof-stat__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}

.prof-stat__en {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.prof-stat__en::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
}

.prof-stat__cn {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.prof-worklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
  margin-top: clamp(24px, 3vw, 36px);
}

.prof-workitem {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.prof-workitem__en {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.prof-workitem__cn {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 7. Galleries ---------- */
.prof-gallery {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(24px, 3vw, 34px);
}

.prof-gallery--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prof-gallery--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prof-gallery--feature {
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(18px, 2.4vw, 28px);
}

.prof-gallery--feature .prof-media {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

/* Match the first welfare screenshot's height; crop the excess bottom. */
.prof-media--crop-portrait {
  aspect-ratio: 950 / 1655;
  overflow: hidden;
}

.prof-media--crop-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Match the first party-branch image's square size. */
.prof-media--square {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.prof-media--square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* ---------- 8. Honor ---------- */
.prof-honor {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 24px;
  margin-top: clamp(24px, 3vw, 32px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prof-honor__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.prof-honor__label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
}

.prof-honor__title {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- 9. Ending ---------- */
.prof-ending {
  margin-top: clamp(44px, 5.5vw, 72px);
  padding-top: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
}

.prof-ending__en {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prof-ending__cn {
  max-width: 56ch;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 10. Bottom navigation ---------- */
.prof-pagination {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(52px, 6vw, 80px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}

.prof-pagination__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.prof-pagination__item--next {
  align-items: flex-end;
  text-align: right;
}

.prof-pagination__label {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.prof-pagination__arrow {
  margin-left: 4px;
  color: var(--blue);
}

.prof-pagination__meta {
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 720px) {
  .prof-gallery--double,
  .prof-gallery--trio {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .prof-gallery--double .prof-media {
    width: 100%;
    max-width: 420px;
  }

  .prof-gallery--trio .prof-media {
    width: 100%;
    max-width: 300px;
  }

  .prof-facts,
  .prof-worklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .prof-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .prof-hero__intro {
    font-size: 14px;
  }

  .prof-section__lead {
    font-size: 14.5px;
  }
}

@media (max-width: 420px) {
  .prof-hero__intro,
  .prof-section__lead {
    font-size: 14px;
  }

  .prof-honor {
    align-items: flex-start;
  }
}
