:root {
      --bg: #f6fbf7;
      --surface: #ffffff;
      --line: #d8eadf;
      --ink: #10201a;
      --muted: #5f7168;
      --green: #008c3a;
      --green-soft: #dff5e7;
      --dark: #07130e;
      --radius: 24px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: Inter, system-ui, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(0, 140, 58, .10), transparent 34rem),
        var(--bg);
      color: var(--ink);
      line-height: 1.6;
    }

    a { color: inherit; text-decoration: none; }
    .container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

    .nav {
      position: sticky;
      top: 0;
      z-index: 40;
      border-bottom: 1px solid rgba(216, 234, 223, .82);
      background: rgba(246, 251, 247, .82);
      backdrop-filter: blur(18px);
    }

    .nav-inner {
      height: 74px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 900;
      letter-spacing: -.04em;
    }

    .brand-logo {
      width: 42px;
      height: 42px;
      object-fit: contain;
    }

    .brand-text strong { display: block; line-height: 1; font-size: 1.05rem; }
    .brand-text span { display: block; color: var(--muted); font-size: .74rem; letter-spacing: .01em; margin-top: 3px; }

    .nav-links {
      display: flex;
      gap: 24px;
      align-items: center;
      color: var(--muted);
      font-size: .94rem;
      font-weight: 700;
    }

    .nav-links a {
      display: inline-flex;
      align-items: center;
      line-height: 1;
    }

    .nav-links a:hover,
    .nav-links a.active { color: var(--green); }

    .nav-art {
      display: block;
      width: 80px;
      height: 80px;
      object-fit: contain;
      flex: 0 0 80px;
    }

    .nav-item {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .submenu {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      display: none;
      min-width: 104px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--surface);
      box-shadow: 0 14px 32px rgba(0,0,0,.08);
      z-index: 60;
    }

    .nav-item:hover .submenu,
    .nav-item:focus-within .submenu {
      display: grid;
      gap: 4px;
    }

    .submenu a {
      padding: 8px 10px;
      border-radius: 10px;
      white-space: nowrap;
    }

    .submenu a:hover {
      background: var(--green-soft);
      text-decoration: none;
    }

    header {
      position: relative;
      overflow: hidden;
      min-height: 520px;
      padding: 120px 0 86px;
      isolation: isolate;
    }

    header::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background-image: url("../images/profile/02_PI.png");
      background-position: center top;
      background-size: 100% auto;
      background-repeat: no-repeat;
      opacity: .72;
      -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 54%, rgba(0,0,0,.48) 70%, transparent 88%);
      mask-image: linear-gradient(180deg, #000 0%, #000 54%, rgba(0,0,0,.48) 70%, transparent 88%);
      pointer-events: none;
    }

    header::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      background:
        linear-gradient(90deg, rgba(246, 251, 247, .88) 0%, rgba(246, 251, 247, .58) 46%, rgba(246, 251, 247, .18) 100%),
        linear-gradient(180deg, rgba(246, 251, 247, .06) 0%, rgba(246, 251, 247, .14) 42%, rgba(246, 251, 247, .76) 68%, var(--bg) 88%, var(--bg) 100%);
      pointer-events: none;
    }

    .profile-hero {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
      gap: 34px;
      align-items: center;
      padding-top: 96px;
    }

    .profile-hero > div:last-child {
      padding: 28px;
      border: 1px solid rgba(216, 234, 223, .82);
      border-radius: 26px;
      background: rgba(255, 255, 255, .80);
      backdrop-filter: blur(10px);
      box-shadow: 0 18px 48px rgba(0,0,0,.10);
      min-width: 0;
      container-type: inline-size;
    }

    .profile-photo {
      aspect-ratio: 1 / 1;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.78);
      border-radius: 26px;
      background: var(--green-soft);
      box-shadow: 0 18px 48px rgba(0,0,0,.14);
    }

    .profile-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }

    .back-link {
      display: inline-flex;
      margin-bottom: 14px;
      color: var(--green);
      font-weight: 900;
    }

    h1 {
      margin: 0 0 14px;
      font-size: clamp(2rem, 2.2vw, 2.75rem);
      font-size: clamp(2rem, 4.4cqw, 2.75rem);
      line-height: 1;
      letter-spacing: 0;
      white-space: nowrap;
      max-width: 100%;
    }

    .highlight-line {
      margin: 0 0 16px;
      color: var(--green);
      font-size: clamp(1.45rem, 2vw, 2rem);
      font-size: clamp(1.45rem, 3.2cqw, 2rem);
      font-weight: 900;
      line-height: 1.2;
    }

    .lead {
      max-width: 720px;
      margin: 0;
      color: var(--muted);
      font-size: 1.08rem;
      font-weight: 650;
    }

    .profile-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 22px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
      background: var(--green-soft);
      color: var(--green);
      font-weight: 800;
      font-size: .9rem;
    }

    .inline-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 24px;
      margin-left: 8px;
      padding: 0 9px;
      border-radius: 999px;
      background: var(--green-soft);
      color: var(--green);
      font-size: .82rem;
      font-weight: 900;
      vertical-align: 1px;
    }

    .profile-section {
      margin-top: 28px;
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: 0 10px 32px rgba(0,0,0,.04);
    }

    .profile-section h2 {
      margin: 0 0 18px;
      color: var(--dark);
      font-size: 1.7rem;
      letter-spacing: 0;
    }

    .profile-section p {
      margin: 0;
      color: var(--muted);
      font-weight: 650;
    }

    .timeline {
      display: grid;
      gap: 16px;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 136px minmax(0, 1fr) 112px;
      gap: 18px;
      align-items: center;
      min-height: 92px;
    }

    .timeline-date {
      color: #3f7468;
      font-weight: 900;
      white-space: nowrap;
    }

    .timeline-detail strong {
      display: block;
      color: var(--ink);
      font-size: 1.08rem;
      line-height: 1.35;
    }

    .timeline-detail span {
      display: block;
      margin-top: 3px;
      color: var(--green);
      font-weight: 650;
    }

    .timeline-detail em {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: .95rem;
      font-style: normal;
      font-weight: 600;
    }

    .institution-logo {
      width: 104px;
      max-height: 72px;
      object-fit: contain;
      justify-self: end;
      align-self: center;
    }

    .timeline.compact {
      gap: 10px;
    }

    .timeline.compact .timeline-item {
      grid-template-columns: 136px 1fr;
      min-height: auto;
      align-items: start;
    }

    .timeline.compact .timeline-detail strong {
      font-size: 1rem;
    }

    .grant-list {
      display: grid;
      gap: 14px;
    }

    .grant-item {
      display: grid;
      gap: 4px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
    }

    .grant-item:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .grant-item strong {
      color: var(--ink);
      font-size: 1.04rem;
      line-height: 1.35;
    }

    .grant-item span {
      color: var(--muted);
      font-weight: 650;
    }

    .footer-inner { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }

    footer {
      border-top: 1px solid var(--line);
      margin-top: 80px;
      padding: 32px 0;
      color: var(--muted);
    }

    @media (max-width: 760px) {
      header {
        min-height: auto;
      }

      header::before {
        background-size: auto 520px;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 32%, rgba(0,0,0,.36) 48%, transparent 64%);
        mask-image: linear-gradient(180deg, #000 0%, #000 32%, rgba(0,0,0,.36) 48%, transparent 64%);
      }

      header::after {
        background:
          linear-gradient(180deg, rgba(246, 251, 247, .12) 0%, rgba(246, 251, 247, .48) 30%, rgba(246, 251, 247, .92) 52%, var(--bg) 68%, var(--bg) 100%),
          linear-gradient(90deg, rgba(246, 251, 247, .90) 0%, rgba(246, 251, 247, .64) 52%, rgba(246, 251, 247, .34) 100%);
      }

      .profile-hero,
      .timeline-item {
        grid-template-columns: 1fr;
      }

      .institution-logo {
        justify-self: start;
        width: 96px;
        max-height: 64px;
      }

      h1 {
        white-space: normal;
      }

      .profile-photo {
        max-width: 320px;
      }

      .nav-inner { gap: 16px; }
      .nav-links { gap: 14px; font-size: .92rem; }
      .brand-text span { display: none; }
    }
