:root {
      --bg: #fbfaf6;
      --ink: #101312;
      --muted: #65706a;
      --line: rgba(24, 30, 28, 0.13);
      --accent: #2c7368;
      --warm: #a27046;
      --max: 1080px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background:
        linear-gradient(180deg, rgba(251, 250, 246, 0.88), rgba(251, 250, 246, 0.98) 58rem),
        linear-gradient(135deg, #fbfaf6 0%, #f2f5f0 42%, #fbf6ed 100%);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans", sans-serif;
      font-size: 16px;
      line-height: 1.72;
      overflow-x: hidden;
    }

    body.smooth-ready {
      height: var(--smooth-height, auto);
    }

    #fluid-canvas {
      position: fixed;
      inset: 0;
      z-index: -4;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .glass-atmosphere,
    .glass-sheen,
    .glass-lens {
      position: fixed;
      inset: 0;
      pointer-events: none;
    }

    .glass-atmosphere {
      z-index: -3;
      background:
        radial-gradient(ellipse at 18% calc(72% + var(--lens-y, 0px) * -0.08), rgba(44, 115, 104, 0.18), transparent 32rem),
        radial-gradient(ellipse at 84% calc(78% + var(--lens-y, 0px) * -0.10), rgba(162, 112, 70, 0.15), transparent 30rem),
        linear-gradient(112deg, rgba(44, 115, 104, 0.14), transparent 38%, rgba(162, 112, 70, 0.12) 76%, transparent),
        linear-gradient(22deg, transparent 12%, rgba(255, 255, 255, 0.34) 34%, transparent 52%, rgba(232, 240, 235, 0.40) 78%, transparent);
      opacity: calc(0.84 + var(--glass-intensity, 0) * 0.12);
      transform: translate3d(calc(var(--mx, 0px) * 0.18), calc(var(--my, 0px) * 0.16), 0);
      transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
    }

    .glass-sheen {
      z-index: -2;
      background:
        linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.42) 39%, transparent 51%),
        linear-gradient(178deg, rgba(255, 255, 255, 0.50), transparent 18%, transparent 74%, rgba(255, 255, 255, 0.44));
      mix-blend-mode: soft-light;
      opacity: 0.72;
    }

    .glass-lens {
      z-index: -1;
      background:
        linear-gradient(112deg, transparent 0%, rgba(255, 255, 255, 0.00) 26%, rgba(255, 255, 255, 0.42) 37%, rgba(255, 255, 255, 0.10) 43%, transparent 55%),
        linear-gradient(68deg, transparent 8%, rgba(44, 115, 104, 0.08) 30%, rgba(255, 255, 255, 0.18) 44%, rgba(162, 112, 70, 0.07) 64%, transparent 82%);
      opacity: calc(0.34 + var(--glass-intensity, 0) * 0.34);
      mix-blend-mode: soft-light;
      transform:
        translate3d(calc(var(--mx, 0px) * -0.16), calc(var(--lens-y, 0px) + var(--my, 0px) * 0.10), 0)
        skewY(-5deg);
      will-change: transform, opacity;
    }

    a {
      color: var(--accent);
      text-decoration-thickness: 1px;
      text-underline-offset: 0.18em;
    }

    a:hover {
      color: var(--ink);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 16px max(22px, calc((100vw - var(--max)) / 2));
      border-bottom: 1px solid rgba(255, 255, 255, 0.58);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(251, 250, 246, 0.44)),
        rgba(251, 250, 246, 0.56);
      box-shadow: 0 14px 54px rgba(34, 42, 38, 0.055);
      backdrop-filter: blur(20px) saturate(1.16);
    }

    .brand {
      color: var(--ink);
      font-weight: 760;
      text-decoration: none;
    }

    nav {
      display: flex;
      gap: 24px;
      min-width: 0;
      font-size: 13px;
      font-weight: 730;
      letter-spacing: 0;
    }

    nav a {
      color: var(--muted);
      text-decoration: none;
      transition: color 220ms ease;
    }

    nav a:hover,
    nav a.is-active {
      color: var(--ink);
    }

    nav a.is-active {
      position: relative;
    }

    nav a.is-active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -8px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.72), var(--warm));
      box-shadow: 0 0 16px rgba(44, 115, 104, 0.18);
    }

    .section {
      width: min(var(--max), calc(100% - 44px));
      margin: 0 auto;
    }

    #smooth-content {
      position: relative;
      width: 100%;
    }

    body.smooth-ready #smooth-content {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      will-change: transform;
      transform: translate3d(0, calc(var(--smooth-y, 0px) * -1), 0);
    }

    .hero-wrap {
      min-height: 126vh;
      padding-top: clamp(42px, 8vw, 72px);
    }

    .hero {
      position: sticky;
      top: 70px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
      gap: clamp(34px, 7vw, 82px);
      align-items: center;
      min-height: calc(100vh - 94px);
      padding: 26px 0 58px;
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      margin-bottom: 28px;
      max-width: 860px;
      font-size: clamp(54px, 8.4vw, 92px);
      line-height: 0.94;
      letter-spacing: 0;
      text-shadow: 0 18px 48px rgba(34, 42, 38, 0.10);
    }

    h1 span {
      display: inline-block;
      margin: 0 0 0 20px;
      color: rgba(79, 89, 84, 0.78);
      font-size: 0.34em;
      font-weight: 620;
      line-height: 1.15;
      vertical-align: middle;
    }

    .bio {
      position: relative;
      max-width: 704px;
      color: #252b28;
      font-size: clamp(16px, 1.5vw, 18px);
      margin-top: 30px;
    }

    .bio::before {
      content: "";
      position: absolute;
      inset: -22px -30px;
      z-index: -1;
      border-radius: 32px;
      background:
        radial-gradient(ellipse at 40% 20%, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.24) 44%, rgba(255, 255, 255, 0) 80%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.16) 62%, rgba(255, 255, 255, 0));
      filter: blur(18px);
      opacity: calc(0.68 - var(--hero-progress, 0) * 0.22);
    }

    .bio p {
      margin-bottom: 16px;
    }

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

    .portrait-stage {
      position: relative;
      width: min(100%, 320px);
      justify-self: end;
      transform:
        translate3d(0, calc(var(--hero-progress, 0) * -20px), 0)
        rotateX(calc(var(--pointer-y, 0) * -3.8deg))
        rotateY(calc(var(--pointer-x, 0) * 5deg));
      transform-style: preserve-3d;
      transition: transform 760ms cubic-bezier(.16, 1, .3, 1);
    }

    .portrait-stage::before {
      content: "";
      position: absolute;
      inset: -18px;
      z-index: -1;
      border: 1px solid rgba(255, 255, 255, 0.78);
      border-radius: 22px;
      background:
        linear-gradient(142deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 48%, rgba(44, 115, 104, 0.12)),
        linear-gradient(25deg, rgba(162, 112, 70, 0.10), transparent 44%);
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -28px 55px rgba(44, 115, 104, 0.08),
        0 38px 110px rgba(34, 42, 38, 0.16);
      backdrop-filter: blur(18px) saturate(1.14);
      opacity: 0.92;
    }

    .portrait-stage::after {
      content: "";
      position: absolute;
      inset: -10px;
      border-radius: 18px;
      background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 43%, transparent 56%);
      opacity: 0.46;
      transform: translate3d(calc(var(--mx, 0px) * 0.20), calc(var(--my, 0px) * 0.12), 32px);
      pointer-events: none;
      mix-blend-mode: screen;
    }

    .portrait-stage img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      object-position: center 34%;
      border: 1px solid rgba(24, 30, 28, 0.12);
      border-radius: 12px;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    .scroll-cue {
      position: absolute;
      left: 0;
      bottom: 30px;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: rgba(101, 112, 106, 0.82);
      font-size: 13px;
      font-weight: 680;
      opacity: calc(1 - var(--hero-progress, 0));
      transform: translateY(calc(var(--hero-progress, 0) * 16px));
      transition: opacity 220ms linear;
    }

    .scroll-cue::before {
      content: "";
      width: 18px;
      height: 32px;
      border: 1px solid rgba(255, 255, 255, 0.62);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.30);
      box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.48), 0 10px 28px rgba(34, 42, 38, 0.06);
      backdrop-filter: blur(10px);
    }

    .scroll-cue::after {
      content: "";
      position: absolute;
      left: 8px;
      top: 7px;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--accent);
      opacity: 0.72;
      animation: scroll-dot 1800ms cubic-bezier(.16, 1, .3, 1) infinite;
    }

    @keyframes scroll-dot {
      0% { transform: translateY(0); opacity: 0; }
      18% { opacity: 0.72; }
      76% { transform: translateY(13px); opacity: 0.72; }
      100% { transform: translateY(13px); opacity: 0; }
    }

    .home-meta,
    .content-section {
      position: relative;
      z-index: 2;
      padding: 42px 0;
      border-top: 0;
      background: transparent;
    }

    .home-meta::before,
    .content-section::before {
      content: "";
      position: absolute;
      inset: -54px -88px;
      z-index: -1;
      background:
        radial-gradient(ellipse at 18% 34%, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.18) 38%, rgba(255, 255, 255, 0) 76%),
        radial-gradient(ellipse at 52% 42%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16) 40%, rgba(255, 255, 255, 0) 80%),
        radial-gradient(ellipse at 84% 38%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.13) 36%, rgba(255, 255, 255, 0) 76%);
      filter: blur(34px);
      opacity: 0.78;
      pointer-events: none;
    }

    .home-meta::after,
    .content-section::after {
      content: none;
    }

    .home-meta {
      display: grid;
      grid-template-columns: 1fr 1.38fr 1fr;
      gap: 34px;
    }

    h2 {
      margin-bottom: 18px;
      font-size: 22px;
      line-height: 1.3;
      letter-spacing: 0;
    }

    h3 {
      margin-bottom: 2px;
      font-size: 16px;
      line-height: 1.45;
    }

    .email-list {
      display: grid;
      gap: 4px;
      overflow-wrap: anywhere;
    }

    .email-note {
      margin: 12px 0 0;
      color: var(--muted);
      font-size: 14px;
      font-weight: 620;
    }

    .item-list,
    .publication-list {
      display: grid;
      gap: 16px;
    }

    .compact-item,
    .publication {
      display: grid;
      grid-template-columns: 124px minmax(0, 1fr);
      gap: 18px;
    }

    .publication {
      position: relative;
      overflow: visible;
      grid-template-columns: minmax(0, 1fr);
      padding: 20px 22px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .publication::before {
      content: "";
      position: absolute;
      inset: -62px -84px;
      z-index: -1;
      border-radius: 50%;
      background:
        radial-gradient(ellipse at 24% 32%, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.21) 40%, rgba(255, 255, 255, 0) 78%),
        radial-gradient(ellipse at 78% 58%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.13) 38%, rgba(255, 255, 255, 0) 78%);
      filter: blur(34px);
      opacity: 0.78;
      transform: translateX(calc(var(--pointer-x, 0) * 8px));
      pointer-events: none;
    }

    .publication h3 {
      position: relative;
      max-width: 820px;
      font-size: 17px;
    }

    .publication .venue-line {
      margin-top: 4px;
      color: #303633;
      font-style: italic;
      font-weight: 400;
    }

    .item-date {
      color: var(--muted);
      font-size: 14px;
      font-weight: 760;
    }

    .compact-item p,
    .publication p {
      margin-bottom: 2px;
      color: #303633;
    }

    .compact-item span {
      color: var(--muted);
      font-size: 14px;
    }

    .interest-list {
      margin: 0;
      padding-left: 18px;
    }

    .interest-list li {
      margin-bottom: 4px;
    }

    .authors strong {
      font-weight: 820;
    }

    .inline-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 18px;
    }

    .text-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      padding: 0 13px 0 11px;
      border: 1px solid rgba(255, 255, 255, 0.62);
      border-radius: 999px;
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.24)),
        rgba(251, 250, 246, 0.44);
      color: var(--ink);
      font-size: 14px;
      font-weight: 720;
      text-decoration: none;
      backdrop-filter: blur(8px);
      box-shadow: 0 12px 32px rgba(34, 42, 38, 0.055);
    }

    .text-link:hover {
      border-color: rgba(44, 115, 104, 0.42);
      color: var(--accent);
      background: rgba(255, 255, 255, 0.80);
    }

    .text-link svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 1.8;
      fill: none;
      flex: 0 0 auto;
    }

    .text-link .external-mark {
      width: 13px;
      height: 13px;
      opacity: 0.72;
    }

    body.webgl-fallback #fluid-canvas {
      display: none;
    }

    body.webgl-fallback .reveal {
      opacity: 1;
      transform: none;
    }

    .reveal {
      opacity: calc(0.12 + var(--reveal-progress, 0) * 0.88);
      transform:
        translateY(calc((1 - var(--reveal-progress, 0)) * 42px))
        scale(calc(0.982 + var(--reveal-progress, 0) * 0.018));
      will-change: opacity, transform;
      transition: none;
    }

    footer {
      position: relative;
      z-index: 2;
      width: min(var(--max), calc(100% - 44px));
      margin: 0 auto;
      padding: 28px 0 42px;
      border-top: 1px solid rgba(255, 255, 255, 0.58);
      color: var(--muted);
      font-size: 14px;
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      #fluid-canvas {
        display: none;
      }

      .hero,
      .portrait-stage,
      #smooth-content,
      .reveal {
        position: static;
        opacity: 1;
        transform: none;
        transition: none;
      }

      .hero-wrap {
        min-height: auto;
      }
    }

    @media (max-width: 780px) {
      .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
      }

      nav {
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 2px;
      }

      .hero-wrap {
        min-height: auto;
      }

      .hero {
        position: relative;
        top: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
        padding: 42px 0 52px;
      }

      .portrait-stage {
        order: -1;
        justify-self: start;
        width: min(256px, 72vw);
      }

      .portrait-stage::before {
        inset: -10px;
        border-radius: 14px;
      }

      .bio::before {
        inset: -16px -10px;
      }

      .home-meta::before,
      .content-section::before {
        inset: -28px 0;
      }

      .publication::before {
        inset: -36px -8px;
      }

      h1 span {
        display: block;
        margin: 9px 0 0 2px;
        font-size: 0.46em;
        vertical-align: baseline;
      }

      .scroll-cue {
        display: none;
      }

      .home-meta {
        grid-template-columns: 1fr;
      }

      .compact-item,
      .publication {
        grid-template-columns: 1fr;
        gap: 4px;
      }
    }
