:root {
  --paper: #f7f1ed;
  --ink: #171513;
  --muted: #655f5b;
  --quiet: #8b817c;
  --accent: #79557f;
  --line: rgba(23, 21, 19, 0.14);
  --page-x: clamp(36px, 4.6vw, 88px);
  --sans: "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.profile-frame {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.profile-media-viewport {
  position: absolute;
  z-index: -1;
  inset: 72px 0 0;
  overflow: hidden;
  background: var(--paper);
}

.profile-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: translate3d(7.5%, 0, 0) scale(1);
  transform-origin: center;
  transition: opacity 220ms ease;
}

.profile-media.is-ready { opacity: 1; }

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 var(--page-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.site-header a { text-decoration: none; }
.wordmark { justify-self: start; font-size: 16px; letter-spacing: -0.02em; }
.site-header nav { display: flex; gap: clamp(26px, 3vw, 48px); }
.site-header nav a,
.site-header nav span { color: var(--quiet); }
.site-header nav .is-current { color: var(--ink); }
.site-header nav span { cursor: default; }
.contact-link {
  justify-self: end;
  padding: 5px 0 7px;
  border-bottom: 1px solid var(--ink);
}

.profile-copy {
  position: absolute;
  z-index: 2;
  top: clamp(108px, 13.5vh, 138px);
  left: var(--page-x);
  width: min(52vw, 760px);
}

.focus-line {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 760;
  letter-spacing: 0.02em;
}

.focus-line::before {
  content: "";
  flex: 0 0 34px;
  height: 2px;
  background: currentColor;
}

.identity-block { display: block; }
.identity-block h1 {
  margin: 0;
  font-size: clamp(76px, 9.3vw, 148px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.085em;
}

.role-line {
  margin: 18px 0 0;
  color: #4d3d51;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.evidence-rail {
  width: min(100%, 560px);
  margin-top: 28px;
  padding: 15px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-rail p { margin: 0; }
.scope-label {
  margin-bottom: 5px !important;
  color: var(--quiet);
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.scope-value {
  color: #403b38;
  font-size: clamp(15px, 1.12vw, 18px);
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: -0.018em;
  white-space: nowrap;
}

.profile-lead {
  position: relative;
  width: min(100%, 760px);
  margin: 26px 0 0;
  padding-left: 20px;
  color: #403b38;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 620;
  line-height: 1.48;
  letter-spacing: -0.025em;
}
.profile-lead::before {
  content: "";
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 2px;
  background: rgba(121, 85, 127, 0.72);
}

.profile-meta {
  margin: 22px 0 0;
  color: var(--quiet);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 640;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.profile-email {
  display: inline-block;
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 680;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-decoration-color: rgba(23, 21, 19, 0.34);
  text-underline-offset: 4px;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: var(--page-x);
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  color: var(--quiet);
}
.scroll-cue-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scroll-cue-copy strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
}
.scroll-cue-copy small {
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.03em;
}
.scroll-cue-arrow {
  position: relative;
  width: 1px;
  height: 34px;
  margin-bottom: 1px;
  background: rgba(101, 95, 91, 0.5);
  animation: scroll-cue-drift 1.8s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  will-change: transform, opacity;
}
.scroll-cue-arrow::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

@keyframes scroll-cue-drift {
  0%, 100% {
    opacity: 0.46;
    transform: translateY(0);
  }
  50% {
    opacity: 0.92;
    transform: translateY(7px);
  }
}

@media (min-width: 1180px) {
  .profile-lead { white-space: nowrap; }
}

@media (max-width: 980px) {
  .profile-media { transform: translate3d(15%, 0, 0) scale(1); }
  .profile-copy { width: min(62vw, 680px); }
  .identity-block h1 { font-size: clamp(68px, 10vw, 104px); }
}

@media (max-width: 760px) {
  :root { --page-x: 22px; }
  .profile-frame { min-height: 100dvh; overflow: visible; }
  .site-header {
    position: relative;
    height: 64px;
    grid-template-columns: 1fr auto;
  }
  .site-header nav { display: none; }
  .profile-media-viewport {
    position: relative;
    z-index: 0;
    width: 100%;
    height: min(54dvh, 480px);
    inset: auto;
  }
  .profile-media {
    object-fit: cover;
    object-position: 56% 12%;
    transform: none;
  }
  .profile-copy {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 34px var(--page-x) 52px;
  }
  .focus-line { margin-bottom: 20px; font-size: 14px; }
  .focus-line::before { flex-basis: 26px; }
  .identity-block h1 { font-size: clamp(62px, 20vw, 88px); }
  .role-line { margin-top: 18px; font-size: 24px; }
  .evidence-rail {
    margin-top: 24px;
  }
  .scope-value { white-space: normal; }
  .profile-lead { margin-top: 24px; padding-left: 16px; font-size: 18px; }
  .profile-meta { margin-top: 20px; font-size: 13px; }
  .profile-email { font-size: 13px; }
  .scroll-cue { display: none; }
}

@media (max-height: 779px) and (min-width: 761px) {
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-media { transition: none; }
  .scroll-cue-arrow { animation: none; }
}

@media print {
  .profile-frame { min-height: auto; overflow: visible; }
  .profile-media-viewport { display: none; }
  .site-header { position: relative; }
  .profile-copy { position: relative; top: auto; left: auto; width: auto; padding: 56px var(--page-x); }
}
