.profile-page { background: var(--paper); color: var(--ink); }
.profile-hero { position: relative; min-height: 700px; padding: calc(var(--header) + 90px) max(24px, calc((100vw - var(--max))/2)) 90px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 9%; overflow: hidden; color: #fff; background: radial-gradient(circle at 17% 22%, #7e1821 0, transparent 30%), linear-gradient(135deg, #1b1113 0 55%, #080707 55%); }
.profile-hero::after { content: "B"; position: absolute; right: -2vw; bottom: -15vw; color: #ffffff08; font: 700 58vw/1 Georgia, serif; pointer-events: none; }
.profile-hero-copy, .profile-hero-photo, .profile-back { position: relative; z-index: 1; }
.profile-hero h1 { margin: 16px 0 30px; font: 500 clamp(64px, 8vw, 118px)/.88 "Noto Serif TC", "PMingLiU", serif; letter-spacing: -.04em; }
.profile-hero h1 span { color: #d6ad57; font-size: .44em; letter-spacing: .18em; }
.profile-lead { max-width: 700px; color: #d0c7c7; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.9; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.profile-tags span { padding: 3px 6px; border: 1px solid #ffffff30; color: #e9dfdf; font-size: 12px; letter-spacing: .12em; }
.profile-hero-photo { width: min(390px, 100%); height: 520px; justify-self: center; align-self: end; overflow: hidden; box-shadow: 0 28px 70px #0008; }
.profile-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.profile-hero h1, .profile-intro h2, .profile-section-head h2, .profile-card-grid h3,
.profile-teaching h2, .award-paper span, .award-paper h3, .publication-list h3,
.project-timeline h3, .profile-cta h2 {
  font-family: "Aptos Display", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
}
.profile-back { position: absolute; bottom: 34px; left: max(24px, calc((100vw - var(--max))/2)); color: #bcb2b2; font-size: 12px; }
.profile-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10%; }
.profile-intro h2, .profile-section-head h2 { margin-top: 12px; font: 500 clamp(36px, 4vw, 58px)/1.25 "Noto Serif TC", "PMingLiU", serif; }
.profile-intro-copy > p { color: #554d4d; font-size: 16px; line-height: 2; }
.profile-facts { margin: 28px 0 0; padding: 24px 0 0 22px; border-top: 1px solid var(--line); color: #463e3e; }
.profile-facts li + li { margin-top: 10px; }
.profile-expertise { padding-top: 24px; }
.profile-section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 7%; margin-bottom: 44px; }
.profile-section-head .section-kicker { grid-column: 1 / -1; }
.profile-section-head h2 { margin: 0; }
.profile-section-head > p:last-child { color: var(--muted); line-height: 1.8; }
.profile-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.profile-card-grid article { min-height: 330px; padding: 38px; border-right: 1px solid var(--line); background: #fff; }
.profile-card-grid article:last-child { border: 0; }
.profile-card-grid span { color: #a71922; font: 400 30px Georgia, serif; }
.profile-card-grid h3 { margin: 70px 0 16px; font: 500 27px "Noto Serif TC", "PMingLiU", serif; }
.profile-card-grid p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.profile-teaching { color: #fff; background: linear-gradient(110deg, #74151d, #1a1112 65%); }
.profile-teaching-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9%; }
.profile-teaching h2 { margin-top: 14px; font: 500 clamp(36px, 4vw, 56px)/1.3 "Noto Serif TC", "PMingLiU", serif; }
.profile-methods article { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid #ffffff24; }
.profile-methods b { color: #d6ad57; font-size: 19px; }
.profile-methods p { margin: 0; color: #c9bebe; line-height: 1.8; }
.award-paper { display: grid; grid-template-columns: 260px 1fr; gap: 50px; padding: 38px; color: #fff; background: #171213; }
.award-paper > div:first-child { display: flex; flex-direction: column; justify-content: space-between; }
.award-paper span { color: #d6ad57; font: 500 26px "Noto Serif TC", "PMingLiU", serif; }
.award-paper small { color: #9f9595; }
.award-paper h3 { margin: 0 0 18px; font: 500 clamp(25px, 3vw, 40px)/1.45 "Noto Serif TC", "PMingLiU", serif; }
.award-paper p { color: #b9aeae; }
.publication-list { border-top: 1px solid var(--line); }
.publication-list article { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.publication-list time { color: #a71922; font: 400 26px Georgia, serif; }
.publication-list span { color: #8d3035; font-size: 11px; letter-spacing: .12em; }
.publication-list h3 { margin: 8px 0; font: 500 18px/1.55 "Noto Serif TC", "PMingLiU", serif; }
.publication-list p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-government { max-width: none; padding-left: max(24px, calc((100vw - var(--max))/2)); padding-right: max(24px, calc((100vw - var(--max))/2)); color: #fff; background: #151111; }
.profile-government .profile-section-head > p:last-child { color: #b9aeae; }
.project-timeline { border-top: 1px solid #ffffff2a; }
.project-timeline article { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 27px 0; border-bottom: 1px solid #ffffff1e; }
.project-timeline time { color: #d6ad57; font-family: Georgia, serif; }
.project-timeline span { color: #bc464c; font-size: 11px; letter-spacing: .12em; }
.project-timeline h3 { margin: 7px 0; font: 500 22px "Noto Serif TC", "PMingLiU", serif; }
.project-timeline p { margin: 0; color: #a99f9f; }
.profile-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  padding: 90px max(24px, calc((100vw - var(--max))/2));
  color: #fff;
  background:
    radial-gradient(circle at 18% 35%, rgba(179, 25, 39, .62), transparent 42%),
    linear-gradient(112deg, #8f1721 0%, #4c0b12 46%, #120b0d 78%, #080708 100%);
}
.profile-cta::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 0 42%;
  opacity: .32;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.13) 8% 8.35%, transparent 8.35% 19%, rgba(255,255,255,.08) 19% 19.3%, transparent 19.3% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 42px),
    linear-gradient(145deg, transparent 0 36%, rgba(0,0,0,.76) 36.2% 100%);
  clip-path: polygon(8% 38%, 20% 38%, 20% 20%, 31% 20%, 31% 46%, 42% 46%, 42% 8%, 58% 8%, 58% 29%, 70% 29%, 70% 14%, 84% 14%, 84% 43%, 100% 43%, 100% 100%, 0 100%);
}
.profile-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 52vw;
  height: 52vw;
  right: -19vw;
  top: -31vw;
  border: 1px solid rgba(215,181,91,.22);
  transform: rotate(18deg);
  box-shadow: 0 0 0 46px rgba(215,181,91,.025), 0 0 0 92px rgba(255,255,255,.018);
}
.profile-cta > div { position: relative; z-index: 1; }
.profile-cta h2 { margin-top: 12px; font: 500 clamp(38px, 4.6vw, 66px)/1.2 "Noto Serif TC", "PMingLiU", serif; }
.profile-cta > div:last-child { align-self: end; }
.profile-cta > div:last-child p { color: #ead7d8; margin-bottom: 26px; }

@media (max-width: 900px) {
  .profile-hero { min-height: auto; padding-top: calc(var(--header) + 54px); grid-template-columns: 1fr; }
  .profile-hero-photo { width: 220px; height: 300px; justify-self: start; }
  .profile-back { position: static; }
  .profile-intro, .profile-teaching-inner, .profile-section-head, .profile-cta { grid-template-columns: 1fr; }
  .profile-card-grid { grid-template-columns: 1fr; }
  .profile-card-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-card-grid h3 { margin-top: 34px; }
  .profile-methods article, .project-timeline article { grid-template-columns: 1fr; gap: 10px; }
  .award-paper { grid-template-columns: 1fr; gap: 28px; }
  .award-paper > div:first-child { gap: 8px; }
  .publication-list article { grid-template-columns: 70px 1fr; gap: 20px; }
}

/* Tighter consultant-page sections and content frames. */
.profile-hero { min-height: 610px; padding-top: calc(var(--header) + 62px); padding-bottom: 62px; }
.profile-hero-photo { height: 450px; }
.profile-intro { gap: 6%; }
.profile-facts { margin-top: 18px; padding-top: 16px; }
.profile-section-head { margin-bottom: 28px; gap: 4%; }
.profile-card-grid article { min-height: 230px; padding: 24px; }
.profile-card-grid h3 { margin: 30px 0 10px; }
.profile-methods article { grid-template-columns: 120px 1fr; gap: 18px; padding: 17px 0; }
.award-paper { grid-template-columns: 220px 1fr; gap: 30px; padding: 28px; }
.publication-list article { gap: 24px; padding: 18px 0; }
.project-timeline article { grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; }
.profile-cta { gap: 6%; padding-top: 62px; padding-bottom: 62px; }
@media (max-width: 900px) {
  .profile-hero { padding-top: calc(var(--header) + 38px); padding-bottom: 48px; }
  .profile-hero-photo { height: 280px; }
  .profile-card-grid article { padding: 22px; }
  .profile-methods article, .project-timeline article { grid-template-columns: 1fr; gap: 6px; }
}

/* Portrait-led hero: name sits to the right and shares the portrait baseline. */
.profile-hero { grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); align-items: end; gap: 6%; }
.profile-hero-photo { grid-column: 1; width: 100%; max-width: 390px; height: 450px; justify-self: start; align-self: end; }
.profile-hero-copy { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; height: 450px; padding-top: 10px; }
.profile-hero h1 { margin: auto 0 0; font-size: clamp(56px, 7vw, 102px); line-height: .9; white-space: nowrap; }
.profile-hero h1 span { display: inline-block; margin-left: .18em; font-size: .38em; vertical-align: .16em; }
.profile-tags { margin-top: 22px; }
@media(max-width:900px) {
  .profile-hero { grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr); gap: 5%; }
  .profile-hero-photo { width: 100%; height: 340px; justify-self: stretch; }
  .profile-hero-copy { height: 340px; padding-top: 0; }
  .profile-hero h1 { font-size: clamp(42px, 7.5vw, 68px); }
  .profile-lead { font-size: 15px; line-height: 1.65; }
}
@media(max-width:620px) {
  .profile-hero { grid-template-columns: 42% 1fr; gap: 14px; }
  .profile-hero-photo, .profile-hero-copy { height: 285px; }
  .profile-hero h1 { font-size: clamp(30px, 9vw, 48px); white-space: normal; }
  .profile-hero h1 span { display: block; margin: 8px 0 0; }
  .profile-lead { font-size: 12px; line-height: 1.55; }
  .profile-tags { gap: 4px; margin-top: 10px; }
  .profile-tags span { font-size: 9px; }
}

/* Phone profile: portrait, credentials and name become a deliberate vertical story. */
@media (max-width: 700px) {
  .profile-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding: calc(var(--header) + 28px) 18px 34px;
  }
  .profile-hero-photo {
    grid-column: 1;
    width: min(76vw, 300px);
    height: auto;
    aspect-ratio: 4 / 5;
    justify-self: center;
  }
  .profile-hero-copy {
    grid-column: 1;
    width: 100%;
    height: auto;
    padding: 0;
  }
  .profile-lead { font-size: 15px; line-height: 1.75; }
  .profile-tags { gap: 6px; margin-top: 14px; }
  .profile-tags span { font-size: 10px; }
  .profile-hero h1 {
    margin: 24px 0 0;
    font-size: clamp(42px, 13vw, 62px);
    line-height: 1;
    white-space: normal;
  }
  .profile-hero h1 span { display: inline-block; margin: 0 0 0 .18em; font-size: .4em; }
  .profile-back { margin-top: 0; }
  .profile-section { padding: 42px 18px; }
  .profile-intro { gap: 22px; }
  .profile-section-head { margin-bottom: 22px; }
  .profile-card-grid article { padding: 20px 18px; }
  .award-paper { padding: 22px 18px; }
  .publication-list article { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .publication-list h3 { overflow-wrap: anywhere; }
  .profile-cta { padding: 44px 18px; gap: 20px; }
  .profile-cta h2 { font-size: clamp(36px, 10vw, 48px); }
}
