:root {
  --bg: #070707;
  --text: #f4ecd2;
  --muted: #d2c394;
  --line: rgba(213, 177, 74, 0.28);
  --gold: #d4af37;
  --gold-soft: #f0d67a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.14), transparent 34%),
    radial-gradient(circle at right 20%, rgba(212, 175, 55, 0.09), transparent 28%),
    linear-gradient(180deg, #090909 0%, #0b0b0b 44%, #050505 100%);
}
a { color: inherit; text-decoration: none; }
.page-shell { position: relative; width: min(980px, calc(100% - 24px)); padding: 24px 0 56px; }
.bg-orb { position: fixed; border-radius: 999px; filter: blur(72px); pointer-events: none; opacity: 0.42; }
.bg-orb-1 { top: 6%; left: 2%; width: 240px; height: 240px; background: rgba(212, 175, 55, 0.15); }
.bg-orb-2 { right: 4%; bottom: 8%; width: 280px; height: 280px; background: rgba(212, 175, 55, 0.1); }
.tree-stage { position: relative; padding: 34px 28px 56px; border: 1px solid var(--line); border-radius: 36px; background: linear-gradient(180deg, rgba(22, 22, 22, 0.94), rgba(8, 8, 8, 0.96)), radial-gradient(circle at top, rgba(240, 214, 122, 0.05), transparent 40%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(240, 214, 122, 0.04); overflow: hidden; }
.tree-stage::before { content: ""; position: absolute; inset: 14px; border-radius: 28px; border: 1px solid rgba(240, 214, 122, 0.06); pointer-events: none; }
.tree-stage::after { content: ""; position: absolute; inset: 0; border-radius: 36px; background: linear-gradient(135deg, rgba(240, 214, 122, 0.045), transparent 30%, transparent 70%, rgba(212, 175, 55, 0.04)); pointer-events: none; }
.tree-header { display: grid; justify-items: center; gap: 14px; margin-bottom: 26px; }
.tree-header--with-corner-link { position: relative; width: 100%; }
.tree-header-line { width: min(220px, 36vw); height: 1px; background: linear-gradient(90deg, transparent, rgba(240, 214, 122, 0.55), transparent); box-shadow: 0 0 12px rgba(240, 214, 122, 0.12); }
.badge { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid rgba(240, 214, 122, 0.2); border-radius: 999px; background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03)); color: var(--gold-soft); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.74rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.family-tree { display: grid; justify-items: center; gap: 0; padding: 14px 0 0; }
.generation { display: flex; justify-content: center; width: 100%; }
.generation-children--single { max-width: 260px; }
.profile-node { position: relative; display: block; border-radius: 999px; transition: transform 240ms ease, filter 240ms ease; }
.profile-node:hover { transform: translateY(-7px) scale(1.035); filter: brightness(1.04); }
.profile-avatar { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 999px; border: 2px solid rgba(240, 214, 122, 0.42); box-shadow: inset 0 1px 0 rgba(255,255,255,0.38), 0 22px 44px rgba(0,0,0,0.34), 0 0 0 6px rgba(212, 175, 55, 0.08), 0 0 0 1px rgba(240, 214, 122, 0.34), 0 0 22px rgba(212, 175, 55, 0.16); overflow: hidden; isolation: isolate; clip-path: circle(50% at 50% 50%); }
.profile-avatar--hero { width: 168px; height: 168px; }
.profile-avatar--placeholder { background: linear-gradient(180deg, #d8b24b, #9f7420); color: #120d04; font-size: 2.8rem; letter-spacing: 0.04em; }
.profile-hover, .project-hover { position: absolute; left: 50%; bottom: calc(100% + 20px); transform: translateX(-50%) translateY(12px) scale(0.96); min-width: 230px; padding: 18px 20px; border: 1px solid rgba(240, 214, 122, 0.16); border-radius: 20px; background: linear-gradient(180deg, #161616, #090909); color: var(--text); box-shadow: 0 26px 60px rgba(0,0,0,0.46); opacity: 0; pointer-events: none; transition: opacity 240ms ease, transform 240ms ease, box-shadow 240ms ease; text-align: center; z-index: 3; }
.profile-hover::after, .project-hover::after { content: ""; position: absolute; left: 50%; top: 100%; width: 14px; height: 14px; background: #0c0c0c; border-right: 1px solid rgba(240,214,122,0.14); border-bottom: 1px solid rgba(240,214,122,0.14); transform: translate(-50%, -50%) rotate(45deg); }
.profile-hover strong, .project-hover strong { display: block; margin-bottom: 6px; font-size: 1rem; letter-spacing: 0.03em; }
.profile-hover span, .project-hover span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.profile-node:hover .profile-hover, .project-node:hover .project-hover, .profile-node:focus-visible .profile-hover, .project-node:focus-visible .project-hover { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.tree-connector { position: relative; width: 360px; max-width: 80%; height: 136px; }
.connector-stem { position: absolute; left: 50%; top: 0; width: 4px; height: 54px; transform: translateX(-50%); border-radius: 999px; background: linear-gradient(180deg, rgba(240,214,122,0.03) 0%, rgba(240,214,122,0.94) 22%, rgba(212,175,55,0.72) 60%, rgba(240,214,122,0.18) 100%); box-shadow: 0 0 24px rgba(212,175,55,0.22); }
.connector-horizontal { position: absolute; left: 20%; right: 20%; top: 54px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, rgba(240,214,122,0.08), rgba(240,214,122,0.94) 18%, rgba(212,175,55,0.7) 50%, rgba(240,214,122,0.94) 82%, rgba(240,214,122,0.08)); box-shadow: 0 0 18px rgba(212,175,55,0.16); }
.connector-drop-single { position: absolute; left: 50%; top: 54px; width: 3px; height: 58px; transform: translateX(-50%); border-radius: 999px; background: linear-gradient(180deg, rgba(240,214,122,0.42), rgba(240,214,122,0.06)); box-shadow: 0 0 14px rgba(212,175,55,0.12); }
.connector-glow { position: absolute; left: 50%; border-radius: 999px; transform: translateX(-50%); background: radial-gradient(circle, rgba(240,214,122,0.18), transparent 70%); pointer-events: none; }
.connector-glow-top { top: 22px; width: 28px; height: 28px; }
.connector-glow-bottom { top: 46px; width: 48px; height: 48px; }
.project-node { position: relative; display: grid; justify-items: center; gap: 12px; padding: 0; transition: transform 220ms ease, filter 220ms ease; }
.project-node:hover { transform: translateY(-5px); filter: brightness(1.04); }
.project-node--static { cursor: default; }
.project-glyph { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 999px; border: 1.8px solid rgba(240,214,122,0.42); background: linear-gradient(180deg, rgba(18,18,18,0.99), rgba(8,8,8,0.99)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 18px 34px rgba(0,0,0,0.3), 0 0 0 3px rgba(212,175,55,0.08), 0 0 0 1px rgba(240,214,122,0.18), 0 0 18px rgba(212,175,55,0.14); font-size: 2rem; overflow: hidden; padding: 0; isolation: isolate; clip-path: circle(50% at 50% 50%); }
.project-glyph--placeholder { font-size: 2.1rem; }
.corner-social { position: absolute; top: calc(50% - 10px); right: 10px; transform: translate3d(0, -50%, 0); width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #ffd54f; border: 1px solid rgba(240,214,122,0.34); background: linear-gradient(180deg, rgba(212,175,55,0.18), rgba(212,175,55,0.08)); box-shadow: 0 0 0 1px rgba(240,214,122,0.12) inset, 0 8px 20px rgba(0,0,0,0.28); backdrop-filter: blur(8px); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease; z-index: 4; line-height: 1; overflow: hidden; will-change: transform; }
.corner-social:hover { transform: translate3d(0, calc(-50% - 2px), 0); border-color: rgba(240,214,122,0.56); box-shadow: 0 0 0 1px rgba(240,214,122,0.18) inset, 0 9px 22px rgba(0,0,0,0.32); color: #ffe082; }
.corner-social::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.corner-social:focus-visible { transform: translate3d(0, calc(-50% - 2px), 0); border-color: rgba(240,214,122,0.72); box-shadow: 0 0 0 2px rgba(240,214,122,0.16), 0 10px 24px rgba(0,0,0,0.34); outline: none; }
@media (max-width: 560px) { .page-shell { width: min(100% - 16px, 980px); padding: 16px 0 48px; } .tree-stage { padding: 20px 14px 48px; } .profile-avatar--hero { width: 128px; height: 128px; } .tree-connector { width: 240px; height: 118px; } .connector-stem { height: 42px; } .connector-horizontal { left: 20%; right: 20%; top: 42px; } .connector-drop-single { top: 42px; height: 36px; } .project-glyph { width: 78px; height: 78px; font-size: 1.7rem; } .profile-hover, .project-hover { min-width: 184px; padding: 12px 14px; } .corner-social { top: calc(50% - 7px); right: 8px; width: 34px; height: 34px; font-size: 14px; } }
