:root {
  --bg: #050505;
  --text: #f3ead1;
  --muted: #cdbb88;
  --line: rgba(188, 147, 72, 0.18);
  --gold: #d4af37;
  --gold-soft: #e7d49a;
  --panel: rgba(11, 11, 11, 0.9);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
}
* { 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.12), transparent 32%),
    radial-gradient(circle at right 20%, rgba(212, 175, 55, 0.06), transparent 24%),
    linear-gradient(180deg, #060606 0%, #080808 44%, #030303 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(231, 210, 138, 0.22) 0.6px, transparent 0.8px),
    radial-gradient(rgba(255, 255, 255, 0.04) 0.5px, transparent 0.7px);
  background-size: 18px 18px, 32px 32px;
  background-position: 0 0, 11px 9px;
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-shell { position: relative; width: min(1100px, 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(14, 12, 10, 0.98), rgba(6, 6, 6, 0.99)),
    radial-gradient(circle at top, rgba(240, 214, 122, 0.05), transparent 38%),
    linear-gradient(135deg, rgba(103, 69, 23, 0.05), transparent 34%, rgba(103, 69, 23, 0.03) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.03), inset 0 0 90px rgba(191,145,63,0.04), 0 0 0 1px rgba(240, 214, 122, 0.03);
  overflow: hidden;
}
.tree-stage::before { content: ""; position: absolute; inset: 14px; border-radius: 28px; border: 1px solid rgba(240, 214, 122, 0.08); pointer-events: none; }
.tree-stage::after { content: ""; position: absolute; inset: 18px; border-radius: 24px; border: 1px solid rgba(188, 147, 72, 0.08); box-shadow: inset 0 0 42px rgba(212, 175, 55, 0.03); 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.34), transparent); box-shadow: 0 0 6px rgba(240, 214, 122, 0.06); }
.badge { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid rgba(240, 214, 122, 0.18); border-radius: 999px; background: linear-gradient(180deg, rgba(54, 40, 18, 0.16), rgba(212, 175, 55, 0.03)); color: #ead79b; letter-spacing: 0.26em; text-transform: uppercase; font-size: 0.72rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 5px 12px rgba(0,0,0,0.16); }
.family-tree { display: grid; justify-items: center; gap: 0; padding: 14px 0 0; }
.generation { display: flex; justify-content: center; width: 100%; }
.generation-children--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; max-width: 760px; margin-top: 0; align-items: start; justify-items: center; }
.generation-children--grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; gap: 18px; }
.profile-node { position: relative; display: block; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: transform 240ms ease, filter 240ms ease; -webkit-tap-highlight-color: transparent; }
.profile-node:hover, .profile-node.is-active { transform: translateY(-7px) scale(1.035); filter: brightness(1.04); }
.profile-node.is-pressed .profile-avatar { transform: scale(0.98); }
.profile-node:focus-visible { outline: none; }
.profile-node:focus-visible .profile-avatar { 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 2px rgba(240, 214, 122, 0.28), 0 0 24px rgba(212, 175, 55, 0.18); }
.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%); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), rgba(0,0,0,0.08)); transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease; }
.profile-node.is-active .profile-avatar { border-color: rgba(240, 214, 122, 0.62); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 24px 48px rgba(0,0,0,0.36), 0 0 0 7px rgba(212, 175, 55, 0.1), 0 0 0 1px rgba(240, 214, 122, 0.3), 0 0 26px rgba(212, 175, 55, 0.2); filter: brightness(1.03); }
.profile-avatar--hero { width: 168px; height: 168px; }
.profile-avatar-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; border-radius: 50%; }
.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.14); border-radius: 20px; background: linear-gradient(180deg, rgba(28, 22, 14, 0.98), rgba(8, 8, 8, 0.99)); color: var(--text); box-shadow: 0 18px 34px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.02); opacity: 0; pointer-events: none; transition: opacity 240ms ease, transform 240ms ease, box-shadow 240ms ease; text-align: center; z-index: 6; }
.profile-hover::after, .project-hover::after { content: ""; position: absolute; left: 50%; top: 100%; width: 14px; height: 14px; background: #0c0a08; 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 { left: calc(100% + 24px); top: 50%; bottom: auto; transform: translateY(-50%) translateX(-14px) scale(0.96); min-width: 250px; }
.profile-hover::after { left: 0; top: 50%; width: 14px; height: 14px; border-right: 0; border-bottom: 1px solid rgba(240,214,122,0.14); border-left: 1px solid rgba(240,214,122,0.14); border-top: 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; color:#f0dfac; color:#f0dfac; }
.profile-hover span, .project-hover span { display:block; color:var(--muted); font-size:0.92rem; line-height:1.5; }
.profile-hover span:last-child, .project-hover span:last-child { color: var(--gold-soft); }
.profile-node:focus-visible .profile-hover, .profile-node.is-active .profile-hover { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
.project-node:focus-visible .project-hover, .project-node.is-active .project-hover { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.profile-node.is-active .profile-hover, .project-node.is-active .project-hover { pointer-events: auto; }
.project-hover-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 9px 14px; border: 1px solid rgba(240, 214, 122, 0.22); border-radius: 999px; background: linear-gradient(180deg, rgba(54, 40, 18, 0.22), rgba(212, 175, 55, 0.05)); color: #f0dfac; font-size: 0.88rem; letter-spacing: 0.04em; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 18px rgba(0,0,0,0.22); transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease; }
.project-hover-link:hover, .project-hover-link:focus-visible { transform: translateY(-1px); border-color: rgba(240, 214, 122, 0.38); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 20px rgba(0,0,0,0.26); color: #f6e7b6; outline: none; }
.tree-connector { position: relative; width: 760px; max-width: 100%; height: 168px; }
.connector-stem { position: absolute; width: 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(240, 214, 122, 0.04) 0%, rgba(240, 214, 122, 0.92) 18%, rgba(212, 175, 55, 0.68) 52%, rgba(240, 214, 122, 0.24) 84%, rgba(240, 214, 122, 0.04) 100%); box-shadow: 0 0 22px rgba(212, 175, 55, 0.2); }
.connector-stem--root { left: 50%; top: 0; height: 44px; transform: translateX(-50%); }
.connector-node { position: absolute; width: 12px; height: 12px; border-radius: 999px; background: radial-gradient(circle, #f7e7aa 0%, #d4af37 54%, rgba(212,175,55,0.12) 100%); box-shadow: 0 0 14px rgba(212, 175, 55, 0.28), 0 0 0 4px rgba(212, 175, 55, 0.05); }
.connector-node::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 1px solid rgba(240, 214, 122, 0.12); }
.connector-node--root { left: 50%; top: 38px; transform: translateX(-50%); }
.connector-horizontal { position: absolute; 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-horizontal--projects { left: 22%; right: 22%; top: 44px; transform: rotate(-0.25deg); box-shadow: 0 0 12px rgba(212, 175, 55, 0.12), 0 0 4px rgba(240, 214, 122, 0.05); }
.connector-drop { position: absolute; top: 44px; width: 3px; height: 68px; border-radius: 999px; background: linear-gradient(180deg, rgba(240, 214, 122, 0.50), rgba(240, 214, 122, 0.06)); box-shadow: 0 0 10px rgba(212, 175, 55, 0.10), 0 0 4px rgba(240, 214, 122, 0.04); }
.connector-drop-1 { left: 22%; }
.connector-drop-2 { left: 78%; }
.connector-label { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border: 1px solid rgba(240, 214, 122, 0.16); border-radius: 999px; background: linear-gradient(180deg, rgba(37, 27, 15, 0.96), rgba(14, 12, 10, 0.96)); color: #e2c98a; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; box-shadow: 0 5px 12px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.03); font-family: Georgia, "Times New Roman", serif; }
.connector-label::before, .connector-label::after { content: "•"; color: rgba(240, 214, 122, 0.48); font-size: 0.72rem; margin: 0 6px; }
.connector-label--projects { top: 58px; }
.connector-glow { position: absolute; left: 50%; border-radius: 999px; transform: translateX(-50%); background: radial-gradient(circle, rgba(240, 214, 122, 0.08), transparent 72%); pointer-events: none; }
.connector-glow-top { top: 18px; width: 18px; height: 18px; }
.connector-glow-bottom { top: 52px; width: 28px; height: 28px; }
.project-node { position: relative; display: grid; justify-items: center; gap: 12px; padding: 0; margin-top: 0; align-self: start; border: 0; background: transparent; color: inherit; cursor: pointer; transition: transform 220ms ease, filter 220ms ease; -webkit-tap-highlight-color: transparent; }
.project-node:hover, .project-node.is-active { transform: translateY(-5px); filter: brightness(1.04); }
.project-node.is-pressed .project-glyph { transform: scale(0.97); }
.project-node:focus-visible { outline: none; }
.project-node:focus-visible .project-glyph { 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 2px rgba(240, 214, 122, 0.26), 0 0 18px rgba(212, 175, 55, 0.16); }
.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%); transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease; }
.project-node.is-active .project-glyph { border-color: rgba(240, 214, 122, 0.62); box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 18px 34px rgba(0,0,0,0.34), 0 0 0 4px rgba(212, 175, 55, 0.1), 0 0 0 1px rgba(240, 214, 122, 0.26), 0 0 24px rgba(212, 175, 55, 0.22); filter: brightness(1.03); }
.project-glyph--logo { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.04), rgba(0,0,0,0.12)); }
.project-glyph--placeholder { font-size: 2.1rem; }
.project-logo { width: 98%; height: 98%; object-fit: contain; display: block; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.24)); }
.project-logo--wide { width: 100%; height: 100%; object-position: center; transform: none; }
.project-logo--golden-apple { width: 100%; height: 100%; }
.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: 920px) {
  .generation-children--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
  .tree-connector { width: 520px; height: 154px; }
  .connector-horizontal--projects { left: 20%; right: 20%; }
  .connector-drop-1 { left: 20%; }
  .connector-drop-2 { left: 80%; }
}
@media (max-width: 560px) {
  .page-shell { width: min(100% - 16px, 1100px); padding: 16px 0 48px; }
  .tree-stage { padding: 20px 14px 48px; }
  .profile-avatar--hero { width: 128px; height: 128px; }
  .generation-children--grid { grid-template-columns: 1fr 1fr; gap: 14px; max-width: 100%; }
  .project-glyph { width: 78px; height: 78px; font-size: 1.7rem; }
  .tree-connector { width: 290px; height: 132px; }
  .connector-stem--root { height: 34px; }
  .connector-node { width: 10px; height: 10px; }
  .connector-node--root { top: 29px; }
  .connector-horizontal--projects { left: 20%; right: 20%; top: 34px; }
  .connector-drop { top: 34px; width: 3px; height: 38px; }
  .connector-drop-1 { left: 20%; }
  .connector-drop-2 { left: 80%; }
  .connector-label { font-size: 0.64rem; padding: 5px 8px; }
  .connector-label::before, .connector-label::after { margin: 0 4px; }
  .connector-label--projects { top: 44px; }
  .connector-flourish { font-size: 0.76rem; }
  .connector-flourish--left { left: 4%; top: 42px; }
  .connector-flourish--right { right: 4%; top: 44px; }
  .connector-glow-top { top: 14px; }
  .connector-glow-bottom { top: 34px; }
  .profile-hover, .project-hover { min-width: 184px; padding: 12px 14px; }
  .profile-hover { left: 50%; top: auto; bottom: calc(100% + 16px); transform: translateX(-50%) translateY(12px) scale(0.96); min-width: 210px; }
  .profile-hover::after { left: 50%; top: 100%; border-left: 0; border-top: 0; 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-node:focus-visible .profile-hover, .profile-node.is-active .profile-hover { transform: translateX(-50%) translateY(0) scale(1); }
  .corner-social { top: calc(50% - 7px); right: 8px; width: 34px; height: 34px; font-size: 14px; }
}
