:root {
  color-scheme: light;
  --ink: #16232e;
  --navy: #121c26;
  --navy-deep: #0d1720;
  --paper: #faf9f5;
  --stone: #f0eee7;
  --muted: #53606a;
  --line: #dcd8ce;
  --gold: #d3b783;
  --bronze: #795d30;
  --white: #fbf8f0;
  --sans: "DM Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --gutter: clamp(20px, 5.8vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.85 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body, h1, h2, h3, p, dl, dd, ol, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a07739; outline-offset: 5px; }
[id] { scroll-margin-top: 100px; }

.shell { width: min(100% - var(--gutter) * 2, 1220px); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 12px auto auto 12px;
  padding: 8px 16px;
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  color: var(--white);
  background: var(--navy-deep);
  border-bottom: 1px solid #d3b78332;
}

.header-inner {
  position: relative;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; flex: none; }

.monogram {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #d3b7838f;
  color: var(--gold);
  font: 400 1.22rem/1 Georgia, serif;
  letter-spacing: -.09em;
  padding-right: .09em;
}

.brand-text { display: grid; gap: 4px; line-height: 1.15; }
.brand-name { font: 700 1.1rem/1.15 var(--serif); letter-spacing: .14em; }
.brand-en { color: #c3c8c9; font-size: .7rem; letter-spacing: .075em; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3.1vw, 48px); }

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #e4e2dc;
  font-size: .91rem;
  letter-spacing: .07em;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover, .site-nav a[aria-current], .back-link:hover { color: var(--gold); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: clamp(565px, min(49vw, calc(100svh - 76px)), 745px);
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: #192734;
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 40%;
  background: linear-gradient(180deg, #cdd0da, #d8dae4 36%, #dde0e8 69%, #d5d7e0 88%, #c3c8d2);
}

.hero-media img {
  position: absolute;
  top: clamp(12px, 2.4svh, 24px);
  left: 53%;
  width: auto;
  height: min(calc(100% - 32px), max(350px, calc(100svh - 115px)));
  object-fit: contain;
  transform: translateX(-50%);
  filter: saturate(.76) brightness(.91);
  mask-image:
    linear-gradient(180deg, transparent, #000 2.2%, #000 94%, transparent),
    linear-gradient(90deg, transparent, #000 17%, #000 90%, transparent);
  mask-composite: intersect;
}

.hero-veil {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #111d27, #111d2780 6%, #111d2721 16%, transparent 28%),
    linear-gradient(90deg, #121e29, #172431 29%, #1a2936 40%, #1a2936de 45%, #1a29366e 53%, transparent 65%, transparent 85%, #18253285);
}

.hero-veil::after {
  position: absolute;
  inset: 0 45% 0 0;
  content: "";
  background:
    repeating-linear-gradient(90deg, transparent 0 87px, #c6cdd20f 87px 88px),
    repeating-linear-gradient(0deg, transparent 0 87px, #c6cdd20c 87px 88px);
  mask-image: linear-gradient(90deg, #000, transparent);
  pointer-events: none;
}

.hero-inner { display: grid; align-items: center; padding-block: 78px 92px; }
.hero-copy { position: relative; width: min(100%, 610px); }

.eyebrow {
  color: var(--bronze);
  font: 700 .78rem/1.55 var(--sans);
  letter-spacing: .16em;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold);
}

.hero-eyebrow::before { width: 26px; height: 1px; flex: none; content: ""; background: var(--gold); }

.hero h1 {
  margin-top: 18px;
  font: 700 clamp(4.45rem, 8vw, 7.55rem)/1.12 var(--serif);
  letter-spacing: .075em;
}

.hero-name {
  margin-top: 14px;
  color: var(--gold);
  font: 400 clamp(2rem, 3vw, 3.1rem)/1.15 Georgia, serif;
  letter-spacing: -.055em;
}

.hero-focus {
  margin-top: 24px;
  color: #f0ece5;
  font-size: .96rem;
  font-weight: 500;
  letter-spacing: .035em;
}

.hero-focus span { white-space: nowrap; }
.hero-focus span + span::before { margin-inline: .22em; color: var(--gold); content: "· "; }

.hero-quote {
  margin-top: 27px;
  padding: 1px 0 1px 15px;
  border-left: 1px solid #d3b783ab;
  color: #d6d9d7;
  font: 500 1rem/1.95 var(--serif);
  letter-spacing: .065em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 8px 23px;
  border: 1px solid transparent;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .055em;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary { color: #19232c; background: var(--gold); }
.button-primary:hover { background: #ead0a0; }
.button-outline { color: var(--white); border-color: #e8dbbd6e; background: #14202c57; }
.button-outline:hover { color: var(--gold); border-color: var(--gold); background: #1a2a37; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.career-strip {
  color: var(--white);
  background: #1c2b38;
  border-block: 1px solid #d3b78340;
}

.career-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }

.career-strip-inner > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 16px;
  padding: 20px clamp(12px, 2vw, 32px);
}

.career-strip-inner > div:first-child { padding-left: 0; }
.career-strip-inner > div + div { border-left: 1px solid #d3b78333; }
.career-strip dt { color: var(--gold); font-size: .84rem; letter-spacing: .04em; }
.career-strip dd { font-size: .94rem; font-weight: 600; line-height: 1.65; }
.career-strip dd span { display: block; color: #bdc6cd; font-size: .83rem; font-weight: 400; word-break: keep-all; }

.section { padding-block: clamp(72px, 8vw, 118px); }
.section-eyebrow { margin-bottom: 13px; }

h2 {
  font: 700 clamp(2.2rem, 4.5vw, 3.75rem)/1.25 var(--serif);
  letter-spacing: .045em;
}

h3 { font: 700 clamp(1.15rem, 2vw, 1.5rem)/1.5 var(--serif); }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(35px, 7vw, 115px);
}

.section-lead {
  margin-top: 26px;
  color: #364958;
  font: 600 clamp(1.19rem, 2.2vw, 1.56rem)/1.65 var(--serif);
}

.prose { color: var(--muted); line-height: 1.95; }
.about-layout .prose { margin-top: 23px; }
.prose p + p { margin-top: 12px; }

.profile-card {
  position: relative;
  padding: clamp(23px, 3.3vw, 42px);
  background: #f2f0e9;
  border: 1px solid var(--line);
  border-top: 2px solid #ac8b58;
}

.profile-card h3 { margin-bottom: 16px; }

.profile-card dl > div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 10px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}

.profile-card dt { color: var(--muted); font-size: .9rem; }
.profile-card dd { align-self: center; line-height: 1.55; }
.profile-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin-top: 40px; }
.profile-notes details { min-width: 0; border-block: 1px solid var(--line); }

summary { position: relative; display: block; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #a18453a3;
  border-radius: 50%;
  color: var(--bronze);
  content: "+";
  font: 500 1rem/1 var(--sans);
  transform: translateY(-50%);
}

details[open] > summary::after { content: "−"; }
.profile-notes summary { padding: 13px 38px 13px 0; font-weight: 600; }
.profile-notes summary:hover, .timeline summary:hover .timeline-title { color: var(--bronze); }
.profile-notes .prose { padding: 0 0 17px; }

.full-profile {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-left: 2px solid #ac8b58;
  background: #f2f0e9;
}

.full-profile > summary {
  padding: 13px 49px 13px 20px;
  color: var(--ink);
  font-weight: 700;
}

.full-profile > summary::after { right: 16px; }
.full-profile > summary:hover { color: var(--bronze); }

.full-profile-body {
  max-width: 790px;
  margin-inline: auto;
  padding: 15px clamp(17px, 4vw, 48px) clamp(25px, 5vw, 52px);
}

.full-profile-body h3, .full-profile-body h4, .full-profile-body h5 { color: var(--ink); }
.full-profile-body .article-focus { margin-top: 7px; color: var(--bronze); font-weight: 600; }

.full-profile-body h4 {
  margin: 32px 0 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font: 700 1.28rem/1.5 var(--serif);
}

.full-profile-body h5 { margin: 23px 0 8px; font: 700 1.05rem/1.55 var(--serif); }
.full-profile-body ul { margin-block: 10px; padding-left: 1.4em; }
.full-profile-body blockquote, .article-note { padding-left: 13px; border-left: 1px solid #a88654; }
.full-profile-body blockquote + blockquote { margin-top: 11px; }

.article-facts > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 8px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.article-facts dt { color: var(--ink); font-weight: 600; }

.career { background: var(--stone); }

.career-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.65fr);
  gap: clamp(32px, 7vw, 100px);
}

.section-intro > p:last-child, .split-intro > p { margin-top: 16px; color: var(--muted); max-width: 32ch; }
.timeline { list-style: none; padding: 0; border-top: 1px solid #d3ccbd; }

.timeline > li {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid #d3ccbd;
}

.timeline-date { padding-block: 19px; color: var(--bronze); font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline summary { padding: 16px 36px 16px 0; }
.timeline-title { display: block; font: 700 clamp(1.12rem, 2vw, 1.37rem)/1.5 var(--serif); }
.timeline-title span { margin-left: .4em; color: var(--muted); font: 500 .88rem/1.5 var(--sans); white-space: nowrap; }
.timeline-description { display: block; margin-top: 4px; color: var(--muted); }
.timeline details > p { margin-bottom: 16px; padding-right: 32px; color: var(--muted); }
.timeline details > .record-note { border-left: 1px solid #a18453a3; padding-left: 12px; }

.research {
  position: relative;
  color: var(--white);
  background: radial-gradient(ellipse at 95% 2%, #2d3d49, transparent 58%), var(--navy);
}

.research .eyebrow { color: var(--gold); }
.split-intro { display: flex; align-items: end; justify-content: space-between; gap: 18px 44px; }
.split-intro > p { margin-bottom: .15em; }
.research .split-intro > p { color: #c6cdd1; }

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: #68716c;
  border: 1px solid #68716c;
}

.research-card { padding: clamp(23px, 3.5vw, 46px); background: #1a2733; }
.research-card h3 { margin-block: 12px 9px; }
.research-card > p:last-child { max-width: 43ch; color: #d4d9dc; }

.philosophy-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); margin-top: 36px; }

.feature-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  min-height: 310px;
  padding: clamp(25px, 5.1vw, 65px);
  background: #efeadd;
  border-top: 2px solid #a88854;
}

.quote-mark { height: 49px; color: var(--bronze); font: 400 5.5rem/.9 Georgia, serif; }
.feature-quote p { font: 700 clamp(1.45rem, 2.85vw, 2.55rem)/1.66 var(--serif); letter-spacing: .035em; }
.feature-quote footer { margin-top: 23px; color: var(--bronze); font-weight: 700; }
.feature-quote footer span { margin-left: .4em; font-weight: 500; }
.principles > article { padding-block: 19px; border-bottom: 1px solid var(--line); }
.principles > article:first-child { padding-top: 3px; }
.principles p { margin-top: 6px; color: var(--muted); }
.short-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 35px; }
.short-quotes > blockquote { padding-left: 15px; border-left: 1px solid #a88654; color: #4b5660; font: 600 1rem/1.8 var(--serif); }

.site-footer { color: var(--white); background: var(--navy-deep); }

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 38px;
  min-height: 115px;
  padding-block: 25px;
}

.footer-inner p { color: #c5cdd2; font-size: .87rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }

@media (max-width: 1020px) {
  .hero-media { left: 43%; }
  .hero-media img { left: 50%; }
  .hero-veil {
    background:
      linear-gradient(0deg, #111d27, #111d2780 6%, #111d2721 16%, transparent 28%),
      linear-gradient(90deg, #121e29, #172431 30%, #1a2936 43%, #1a2936a6 52%, transparent 70%, transparent 90%, #18253265);
  }
}

@media (min-width: 761px) and (max-height: 800px) {
  .hero-inner { padding-block: clamp(24px, 6.8svh, 57px); }
}

@media (max-width: 760px) {
  [id] { scroll-margin-top: 77px; }
  .header-inner { min-height: 62px; flex-wrap: wrap; }
  .monogram { width: 37px; font-size: 1.06rem; }
  .site-header .site-nav { width: 100%; flex-wrap: wrap; gap: 0 20px; }

  .site-header[data-menu-ready] .site-nav {
    position: absolute;
    inset: 100% calc(var(--gutter) * -1) auto;
    width: auto;
    display: none;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    border-block: 1px solid #d3b78340;
    padding: 4px var(--gutter) 10px;
  }

  .site-header[data-menu-ready] .site-nav[data-open] { display: grid; }
  .site-nav a + a { border-top: 1px solid #d3b78326; }
  .site-nav a::after { right: auto; width: 2em; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 10px;
    padding: 0 4px 0 10px;
    color: #eee9dd;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span { width: 15px; height: 9px; border-block: 1px solid currentColor; }
  .menu-toggle[aria-expanded="true"] { color: var(--gold); }
  .hero {
    --portrait-width: min(76vw, 385px);
    --portrait-height: calc(var(--portrait-width) * 4 / 3);
    min-height: 0;
  }
  .hero-media {
    inset: 0 0 auto;
    height: calc(var(--portrait-height) + 24px);
  }
  .hero-media img { top: 12px; width: var(--portrait-width); height: auto; }
  .hero-veil {
    background:
      linear-gradient(180deg, transparent calc(var(--portrait-height) * .83), #121e293d calc(var(--portrait-height) * .96), #121e29 calc(var(--portrait-height) + 24px)),
      linear-gradient(90deg, #26354524, transparent 20%, transparent 82%, #26354528);
  }
  .hero-veil::after { inset: 44% 0 0; }
  .hero-inner { align-items: end; padding-block: calc(var(--portrait-height) + 27px) 42px; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-top: 12px; font-size: clamp(3.5rem, 10vw, 5.1rem); }
  .hero-name { margin-top: 7px; }
  .hero-focus { margin-top: 16px; }
  .hero-quote { margin-top: 19px; }
  .hero-actions { margin-top: 23px; }
  .career-strip-inner > div { display: block; padding-block: 13px; }
  .career-strip dt { font-size: .74rem; }
  .career-strip dd { margin-top: 4px; font-size: .89rem; }
  .career-strip dd span { font-size: .74rem; }
  .about-layout, .career-layout, .philosophy-layout { grid-template-columns: 1fr; }
  .desktop-break { display: none; }
  .profile-notes { margin-top: 22px; }
  .split-intro { display: grid; }
  .split-intro > p { margin-top: 0; }
  .section-intro > p:last-child, .split-intro > p { max-width: none; }
  .feature-quote { min-height: 240px; }
  .footer-inner { grid-template-columns: 1fr auto; gap: 14px; }
  .footer-inner p { grid-row: 2; grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .eyebrow { font-size: .72rem; }
  .hero-eyebrow { gap: 8px; letter-spacing: .105em; }
  .hero-eyebrow::before { width: 14px; }
  .hero-focus { display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 14px; font-size: .89rem; }
  .hero-focus span + span::before { content: none; }
  .hero-focus span:nth-child(even) { padding-left: 14px; border-left: 1px solid #d3b78370; }
  .hero-break { display: none; }
  .career-strip-inner > div { padding-inline: 8px; }
  .profile-notes, .research-grid, .short-quotes { grid-template-columns: 1fr; }
  .article-facts > div { grid-template-columns: 6em minmax(0, 1fr); }
  .timeline > li { gap: 0; grid-template-columns: 1fr; }
  .timeline-date { padding-block: 13px 0; }
  .timeline summary { padding-block: 3px 14px; }
  .timeline details > p { padding-right: 0; }
}

@keyframes content-arrive {
  from { opacity: 0; translate: 0 var(--enter-distance, 16px); }
  to { opacity: 1; translate: 0; }
}

@keyframes portrait-arrive {
  from { opacity: .25; translate: 10px 0; scale: .985; }
  to { opacity: 1; translate: 0; scale: 1; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  :root { --arrive-ease: cubic-bezier(.22, 1, .36, 1); }

  .hero-media img { animation: portrait-arrive 950ms var(--arrive-ease) both; }

  .hero-copy > * {
    animation: content-arrive 680ms var(--arrive-ease) both;
    animation-delay: calc(var(--hero-order, 0) * 75ms + 70ms);
  }

  .hero-copy > :nth-child(2) { --hero-order: 1; }
  .hero-copy > :nth-child(3) { --hero-order: 2; }
  .hero-copy > :nth-child(4) { --hero-order: 3; }
  .hero-copy > :nth-child(5) { --hero-order: 4; }
  .hero-copy > :nth-child(6) { --hero-order: 5; }

  .reveal-pending:not(:focus-within) { opacity: 0; }

  .reveal-active {
    animation: content-arrive 620ms var(--arrive-ease) both;
    animation-delay: var(--reveal-delay, 0ms);
  }

  .reveal-active:focus-within, .hero-copy > :focus-within { animation: none; }
  .career-strip-inner > :nth-child(2), .profile-card, .research-card:nth-child(even),
  .principles > :nth-child(2), .short-quotes > :nth-child(2) { --reveal-delay: 85ms; }
  .career-strip-inner > :nth-child(3), .principles > :nth-child(3) { --reveal-delay: 155ms; }
  .timeline > :nth-child(even) { --reveal-delay: 65ms; }

  details[open] > :not(summary), .site-nav[data-open] {
    --enter-distance: 6px;
    animation: content-arrive 250ms var(--arrive-ease) both;
  }

  .button { transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, translate 180ms ease; }
  .research-card { transition: background-color 220ms ease, box-shadow 220ms ease; }

  @media (hover: hover) and (pointer: fine) {
    .button:hover { translate: 0 -2px; }
    .research-card:hover {
      background: #20313e;
      box-shadow: inset 0 2px #d3b783ab;
    }
  }

  .button:active { translate: 0 1px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
