    :root {
      color-scheme: dark;
      --bg: #10121b;
      --surface: #191c29;
      --surface-2: #202435;
      --surface-3: #262b3e;
      --line: rgba(220, 224, 255, .09);
      --text: #f1f2fa;
      --muted: #9da4ba;
      --soft: #c4c9da;
      --accent: #a99bff;
      --accent-2: #8ac9ff;
      --green: #8ce0bb;
      --radius: 20px;
      --shadow: 0 18px 50px rgba(0, 0, 0, .16);
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 86px; }
    body {
      margin: 0;
      min-height: 100vh;
      background: #0b0f19;
      color: var(--text);
      font: 15px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    /* 固定的细网格与环境光：页面滚动时背景保持不动 */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(ellipse at 12% 8%, rgba(135, 119, 255, .27), transparent 34rem),
        radial-gradient(ellipse at 86% 24%, rgba(67, 151, 224, .22), transparent 32rem),
        radial-gradient(ellipse at 54% 88%, rgba(76, 95, 174, .17), transparent 38rem),
        linear-gradient(rgba(210, 220, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(210, 220, 255, .035) 1px, transparent 1px);
      background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px, 42px 42px;
      mask-image: none;
    }
    .topbar, .layout, footer { position: relative; z-index: 1; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    .topbar {
      position: sticky; top: 0; z-index: 20;
      border-bottom: 1px solid var(--line);
      background: rgba(16, 18, 27, .82);
      backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    }
    .topbar-inner {
      width: min(1180px, calc(100% - 36px)); min-height: 66px; margin: auto;
      display: flex; align-items: center; justify-content: space-between; gap: 20px;
    }
    .wordmark { font-weight: 850; font-size: 20px; letter-spacing: -.7px; }
    .wordmark span { color: var(--accent); }
    .top-note { color: var(--muted); font-size: 12px; }
    .top-nav { display: flex; align-items: center; gap: 8px; }
    .top-nav a {
      padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 13px;
      transition: background .22s ease, color .22s ease;
    }
    .top-nav a:hover, .top-nav a:focus-visible { color: var(--text); background: var(--surface-2); outline: none; }
    .layout {
      width: min(1180px, calc(100% - 36px)); margin: 28px auto 64px;
      display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start;
    }
    .sidebar { display: grid; gap: 16px; position: sticky; top: 88px; }
    .panel {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      background:
        linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.018) 42%, rgba(150,165,220,.035)),
        linear-gradient(155deg, rgba(34, 39, 59, .61), rgba(17, 21, 34, .56));
      border: 1px solid rgba(222, 228, 255, .14);
      border-top-color: rgba(238, 241, 255, .23);
      border-radius: var(--radius);
      box-shadow: 0 18px 55px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
      backdrop-filter: blur(24px) saturate(155%);
      -webkit-backdrop-filter: blur(24px) saturate(155%);
    }
    .profile { padding: 24px; overflow: hidden; position: relative; }
    .avatar-row { display: flex; align-items: center; gap: 15px; position: relative; }
    /* 头像使用仓库根目录中的 Avatar.jpg，与本站同源加载。 */
    .avatar, .avatar-placeholder {
      width: 76px; height: 76px; flex: 0 0 76px; border-radius: 23px;
      border: 1px solid rgba(197, 188, 255, .35);
    }
    .avatar { display: block; object-fit: cover; }
    .avatar-placeholder {
      display: grid; place-items: center; overflow: hidden;
      background: linear-gradient(145deg, #b4a8ff, #657fc2 58%, #3a4569);
      color: #fff; font-size: 23px; font-weight: 900; letter-spacing: -1.5px;
      box-shadow: inset 0 0 25px rgba(255,255,255,.14);
    }
    .avatar-placeholder span { text-shadow: 0 2px 12px rgba(16, 18, 27, .3); }
    .name { font-size: 22px; font-weight: 820; letter-spacing: -.5px; line-height: 1.25; }
    .handle { margin-top: 5px; color: var(--muted); font-size: 12px; }
    .profile-bio { margin: 20px 0 18px; color: var(--soft); font-size: 13px; line-height: 1.9; }
    .profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
    .tag {
      display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
      border: 1px solid rgba(220,228,255,.12); border-top-color: rgba(255,255,255,.17);
      border-radius: 8px; color: #d1d5e8;
      background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 11px;
    }
    .tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(140,224,187,.5); }
    .social-title { margin: 0 0 10px; color: var(--muted); font-size: 11px; letter-spacing: 1.5px; font-weight: 750; }
    .social-list { display: grid; gap: 8px; }
    .social-link {
      display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 8px 10px;
      border: 1px solid rgba(220, 228, 255, .11); border-top-color: rgba(255,255,255,.16);
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
      backdrop-filter: blur(14px) saturate(145%); -webkit-backdrop-filter: blur(14px) saturate(145%);
      transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
    }
    .social-link:hover { transform: translateX(3px); border-color: rgba(169,155,255,.42); background: linear-gradient(135deg, rgba(169,155,255,.13), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.12); }
    .social-icon {
      width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px;
      border-radius: 9px; background: var(--surface-3); color: #e2e4f4; font-size: 11px; font-weight: 850;
    }
    .social-copy { min-width: 0; flex: 1; }
    .social-name { font-size: 12px; font-weight: 700; }
    .social-id { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
    .external { color: #707a97; font-size: 15px; }
    .side-card { padding: 18px 20px; }
    .side-card h2 { margin: 0 0 12px; font-size: 13px; font-weight: 750; }
    .side-links { display: grid; gap: 3px; }
    .side-links a { padding: 7px 0; color: var(--muted); font-size: 12px; transition: color .2s; }
    .side-links a:hover { color: var(--text); }
    .content { min-width: 0; display: grid; gap: 16px; }
    .cover {
      min-height: 176px; padding: 27px 30px; position: relative; overflow: hidden;
      background:
        radial-gradient(ellipse at 85% 10%, rgba(159, 148, 255, .28), transparent 45%),
        radial-gradient(ellipse at 100% 110%, rgba(107, 182, 235, .20), transparent 42%),
        linear-gradient(120deg, rgba(42, 45, 72, .74), rgba(27, 32, 49, .67) 60%, rgba(27, 37, 53, .7));
      backdrop-filter: blur(28px) saturate(160%);
      -webkit-backdrop-filter: blur(28px) saturate(160%);
      border-color: rgba(222,228,255,.18);
    }
    .cover-label { color: #c4bbff; font-size: 11px; letter-spacing: 2px; font-weight: 800; }
    .cover h1 { position: relative; z-index: 1; max-width: 580px; margin: 9px 0 4px; font-size: clamp(24px, 3.5vw, 34px); line-height: 1.3; letter-spacing: -.8px; }
    .cover p { position: relative; z-index: 1; margin: 0; color: #b3bad0; font-size: 13px; }
    .section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 3px 0; }
    .section-bar h2 { margin: 0; font-size: 16px; font-weight: 780; }
    .section-bar span { color: var(--muted); font-size: 11px; }
    .post { padding: 22px 24px; }
    .post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
    .mini-avatar {
      width: 38px; height: 38px; display: block; object-fit: cover; flex: 0 0 38px;
      border-radius: 13px; border: 1px solid rgba(220,228,255,.14);
    }
    .post-author { font-size: 12px; font-weight: 750; }
    .post-time { color: var(--muted); font-size: 11px; }
    .post-badge { margin-left: auto; padding: 4px 8px; border-radius: 7px; color: #c6bdff; background: rgba(169,155,255,.1); font-size: 10px; }
    .post h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.2px; }
    .post p { margin: 0; color: #b2b8ce; font-size: 13px; line-height: 1.9; }
    .post p + p { margin-top: 8px; }
    .post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
    .post-tags span { padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.045); color: #b5bad1; font-size: 10px; }
    .repo-card {
      margin-top: 16px; padding: 15px; display: flex; align-items: center; gap: 13px;
      border: 1px solid rgba(220,228,255,.12); border-top-color: rgba(255,255,255,.17);
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.015));
      backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
      transition: border-color .2s, background .2s;
    }
    .repo-card:hover { border-color: rgba(169,155,255,.35); background: rgba(169,155,255,.04); }
    .repo-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-3); color: #d5d0ff; font-size: 18px; }
    .repo-info { min-width: 0; flex: 1; }
    .repo-name { font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
    .repo-desc { color: var(--muted); font-size: 11px; margin-top: 3px; }
    .repo-arrow { color: #858eab; }
    .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .feature {
      padding: 19px;
      background:
        linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.012)),
        rgba(25, 29, 45, .48);
      border-color: rgba(220,228,255,.12);
    }
    .feature-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(169,155,255,.11); color: #c7bcff; font-size: 16px; }
    .feature h3 { margin: 12px 0 5px; font-size: 13px; }
    .feature p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
    .contact-strip { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
    .contact-strip h2 { margin: 0; font-size: 14px; }
    .contact-strip p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
    .button {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      min-height: 40px; padding: 9px 14px; border: 1px solid rgba(190,180,255,.25);
      border-top-color: rgba(255,255,255,.25);
      border-radius: 11px;
      background: linear-gradient(135deg, rgba(169,155,255,.19), rgba(169,155,255,.055));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
      color: #e1dcff; font-size: 12px;
      white-space: nowrap; cursor: pointer; transition: transform .2s ease, background .2s ease;
    }
    .button:hover { transform: translateY(-2px); background: rgba(169,155,255,.17); }
    .button:active { transform: scale(.98); }
    a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
    footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 0 0 30px; color: #747d98; font-size: 11px; text-align: center; }
    footer .foot-line { height: 1px; background: var(--line); margin-bottom: 22px; }
    #toast {
      position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 12px);
      padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px;
      background: #262b3e; color: var(--text); box-shadow: var(--shadow); font-size: 12px;
      opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
    }
    #toast.show { opacity: 1; transform: translate(-50%, 0); }
    .fade-in { animation: appear .55s ease both; }
    .content > :nth-child(2) { animation-delay: .05s; }
    .content > :nth-child(3) { animation-delay: .1s; }
    .content > :nth-child(4) { animation-delay: .15s; }
    @keyframes appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
    @media (max-width: 850px) {
      .layout { grid-template-columns: 260px minmax(0, 1fr); gap: 15px; }
      .profile { padding: 19px; }
      .avatar, .avatar-placeholder { width: 64px; height: 64px; flex-basis: 64px; border-radius: 20px; }
      .name { font-size: 20px; }
      .cover { padding: 24px; }
      .post { padding: 19px; }
    }
    @media (max-width: 700px) {
      .topbar-inner { width: min(100% - 28px, 560px); min-height: 60px; }
      .top-note { display: none; }
      .top-nav { gap: 0; }
      .top-nav a { padding: 8px 9px; font-size: 12px; }
      .layout { width: min(100% - 28px, 560px); margin-top: 16px; grid-template-columns: minmax(0, 1fr); gap: 15px; }
      .sidebar { position: static; grid-row: 1; }
      .profile { padding: 20px; }
      .profile-bio { margin: 15px 0 13px; }
      .social-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .social-link { min-width: 0; padding: 8px; gap: 8px; }
      .social-icon { width: 28px; height: 28px; flex-basis: 28px; }
      .social-id { font-size: 10px; }
      .side-card { display: none; }
      .content { grid-row: 2; }
      .cover { min-height: 160px; padding: 23px 21px; }
      .feature-grid { gap: 9px; }
      .feature { padding: 15px; }
      .contact-strip { align-items: flex-start; flex-direction: column; }
    }
    @media (max-width: 390px) {
      .wordmark { font-size: 18px; }
      .top-nav a { padding: 7px; font-size: 11px; }
      .social-list { grid-template-columns: 1fr; }
      .social-link { padding: 8px 10px; }
      .cover h1 { font-size: 25px; }
      .feature-grid { grid-template-columns: 1fr; }
    }
    /* Real CSS/SVG refraction; the scene is static and does not parallax. */
    .panel.liquid-glass {
      --lg-blur: 12px;
      --lg-saturate: 190%;
      --lg-opacity: .16;
      --lg-radius: var(--radius);
      --lg-border-opacity: .62;
      --lg-tint: 205 216 255;
      --lg-edge-red: rgb(163 135 255 / .42);
      --lg-edge-cyan: rgb(82 218 255 / .42);
      --lg-shadow: 0 22px 65px rgb(0 0 0 / .28);
      --lg-scene-background: url("../images/background.svg");
      background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.025) 44%, rgba(120,145,255,.055));
      border-color: rgba(225,232,255,.22);
      border-top-color: rgba(255,255,255,.46);
      box-shadow: 0 22px 65px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.22);
      -webkit-backdrop-filter: var(--lg-filter) blur(var(--lg-blur)) saturate(var(--lg-saturate));
      backdrop-filter: var(--lg-filter) blur(var(--lg-blur)) saturate(var(--lg-saturate));
    }
    .panel.liquid-glass .liquid-glass__refraction { opacity: .95; }
    .panel.liquid-glass .liquid-glass__content { min-width: 0; }
    .topbar {
      background: rgba(10, 13, 24, .72);
      border-bottom-color: rgba(230,236,255,.12);
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    }

    /* Adaptive layout for freely resized windows, ultrawide displays, and short landscape viewports. */
    html, body { width: 100%; }
    body { overflow-x: clip; }
    img, svg, video, canvas { max-width: 100%; }
    .topbar-inner, .layout, footer { min-width: 0; }
    .layout {
      grid-template-columns: clamp(220px, 25vw, 300px) minmax(0, 1fr);
      gap: clamp(12px, 1.8vw, 22px);
    }
    .sidebar, .content, .panel, .profile, .post, .cover, .contact-strip { min-width: 0; }
    .cover h1 { font-size: clamp(1.45rem, 2.6vw, 2.125rem); overflow-wrap: anywhere; }
    .post h3, .repo-name, .social-id { overflow-wrap: anywhere; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    @media (max-width: 980px) {
      .layout {
        width: min(calc(100% - 32px), 760px);
        grid-template-columns: minmax(0, 1fr);
      }
      .sidebar { position: static; top: auto; grid-row: 1; }
      .content { grid-row: 2; }
      .side-card { display: none; }
      .social-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
      .profile { padding: clamp(16px, 3vw, 24px); }
      .cover { padding: clamp(18px, 3.5vw, 30px); }
    }
    @media (max-width: 560px) {
      .topbar-inner { width: calc(100% - 24px); gap: 8px; flex-wrap: wrap; padding: 8px 0; }
      .wordmark { flex: 0 0 auto; }
      .top-nav { margin-left: auto; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
      .top-nav a { padding: 6px 8px; }
      .layout { width: calc(100% - 24px); margin: 12px auto 36px; }
      .avatar, .avatar-placeholder { width: 58px; height: 58px; flex-basis: 58px; }
      .name { font-size: clamp(18px, 5vw, 22px); }
      .profile-bio { font-size: 13px; }
      .social-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .social-link { min-width: 0; }
      .social-copy { min-width: 0; }
      .social-id { overflow-wrap: anywhere; }
      .feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
      .post { padding: clamp(15px, 4vw, 22px); }
      .contact-strip { padding: 17px; }
    }
    @media (max-width: 360px) {
      .topbar-inner { align-items: flex-start; }
      .top-nav { width: 100%; margin-left: 0; justify-content: flex-start; }
      .social-list, .feature-grid { grid-template-columns: minmax(0, 1fr); }
      .avatar-row { align-items: flex-start; }
      .cover h1 { font-size: 23px; }
      .post-head { gap: 8px; }
      .post-badge { padding: 3px 6px; }
    }
    @media (max-height: 620px) and (min-width: 981px) {
      .sidebar { position: static; }
      .layout { margin-top: 16px; margin-bottom: 36px; }
      .topbar-inner { min-height: 54px; }
      .profile { padding: 18px; }
      .profile-bio { margin: 12px 0; }
    }
    @media (orientation: landscape) and (max-height: 460px) {
      .topbar-inner { min-height: 48px; }
      .layout { margin-top: 10px; }
      .cover { min-height: 125px; }
    }

    /* Compact icon-only social buttons directly under the profile name. */
    .profile-identity { min-width: 0; }
    .social-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .social-action {
      position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px;
      padding: 0; border: 1px solid rgba(220,228,255,.16); border-top-color: rgba(255,255,255,.25);
      border-radius: 50%; color: #e2e4f4; cursor: pointer;
      background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.025));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 5px 14px rgba(0,0,0,.1);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
    }
    .social-action svg { display: block; width: 17px; height: 17px; fill: currentColor; }
    .social-letter { display: block; color: currentColor; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700; font-style: italic; line-height: 1; letter-spacing: -1.2px; transform: translateY(-.3px); user-select: none; }
    .social-letter--qq { font-size: 19px; transform: translate(-1px, -.3px); }
    .social-letter--bili { font-size: 18px; font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-style: italic; transform: translate(-1px, 1px); }
    .social-letter--wechat { font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 14px; font-style: normal; font-weight: 800; letter-spacing: 0; transform: translateY(-.2px); }
    .social-letter--email { font-family: Arial, sans-serif; font-size: 17px; font-style: normal; font-weight: 700; letter-spacing: 0; }
    .social-action[data-contact-type="wechat"]:hover { color: #8be6a0; border-color: rgba(139,230,160,.55); }
    .social-action[data-contact-type="email"]:hover { color: #9cc7ff; border-color: rgba(156,199,255,.55); }
    .social-action:hover, .social-action:focus-visible {
      transform: translateY(-3px); color: #fff; border-color: rgba(169,155,255,.6);
      background: linear-gradient(145deg, rgba(169,155,255,.25), rgba(110,174,255,.1));
      box-shadow: 0 8px 22px rgba(91,87,180,.2), inset 0 1px 0 rgba(255,255,255,.14);
    }
    .social-action::after {
      content: attr(data-tip); position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 9px);
      width: max-content; max-width: min(190px, 70vw); padding: 6px 9px;
      border: 1px solid rgba(220,228,255,.16); border-radius: 8px;
      background: rgba(22,26,41,.96); color: #e7e9f8; font-size: 11px; font-weight: 550; line-height: 1.35;
      white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.24);
      opacity: 0; pointer-events: none; transform: translate(-50%, 4px);
      transition: opacity .16s ease, transform .16s ease;
    }
    .social-action::before {
      content: ""; position: absolute; z-index: 31; left: 50%; bottom: calc(100% + 4px);
      width: 7px; height: 7px; border-right: 1px solid rgba(220,228,255,.16); border-bottom: 1px solid rgba(220,228,255,.16);
      background: rgba(22,26,41,.96); transform: translateX(-50%) rotate(45deg);
      opacity: 0; transition: opacity .16s ease;
    }
    .social-action:hover::after, .social-action:focus-visible::after,
    .social-action:hover::before, .social-action:focus-visible::before { opacity: 1; }
    .social-action:hover::after, .social-action:focus-visible::after { transform: translate(-50%, 0); }
    .qq-contact { text-align: center; }
    @media (max-width: 420px) {
      .avatar-row { align-items: flex-start; }
      .social-actions { gap: 7px; margin-top: 10px; }
      .social-action { width: 34px; height: 34px; flex-basis: 34px; }
      .social-action svg { width: 16px; height: 16px; }
    }

    /* Confirmation dialog for external navigation */
    .external-dialog[hidden] { display: none !important; }
    .external-dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
    .external-dialog__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(4, 7, 16, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: default; animation: externalFade .18s ease both; }
    .external-dialog__card { position: relative; width: min(100%, 420px); padding: clamp(22px, 5vw, 30px); border: 1px solid rgba(222,228,255,.2); border-top-color: rgba(255,255,255,.34); border-radius: 22px; background: linear-gradient(145deg, rgba(38,43,65,.98), rgba(17,21,35,.98)); box-shadow: 0 28px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.1); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); animation: externalCardIn .24s cubic-bezier(.2,.8,.2,1) both; }
    .external-dialog__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(169,155,255,.28); border-radius: 14px; background: rgba(169,155,255,.12); color: #c9beff; font-size: 23px; }
    .external-dialog__eyebrow { color: #a99bff; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
    .external-dialog__card h2 { margin: 7px 0 8px; color: var(--text); font-size: clamp(19px, 4vw, 22px); letter-spacing: -.4px; }
    .external-dialog__card > p { margin: 0; color: #b6bdd2; font-size: 13px; line-height: 1.85; }
    .external-dialog__destination { display: grid; gap: 5px; margin: 19px 0; padding: 12px 14px; border: 1px solid rgba(220,228,255,.12); border-radius: 12px; background: rgba(255,255,255,.035); }
    .external-dialog__destination-label { color: #858eaa; font-size: 10px; }
    .external-dialog__host { color: #e2deff; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
    .external-dialog__actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
    .external-dialog__actions button { min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid rgba(220,228,255,.15); border-radius: 11px; color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
    .external-dialog__actions button:hover { transform: translateY(-1px); }
    .external-dialog__actions.email-menu-active { grid-template-columns: minmax(0, 1fr); }
    .external-dialog__actions.email-menu-active .external-dialog__cancel { width: 100%; text-align: center; justify-self: stretch; }
    .external-dialog__cancel { background: rgba(255,255,255,.045); }
    .external-dialog__cancel:hover { background: rgba(255,255,255,.09); }
    .external-dialog__continue { background: linear-gradient(135deg, rgba(169,155,255,.26), rgba(109,143,224,.16)); border-color: rgba(169,155,255,.35) !important; color: #e7e2ff !important; }
    .external-dialog__continue:hover { background: rgba(169,155,255,.24); }
    .external-dialog__note { margin-top: 14px !important; color: #818ba6 !important; font-size: 10px !important; }
    .external-dialog__destination { min-width: 0; }
    .external-dialog__url-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
    .external-dialog__host { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; font-size: 12px; line-height: 1.7; user-select: text; }
    .icon-copy { position: relative; display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border: 1px solid rgba(220,228,255,.22); border-radius: 9px; background: rgba(255,255,255,.065); color: #e3ddff; cursor: pointer; transform: translateZ(0); transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s cubic-bezier(.2,.9,.25,1.4), box-shadow .16s ease; }
    .icon-copy:hover { background: rgba(169,155,255,.25); border-color: rgba(190,174,255,.8); color: #fff; transform: translateY(-2px) scale(1.06); box-shadow: 0 5px 16px rgba(135,105,255,.25); }
    .icon-copy:active { background: rgba(169,155,255,.48); border-color: #d0c2ff; color: #fff; transform: translateY(1px) scale(.82) rotate(-5deg); box-shadow: 0 0 0 5px rgba(169,155,255,.2), 0 0 22px rgba(145,116,255,.58); transition-duration: .07s; }
    .icon-copy:active svg { transform: scale(1.18); }
    .icon-copy svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
    .icon-copy:focus-visible { outline: 2px solid #c7b8ff; outline-offset: 3px; }
    @media (prefers-reduced-motion: reduce) { .icon-copy, .icon-copy svg { transition: none !important; } }
    .qq-contact { width: 100%; text-align: left; color: inherit; cursor: pointer; font: inherit; }
    .qq-contact:hover { transform: translateX(3px); border-color: rgba(169,155,255,.42); background: linear-gradient(135deg, rgba(169,155,255,.13), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.12); }
    .qq-contact .social-id { line-height: 1.7; }
    body.external-dialog-open { overflow: hidden; }
    @keyframes externalFade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes externalCardIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
    @media (max-width: 360px) { .external-dialog { padding: 12px; } .external-dialog__card { padding: 20px; } .external-dialog__actions { grid-template-columns: 1fr; } }
    @media (prefers-reduced-motion: reduce) { .external-dialog__backdrop, .external-dialog__card { animation: none; } }


/* Global tactile feedback: quick compression, light bloom and a soft ripple. */
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 180ms cubic-bezier(.2,.8,.2,1),
    filter 180ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]):active,
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]).feedback-pressed {
  transform: scale(.965);
  filter: brightness(1.22) saturate(1.12);
  box-shadow: 0 0 0 1px rgba(190,178,255,.18), 0 0 24px rgba(140,126,255,.16);
}
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]):focus-visible {
  outline: 2px solid rgba(181,169,255,.92);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(169,155,255,.12), 0 0 24px rgba(140,126,255,.15);
}
.external-dialog__backdrop:active {
  transform: none;
  filter: brightness(1.08);
  background-color: rgba(8, 10, 18, .76);
}
@keyframes tactileNudge {
  0% { transform: scale(1); }
  38% { transform: scale(.955); }
  72% { transform: scale(1.018); }
  100% { transform: scale(1); }
}
.feedback-confirmed { animation: tactileNudge 360ms cubic-bezier(.2,.8,.2,1); }
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]):disabled,
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"])[aria-disabled="true"] {
  cursor: not-allowed;
}
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]):disabled:active,
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"])[aria-disabled="true"]:active {
  filter: brightness(1.12);
}
@media (hover: hover) {
  :where(button, a[href], [role="button"], input[type="button"], input[type="submit"]):not(:disabled):not([aria-disabled="true"]):hover {
    filter: brightness(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(button, a[href], [role="button"], input[type="button"], input[type="submit"]),
  :where(button, a[href], [role="button"], input[type="button"], input[type="submit"])::before,
  :where(button, a[href], [role="button"], input[type="button"], input[type="submit"])::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* Softer, rounder visual language across the whole interface. */
:root { --radius: 26px; }
.panel,
.cover,
.post,
.feature,
.repo-card,
.repo-link,
.contact-card,
.profile-card {
  border-radius: 26px;
}
.avatar,
.avatar-placeholder {
  border-radius: 25px;
}
.social-action,
.button,
.pill,
.status-pill,
.tag,
.post-badge,
.post-tags span,
.feature-icon,
.repo-icon,
.external-dialog__icon {
  border-radius: 15px;
}
.topbar-inner,
.top-nav a,
.external-dialog__destination {
  border-radius: 18px;
}
.external-dialog__card {
  border-radius: 28px;
}
.external-dialog__actions button {
  border-radius: 15px;
}
.icon-copy {
  border-radius: 13px;
}
@media (max-width: 600px) {
  .panel,
  .cover,
  .post,
  .feature,
  .repo-card,
  .repo-link,
  .contact-card,
  .profile-card {
    border-radius: 23px;
  }
  .external-dialog__card { border-radius: 25px; }
}


/* Card motion: deliberately slower, smoother lift and press response. */
:where(.panel, .cover, .post, .feature, .contact-strip, .side-card, .profile-card, .contact-card) {
  transform: translate3d(0, 0, 0);
  transition:
    transform 480ms cubic-bezier(.18,.72,.22,1),
    box-shadow 480ms cubic-bezier(.18,.72,.22,1),
    border-color 420ms ease,
    filter 420ms ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  :where(.panel, .cover, .post, .feature, .contact-strip, .side-card, .profile-card, .contact-card):hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(169, 155, 255, .32);
    box-shadow:
      0 25px 68px rgba(0, 0, 0, .27),
      0 0 0 1px rgba(169, 155, 255, .045),
      0 0 28px rgba(122, 111, 255, .085),
      inset 0 1px 0 rgba(255, 255, 255, .12);
    filter: brightness(1.035);
  }
  .post:hover, .feature:hover, .contact-strip:hover, .side-card:hover {
    transform: translate3d(0, -4px, 0);
  }
}
:where(.panel, .cover, .post, .feature, .contact-strip, .side-card, .profile-card, .contact-card):active {
  transform: translate3d(0, -1px, 0) scale(.992);
  filter: brightness(1.08);
  transition-duration: 100ms;
}
@media (prefers-reduced-motion: reduce) {
  :where(.panel, .cover, .post, .feature, .contact-strip, .side-card, .profile-card, .contact-card) {
    transform: none !important;
    will-change: auto;
  }
}


/* Refined social icons: recognizable SVG marks, soft rounded surfaces. */
.social-action { border-radius: 14px !important; overflow: visible; color: #dce4ff; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 5px 14px rgba(0,0,0,.1); }
.social-action svg { width: 19px; height: 19px; fill: currentColor; }
.social-action--qq { color: #a9c9ff; }
.social-action--wechat { color: #8be6a0; }
.social-action--bili { color: #ff8fbd; }
.social-action--bili:hover, .social-action--bili:focus-visible { color: #ffc2dc; border-color: rgba(255,143,189,.85); background: rgba(255,105,180,.2); box-shadow: 0 0 18px rgba(255,105,180,.14); }
.social-action--email { color: #a8caff; }
.social-action--qq:hover, .social-action--qq:focus-visible { border-color: rgba(130,184,255,.7); background: rgba(87,145,255,.13); }
.social-action--wechat:hover, .social-action--wechat:focus-visible { border-color: rgba(139,230,160,.7); background: rgba(80,200,130,.12); }

.social-action--email:hover, .social-action--email:focus-visible { border-color: rgba(156,199,255,.7); background: rgba(90,150,255,.13); }
.social-action--email svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.email-contact-menu[hidden] { display: none !important; }
.email-contact-menu { display: grid; gap: 9px; margin: 17px 0 3px; }
.email-contact-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px; border: 1px solid rgba(220,228,255,.13); border-radius: 15px; background: rgba(255,255,255,.035); }
.email-contact-copy { display: grid; gap: 5px; min-width: 0; }
.email-contact-label { color: #858eaa; font-size: 10px; letter-spacing: .5px; }
.email-contact-address { color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.email-copy-button { flex: 0 0 34px; width: 34px; height: 34px; min-height: 34px; padding: 7px; }
.email-contact-note { margin: 1px 0 0 !important; color: #aeb7d0 !important; font-size: 11px !important; }
#copyExternalLink[hidden], #externalLinkContinue[hidden] { display: none !important; }
@media (max-width: 420px) { .social-action { border-radius: 12px !important; } .email-contact-option { align-items: flex-start; } .email-contact-address { font-size: 11px; } .email-copy-button { flex-basis: 34px; width: 34px; min-height: 34px; padding: 7px; } }


/* Personal-space visual pass: less glass, more atmosphere and a little character. */
body { background: #090b12; }
body::before {
  background:
    radial-gradient(ellipse at 9% 3%, rgba(74, 72, 154, .16), transparent 36rem),
    radial-gradient(ellipse at 91% 27%, rgba(30, 105, 135, .12), transparent 34rem),
    radial-gradient(ellipse at 58% 100%, rgba(70, 47, 118, .11), transparent 40rem);
  background-size: 100% 100%;
}
#ambientParticles {
  position: fixed; inset: 0; z-index: 0; display: block;
  pointer-events: none; opacity: 1; transition: opacity .35s ease;
}

body .panel {
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 23, 35, .94), rgba(13, 16, 25, .94));
  border: 1px solid rgba(164, 174, 220, .105);
  border-top-color: rgba(199, 205, 255, .16);
  border-radius: 17px;
  box-shadow: 0 15px 38px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body .profile { background: linear-gradient(155deg, rgba(21,24,37,.97), rgba(12,15,24,.96)); }
body .name {
  width: fit-content; max-width: 100%;
  color: transparent;
  background: linear-gradient(100deg, #fff0a8 0%, #ffbd8b 20%, #ff83b9 43%, #c2a1ff 66%, #7be4f0 88%, #fff0a8 100%);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 0 22px rgba(191, 130, 255, .12);
  animation: name-spectrum 4s linear infinite;
}
body .wordmark { color: #f4f2ff; }
body .wordmark span {
  color: transparent;
  background: linear-gradient(135deg, #ff9fc6, #b7a4ff 55%, #75e5ef);
  -webkit-background-clip: text; background-clip: text;
}
@keyframes name-spectrum { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
body .cover {
  min-height: 222px; padding: 31px 32px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background:
    linear-gradient(90deg, rgba(13,16,26,.98) 0%, rgba(13,16,26,.91) 44%, rgba(13,16,26,.28) 100%),
    radial-gradient(ellipse at 85% 45%, rgba(82,76,152,.16), transparent 58%),
    #0d101a;
  border-color: rgba(174, 177, 231, .13);
}
body .cover::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169,155,255,.45), rgba(99,215,234,.24), transparent);
}
.cover-art {
  position: absolute; width: min(48%, 360px); height: auto;
  right: 1.5%; top: 50%; transform: translateY(-50%);
  opacity: .8; pointer-events: none;
  filter: saturate(.82);
}
.cover-label { display: flex; align-items: center; gap: 8px; color: #aeb4d6; font-size: 10px; letter-spacing: 2.1px; }
.cover-label-dot { width: 5px; height: 5px; border-radius: 50%; background: #8be3e7; box-shadow: 0 0 10px rgba(99,215,234,.7); }
.cover-label-year { color: #626b8b; }
body .cover h1 { font-size: clamp(25px, 3.3vw, 34px); letter-spacing: -.9px; text-wrap: balance; }
body .cover p { color: #8e97b2; font-size: 12px; }
body .feature { transition: transform .24s ease, border-color .24s ease, background .24s ease; }
body .feature:hover {
  transform: translateY(-3px);
  border-color: rgba(151, 145, 231, .28);
  background: linear-gradient(145deg, rgba(26,29,45,.97), rgba(14,17,27,.97));
}
body .feature-icon {
  display: grid; place-items: center; width: 37px; height: 37px;
  border: 1px solid rgba(151,145,231,.16); border-radius: 12px;
  background: linear-gradient(145deg, rgba(111,103,184,.16), rgba(45,117,136,.07));
  color: #c0b5ff; font-size: 17px;
}
body .tag { border-radius: 7px; background: rgba(255,255,255,.025); backdrop-filter: none; -webkit-backdrop-filter: none; }
body .social-action { border-radius: 11px !important; box-shadow: none; }
@media (max-width: 640px) {
  body .cover { min-height: 202px; padding: 25px 22px; }
  .cover-art { width: 62%; right: -15%; opacity: .48; }
  body .cover h1 { font-size: clamp(23px, 6.2vw, 30px); }
}
@media (prefers-reduced-motion: reduce) {
  body .name { animation: none; }
  body .feature { transition: none; }
  #ambientParticles { transition: none; }
}


/* Open-source liquid-glass integration: transparent surfaces, readable content,
   and restrained refraction to keep mobile rendering smooth. */
body .panel.liquid-glass {
  --lg-blur: 16px;
  --lg-saturate: 175%;
  --lg-opacity: .08;
  --lg-radius: 24px;
  --lg-border-opacity: .28;
  --lg-tint: 128 145 195;
  --lg-edge-red: rgb(169 137 255 / .34);
  --lg-edge-cyan: rgb(89 221 242 / .32);
  --lg-shadow: 0 18px 46px rgb(0 0 0 / .22);
  --lg-scene-background: url("../images/background.svg");
  background: linear-gradient(145deg, rgb(30 35 56 / .19), rgb(12 16 28 / .11) 58%, rgb(38 39 70 / .12)) !important;
  border: 1px solid rgb(205 214 255 / .20);
  border-top-color: rgb(235 239 255 / .34);
  box-shadow: 0 18px 46px rgb(0 0 0 / .20), inset 0 1px 0 rgb(255 255 255 / .12);
  -webkit-backdrop-filter: blur(16px) saturate(175%);
  backdrop-filter: blur(16px) saturate(175%);
}
body .profile.liquid-glass {
  background: linear-gradient(145deg, rgb(29 34 54 / .27), rgb(12 16 28 / .17)) !important;
}
body .cover.liquid-glass {
  background:
    linear-gradient(90deg, rgb(13 16 26 / .34) 0%, rgb(13 16 26 / .22) 48%, rgb(13 16 26 / .04) 100%),
    radial-gradient(ellipse at 85% 45%, rgb(110 103 195 / .13), transparent 58%) !important;
}
body .feature.liquid-glass {
  background: linear-gradient(145deg, rgb(28 32 50 / .17), rgb(13 17 29 / .10)) !important;
}
body .post.liquid-glass,
body .contact-strip.liquid-glass {
  background: linear-gradient(145deg, rgb(28 32 50 / .19), rgb(13 17 29 / .12)) !important;
}
body .panel.liquid-glass .liquid-glass__refraction {
  opacity: .46;
  pointer-events: none;
}
body .panel.liquid-glass::after {
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px))) {
  body .panel.liquid-glass {
    background: rgb(20 24 39 / .76) !important;
  }
}
@media (max-width: 640px) {
  body .panel.liquid-glass {
    --lg-blur: 11px;
    -webkit-backdrop-filter: blur(11px) saturate(155%);
    backdrop-filter: blur(11px) saturate(155%);
  }
}


/* CSS-only glass fallback: transparency still works if the optional filter CDN is unavailable. */
body .panel {
  background: linear-gradient(145deg, rgb(30 35 56 / .19), rgb(12 16 28 / .11) 58%, rgb(38 39 70 / .12)) !important;
  border: 1px solid rgb(205 214 255 / .20);
  border-top-color: rgb(235 239 255 / .34);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
}
body .profile {
  background: linear-gradient(145deg, rgb(29 34 54 / .27), rgb(12 16 28 / .17)) !important;
}
body .cover {
  background:
    linear-gradient(90deg, rgb(13 16 26 / .34) 0%, rgb(13 16 26 / .22) 48%, rgb(13 16 26 / .04) 100%),
    radial-gradient(ellipse at 85% 45%, rgb(110 103 195 / .13), transparent 58%) !important;
}
body .feature {
  background: linear-gradient(145deg, rgb(28 32 50 / .17), rgb(13 17 29 / .10)) !important;
}
body .post,
body .contact-strip {
  background: linear-gradient(145deg, rgb(28 32 50 / .19), rgb(13 17 29 / .12)) !important;
}
@media (max-width: 640px) {
  body .panel {
    -webkit-backdrop-filter: blur(11px) saturate(155%);
    backdrop-filter: blur(11px) saturate(155%);
  }
}


/* High-visibility interaction feedback: slower, smoother, and interruptible. */
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]) {
  transition:
    transform 280ms cubic-bezier(.22,.75,.25,1),
    filter 280ms ease,
    box-shadow 300ms ease,
    border-color 280ms ease,
    background-color 280ms ease !important;
}
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]):active,
:where(button, a[href], [role="button"], input[type="button"], input[type="submit"]).feedback-pressed {
  transform: scale(.98) !important;
  filter: brightness(1.05) !important;
  box-shadow: 0 0 0 1px rgba(190,178,255,.12) !important;
  border-color: rgba(190,178,255,.28) !important;
  transition-duration: 120ms !important;
}
@media (hover: hover) and (pointer: fine) {
  :where(button, a[href], [role="button"], input[type="button"], input[type="submit"]):not(:disabled):not([aria-disabled="true"]):hover {
    filter: brightness(1.15) saturate(1.18) !important;
    box-shadow: 0 0 0 1px rgba(190,178,255,.34), 0 0 22px rgba(140,126,255,.24) !important;
  }
  body :where(.panel, .cover, .post, .feature, .contact-strip, .side-card, .profile-card, .contact-card):hover {
    transform: translate3d(0, -8px, 0) scale(1.012);
    border-color: rgba(190,178,255,.72);
    box-shadow:
      0 28px 72px rgba(0,0,0,.32),
      0 0 0 1px rgba(169,155,255,.22),
      0 0 34px rgba(122,111,255,.22),
      inset 0 1px 0 rgba(255,255,255,.24);
    filter: brightness(1.10) saturate(1.12);
  }
}
body :where(.panel, .cover, .post, .feature, .contact-strip, .side-card, .profile-card, .contact-card):active {
  transform: translate3d(0, -1px, 0) scale(.99) !important;
  filter: brightness(1.04) !important;
  border-color: rgba(190,178,255,.32) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.18) !important;
  transition-duration: 140ms !important;
}
@media (prefers-reduced-motion: reduce) {
  :where(button, a[href], [role="button"], input[type="button"], input[type="submit"]) {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* A gentle ambient halo for taps on empty card backgrounds; intentionally no white ring. */
@keyframes cardBackgroundGlow {
  0% {
    box-shadow: var(--card-shadow, 0 14px 42px rgba(0,0,0,.20));
    filter: brightness(1);
  }
  32% {
    box-shadow:
      0 0 0 1px rgba(169,155,255,.16),
      0 0 24px rgba(145,126,255,.20),
      0 14px 42px rgba(0,0,0,.20);
    filter: brightness(1.035);
  }
  100% {
    box-shadow: var(--card-shadow, 0 14px 42px rgba(0,0,0,.20));
    filter: brightness(1);
  }
}
.card-background-glow {
  animation: cardBackgroundGlow 900ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .card-background-glow { animation: none; }
}

/* A blank click on the external-link dialog backdrop only dismisses it.
   Keep global purple press/hover feedback off this full-screen layer. */
.external-dialog__backdrop,
.external-dialog__backdrop:hover,
.external-dialog__backdrop:active,
.external-dialog__backdrop.feedback-pressed {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  outline: none !important;
}
.external-dialog__backdrop:hover {
  background-color: rgba(4, 7, 16, .72) !important;
}
.external-dialog__backdrop:active {
  background-color: rgba(8, 10, 18, .76) !important;
  transition: none !important;
}

/* Ensure the email contact dialog does not leave an empty destination card. */
.external-dialog__destination[hidden] { display: none !important; }


/* Staggered card entrance: on reload and whenever cards enter the viewport. */
@keyframes homepageCardEnter {
  0% { opacity: 0; transform: translate3d(0, 22px, 0) scale(.975); filter: blur(5px); }
  68% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}
body .homepage-card-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.975);
  will-change: opacity, transform, filter;
}
body .homepage-card-reveal.is-card-visible {
  animation: homepageCardEnter 680ms cubic-bezier(.2,.72,.22,1) both;
  animation-delay: var(--card-enter-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  body .homepage-card-reveal,
  body .homepage-card-reveal.is-card-visible {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
    will-change: auto;
  }
}
