@font-face {
  font-family: Manrope;
  src: url("manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
* { box-sizing: border-box; }
.aios-directory {
  color-scheme: dark;
  --bg: #08131f;
  --line: #324450;
  --muted: #adbfce;
  --cyan: #72e4ff;
  --edge: clamp(16px, 4vw, 88px);
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--bg);
  color: #f2f6f8;
}
body.aios-directory { margin: 0; }
:where(.aios-directory) :where(h1, h2, h3, p, ul) { margin: 0; }
.mast, .poster-footer { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--edge); }
.mast { border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 26px; letter-spacing: -1.6px; color: var(--cyan); }
.brand span { font-size: 14px; letter-spacing: .08em; color: #f3f7f9; vertical-align: middle; margin-left: 5px; }
.edition, .poster-footer { font-size: 14px; color: var(--muted); }
.edition b { color: white; }
.intro { padding: clamp(24px,3vw,46px) var(--edge) 0; }
.eyebrow { display: block; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--tone,var(--cyan)); }
h1 { margin: 13px 0 21px; font-size: clamp(36px,4.1vw,86px); line-height: 1.04; letter-spacing: -.055em; }
h1 em { font-style: normal; color: var(--cyan); white-space: nowrap; }
.stats { display: flex; align-items: baseline; flex-wrap: wrap; gap: .36em; color: var(--muted); font-size: clamp(15px,1.3vw,22px); }
.stats b { font-weight: 800; color: white; }
.stats i { height: .85em; border-left: 1px solid #526777; margin: 0 .38em; }
.hierarchy { padding: 8px var(--edge) 20px; background: radial-gradient(ellipse at center,#173044 0,transparent 64%); }
.chart { position: relative; max-width: 1550px; margin: auto; height: clamp(370px,29vw,470px); }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart line { stroke-width: 2; vector-effect: non-scaling-stroke; }
.node { position: absolute; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 12px; border: 1px solid var(--tone,var(--cyan)); border-radius: 10px; background: #102332; color: white; text-decoration: none; padding: 10px; }
.director { width: clamp(174px,24%,316px); }
.director:hover, .director:focus-visible { outline: 2px solid var(--tone); outline-offset: 3px; }
.node img, .agent img, .lead img { object-fit: contain; aspect-ratio: 1; border-radius: 5px; flex: none; }
.node b, .lead b { display: block; font-size: clamp(21px,1.8vw,32px); letter-spacing: -.035em; }
.node small { color: #d1dde6; font-size: 14px; line-height: 1.25; display: block; }
.ceo { left: 50%; top: 47%; border-width: 2px; background: #17364a; box-shadow: 0 0 0 5px #102737; }
.ceo b {font-size: 32px;}
.lead b span { color: var(--tone); }
.tribe-menu { position: sticky; top: var(--site-header-height, 0px); z-index: 2; display: flex; gap: clamp(8px,1.3vw,24px); align-items: center; padding: 8px var(--edge); background: #0b1926; border-block: 1px solid var(--line); overflow-x: auto; }
.tribe-menu a { color: #c9d7df; font-weight: 750; padding: 9px 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid transparent; }
.tribe-menu i { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.tribe-menu a:hover, .tribe-menu a[aria-current] { border-color: var(--tone); color: white; }
.tribe-menu a:focus-visible { outline: 2px solid white; }
.tribes { padding: clamp(20px,3vw,60px) var(--edge); display: grid; gap: clamp(30px,4vw,76px); }
.tribe { scroll-margin-top: calc(var(--site-header-height, 0px) + var(--tribe-menu-height, 60px) + 12px); border: 1px solid color-mix(in srgb,var(--tone) 60%,var(--bg)); border-top: 4px solid var(--tone); border-radius: 14px; background: linear-gradient(125deg,color-mix(in srgb,var(--tone) 7%,var(--bg)),#0b1723 58%); padding: clamp(16px,2vw,42px); }
.tribe-head { display: flex; gap: 25px; align-items: center; margin-bottom: 24px; }
h2 { font-size: clamp(36px,3.7vw,68px); letter-spacing: -.065em; line-height: 1.1; }
.lead { display:flex; align-items:center; gap:12px; border-left: 2px solid var(--tone); padding-left: 18px; }
.lead img { width: 72px; height: 72px; }
.numbers { margin-left: auto; color: var(--muted); font-size: 15px; }
.numbers span { color: var(--tone); }
.squads { display: grid; grid-template-columns: repeat(var(--groups), minmax(0,1fr)); gap: 12px; align-items: start; }
.squad { border: 1px solid #405663; border-radius: 9px; background: #101f2c; overflow: hidden; }
.squad header { border-bottom: 1px solid #405663; padding: 16px; }
h3 { font-size: clamp(19px,1.55vw,30px); line-height: 1.2; letter-spacing: -.035em; margin-top: 5px; }
.squad ul { list-style: none; padding: 0 14px; }
.agent { display: flex; align-items: center; gap: 13px; padding: 14px 0; }
.agent + .agent { border-top: 1px solid #2d404e; }
.agent img { width: clamp(76px,6.6vw,144px); height: auto; }
.agent strong { display: block; font-weight: 800; font-size: clamp(19px,1.5vw,32px); line-height: 1.14; letter-spacing: -.035em; }
.role { display: block; margin-top: 5px; color: #c5d2dc; line-height: 1.35; font-size: clamp(14px,1.05vw,20px); }
.rank { display: inline-block; color: var(--tone); font-size: .57em; letter-spacing: .03em; margin-left: 5px; vertical-align: middle; }
.poster-footer { border-top: 1px solid var(--line); flex-wrap: wrap; gap: 8px; }
@media (max-width: 1120px) { .squads {grid-template-columns: repeat(2,minmax(0,1fr));} }
@media (max-width: 680px) {
  .hierarchy { padding: 0 4px 12px; }
  .chart { height: 485px; }
  .node { flex-direction: column; text-align: center; width: 30%; padding: 7px 3px; gap: 4px; }
  .node img { width: 52px; height: 52px; }
  .node .eyebrow { font-size: 10px; letter-spacing: .035em; }
  .node b { font-size: 18px; } .node small { font-size: 12px; }
  .ceo img { width: 65px; height: 65px; }
  .tribe-menu { gap: 2px; padding: 5px 8px; } .tribe-menu a { font-size: 13px; padding: 10px 6px; gap: 4px; } .tribe-menu i { width: 5px; height: 5px; }
  .tribe-head { display: grid; grid-template-columns: 1fr; gap: 12px; } .numbers { margin: 0; }
  .lead { padding-left: 10px; } .squads { grid-template-columns: 1fr; }
  .agent img { width: 88px; }
}
@media (prefers-reduced-motion:no-preference) {
  html { scroll-behavior: smooth; }
  .just-entered { animation: enter .45s ease-out both; }
  @keyframes enter { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
