:root {
  color-scheme: dark;
  --fate-ink: #f7efe1;
  --fate-muted: #b8beca;
  --fate-gold: #d1b374;
  --fate-panel: rgba(4, 7, 14, 0.9);
  --fate-line: rgba(180, 194, 220, 0.16);
  --fate-green: #41d88f;
  --fate-blue: #45a8ff;
  --fate-violet: #c061ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #060812;
}

body.fate-nexus-page {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--fate-ink);
  background:
    radial-gradient(circle at 20% 34%, rgba(20, 146, 186, 0.22), transparent 18rem),
    radial-gradient(circle at 78% 26%, rgba(159, 58, 198, 0.2), transparent 17rem),
    radial-gradient(circle at 50% 78%, rgba(200, 130, 74, 0.08), transparent 20rem),
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 42% 62%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px),
    linear-gradient(180deg, #090b16 0%, #03050b 100%),
    #05070d;
  background-size: auto, auto, auto, 160px 160px, 210px 210px, 260px 260px, auto;
  font-family: Georgia, "Times New Roman", serif;
}

body.fate-nexus-page::before,
body.fate-nexus-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.fate-nexus-page::before {
  background:
    radial-gradient(circle at 23% 28%, rgba(31, 173, 214, 0.23), transparent 20rem),
    radial-gradient(circle at 78% 21%, rgba(160, 62, 214, 0.19), transparent 18rem),
    radial-gradient(circle at 48% 16%, rgba(213, 190, 129, 0.08), transparent 12rem);
  mix-blend-mode: screen;
}

body.fate-nexus-page::after {
  background:
    linear-gradient(90deg, rgba(2, 4, 9, 0.72), transparent 24%, transparent 74%, rgba(2, 4, 9, 0.72)),
    linear-gradient(180deg, rgba(2, 4, 9, 0.3), rgba(2, 4, 9, 0.78));
}

.fate-hub {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.fate-stage {
  position: relative;
  width: min(100%, 1180px);
  min-height: 704px;
  display: grid;
  align-content: center;
  gap: 20px;
  overflow: hidden;
  padding: 30px 34px 26px;
  border: 1px solid rgba(197, 207, 231, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(5, 8, 17, 0.72), rgba(3, 6, 12, 0.96)),
    rgba(4, 7, 14, 0.9);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fate-stage::before,
.fate-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fate-stage::before {
  background:
    radial-gradient(circle at 20% 37%, rgba(32, 188, 220, 0.18), transparent 17rem),
    radial-gradient(circle at 79% 34%, rgba(186, 79, 255, 0.16), transparent 16rem),
    radial-gradient(circle at 51% 20%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px),
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 77% 62%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(5, 9, 18, 0.08), rgba(5, 9, 18, 0.76));
  background-size: auto, auto, 180px 180px, 240px 240px, 300px 300px, auto;
  opacity: 0.92;
}

.fate-stage::after {
  background:
    radial-gradient(circle at 20% 52%, rgba(34, 180, 210, 0.14), transparent 16rem),
    radial-gradient(circle at 78% 44%, rgba(186, 79, 255, 0.14), transparent 15rem),
    linear-gradient(180deg, rgba(3, 6, 12, 0.08), rgba(3, 6, 12, 0.82));
}

.fate-stage > * {
  position: relative;
  z-index: 1;
}

.fate-about-button {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(224, 231, 245, 0.14);
  border-radius: 999px;
  color: rgba(238, 242, 250, 0.88);
  background: rgba(5, 8, 17, 0.58);
  font: 700 0.74rem/1 "Trebuchet MS", Verdana, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

.fate-info-mark {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(238, 242, 250, 0.38);
  border-radius: 50%;
  font-size: 0.7rem;
}

.fate-hero-copy {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.fate-brand-sigil {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  filter:
    drop-shadow(0 0 16px rgba(209, 179, 116, 0.34))
    drop-shadow(0 14px 22px rgba(0, 0, 0, 0.46));
}

.fate-brand-sigil::before,
.fate-brand-sigil::after,
.fate-brand-sigil span::before,
.fate-brand-sigil span::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, #f1d591, #8f6f35);
  clip-path: polygon(50% 0, 66% 42%, 100% 50%, 66% 58%, 50% 100%, 34% 58%, 0 50%, 34% 42%);
}

.fate-brand-sigil::before {
  width: 18px;
  height: 72px;
}

.fate-brand-sigil::after {
  width: 72px;
  height: 18px;
}

.fate-brand-sigil span::before {
  width: 12px;
  height: 54px;
  transform: rotate(45deg);
  opacity: 0.72;
}

.fate-brand-sigil span::after {
  width: 12px;
  height: 54px;
  transform: rotate(-45deg);
  opacity: 0.72;
}

.fate-brand-sigil span {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(219, 188, 119, 0.78);
  border-radius: 50%;
}

.fate-hero-copy h1 {
  margin: 0;
  color: #f7ead1;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 28px rgba(0, 0, 0, 0.52);
}

.fate-tagline {
  margin: 0;
  color: var(--fate-gold);
  font: 700 0.88rem/1.2 "Trebuchet MS", Verdana, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fate-intro {
  width: min(100%, 460px);
  margin: 4px 0 8px;
  color: rgba(228, 232, 241, 0.82);
  font: 400 0.95rem/1.42 "Trebuchet MS", Verdana, sans-serif;
}

.fate-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 860px);
  margin: 0 auto;
}

.fate-project-card {
  --card-line: rgba(255, 255, 255, 0.18);
  --card-core: rgba(255, 255, 255, 0.12);
  position: relative;
  min-height: 344px;
  display: grid;
  grid-template-rows: auto 122px auto 1fr auto;
  gap: 10px;
  overflow: hidden;
  padding: 14px 18px 16px;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: #eff5ff;
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.76), rgba(3, 7, 14, 0.92)),
    rgba(7, 11, 20, 0.84);
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  text-align: center;
  text-decoration: none;
  transform: translateZ(0);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.fate-project-card::before,
.fate-project-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.fate-project-card::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, var(--card-core), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 32%, rgba(0, 0, 0, 0.26));
}

.fate-project-card::after {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 7px;
}

.fate-project-card > * {
  position: relative;
  z-index: 1;
}

.fate-project-card:hover,
.fate-project-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-line) 70%, #ffffff);
  box-shadow:
    0 26px 42px rgba(0, 0, 0, 0.4),
    0 0 30px color-mix(in srgb, var(--card-core) 56%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}

.fate-project-card--real {
  --card-line: rgba(65, 216, 143, 0.38);
  --card-core: rgba(65, 216, 143, 0.24);
}

.fate-project-card--fantasy {
  --card-line: rgba(69, 168, 255, 0.34);
  --card-core: rgba(69, 168, 255, 0.22);
}

.fate-project-card--original {
  --card-line: rgba(192, 97, 255, 0.38);
  --card-core: rgba(192, 97, 255, 0.24);
}

.fate-project-pill {
  justify-self: center;
  min-width: 154px;
  padding: 7px 12px 6px;
  border-radius: 999px;
  color: #dff8ef;
  background: color-mix(in srgb, var(--card-core) 60%, rgba(4, 7, 13, 0.78));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-line) 50%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.fate-project-visual {
  position: relative;
  display: grid;
  min-height: 122px;
  overflow: hidden;
  place-items: center;
}

.fate-card-fan {
  overflow: visible;
}

.fate-card-fan__card {
  position: absolute;
  width: 74px;
  border-radius: 8px;
  filter:
    drop-shadow(0 16px 14px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 20px rgba(65, 216, 143, 0.18));
}

.fate-card-fan__card--one {
  left: 32px;
  top: 26px;
  transform: rotate(-13deg);
}

.fate-card-fan__card--two {
  top: 16px;
  z-index: 2;
  width: 84px;
}

.fate-card-fan__card--three {
  right: 31px;
  top: 26px;
  transform: rotate(13deg);
}

.fate-fantasy-orbit {
  overflow: visible;
  isolation: isolate;
}

.fate-nexus-crystal {
  width: 74px;
  height: 92px;
  border: 1px solid rgba(108, 194, 255, 0.42);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 196, 102, 0.82), transparent 1.35rem),
    linear-gradient(160deg, rgba(24, 56, 104, 0.94), rgba(5, 12, 28, 0.95));
  box-shadow:
    0 0 30px rgba(69, 168, 255, 0.3),
    inset 0 0 22px rgba(69, 168, 255, 0.28);
  transform: rotate(45deg) scale(0.76);
}

.fate-nexus-crystal::before,
.fate-nexus-crystal::after {
  content: "";
  position: absolute;
  inset: 23px;
  border: 1px solid rgba(255, 204, 117, 0.45);
  transform: rotate(45deg);
}

.fate-fantasy-orbit__card {
  position: absolute;
  width: 66px;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border: 1px solid rgba(175, 218, 255, 0.28);
  border-radius: 8px;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.45));
}

.fate-fantasy-orbit__card--left {
  left: 30px;
  top: 35px;
  transform: rotate(-17deg);
}

.fate-fantasy-orbit__card--right {
  right: 30px;
  top: 31px;
  transform: rotate(16deg);
}

.fate-fantasy-orbit__card--front {
  right: 68px;
  bottom: 1px;
  z-index: 2;
  width: 58px;
  transform: rotate(-7deg);
}

.fate-project-visual--original {
  overflow: hidden;
  border-radius: 7px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15, 8, 29, 0.08), rgba(4, 6, 13, 0.36)),
    url("/static/homepage-assets/backgrounds/hero-bg-desktop.webp") 32% center / cover no-repeat;
  border: 1px solid rgba(220, 188, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.3);
}

.fate-eclipse {
  display: none;
}

.fate-silhouette {
  display: none;
}

.fate-project-card--original strong {
  align-self: end;
  color: #f2ddff;
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(192, 97, 255, 0.16);
}

.fate-project-card--original .fate-project-copy {
  align-self: start;
  color: rgba(235, 229, 247, 0.84);
  font-size: 0.84rem;
  line-height: 1.38;
}

.fate-project-action {
  justify-self: center;
  min-width: 138px;
  padding: 9px 16px 8px;
  border: 1px solid color-mix(in srgb, var(--card-line) 42%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--card-line) 80%, #ffffff);
  background: rgba(5, 8, 15, 0.54);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.fate-project-card--original .fate-project-action--quiet {
  color: rgba(244, 233, 255, 0.92);
  border-color: rgba(214, 176, 255, 0.2);
  background: rgba(8, 7, 15, 0.62);
}

.fate-carousel-dots {
  display: none;
}

.fate-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(208, 216, 231, 0.7);
  font: 400 0.78rem/1.2 "Trebuchet MS", Verdana, sans-serif;
}

.fate-studio-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fate-studio-credit > span {
  white-space: nowrap;
}

.fate-studio-logo {
  display: block;
  width: 126px;
  height: auto;
  opacity: 0.86;
  filter: drop-shadow(0 0 12px rgba(209, 179, 116, 0.12));
}

.fate-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fate-footer a {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: rgba(220, 228, 242, 0.74);
  text-decoration: none;
}

.fate-footer svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.fate-about-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 22px;
}

.fate-about-modal:target {
  display: grid;
}

.fate-about-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.74);
  backdrop-filter: blur(10px);
}

.fate-about-modal article {
  position: relative;
  width: min(100%, 460px);
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(209, 179, 116, 0.25);
  border-radius: 8px;
  color: #f6efe3;
  background: rgba(5, 8, 16, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.fate-about-modal h2,
.fate-about-modal p {
  margin: 0;
}

.fate-about-modal h2 {
  color: var(--fate-gold);
  font-size: 1.3rem;
}

.fate-about-modal p {
  color: rgba(231, 237, 248, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.fate-about-close {
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(238, 242, 250, 0.7);
  font: 700 1rem/1 "Trebuchet MS", Verdana, sans-serif;
  text-decoration: none;
}

@media (max-width: 920px) {
  .fate-stage {
    min-height: calc(100svh - 28px);
    align-content: start;
    gap: 14px;
    padding: 28px 16px 18px;
  }

  .fate-about-button {
    display: none;
  }

  .fate-brand-sigil {
    width: 56px;
    height: 56px;
  }

  .fate-brand-sigil::before {
    width: 14px;
    height: 54px;
  }

  .fate-brand-sigil::after {
    width: 54px;
    height: 14px;
  }

  .fate-brand-sigil span {
    width: 32px;
    height: 32px;
  }

  .fate-brand-sigil span::before,
  .fate-brand-sigil span::after {
    width: 9px;
    height: 40px;
  }

  .fate-hero-copy h1 {
    font-size: 2.05rem;
  }

  .fate-tagline {
    font-size: 0.74rem;
  }

  .fate-intro {
    width: min(100%, 300px);
    margin-bottom: 2px;
    font-size: 0.78rem;
  }

  .fate-projects {
    width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 302px);
    grid-template-columns: none;
    justify-content: start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 22px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .fate-projects::-webkit-scrollbar {
    display: none;
  }

  .fate-project-card {
    min-height: 332px;
    scroll-snap-align: center;
  }

  .fate-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
  }

  .fate-carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
  }

  .fate-carousel-dots span:first-child {
    background: var(--fate-green);
    box-shadow: 0 0 12px rgba(65, 216, 143, 0.55);
  }

  .fate-footer {
    gap: 8px;
    font-size: 0.72rem;
  }

  .fate-studio-credit {
    gap: 7px;
  }

  .fate-studio-logo {
    width: 112px;
  }
}

@media (max-width: 520px) {
  body.fate-nexus-page {
    overflow-y: hidden;
  }

  .fate-hub {
    padding: 8px;
  }

  .fate-stage {
    min-height: calc(100svh - 16px);
    padding: 14px 0 12px;
    border-radius: 18px;
  }

  .fate-projects {
    grid-auto-columns: min(82vw, 292px);
    padding-inline: 24px;
  }

  .fate-project-card {
    min-height: 326px;
    grid-template-rows: auto 114px auto 1fr auto;
    padding-inline: 15px;
  }

  .fate-card-fan__card {
    width: 66px;
  }

  .fate-card-fan__card--two {
    width: 76px;
  }

  .fate-fantasy-orbit__card {
    width: 58px;
  }

  .fate-fantasy-orbit__card--front {
    width: 52px;
  }

  .fate-project-copy {
    font-size: 0.78rem;
  }
}
