/* Profile polaroid: hint that it opens something. `scale` composes with the physics transform. */
[data-pencil-name="Sticker · Profile Photo"] {
  cursor: pointer;
  transition: scale 0.35s cubic-bezier(.3, 1.5, .5, 1), filter 0.35s ease;
}
[data-pencil-name="Sticker · Profile Photo"]:hover,
[data-pencil-name="Sticker · Profile Photo"]:focus-visible {
  scale: 1.05;
  filter: drop-shadow(0 0 18px rgba(201, 242, 77, 0.55));
  outline: none;
}
[data-pencil-name="Sticker · Profile Photo"]::after {
  content: "About me ↗";
  position: absolute; top: -14px; right: -12px;
  padding: 6px 10px; border-radius: 999px;
  font: 600 11px/1 "Geist", system-ui, sans-serif; letter-spacing: -0.01em; white-space: nowrap;
  background: #C9F24D; color: #0D0D0F; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  opacity: 0; transform: translateY(6px) scale(0.9); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.3, 1.6, .5, 1);
}
[data-pencil-name="Sticker · Profile Photo"]:hover::after,
[data-pencil-name="Sticker · Profile Photo"]:focus-visible::after { opacity: 1; transform: none; }
.is-dragging[data-pencil-name="Sticker · Profile Photo"]::after { opacity: 0; }

/* Dialog: solid, high-contrast card on a dark scrim (same in both themes). */
.about {
  --card: #FBFAF6; --card-line: rgba(27, 36, 112, 0.3);
  --fg: #0B1030; --fg-body: #1F2433; --label: #3A3F55; --role: #1B2470;
  --chip: #EEF0F7; --chip-line: rgba(27, 36, 112, 0.55); --accent: #2547E8;
  --scrim: rgba(5, 8, 30, 0.72);
  position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 24px;
  visibility: hidden;
}
html[data-theme="light"] .about { --scrim: rgba(11, 16, 48, 0.55); }
.about.is-open { visibility: visible; }
.about-scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; }

.about-card {
  position: relative; width: min(520px, 100%); box-sizing: border-box; padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  border-radius: 28px; background: var(--card); border: 1.5px solid var(--card-line);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65), 0 8px 22px rgba(0, 0, 0, 0.4);
  color: var(--fg); font-family: "Geist", system-ui, sans-serif;
}
.about-card:focus { outline: none; }

.about-close {
  position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--fg);
  background: var(--chip); border: 1.5px solid rgba(11, 16, 48, 0.6);
  transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1), background 0.2s ease, color 0.2s ease;
}
.about-close svg { width: 18px; height: 18px; }
.about-close:hover { transform: rotate(90deg) scale(1.06); background: var(--fg); color: #FFFFFF; }
.about-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.about-intro { display: flex; align-items: center; gap: 16px; padding-right: 48px; }
.about-avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%; box-sizing: border-box;
  border: 2.5px solid var(--accent);
  background: url('/images/avatar-stylized.png') -54px -22px / 189px 236px no-repeat,
              radial-gradient(circle at 50% 35%, #3F63FF, #101858);
}
.about-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--fg); }
.about-role { margin-top: 7px; font: 700 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.13em; color: var(--role); }
.about-bio { margin: 0; font-size: 16px; line-height: 1.65; color: var(--fg-body); }

.about-sec { display: flex; flex-direction: column; gap: 11px; }
.about-label { font: 700 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: 0.15em; color: var(--label); }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tool {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px;
  background: var(--t); color: #0D0D0F; font-size: 13px; font-weight: 700;
  border: 1px solid rgba(13, 13, 15, 0.12); box-shadow: 0 3px 6px rgba(11, 16, 48, 0.12); rotate: var(--r, 0deg);
  transition: rotate 0.3s cubic-bezier(.3, 1.6, .5, 1), translate 0.3s cubic-bezier(.3, 1.6, .5, 1);
}
.about-tool:hover { rotate: 0deg; translate: 0 -2px; }
.about-tool i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.about-skill {
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--chip); border: 1.5px solid var(--chip-line); color: var(--fg);
}

.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }
.about-cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px;
  background: #C9F24D; color: #0D0D0F; font-size: 16px; font-weight: 700; text-decoration: none;
  border: 1.5px solid #0D0D0F;
  transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1), box-shadow 0.3s ease;
}
.about-cta span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0D0D0F; color: #C9F24D; transition: transform 0.3s ease; }
.about-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 16, 48, 0.25); }
.about-cta:hover span { transform: rotate(45deg); }
.about-ghost {
  height: 50px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; box-sizing: border-box;
  background: #FFFFFF; border: 2px solid var(--fg); color: var(--fg); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.about-ghost:hover { background: var(--fg); color: #FFFFFF; }
.about-cta:focus-visible, .about-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes tab-nudge { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(10px); } 70% { transform: translateY(-3px); } }
.tab-nudge { animation: tab-nudge 0.6s cubic-bezier(.3, 1.4, .5, 1); }
