/* Ultra64 translucent purple, adapted for rudyzolezzi.com */
:root {
  --bg: #101418;
  --bg-2: #151a20;
  --panel: rgba(143, 184, 216, 0.06);
  --panel-2: rgba(143, 184, 216, 0.10);
  --line: rgba(190, 205, 220, 0.14);
  --line-strong: rgba(190, 205, 220, 0.30);
  --text: #e9ecef;
  --muted: #a6b0ba;
  --dim: #6f7a86;
  --purple: #8fb8d8;        /* accent (ice blue) */
  --purple-deep: #3d6b8a;
  --blue: #8fb8d8;
  --green: #7cc4a4;
  --yellow: #d9a441;
  --red: #d08a8a;
  --cyan: #7fc7c0;
  --display: "Press Start 2P", monospace;
  --label: "Silkscreen", monospace;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 50% -200px, rgba(143, 184, 216, 0.10), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(217, 164, 65, 0.06), transparent 60%);
  background-attachment: fixed;
}
body.crt::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(145deg, #8fb8d8, #3d6b8a);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 12px; color: #0f1418;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 6px 20px rgba(61,107,138,0.35);
}
.brand b { font-family: var(--label); font-size: 15px; letter-spacing: 0.5px; }
.brand small { display: block; color: var(--dim); font-size: 12px; margin-top: -2px; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--panel-2); color: var(--text);
  font-family: var(--label); font-size: 13px; letter-spacing: 0.4px;
  cursor: pointer; transition: transform 120ms, background 120ms, border-color 120ms;
  white-space: nowrap;
}
.btn:hover { background: rgba(143,184,216,0.18); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(145deg, #d9a441, #b8862f); border-color: #e6b85c; color: #1a1408; box-shadow: 0 6px 24px rgba(217,164,65,0.25); }
.btn.primary:hover { background: linear-gradient(145deg, #e6b85c, #c9943a); }
.btn.ghost { background: transparent; }
.key {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 4px; background: rgba(0,0,0,0.35); border: 1px solid var(--line-strong);
  font-family: var(--display); font-size: 8px; color: var(--purple);
}

/* ---------- hero ---------- */
.hero { padding: 44px 0 20px; display: grid; gap: 16px; }
.hero h1 {
  font-family: var(--body); font-weight: 700; letter-spacing: -0.5px;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; margin: 0;
}
.hero h1 span { color: var(--yellow); }
.eyebrow { font-family: var(--label); font-size: 13px; color: var(--purple); letter-spacing: 1px; }
.eyebrow .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.35 } }
.lede { color: var(--muted); font-size: 18px; max-width: 760px; margin: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--dim); font-size: 13px; }

/* ---------- HQ scene ---------- */
.hq {
  position: relative; margin: 20px 0 0;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: #0b0e12;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 30px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}
.hq-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(143,184,216,0.08), rgba(143,184,216,0.02));
  font-family: var(--label); font-size: 12px; letter-spacing: 0.6px; color: var(--muted);
}
.hq-bar .left, .hq-bar .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(13,7,20,0.6); font-family: var(--label); font-size: 11px; letter-spacing: 0.5px; color: var(--muted);
}
.chip.live { color: var(--green); border-color: rgba(124,196,164,0.5); }
.chip.meet { color: var(--yellow); border-color: rgba(217,164,65,0.5); }
.hq-bar button { padding: 5px 10px; font-size: 11px; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0b0e12; cursor: default; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.stage.pointing { cursor: pointer; }
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; transform: translate(-50%, -100%);
  max-width: 230px; padding: 7px 10px; border-radius: 8px;
  background: #161b22; border: 1px solid var(--c, var(--purple));
  color: var(--text); font-size: 13px; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 12px color-mix(in srgb, var(--c, var(--purple)) 35%, transparent);
  animation: pop 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: normal;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px;
  background: #161b22; border-right: 1px solid var(--c, var(--purple)); border-bottom: 1px solid var(--c, var(--purple));
  transform: translateX(-50%) rotate(45deg);
}
.bubble b { color: var(--c, var(--purple)); font-family: var(--label); font-size: 11px; letter-spacing: 0.5px; display: block; margin-bottom: 2px; }
.bubble.edge-l { transform: translate(-12%, -100%); } .bubble.edge-l::after { left: 12%; }
.bubble.edge-r { transform: translate(-88%, -100%); } .bubble.edge-r::after { left: 88%; }
.bubble.small { font-size: 12px; padding: 4px 8px; color: var(--muted); max-width: 180px; }
@keyframes pop { from { opacity: 0 } to { opacity: 1 } }
@media (max-width: 640px) { .bubble { font-size: 11px; max-width: 160px; padding: 5px 7px; } .bubble.small { font-size: 10px; } }

.hq-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 10px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px;
}
.hq-foot .legend { display: flex; gap: 12px; flex-wrap: wrap; }
.hq-foot .legend span { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hq-foot .legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ---------- agent profile panel ---------- */
.panel-back { position: fixed; inset: 0; background: rgba(5,2,10,0.7); backdrop-filter: blur(4px); z-index: 90; display: none; }
.panel-back.open { display: block; }
.panel {
  position: fixed; z-index: 100; right: 16px; top: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px));
  background: #141920; border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6); padding: 22px; overflow: auto;
  transform: translateX(110%); transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.panel.open { transform: none; }
.panel .close { position: absolute; top: 12px; right: 12px; }
.panel .portrait { width: 96px; height: 96px; image-rendering: pixelated; border-radius: 10px; background: #1b2129; border: 1px solid var(--line); }

/* ---------- cards (roster + resume) ---------- */
.section { padding: 48px 0 8px; }
.rule {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-family: var(--label); font-size: 13px; letter-spacing: 2px; color: var(--purple); text-transform: uppercase;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--line-strong), transparent); }
.pipeline {
  border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px;
  font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.pipeline .a { font-weight: 600; }

.card {
  position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
  background: linear-gradient(to bottom, rgba(143,184,216,0.06), rgba(143,184,216,0.015));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
  display: grid; grid-template-columns: 72px 1fr; gap: 20px; margin-bottom: 14px;
  transition: border-color 160ms, transform 160ms;
}
.card:hover { border-color: var(--line-strong); }
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-2px); }
.card .avatar { width: 72px; height: 72px; image-rendering: pixelated; border-radius: 8px; }
.card .mono-avatar {
  width: 72px; height: 72px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--display); font-size: 16px; color: #0f1418; background: var(--c, var(--purple));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 8px 24px color-mix(in srgb, var(--c, var(--purple)) 30%, transparent);
}
.card h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 .name { color: var(--c, var(--text)); font-weight: 700; }
.card h3 .role { color: var(--muted); font-weight: 400; font-size: 18px; }
.card .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.card .chips .chip.mono { font-family: var(--mono); letter-spacing: 0; text-transform: none; }
.card .chips .chip.status { color: var(--c, var(--purple)); border-color: color-mix(in srgb, var(--c, var(--purple)) 55%, transparent); }
.card p { margin: 0 0 10px; color: #dfe4e9; font-size: 16px; }
.card .feeds { font-family: var(--mono); font-size: 13px; color: var(--yellow); }
.card .feeds b { color: var(--yellow); }
.card ul { margin: 6px 0 0; padding-left: 18px; color: #dfe4e9; }
.card li { margin: 4px 0; }
@media (max-width: 640px) { .card { grid-template-columns: 1fr; gap: 12px; padding: 18px; } .card h3 { font-size: 20px; } }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tile {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  background: var(--panel);
}
.tile .num { font-family: var(--display); font-size: 20px; color: var(--c, var(--purple)); line-height: 1.3; }
.tile .lbl { color: var(--muted); font-size: 14px; margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }

/* ---------- resume page ---------- */
.resume { max-width: 920px; margin: 0 auto; }
.resume .hero h1 { font-size: clamp(18px, 2.6vw, 26px); }
.resume .job { grid-template-columns: 56px 1fr; }
.resume .job .mono-avatar { width: 56px; height: 56px; font-size: 13px; border-radius: 8px; }
.resume h2.sub { font-family: var(--label); font-size: 14px; letter-spacing: 1px; color: var(--muted); margin: 26px 0 10px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills .chip { font-family: var(--body); font-size: 13px; letter-spacing: 0; text-transform: none; color: #dfe4e9; padding: 5px 11px; }
.skills .grp { width: 100%; font-family: var(--label); font-size: 12px; color: var(--purple); margin-top: 10px; letter-spacing: 1px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dl { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--panel); display: grid; gap: 8px; }
.dl b { font-size: 16px; }
.dl span { color: var(--muted); font-size: 14px; }
.dl .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.dl .row .btn { padding: 6px 10px; font-size: 11px; }

footer { margin-top: 56px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.sr { position: absolute; left: -9999px; }
@media print {
  body { background: #fff; color: #111; }
  body.crt::after, .top, .hq, footer, .no-print { display: none !important; }
  .card, .tile, .dl { border-color: #ccc; background: #fff; color: #111; break-inside: avoid; }
  .card p, .card li, .card h3 .role, .tile .lbl { color: #222; }
  a { color: #333; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot, .bubble { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- office gallery (isometric art) ---------- */
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.art-frame {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong);
  background: #0b0e12; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.art-frame img { display: block; width: 100%; height: auto; image-rendering: auto; }
.art-frame .tag {
  position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center;
  padding: 6px 10px; border-radius: 8px; background: rgba(11,14,18,0.78); border: 1px solid var(--line-strong);
  font-family: var(--label); font-size: 12px; letter-spacing: 0.6px; color: var(--text); backdrop-filter: blur(4px);
}
.art-frame .tag i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: var(--c, var(--purple)); }
.art-frame .say {
  position: absolute; right: 14px; top: 14px; max-width: 46%;
  padding: 8px 11px; border-radius: 8px; background: rgba(22,27,34,0.92); border: 1px solid var(--c, var(--purple));
  font-size: 13px; line-height: 1.35; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.art-frame .say b { display: block; font-family: var(--label); font-size: 11px; letter-spacing: 0.5px; color: var(--c, var(--purple)); margin-bottom: 2px; }
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.office { cursor: pointer; transition: transform 160ms, border-color 160ms; }
.office:hover { transform: translateY(-3px); border-color: var(--c, var(--purple)); }
.office .meta { padding: 14px 16px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.office .meta h3 { margin: 0; font-size: 20px; display: flex; gap: 10px; align-items: baseline; }
.office .meta h3 .name { color: var(--c, var(--text)); }
.office .meta h3 .role { color: var(--muted); font-weight: 400; font-size: 15px; }
.office .meta p { margin: 0; color: var(--muted); font-size: 14px; }
.office.placeholder .ph {
  aspect-ratio: 4 / 3; display: grid; place-items: center; gap: 10px; text-align: center; padding: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 10px, transparent 10px 20px),
    linear-gradient(to bottom, rgba(143,184,216,0.05), rgba(0,0,0,0.2));
  color: var(--dim); font-family: var(--label); font-size: 12px; letter-spacing: 0.6px;
}
.office.placeholder .ph canvas { image-rendering: pixelated; width: 96px; height: 96px; opacity: 0.9; }
.hq-small { margin-top: 18px; }
.office .tag { bottom: auto; top: 12px; }
.office .meta p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* ---------- standup over the conference illustration ---------- */
.standup { position: relative; }
.standup img { display: block; width: 100%; height: auto; }
.standup .bubbles { position: absolute; inset: 0; pointer-events: none; }
.standup .bubble { max-width: 300px; font-size: 14px; pointer-events: auto; }
.standup .bubble.small { font-size: 12px; }
.seat-tag {
  position: absolute; transform: translate(-50%, 0); pointer-events: auto; cursor: pointer;
  padding: 2px 8px; border-radius: 999px; font-family: var(--label); font-size: 11px; letter-spacing: 0.5px;
  background: rgba(16,20,24,0.78); border: 1px solid var(--c); color: var(--text); backdrop-filter: blur(3px);
  opacity: 0.85; transition: opacity 160ms, transform 160ms;
}
.seat-tag.speaking { opacity: 1; background: var(--c); color: #0f1418; font-weight: 700; }
.seat-tag:hover { opacity: 1; transform: translate(-50%, -2px); }
@media (max-width: 640px) { .standup .bubble { max-width: 200px; font-size: 12px; } .seat-tag { font-size: 9px; padding: 1px 6px; } }
details.floor summary { cursor: pointer; font-family: var(--label); font-size: 13px; letter-spacing: 0.6px; color: var(--muted); padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 10px; }
details.floor summary::before { content: "▸"; color: var(--purple); transition: transform 160ms; }
details.floor[open] summary::before { transform: rotate(90deg); }
details.floor summary::-webkit-details-marker { display: none; }
