:root {
  color-scheme: dark;
  --bg: #050b10;
  --surface: #09131a;
  --surface-raised: #0d1a22;
  --surface-soft: #101f28;
  --ink: #f3f7f8;
  --muted: #8fa2aa;
  --muted-bright: #b5c4c9;
  --cyan: #bce9ee;
  --cyan-strong: #75c9d3;
  --gold: #c7a26a;
  --line: rgba(190, 225, 231, 0.14);
  --line-strong: rgba(190, 225, 231, 0.25);
  --content: 1280px;
  --page-pad: clamp(1rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-frame {
  min-height: 100svh;
  background:
    linear-gradient(rgba(117, 201, 211, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 201, 211, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  min-height: 5.25rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.7rem;
  width: max-content;
  text-decoration: none;
}

.brand__mark {
  width: 2.45rem;
  height: 2.45rem;
}

.brand__text {
  display: grid;
  gap: 0.13rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand__text strong {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.24em;
}

.site-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--cyan-strong);
  content: "";
  box-shadow: 0 0 1rem rgba(117, 201, 211, 0.65);
}

.header-count {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-count span {
  color: var(--cyan);
  font-size: 0.8rem;
}

.header-count::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #8bd9ba;
  content: "";
  box-shadow: 0 0 0.75rem rgba(139, 217, 186, 0.8);
}

.directory-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.75fr);
  align-items: end;
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  min-height: 30rem;
  margin: 1.5rem auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #081219;
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
}

.directory-hero::before,
.directory-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.directory-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 17, 0.98) 0%, rgba(5, 12, 17, 0.9) 46%, rgba(5, 12, 17, 0.3) 72%, rgba(5, 12, 17, 0.12) 100%),
    linear-gradient(180deg, transparent 48%, rgba(4, 10, 15, 0.9) 100%);
}

.directory-hero::after {
  top: 2rem;
  right: 2rem;
  width: 8rem;
  height: 8rem;
  border-top: 1px solid rgba(188, 233, 238, 0.35);
  border-right: 1px solid rgba(188, 233, 238, 0.35);
}

.directory-hero__art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 32%;
}

.directory-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  filter: saturate(0.72) contrast(1.05);
}

.directory-hero__content {
  padding: clamp(2.25rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--cyan-strong);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.directory-hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 7rem);
  font-weight: 330;
  letter-spacing: -0.066em;
  line-height: 0.88;
}

.directory-hero h1 span {
  color: #aabcc1;
}

.directory-hero__content > p:not(.eyebrow) {
  max-width: 35rem;
  margin: 1.55rem 0 0;
  color: #c0cdd1;
  font-size: clamp(0.98rem, 1.5vw, 1.16rem);
  line-height: 1.68;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.65rem;
  border: 1px solid rgba(188, 233, 238, 0.45);
  padding: 0.78rem 1rem;
  background: rgba(9, 22, 29, 0.68);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: var(--cyan);
  background: rgba(117, 201, 211, 0.12);
}

.primary-action span {
  color: var(--cyan);
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: end;
  margin: 0 2rem 2rem 0;
  border: 1px solid var(--line);
  background: rgba(5, 13, 18, 0.78);
  backdrop-filter: blur(16px);
}

.hero-stats div {
  padding: 1rem 1.15rem;
}

.hero-stats div + div {
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0.25rem 0 0;
  color: var(--cyan);
  font-size: 1.3rem;
  font-weight: 420;
}

.directory {
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  align-items: end;
  gap: 3rem;
}

.directory-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 390;
  letter-spacing: -0.05em;
  line-height: 1;
}

.directory-intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.directory-intro {
  display: grid;
  gap: 0.9rem;
}

.directory-intro .unclaimed-key {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: #84979e;
  font-size: 0.75rem;
  line-height: 1.5;
}

.directory-intro .unclaimed-key::before {
  width: 1.15rem;
  height: 1px;
  margin-right: 0.65rem;
  flex: 0 0 auto;
  background: rgba(199, 162, 106, 0.72);
  content: "";
}

.unclaimed-key strong {
  color: #c6d4d7;
}

.directory-filters {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(15rem, 19rem) 8.5rem;
  gap: 0.7rem;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  padding: 0.75rem;
  background:
    linear-gradient(110deg, rgba(117, 201, 211, 0.035), transparent 42%),
    rgba(7, 16, 22, 0.9);
}

.filter-field {
  display: grid;
  min-height: 4.25rem;
  min-width: 0;
  border: 1px solid rgba(190, 225, 231, 0.12);
  padding: 0.58rem 0.78rem 0.38rem;
  background: rgba(4, 12, 17, 0.7);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.filter-field:focus-within {
  border-color: rgba(117, 201, 211, 0.52);
  background: rgba(8, 20, 27, 0.92);
  box-shadow: inset 0 0 0 1px rgba(117, 201, 211, 0.08);
}

.filter-field__label {
  color: #71868e;
  font-size: 0.52rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.filter-control {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.directory-filters input,
.directory-filters select {
  width: 100%;
  height: 2.35rem;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #e1eaec;
  font-size: 0.82rem;
}

.directory-filters input::placeholder {
  color: #72858c;
  opacity: 1;
}

.directory-filters input {
  min-width: 0;
  padding: 0 0 0 1.75rem;
}

.directory-filters select {
  appearance: none;
  padding: 0 2rem 0 0;
}

.directory-filters select option,
.directory-filters select optgroup {
  background: #0a161d;
  color: #e1eaec;
}

.search-icon {
  position: absolute;
  left: 0;
  width: 1rem;
  fill: none;
  stroke: #7da0a8;
  stroke-width: 1.6;
}

.select-chevron {
  position: absolute;
  right: 0;
  width: 0.9rem;
  fill: none;
  stroke: #83b5bd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  pointer-events: none;
}

.filter-reset {
  width: 100%;
  min-height: 4.25rem;
  border: 1px solid rgba(190, 225, 231, 0.15);
  padding: 0 0.8rem;
  background: rgba(4, 12, 17, 0.54);
  color: #b7c6ca;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.filter-reset:not(:disabled):hover,
.filter-reset:not(:disabled):focus-visible {
  border-color: rgba(117, 201, 211, 0.52);
  background: rgba(117, 201, 211, 0.08);
  color: #eff7f8;
  outline: none;
}

.filter-reset:disabled {
  cursor: default;
  opacity: 0.38;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
  border-bottom: 1px solid var(--line);
}

.directory-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.directory-toolbar strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.directory-toolbar p span {
  margin: 0 0.4rem;
  color: rgba(143, 162, 170, 0.45);
}

.view-switcher {
  display: flex;
  gap: 0.25rem;
}

.view-switcher button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.view-switcher button[aria-pressed="true"] {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--cyan);
}

.view-switcher svg {
  width: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.clan-card {
  --sigil-color: hsl(var(--sigil-hue) 38% 62%);
  position: relative;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  min-height: 13.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sigil-color) 4%, transparent), transparent 36%),
    rgba(9, 19, 26, 0.94);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.clan-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--sigil-color);
  content: "";
  opacity: 0.7;
}

.clan-card:hover {
  border-color: rgba(188, 233, 238, 0.3);
  background-color: rgba(12, 25, 33, 0.98);
}

.clan-card__visual {
  display: flex;
  align-items: center;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 1.15rem 0.65rem;
  background: rgba(2, 9, 13, 0.35);
}

.clan-sigil {
  display: grid;
  width: 3.05rem;
  height: 3.05rem;
  place-items: center;
}

.clan-sigil img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 0.45rem rgba(117, 201, 211, 0.18));
}

.listing-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  color: #92a6ac;
  font-size: 0.54rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.clan-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.95rem 1.1rem 0.9rem;
}

.clan-card__top,
.profile-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-index-state {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.card-index-state > span[aria-hidden="true"] {
  color: #42565e;
  font-size: 0.65rem;
}

.card-index-state .listing-state {
  color: #81949a;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.indexed-label,
.freshness {
  color: var(--cyan-strong);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.freshness {
  overflow: hidden;
  color: #70838a;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.clan-card h3 {
  margin: 0.45rem 0 0;
  font-size: 1.22rem;
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.clan-card h3 a {
  text-decoration: none;
}

.clan-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.clan-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.52rem 0 0;
  color: #a7b7bc;
  font-size: 0.78rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.62rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(190, 225, 231, 0.13);
  padding: 0.2rem 0.4rem;
  background: rgba(188, 233, 238, 0.025);
  color: #9cafb5;
  font-size: 0.59rem;
  letter-spacing: 0.02em;
}

.clan-card__footer {
  display: flex;
  align-items: end;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.7rem;
}

.clan-card__facts {
  display: flex;
  min-width: 0;
  gap: 1.25rem;
  margin: 0;
}

.clan-card__facts div {
  min-width: 0;
}

.clan-card__facts dt {
  color: #61757d;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clan-card__facts dd {
  overflow: hidden;
  margin: 0.2rem 0 0;
  color: #b9c8cc;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clan-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

.clan-grid[data-view="list"] .clan-card {
  grid-template-columns: 5rem minmax(0, 1fr);
  min-height: 11.5rem;
}

.clan-grid[data-view="list"] .clan-card__summary {
  max-width: 60rem;
  -webkit-line-clamp: 2;
}

.empty-state {
  margin-top: 1rem;
  border: 1px dashed var(--line-strong);
  padding: 4rem 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.empty-state button {
  margin-top: 1rem;
  border: 0;
  background: transparent;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  min-height: 7rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: #6f8289;
  font-size: 0.66rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  justify-self: end;
}

.brand--footer {
  opacity: 0.75;
}

/* Clan profile */
.profile-shell {
  min-height: calc(100svh - 7rem);
}

.profile-shell .site-header {
  margin-bottom: 1.5rem;
}

.profile-wrap {
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  margin: 0 auto;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  color: #71848b;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: #9bafb5;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--cyan);
}

.profile-hero {
  --sigil-color: hsl(var(--sigil-hue) 38% 62%);
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem);
  background: #08131a;
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
}

.profile-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 14, 19, 0.98), rgba(6, 14, 19, 0.87) 57%, rgba(6, 14, 19, 0.34)),
    url("/warframe-clan-hero.webp") 72% 48% / cover;
  content: "";
  filter: saturate(0.58);
}

.profile-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, color-mix(in srgb, var(--sigil-color) 9%, transparent), transparent 47%);
  content: "";
}

.profile-hero .clan-sigil {
  width: clamp(6rem, 10vw, 8.5rem);
  height: clamp(6rem, 10vw, 8.5rem);
  font-size: 1.2rem;
}

.profile-hero__content {
  min-width: 0;
}

.profile-kicker {
  justify-content: flex-start;
}

.profile-kicker .listing-state {
  color: #bdc9cc;
  text-align: left;
}

.profile-kicker .listing-state::after {
  margin-left: 0.65rem;
  color: #51646b;
  content: "·";
}

.profile-hero h1 {
  max-width: 15ch;
  margin: 0.8rem 0 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 340;
  letter-spacing: -0.062em;
  line-height: 0.92;
  text-wrap: balance;
}

.profile-hero__summary {
  max-width: 48rem;
  margin: 1.2rem 0 0;
  color: #b9c8cc;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.65;
}

.profile-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0.65rem;
  width: 12rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2.8rem;
  border: 1px solid var(--line-strong);
  padding: 0 0.9rem;
  background: rgba(5, 13, 18, 0.65);
  color: #cddadd;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.button--primary {
  border-color: color-mix(in srgb, var(--sigil-color) 48%, transparent);
  background: color-mix(in srgb, var(--sigil-color) 11%, rgba(5, 13, 18, 0.75));
  color: #eef6f7;
}

.button:hover,
.button:focus-visible {
  border-color: var(--cyan);
  color: #fff;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.72fr);
  gap: 1rem;
  margin-top: 1rem;
}

.profile-column {
  display: grid;
  gap: 1rem;
}

.profile-panel {
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: rgba(9, 19, 26, 0.9);
}

.profile-panel__label {
  margin: 0 0 0.75rem;
  color: var(--cyan-strong);
  font-size: 0.59rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 440;
  letter-spacing: -0.035em;
}

.profile-panel__copy {
  margin: 1rem 0 0;
  color: #aebdc1;
  font-size: 0.92rem;
  line-height: 1.75;
}

.claim-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.claim-link:hover,
.claim-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.claim-panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(199, 162, 106, 0.07), transparent 46%),
    rgba(9, 19, 26, 0.9);
}

.claim-panel::before {
  position: absolute;
  top: -1px;
  left: clamp(1.4rem, 3vw, 2.25rem);
  width: 3rem;
  height: 1px;
  background: rgba(199, 162, 106, 0.78);
  content: "";
}

.profile-facts {
  margin: 0;
}

.profile-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.45rem;
  border-bottom: 1px solid var(--line);
}

.profile-facts div:first-child {
  border-top: 1px solid var(--line);
}

.profile-facts dt {
  color: #71848b;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  color: #c3d0d3;
  font-size: 0.75rem;
  text-align: right;
}

.profile-facts .profile-status {
  overflow: visible;
}

.profile-status .listing-state {
  color: #b9c7ca;
}

.activity-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.activity-indicator::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #8bd9ba;
  content: "";
  box-shadow: 0 0 0.6rem rgba(139, 217, 186, 0.7);
}

.profile-note {
  margin: 1rem 0 0;
  color: #70838a;
  font-size: 0.71rem;
  line-height: 1.6;
}

.related-section {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.related-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.related-section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 410;
  letter-spacing: -0.04em;
}

.related-section__heading a {
  color: var(--muted-bright);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.related-card {
  --sigil-color: hsl(var(--sigil-hue) 38% 62%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--surface);
  text-decoration: none;
}

.related-card:hover,
.related-card:focus-visible {
  border-color: var(--line-strong);
}

.related-card .clan-sigil {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 0.56rem;
}

.related-card strong {
  display: block;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.6rem;
}

@media (max-width: 980px) {
  .directory-hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    width: min(32rem, calc(100% - 4rem));
    margin: 0 2rem 2rem;
  }

  .directory-filters {
    grid-template-columns: minmax(12rem, 1fr) minmax(13rem, 16rem) 8rem;
  }

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

  .profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-actions {
    grid-column: 1 / -1;
    width: auto;
    flex-direction: row;
  }

  .profile-actions .button {
    flex: 1;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 4.5rem;
  }

  .site-nav {
    display: none;
  }

  .header-count {
    grid-column: 2;
  }

  .directory-hero {
    min-height: 34rem;
    margin-top: 0.75rem;
    clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 0 100%);
  }

  .directory-hero__art {
    inset: 0;
  }

  .directory-hero::before {
    background:
      linear-gradient(90deg, rgba(5, 12, 17, 0.94), rgba(5, 12, 17, 0.55)),
      linear-gradient(180deg, rgba(5, 12, 17, 0.22), rgba(5, 12, 17, 0.96) 78%);
  }

  .directory-hero__content {
    align-self: end;
    padding: 2rem 1.35rem 8rem;
  }

  .directory-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .hero-stats {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: auto;
    margin: 0;
  }

  .hero-stats div {
    padding: 0.8rem 0.65rem;
  }

  .hero-stats dt {
    font-size: 0.48rem;
  }

  .hero-stats dd {
    font-size: 1rem;
  }

  .directory-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .directory-filters {
    grid-template-columns: 1fr;
  }

  .filter-reset {
    grid-column: auto;
    min-height: 3.15rem;
  }

  .directory-toolbar .directory-meta {
    display: none;
  }

  .clan-card,
  .clan-grid[data-view="list"] .clan-card {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    min-height: 12.75rem;
  }

  .clan-card__visual {
    padding-inline: 0.55rem;
  }

  .clan-card .clan-sigil {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.55rem;
  }

  .clan-card__body {
    padding: 1rem;
  }

  .clan-card__footer {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding-block: 1.25rem;
  }

  .site-footer p:nth-child(2) {
    display: none;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 1.5rem;
  }

  .profile-hero > .clan-sigil {
    width: 5rem;
    height: 5rem;
  }

  .profile-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .profile-actions {
    grid-column: auto;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .clan-card {
    transition: none;
  }
}
