.directory {
  --directory-edge: #6189ad;
  background:
    radial-gradient(ellipse at 50% 32%, #123764 0%, transparent 44rem),
    linear-gradient(140deg, #071b3d, #030b20 66%, #09244b);
}

.icon-library { position: absolute; }

.directory-shell {
  position: relative;
  width: min(100% - 2 * max(18px, env(safe-area-inset-left), env(safe-area-inset-right)), 70rem);
  margin-inline: auto;
  padding-block: max(20px, env(safe-area-inset-top)) max(34px, env(safe-area-inset-bottom));
}

.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
}

.directory-brand,
.directory-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.directory-brand {
  font-size: clamp(13px, 3.6vw, 22px);
  line-height: 1.2;
}

.directory-brand img {
  display: block;
  width: clamp(41px, 10.8vw, 66px);
  height: auto;
}

.directory-brand .brand-lockup {
  display: grid;
  justify-items: center;
  flex: none;
}

.directory-brand .brand-harir { font-size: clamp(12px, 2.5vw, 15px); }

.directory-home {
  flex: none;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #779dbb;
  border-radius: 13px;
  background: linear-gradient(145deg, #254d7294, #0a203cda);
  box-shadow: inset 0 1px 2px #cdf1ff34;
  font-size: 13px;
}

.directory-home svg,
.person-action svg { width: 21px; height: 21px; flex: none; }

.directory-title {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: clamp(38px, 8vw, 94px) clamp(26px, 4vw, 47px);
  text-align: center;
}

.directory-title::after {
  content: "";
  width: clamp(88px, 17vw, 166px);
  height: 2px;
  margin-block-start: 15px;
  background: linear-gradient(90deg, transparent, #83dcff, transparent);
}

.directory-title h1 {
  margin: 0;
  font-size: clamp(36px, 7.2vw, 76px);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
  text-shadow: 0 6px 20px #040e25ae;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 23px);
  max-width: 67rem;
  margin-inline: auto;
}

.person-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  min-width: 0;
  padding: clamp(12px, 2.1vw, 24px);
  border: 1px solid var(--directory-edge);
  border-radius: 22px;
  background:
    linear-gradient(145deg, #35699a99, transparent 49%),
    linear-gradient(154deg, #173959, #071a37 70%, #123863);
  box-shadow: inset 0 1px 1px #b4e5ff75, 0 16px 30px #020b2290;
}

.person-card::before {
  content: "";
  position: absolute;
  height: 1px;
  inset: 0 10% auto;
  background: linear-gradient(90deg, transparent, #a3e5ff 51%, transparent);
  pointer-events: none;
}

.person-identity {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  min-height: clamp(123px, 13vw, 172px);
  padding: 7px 1px 19px;
  text-align: center;
}

.person-identity h2 {
  margin: 0;
  color: #e9f7ff;
  font-size: clamp(23px, 4vw, 37px);
  font-weight: 800;
  line-height: 1.15;
}

.person-identity bdi {
  color: #bde7ff;
  font: 650 clamp(20px, 2.8vw, 32px) / 1.15 "Segoe UI", Tahoma, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .035em;
}

.person-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #9ccaff45;
}

.person-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 49px;
  padding: 7px 5px;
  border: 1px solid #649cc8;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px #d6eeff35;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.call-action { background: linear-gradient(150deg, #21517f, #102e56 80%); }
.message-action {
  border-color: #549d8b;
  color: #e3fff3;
  background: linear-gradient(150deg, #1c6457, #0d3439 80%);
}

.directory-home:hover,
.person-action:hover { border-color: #d4efff; }

@media (max-width: 740px) {
  .directory-shell { max-width: 32rem; }
  .directory-title { padding-block: 29px 23px; }
  .directory-title::after { margin-block-start: 11px; }
  .people { grid-template-columns: 1fr; }
  .person-card { border-radius: 18px; }
  .person-identity {
    justify-items: stretch;
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 0;
    padding: 5px 1px 11px;
    text-align: start;
  }
  .person-identity bdi { justify-self: end; }
  .person-actions { padding-top: 9px; }
  .person-action { min-height: 46px; }
  .directory-home { padding-inline: 8px; }
}

@media (max-width: 360px) {
  .directory-header { gap: 6px; }
  .directory-brand, .directory-home { gap: 6px; }
  .directory-brand { font-size: 12px; }
  .directory-home { font-size: 12px; }
}
