 @import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700&display=swap');

    html {
      scroll-behavior: smooth;
    }

    .profile-section {
      --profile-navy: #14283f;
      --profile-navy-deep: #0d1c2e;
      --profile-blue: #204268;
      --profile-gold: #a9793c;
      --profile-gold-light: #c79a5d;
      --profile-paper: #f7f5f0;
      --profile-card: #ffffff;
      --profile-ink: #23272c;
      --profile-ink-soft: #5c6169;
      --profile-border: #e4e0d4;
      --profile-shadow: rgba(20, 40, 63, 0.08);
      --profile-shadow-lg: rgba(20, 40, 63, 0.16);
      --profile-ease: cubic-bezier(0.16, 0.84, 0.44, 1);

      position: relative;
      color: var(--profile-ink);
      background: var(--profile-paper);
      /* background-image:
        linear-gradient(180deg, var(--profile-navy) 0px, var(--profile-navy-deep) 96px, transparent 96px); */
      padding: 0 0 64px;
    }

    /* soft ambient glow behind the top banner — modern, restrained */
    /* .profile-section::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 420px;
      height: 96px;
      background: radial-gradient(circle at top right, rgba(199, 154, 93, 0.35), transparent 70%);
      pointer-events: none;
      z-index: 0;
    } */

    /* animated gold hairline at the base of the banner */
    /* .profile-section::after {
      content: '';
      position: absolute;
      top: 96px;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--profile-gold-light), var(--profile-gold), var(--profile-gold-light), transparent);
      background-size: 200% 100%;
      animation: profileShimmer 6s linear infinite;
      pointer-events: none;
      z-index: 1;
    } */

    .profile-section * {
      box-sizing: border-box;
    }

    .profile-section a {
      text-decoration: none;
    }

    .profile-section .container,
    .profile-layout {
      position: relative;
      z-index: 2;
    }

    @keyframes profileShimmer {
      0% {
        background-position: 0% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    @keyframes profileFadeUp {
      from {
        opacity: 0;
        transform: translateY(26px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes profileFadeLeft {
      from {
        opacity: 0;
        transform: translateX(-18px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes profilePop {
      from {
        opacity: 0;
        transform: scale(0.92);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* ---------- Layout ---------- */

    .profile-layout {
      display: flex;
      align-items: flex-start;
      gap: 32px;
      padding-top: 40px;
    }

    .profile-sidebar {
      flex: 0 0 268px;
      position: sticky;
      top: 24px;
      animation: profileFadeLeft 0.6s var(--profile-ease) both;
    }

    .profile-main {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .profile-main--full {
      width: 100%;
    }

    /* ---------- Sidebar / index nav (signature element) ---------- */

    .profile-nav {
      background: var(--profile-card);
      border: 1px solid var(--profile-border);
      border-radius: 12px;
      padding: 22px 20px 22px 0;
      box-shadow: 0 10px 30px var(--profile-shadow);
      transition: box-shadow 0.3s var(--profile-ease);
    }

    .profile-nav:hover {
      box-shadow: 0 14px 36px var(--profile-shadow-lg);
    }

    .profile-nav__label {
      display: block;
      font-family: 'Source Serif 4', serif;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--profile-gold);
      padding-left: 24px;
      margin-bottom: 14px;
    }

    .profile-nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      position: relative;
    }

    /* the "spine" running through the index */
    .profile-nav ul::before {
      content: '';
      position: absolute;
      top: 6px;
      bottom: 6px;
      left: 11px;
      width: 1px;
      background: var(--profile-border);
    }

    .profile-nav li {
      position: relative;
      margin: 0;
      padding: 0;
      opacity: 0;
      animation: profileFadeLeft 0.5s var(--profile-ease) both;
    }

    .profile-nav li:nth-child(1) {
      animation-delay: 0.05s;
    }

    .profile-nav li:nth-child(2) {
      animation-delay: 0.10s;
    }

    .profile-nav li:nth-child(3) {
      animation-delay: 0.15s;
    }

    .profile-nav li:nth-child(4) {
      animation-delay: 0.20s;
    }

    .profile-nav li:nth-child(5) {
      animation-delay: 0.25s;
    }

    .profile-nav li:nth-child(6) {
      animation-delay: 0.30s;
    }

    .profile-nav li:nth-child(7) {
      animation-delay: 0.35s;
    }

    .profile-nav li:nth-child(8) {
      animation-delay: 0.40s;
    }

    .profile-nav li:nth-child(9) {
      animation-delay: 0.45s;
    }

    .profile-nav li:nth-child(10) {
      animation-delay: 0.50s;
    }

    .profile-nav li:nth-child(11) {
      animation-delay: 0.55s;
    }

    .profile-nav li:nth-child(12) {
      animation-delay: 0.60s;
    }

    .profile-nav a.profile_neme {
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 14px 9px 24px;
      font-size: 13.5px;
      font-weight: 500;
      color: var(--profile-ink-soft);
      border-left: 2px solid transparent;
      border-radius: 0 20px 20px 0;
      transition: color 0.2s var(--profile-ease), background 0.2s var(--profile-ease), transform 0.2s var(--profile-ease), border-color 0.2s var(--profile-ease);
    }

    .profile-nav a.profile_neme::before {
      content: '';
      position: absolute;
      left: 7px;
      top: 50%;
      width: 7px;
      height: 7px;
      transform: translateY(-50%) scale(1);
      border-radius: 50%;
      background: var(--profile-card);
      border: 1.5px solid var(--profile-border);
      transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .profile-nav a.profile_neme i {
      width: 15px;
      text-align: center;
      color: var(--profile-gold);
      font-size: 13px;
      opacity: 0.85;
      transition: transform 0.2s var(--profile-ease);
    }

    .profile-nav a.profile_neme:hover {
      color: var(--profile-navy);
      background: rgba(169, 121, 60, 0.07);
      transform: translateX(4px);
    }

    .profile-nav a.profile_neme:hover i {
      transform: scale(1.15);
    }

    .profile-nav a.profile_neme:hover::before {
      transform: translateY(-50%) scale(1.2);
      border-color: var(--profile-gold-light);
    }

    .profile-nav a.profile_neme.active {
      color: var(--profile-navy);
      font-weight: 600;
      background: rgba(169, 121, 60, 0.1);
      border-left-color: var(--profile-gold);
    }

    .profile-nav a.profile_neme.active::before {
      background: var(--profile-gold);
      border-color: var(--profile-gold);
      transform: translateY(-50%) scale(1.25);
      box-shadow: 0 0 0 4px rgba(169, 121, 60, 0.18);
    }

    /* ---------- Cards ---------- */

    .profile-card {
      position: relative;
      background: var(--profile-card);
      border: 1px solid var(--profile-border);
      border-radius: 14px;
      box-shadow: 0 8px 24px var(--profile-shadow);
      padding: 28px 32px 32px;
      scroll-margin-top: 24px;
      overflow: hidden;
      opacity: 0;
      animation: profileFadeUp 0.6s var(--profile-ease) both;
      transition: transform 0.35s var(--profile-ease), box-shadow 0.35s var(--profile-ease);
    }

    .profile-main>.profile-card:nth-of-type(1) {
      animation-delay: 0.05s;
    }

    .profile-main>.profile-card:nth-of-type(2) {
      animation-delay: 0.12s;
    }

    .profile-main>.profile-card:nth-of-type(3) {
      animation-delay: 0.19s;
    }

    .profile-main>.profile-card:nth-of-type(4) {
      animation-delay: 0.26s;
    }

    .profile-main>.profile-card:nth-of-type(5) {
      animation-delay: 0.33s;
    }

    .profile-main>.profile-card:nth-of-type(6) {
      animation-delay: 0.40s;
    }

    .profile-main>.profile-card:nth-of-type(7) {
      animation-delay: 0.47s;
    }

    .profile-main>.profile-card:nth-of-type(8) {
      animation-delay: 0.54s;
    }

    .profile-main>.profile-card:nth-of-type(9) {
      animation-delay: 0.61s;
    }

    .profile-main>.profile-card:nth-of-type(10) {
      animation-delay: 0.68s;
    }

    .profile-main>.profile-card:nth-of-type(11) {
      animation-delay: 0.75s;
    }

    .profile-main>.profile-card:nth-of-type(12) {
      animation-delay: 0.82s;
    }

    /* gold accent bar that sweeps in on hover */
    .profile-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--profile-gold), var(--profile-gold-light));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.4s var(--profile-ease);
    }

    .profile-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 18px 40px var(--profile-shadow-lg);
    }

    .profile-card:hover::before {
      transform: scaleX(1);
    }

    .profile-card__header {
      display: flex;
      align-items: center;
      gap: 14px;
      padding-bottom: 16px;
      margin-bottom: 20px;
      border-bottom: 1px solid var(--profile-border);
    }

    .profile-card__icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--profile-navy);
      color: var(--profile-gold-light);
      font-size: 14px;
      flex: none;
      transition: transform 0.35s var(--profile-ease), box-shadow 0.35s var(--profile-ease);
    }

    .profile-card:hover .profile-card__icon {
      transform: rotate(-8deg) scale(1.08);
      box-shadow: 0 0 0 6px rgba(169, 121, 60, 0.14);
    }

    .profile-card__header h3 {
      font-family: 'Source Serif 4', serif;
      font-weight: 600;
      font-size: 20px;
      color: var(--profile-navy);
      margin: 0;
      letter-spacing: 0.01em;
    }

    .profile-card__body {
      font-size: 15px;
      line-height: 1.75;
      color: var(--profile-ink);
    }

    .profile-card__body p {
      margin: 0 0 12px;
    }

    .profile-card__body ul,
    .profile-card__body ol {
      padding-left: 20px;
      margin: 0 0 12px;
    }

    /* ---------- Personal information block ---------- */

    .profile-personal {
      display: flex;
      gap: 32px;
      align-items: flex-start;
    }

    .profile-photo {
      flex: 0 0 160px;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--profile-border);
      box-shadow: 0 8px 22px var(--profile-shadow);
      animation: profilePop 0.5s var(--profile-ease) both;
      animation-delay: 0.1s;
    }

    .profile-photo__img {
      display: block;
      width: 160px;
      height: 190px;
      object-fit: cover;
      background: var(--profile-paper);
      transition: transform 0.5s var(--profile-ease);
    }

    .profile-photo:hover .profile-photo__img {
      transform: scale(1.08);
    }

    .profile-details {
      flex: 1 1 auto;
      margin: 0;
      display: grid;
      grid-template-columns: 1fr;
    }

    .profile-details__row {
      display: grid;
      grid-template-columns: 170px 1fr;
      gap: 12px;
      padding: 10px 12px;
      margin: 0 -12px;
      border-radius: 6px;
      border-bottom: 1px dashed var(--profile-border);
      transition: background 0.2s ease;
    }

    .profile-details__row:hover {
      background: rgba(169, 121, 60, 0.06);
    }

    .profile-details__row:last-child {
      border-bottom: none;
    }

    .profile-details__row dt {
      font-weight: 600;
      font-size: 13px;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      color: var(--profile-navy);
    }

    .profile-details__row dd {
      margin: 0;
      font-size: 15px;
      color: var(--profile-ink);
      word-break: break-word;
    }

    #atag {
      color: var(--profile-blue);
    }

    /* ---------- Responsive ---------- */

    @media (max-width: 991px) {
      .profile-layout {
        flex-direction: column;
      }

      .profile-sidebar {
        position: relative;
        top: 0;
        flex: 1 1 auto;
        width: 100%;
      }

      .profile-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
      }

      .profile-nav ul::before {
        display: none;
      }

      .profile-nav a.profile_neme {
        padding: 8px 12px;
        border-left: none;
        border-radius: 20px;
        border: 1px solid var(--profile-border);
      }

      .profile-nav a.profile_neme::before {
        display: none;
      }

      .profile-nav a.profile_neme.active {
        background: var(--profile-navy);
        color: #fff;
        border-color: var(--profile-navy);
      }

      .profile-nav a.profile_neme.active i {
        color: var(--profile-gold-light);
      }
    }

    @media (max-width: 767px) {
      .profile-card {
        padding: 22px 20px 26px;
      }

      .profile-personal {
        flex-direction: column;
        align-items: center;
        text-align: left;
      }

      .profile-details__row {
        grid-template-columns: 1fr;
        gap: 2px;
      }
    }

    /* ---------- Accessibility ---------- */

    .profile-section a:focus-visible,
    .profile-section button:focus-visible {
      outline: 2px solid var(--profile-gold);
      outline-offset: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
      .profile-section * {
        transition: none !important;
        animation: none !important;
      }

      .profile-card,
      .profile-nav li,
      .profile-sidebar,
      .profile-photo {
        opacity: 1 !important;
        transform: none !important;
      }

      .profile-section::after {
        display: none;
      }
    }