/* FreeGuard artwork and project sections share the existing site typography. */
.fg-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}

.fg-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
}

.fg-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 335px;
  padding: 38px 22px;
  overflow: hidden;
  border: 1px solid #24538a;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 46%, #183e70, #101e32 59%, #0a111c 100%);
}

.fg-art::before,
.fg-art::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 330px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid #66aeff27;
  border-radius: 50%;
  content: '';
}

.fg-art::after {
  width: 440px;
  border-color: #66aeff1a;
}

.fg-wordmark {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #f5f9ff;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.055em;
}

.fg-wordmark .fg-mark {
  width: clamp(108px, 13vw, 168px);
  border-radius: 26%;
  box-shadow: 0 20px 65px #03081270;
}

.fg-directory,
.fg-hero {
  padding-top: clamp(124px, 14vw, 180px);
  padding-bottom: clamp(44px, 7vw, 86px);
}

.fg-directory-heading {
  max-width: 640px;
  margin-bottom: clamp(26px, 4vw, 48px);
}

.fg-directory-heading p,
.fg-hero-copy > p {
  max-width: 37rem;
  margin-top: 16px;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.fg-hero,
.fg-project-card,
.fg-setup {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
}

.fg-hero-copy .breadcrumb {
  margin-bottom: 22px;
}

.fg-hero-copy .button-row,
.fg-project-copy .button-row,
.fg-setup .button-row {
  margin-top: 24px;
}

.fg-project-card {
  gap: 0;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #243c58;
  border-radius: 28px;
  background: #111822;
}

.fg-project-card .fg-art {
  border: 0;
  border-radius: 0;
}

.fg-project-copy {
  align-self: center;
  padding: clamp(27px, 5vw, 60px);
}

.fg-project-copy h2 {
  margin: 8px 0 14px;
}

.haven-project {
  margin-top: clamp(20px, 4vw, 34px);
  scroll-margin-top: 110px;
  border-color: #464850;
  background: #17191e;
}

.haven-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 335px;
  padding: 32px;
  overflow: hidden;
  background: #d9dade;
}

.haven-banner {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
}

.haven-logo {
  display: block;
  width: clamp(130px, 16vw, 190px);
  height: auto;
  border: 1px solid #fff9;
  border-radius: 24%;
  box-shadow: 0 16px 42px #1c1c2a45;
}

.haven-project .fg-kicker { color: #d0d1db; }
.haven-project .fg-project-copy > p:not(.fg-kicker) { color: #c2c5cf; }

.haven-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.haven-platforms li {
  padding: 5px 10px;
  border: 1px solid #484a54;
  border-radius: 999px;
  color: #e1e2ea;
  font-size: .76rem;
}

.haven-project .haven-button {
  border-color: #eeeef4;
  color: #18191e;
  background: #eeeef4;
}

.haven-project .haven-button:hover { background: #fff; }
.haven-project .haven-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.fg-kicker {
  color: #9dcbff;
  font-size: .78rem;
  font-weight: 700;
}

.fg-section {
  padding: 44px 0 64px;
  scroll-margin-top: 106px;
}

.fg-section-heading {
  max-width: 48rem;
  margin-bottom: 27px;
}

.fg-section-heading h2 {
  margin: 6px 0 13px;
}

.fg-detail-grid,
.fg-release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.fg-detail-grid article,
.fg-release-grid section {
  min-width: 0;
  padding: clamp(18px, 3vw, 29px);
  border: 1px solid #27384d;
  border-radius: 17px;
  background: #121923;
}

.fg-detail-grid h3,
.fg-release-grid h3,
.fg-steps h3 {
  margin: 0 0 9px;
  font-size: 1.05rem;
}

.fg-detail-grid p,
.fg-release-grid p,
.fg-steps p {
  margin: 0;
  font-size: .91rem;
}

.fg-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}

.fg-supporting {
  max-width: 52rem;
  margin: 22px 0;
}

.fg-rule-panel {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 29px);
  border: 1px solid #27384d;
  border-radius: 20px;
  background: #111822;
  scroll-margin-top: 106px;
}

.fg-rule-panel h3 {
  margin: 0 0 18px;
}

.fg-rules {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .88rem;
  line-height: 1.65;
}

.fg-rules th,
.fg-rules td {
  padding: 10px 12px;
  border-bottom: 1px solid #27384d;
  vertical-align: top;
}

.fg-rules thead th {
  color: #a7cfff;
  font-weight: 700;
}

.fg-rules th[scope="row"] {
  width: 28%;
  color: #edf5ff;
}

.fg-rules td {
  color: #b9c7d9;
}

.fg-rules tbody tr:last-child > * {
  border-bottom: 0;
}

.fg-setup {
  align-items: start;
  gap: clamp(20px, 4.5vw, 55px);
  padding: clamp(21px, 4vw, 42px);
  border: 1px solid #273e57;
  border-radius: 23px;
  background: linear-gradient(126deg, #152338, #101621);
}

.fg-setup h2 {
  margin: 0 0 12px;
}

.fg-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 1.25rem;
}

.fg-steps > li {
  padding-left: 6px;
}

.fg-steps > li::marker {
  color: #9dcbff;
  font-weight: 700;
}

.fg-release-hero .fg-art {
  min-height: 325px;
}

.fg-release-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fg-release-brand .fg-mark {
  width: 33px;
  border-radius: 8px;
}

.fg-release-grid {
  margin: 21px 0;
}

@media (max-width: 820px) {
  .fg-project-card,
  .fg-hero,
  .fg-setup {
    grid-template-columns: 1fr;
  }

  .fg-art,
  .fg-release-hero .fg-art {
    min-height: 255px;
  }

  .haven-art { min-height: 220px; }
}

@media (max-width: 660px) {
  .fg-section {
    padding-block: 30px 44px;
  }

  .fg-detail-grid,
  .fg-release-grid {
    grid-template-columns: 1fr;
  }

  .fg-rules th,
  .fg-rules td {
    padding: 9px 7px;
    overflow-wrap: anywhere;
  }

  .fg-rules th[scope="row"] {
    width: 35%;
  }
}
