.ftfx-page {
  --ftfx-panel: #141416;
  --ftfx-soft: #101012;
  --ftfx-line: rgba(255,255,255,.1);
  --ftfx-gold: #edc977;
  --ftfx-red: #d64632;
  width: 100%;
  color: #f5f2ec;
}

.ftfx-page * { box-sizing: border-box; }
.ftfx-page p { color: #c1bdb6; }
.ftfx-page h1,
.ftfx-page h2,
.ftfx-page h3 { color: #f5f2ec; }

.ftfx-intro {
  max-width: 960px;
  padding: 30px 0 64px;
}

.ftfx-kicker,
.ftfx-section-heading > span,
.ftfx-panel > small,
.ftfx-ancestor-copy > small,
.ftfx-unity-name > small {
  display: block;
  color: var(--ftfx-gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ftfx-intro h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
}

.ftfx-hub {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
  margin: 0 0 110px;
}

.ftfx-hub-card {
  display: grid;
  grid-template-rows: 54% 46%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--ftfx-line);
  border-radius: 10px;
  color: inherit;
  background: var(--ftfx-panel);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ftfx-hub-card:hover,
.ftfx-hub-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(237,201,119,.55);
  box-shadow: 0 22px 52px rgba(0,0,0,.35);
}

.ftfx-hub-image,
.ftfx-ancestor-image {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(169,35,35,.28), transparent 30%),
    linear-gradient(145deg,#242426,#0e0e0f);
}

.ftfx-hub-image {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.ftfx-hub-image span,
.ftfx-ancestor-image span {
  position: absolute;
  left: 18px;
  bottom: 15px;
  color: #aaa7a3;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ftfx-hub-image img,
.ftfx-ancestor-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ftfx-hub-image.is-contain img,
.ftfx-ancestor-image.is-contain img {
  object-fit: contain;
  padding: 14px;
}

.ftfx-hub-copy {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 20px;
}

.ftfx-hub-copy h2 {
  margin: 0 0 7px;
  font-size: 1.35rem;
}

.ftfx-hub-copy p { margin: 0; }
.ftfx-hub-copy strong {
  margin-top: auto;
  padding-top: 14px;
  color: var(--ftfx-gold);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ftfx-section {
  position: relative;
  padding: 112px 0 126px;
  border-top: 1px solid var(--ftfx-line);
  scroll-margin-top: 80px;
}

.ftfx-section + .ftfx-section {
  margin-top: 110px;
}

.ftfx-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(280px,36%);
  height: 1px;
  background: linear-gradient(90deg,var(--ftfx-red),var(--ftfx-gold),transparent);
}

.ftfx-section-heading {
  max-width: 980px;
  margin-bottom: 52px;
}

.ftfx-section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(2.8rem,6vw,6rem);
  line-height: 1;
}

.ftfx-section-heading > span { margin-bottom: 20px; }
.ftfx-section-heading p {
  max-width: 780px;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.8;
}

.ftfx-story-grid,
.ftfx-system-grid,
.ftfx-additional-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.ftfx-panel,
.ftfx-unity-name,
.ftfx-death-row {
  padding: 30px;
  border: 1px solid var(--ftfx-line);
  border-radius: 9px;
  background: var(--ftfx-panel);
}

.ftfx-panel h3 { margin: 12px 0; }
.ftfx-panel p:last-child { margin-bottom: 0; }
.ftfx-panel ul,
.ftfx-ancestor-copy ul {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--ftfx-line);
  list-style: none;
}

.ftfx-panel li,
.ftfx-ancestor-copy li {
  position: relative;
  margin: 8px 0;
  padding-left: 18px;
}

.ftfx-panel li::before,
.ftfx-ancestor-copy li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--ftfx-gold);
  font-size: .72em;
}

.ftfx-ancestor-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-top: 26px;
}

.ftfx-ancestor-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ftfx-line);
  border-radius: 10px;
  background: var(--ftfx-soft);
}

.ftfx-ancestor-image { aspect-ratio: 4 / 5; }
.ftfx-ancestor-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.ftfx-ancestor-copy h3 { margin: 6px 0 10px; }
.ftfx-ancestor-copy ul { margin-top: auto; }

.ftfx-unity-name {
  margin-bottom: 24px;
  border-color: rgba(237,201,119,.35);
}
.ftfx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 20px;
}
.ftfx-pills span {
  padding: 9px 13px;
  border: 1px solid var(--ftfx-line);
  border-radius: 999px;
  background: var(--ftfx-soft);
  font-size: .82rem;
  font-weight: 800;
}

.ftfx-system-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ftfx-four-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}

.ftfx-death-list {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.ftfx-death-row {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 25px;
}
.ftfx-death-row > small {
  color: var(--ftfx-gold);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ftfx-death-row h3 { margin: 0 0 8px; }
.ftfx-death-row p { margin: 0; }
.ftfx-death-row.is-final {
  border-color: rgba(214,70,50,.5);
  background: linear-gradient(90deg,rgba(169,35,35,.13),transparent 45%),var(--ftfx-panel);
}

.ftfx-wide { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .ftfx-hub,
  .ftfx-ancestor-grid,
  .ftfx-four-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .ftfx-hub,
  .ftfx-story-grid,
  .ftfx-system-grid,
  .ftfx-four-grid,
  .ftfx-additional-grid,
  .ftfx-ancestor-grid {
    grid-template-columns: 1fr;
  }

  .ftfx-hub-card {
    grid-template-rows: 245px auto;
    aspect-ratio: auto;
    min-height: 410px;
  }

  .ftfx-hub-image {
    height: 245px;
  }
  .ftfx-section { padding-block: 78px 90px; }
  .ftfx-section + .ftfx-section { margin-top: 72px; }
  .ftfx-death-row { grid-template-columns: 1fr; gap: 10px; }
  .ftfx-wide { grid-column: auto; }
}