:root {
  --bg: #0b0d10;
  --panel: rgba(18, 22, 28, 0.72);
  --panelSolid: #12161c;
  --border: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --accentHue: 120;
  --accent: hsl(var(--accentHue) 100% 58%);
  --accentSoft: hsl(var(--accentHue) 100% 58% / 0.16);
  --accentBorder: hsl(var(--accentHue) 100% 58% / 0.22);
  --accentRing: hsl(var(--accentHue) 100% 58% / 0.12);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.bgGlow {
  position: fixed;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 700px at 20% 10%, rgba(0, 255, 65, 0.08), transparent 60%),
    radial-gradient(800px 650px at 75% 20%, rgba(0, 140, 255, 0.06), transparent 55%),
    radial-gradient(900px 750px at 40% 90%, rgba(255, 50, 50, 0.045), transparent 60%);
}

.bgGlow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, hsl(var(--h1, 120) 100% 60% / 0.12), transparent 70%),
    radial-gradient(closest-side, hsl(var(--h2, 200) 100% 60% / 0.10), transparent 70%),
    radial-gradient(closest-side, hsl(var(--h3, 0) 100% 60% / 0.08), transparent 72%),
    radial-gradient(closest-side, hsl(var(--h4, 280) 100% 60% / 0.09), transparent 72%);
  background-repeat: repeat;
  background-size: 1100px 900px, 900px 760px, 1200px 980px, 1000px 820px;
  filter: blur(2px);
  opacity: 1;
  transform: translate3d(var(--parX1, 0px), var(--parY1, 0px), 0) scale(1.05);
  will-change: transform, background-position;
  animation: glowRise 64s linear infinite;
}

@keyframes glowRise {
  0% {
    background-position:
      0 120%,
      0 135%,
      0 150%,
      0 165%;
  }

  50% {
    background-position:
      70px 45%,
      -55px 35%,
      45px 28%,
      -35px 22%;
  }

  100% {
    background-position:
      0 -20%,
      0 -35%,
      0 -50%,
      0 -65%;
  }
}

@keyframes glowTintDrift {
  0% {
    background-position: 20% 30%, 80% 25%, 55% 85%;
  }

  25% {
    background-position: 28% 22%, 72% 32%, 60% 78%;
  }

  50% {
    background-position: 22% 38%, 82% 18%, 52% 88%;
  }

  75% {
    background-position: 16% 28%, 88% 30%, 58% 82%;
  }

  100% {
    background-position: 20% 30%, 80% 25%, 55% 85%;
  }
}

.bgGlow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 92%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 88%, rgba(255, 255, 255, 0.12) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 44% 96%, rgba(255, 255, 255, 0.10) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 86% 94%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px);
  background-repeat: repeat;
  background-size: 260px 260px, 340px 340px, 420px 420px, 520px 520px;
  filter: blur(0.6px);
  opacity: 0.55;
  transform: translate3d(var(--parX2, 0px), var(--parY2, 0px), 0) scale(1.07);
  will-change: transform, background-position;
  animation: bubbleRise 18s linear infinite;
}

@keyframes bubbleRise {
  0% {
    background-position:
      0 120%,
      0 130%,
      0 140%,
      0 150%;
  }

  50% {
    background-position:
      34px 45%,
      -22px 35%,
      18px 28%,
      -12px 22%;
  }

  100% {
    background-position:
      0 -20%,
      0 -30%,
      0 -40%,
      0 -50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgGlow::before,
  .bgGlow::after {
    animation: none;
  }
}

.container {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 70px;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.header {
  margin-bottom: 18px;
}

h1 {
  margin: 12px 0 8px;
  font-size: 44px;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.heroTop {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.03);
}

.heroText {
  min-width: 0;
}

.heroText h1 {
  margin: 0;
  font-size: 44px;
}

.heroText .muted {
  margin: 10px 0 0;
  line-height: 1.55;
  max-width: 620px;
}

.section {
  margin-top: 40px;
}

.sectionTitle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}

.sectionTitle h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.input {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  font-size: 14px;
  min-width: 190px;
}

.input:focus {
  border-color: hsl(var(--accentHue) 100% 58% / 0.35);
  box-shadow: 0 0 0 3px var(--accentRing);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  padding: 10px 16px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accentBorder);
}

.cardLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 16px;
  align-items: stretch;
}

.cardLeft {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.cardBody {
  min-width: 0;
}

.cardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cardHeaderLeft,
.cardBody,
.cardLeft {
  min-width: 0;
}

.cardHeaderRight {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.titleRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.cardTitle {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}

.subtitleInline {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.cardSub {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.dateInline {
  white-space: nowrap;
}

.cardList {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  columns: 2;
  column-gap: 28px;
}

.cardList li {
  break-inside: avoid;
  margin: 0 0 6px;
}

.tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.pill {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
}

.devPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 165, 0, 0.35);
  background: rgba(255, 165, 0, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.devDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 165, 0, 0.95);
  position: relative;
}

.devDot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: rgba(255, 165, 0, 0.22);
  animation: devPulse 1.6s ease-out infinite;
}

@keyframes devPulse {
  0% {
    transform: scale(0.55);
    opacity: 0.85;
  }

  70% {
    transform: scale(1.25);
    opacity: 0.12;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.activePill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 65, 0.35);
  background: rgba(0, 255, 65, 0.10);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  line-height: 1;
}

.activeDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 255, 65, 0.95);
  position: relative;
}

.activeDot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: rgba(0, 255, 65, 0.20);
  animation: activePulse 1.6s ease-out infinite;
}

@keyframes activePulse {
  0% {
    transform: scale(0.55);
    opacity: 0.85;
  }

  70% {
    transform: scale(1.25);
    opacity: 0.12;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.cardFooterSplit {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.footerLeft,
.footerRight {
  display: flex;
}

.tileGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 320px;
  max-width: 100%;
}

.tile {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.tileLabel {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tileValue {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tileValueMuted {
  color: var(--muted);
  font-weight: 850;
}

.tileLink {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.tileLink:hover {
  border-color: var(--accentBorder);
  text-decoration: none;
}

.tileLink:hover .tileValue {
  color: var(--accent);
}

.tileLinkArrowRight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tileArrowMid {
  color: var(--muted);
  font-weight: 900;
  flex: 0 0 auto;
}

.cardThumb {
  width: 100%;
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.thumbCol {
  width: 100%;
  max-width: 260px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.thumbImgLarge {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  object-fit: cover;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
  display: block;
}

.statsTitle {
  margin: 0 0 14px;
}

.statsPanel {
  padding: 16px;
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 0;
}

.statBox {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.statBox::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--statColor, transparent) 18%, transparent),
    transparent 70%
  );
  opacity: 0.9;
}

.noResults {
  display: none;
  text-align: center;
  margin-top: 18px;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: rgba(235, 240, 255, 0.6);
}

select.input option,
select.input optgroup {
  background: #0b0f14;
  color: rgba(235, 240, 255, 0.92);
}

.label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.statLabelRow {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.statIconImg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.62;
}

.statValue {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--statColor, var(--text));
  position: relative;
  z-index: 1;
}

.updatedGap {
  margin-top: 8px;
}

.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contactCard {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.cardHeading {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.contactList {
  display: grid;
  gap: 10px;
}

.contactItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.contactItem:hover {
  border-color: rgba(0, 255, 65, 0.22);
  text-decoration: none;
}

.contactLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.contactIcon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 36px;
  overflow: hidden;
}

.contactIconImg {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.contactLabel {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contactValue {
  margin-top: 3px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.contactArrow {
  color: var(--muted);
  font-weight: 900;
}

.contactItem:link,
.contactItem:visited {
  color: var(--text);
}

.contactItem:hover,
.contactItem:active {
  color: var(--text);
  text-decoration: none;
}

.whyList {
  margin: 0;
  padding-left: 18px;
  flex: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  color: var(--muted);
}

.whyList b {
  color: var(--text);
}

.whyList li {
  margin: 0;
}

.footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tileLabelRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tileMiniIcon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.62;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: opacity, transform;
}

.revealIn {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .cardFooterSplit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 14px 0 0;
    padding: 0;
    justify-items: stretch;
    align-items: stretch;
  }

  .cardFooterSplit .footerLeft,
  .cardFooterSplit .footerRight {
    display: contents;
  }

  .cardFooterSplit .tileGrid {
    display: contents;
  }

  .cardFooterSplit .tile,
  .cardFooterSplit .tileLink {
    width: 100%;
    min-width: 0;
  }

  .cardFooterSplit .tileLabelRow {
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .cardLayout {
    grid-template-columns: 1fr;
  }

  .cardThumb {
    justify-content: center;
    align-self: start;
  }

  .thumbCol {
    width: min(260px, 100%);
    max-width: none;
    justify-content: center;
  }

  .thumbImgLarge {
    max-width: none;
  }

  .cardFooterSplit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    align-items: stretch;
  }

  .footerLeft,
  .footerRight,
  .footerLeft .tileGrid,
  .footerRight .tileGrid {
    display: contents;
  }

  .tile,
  .tileLink {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .cardList {
    columns: 1;
  }

  .statsGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contactGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .controls {
    flex-wrap: nowrap;
  }

  #searchInput {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  #sortSelect {
    flex: 0 0 150px;
    width: 150px;
  }
}

@media (max-width: 420px) {
  #sortSelect {
    flex: 0 0 120px;
    width: 120px;
  }

  .thumbCol {
    width: min(220px, 100%);
  }
}

@media (max-width: 980px) {
  .cardFooterSplit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 14px auto 0;
    align-items: stretch;
    justify-items: stretch;
  }

  .footerLeft,
  .footerRight {
    display: contents;
  }

  .cardFooterSplit .tile,
  .cardFooterSplit .tileLink {
    width: 100%;
  }

  .cardFooterSplit .tileGrid {
    display: contents;
  }
}

html,
body {
  overflow-x: hidden;
}

.container {
  overflow-x: clip;
}

.heroText h1 {
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .heroTop {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .avatar {
    width: 78px;
    height: 78px;
  }

  .heroText h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .heroText .muted {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .heroText h1 {
    font-size: 32px;
  }
}

@media (max-width: 920px) {
  .cardFooterSplit {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 14px 0 0 !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  .cardFooterSplit .footerLeft,
  .cardFooterSplit .footerRight,
  .cardFooterSplit .tileGrid {
    display: contents !important;
  }

  .cardFooterSplit .tile,
  .cardFooterSplit .tileLink {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 520px) {
  .bgGlow::before,
  .bgGlow::after {
    animation: none !important;
    will-change: auto;
  }

  .bgGlow::before {
    filter: none;
    transform: none;
  }

  .bgGlow::after {
    opacity: 0.22;
    filter: none;
    transform: none;
  }
}

@media (max-width: 520px) {
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .controls .input {
    min-width: 0;
    width: 100%;
  }

  #searchInput,
  #sortSelect {
    width: 100%;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #07080a;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.35);
}
