/* The project hub and the homepage share one visual directory. */
.home-hero {
  display: grid;
  align-items: center;
  min-height: 392px;
}
.home-hero .hero-image { object-position: center 57%; }
.home-hero::after {
  background: linear-gradient(90deg, #0b0e12ed 0%, #0b0e12c7 37%, #0b0e1240 69%, transparent);
}
.home-hero .hero-content { width: 660px; max-width: 73%; padding: 36px 54px; }
.home-hero .eyebrow { margin-bottom: 21px; }
.home-hero h1 { font-size: clamp(54px, 5.6vw, 80px); line-height: 1.02; }
.home-hero .hero-lead { max-width: 440px; color: #d4d7d8; margin: 17px 0 21px; line-height: 1.65; }
.home-hero .hero-content .eyebrow,
.home-hero h1,
.home-hero .hero-lead,
.home-hero .actions { animation: none; }
.home-hero .actions .button { min-width: 148px; justify-content: space-between; }
.home-hero .actions .subtle { background: #12171bcf; border-color: #afb9c477; }
.home-hero .actions .subtle:hover { background: #27313a; }

.home-worlds, .hub-worlds { padding: 36px 0 48px; }
.world-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: 22px;
}
.world-section-heading .eyebrow { margin-bottom: 9px; color: var(--accent); }
.world-section-heading h2 { font-size: clamp(29px, 3.4vw, 46px); line-height: 1.12; }
.world-section-heading .text-link { flex-shrink: 0; font-weight: 600; }
.world-section-heading .text-link span { margin-left: 8px; }
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.world-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  background: #1b2027;
  border: 1px solid #39434c;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, background .2s, transform .2s;
}
.world-tile:hover, .world-tile:focus-visible {
  border-color: var(--accent);
  background: #222a33;
}
.world-tile:hover { transform: translateY(-3px); }
.world-image { position: relative; aspect-ratio: 2.25; overflow: hidden; background: #101720; }
.world-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.world-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #141a22ad 0%, transparent 48%);
}
.world-tag {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  padding: 6px 10px;
  border: 1px solid #9eb8c572;
  border-radius: 2px;
  background: #10161be8;
  color: #f0e0c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.world-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  align-items: start;
  gap: 6px 12px;
  padding: 17px 18px 18px;
}
.world-copy h3 { font-size: clamp(20px, 2.1vw, 29px); line-height: 1.1; }
.world-copy p { grid-column: 1 / -1; color: #c1c7ce; font-size: 13px; line-height: 1.6; }
.world-arrow { color: var(--accent); font-size: 21px; line-height: 1; }
.world-shortcuts, .hub-directory {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}
.world-shortcuts { margin-top: 18px; }
.world-shortcuts a, .hub-directory a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #3d4650;
  border-radius: 3px;
  background: #1b2026;
  color: #e8e9e9;
  font-size: 13px;
  font-weight: 600;
}
.world-shortcuts a span { color: var(--accent); }
.world-shortcuts a:hover, .hub-directory a:hover { border-color: var(--accent); }
.home-store { border-top: 1px solid var(--line); padding-top: 52px; }
.home-store .section-heading .eyebrow { margin-bottom: 11px; }

.hub-masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 198px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid #3d4854;
  background: #17212b;
}
.hub-masthead-overview { min-height: 224px; }
.hub-masthead-art {
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hub-masthead::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #131b24 0%, #131b24 27%, #131b24e0 43%, #131b2455 76%, #131b241a);
}
.hub-masthead-copy { padding: 34px 44px; }
.hub-masthead-copy .eyebrow { color: var(--accent); margin-bottom: 12px; }
.hub-masthead h1 { font-size: clamp(37px, 5.6vw, 74px); line-height: 1.04; }
.hub-masthead-copy p:not(.eyebrow) {
  max-width: 460px;
  margin-top: 13px;
  color: #dce1e8;
  font-size: 16px;
  line-height: 1.55;
}
.hub-directory { margin-top: 15px; }
.hub-directory a[aria-current="page"] { background: var(--accent); color: var(--black); border-color: var(--accent); }
.hub-listing { padding-top: 35px; }
.hub-listing .section-heading.compact { margin-top: 0; }
.hub-worlds .world-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-worlds .world-copy h3 { font-size: clamp(19px, 1.9vw, 25px); }

@media (max-width: 1000px) {
  .hub-worlds .world-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .home-hero { min-height: 0; }
  .home-hero .hero-content { width: 100%; max-width: 100%; padding: 30px 22px 29px; }
  .home-hero .hero-image { opacity: .85; object-position: 69% center; }
  .home-hero::after {
    background: linear-gradient(90deg, #0b0e12ee 0%, #0b0e12ad 65%, #0b0e1244),
      linear-gradient(0deg, #0b0e12ac, transparent 70%);
  }
  .home-hero .eyebrow { max-width: 260px; margin-bottom: 16px; }
  .home-hero h1 { font-size: clamp(40px, 10.3vw, 62px); }
  .home-hero .hero-lead { max-width: 360px; margin: 16px 0 21px; }
  .home-hero .actions .button { min-width: 0; }
  .home-hero .orbital-mark { top: 18px; right: 14px; }
  .home-worlds, .hub-worlds { padding: 32px 0 36px; }
  .world-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .world-grid, .hub-worlds .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hub-masthead { margin-top: 18px; min-height: 156px; }
  .hub-masthead-overview { min-height: 209px; }
  .hub-masthead-copy { padding: 25px 20px; }
  .hub-masthead-art { width: 90%; }
  .hub-masthead::after { background: linear-gradient(90deg, #131b24f5, #131b24bf 65%, #131b2466); }
  .hub-masthead-copy p:not(.eyebrow) { font-size: 14px; }
  .hub-directory { margin-top: 12px; }
}

@media (max-width: 480px) {
  .world-grid, .hub-worlds .world-grid { grid-template-columns: 1fr; }
  .world-tile {
    grid-template-columns: minmax(102px, 34%) 1fr;
    grid-template-rows: 1fr;
  }
  .world-image { aspect-ratio: auto; min-height: 108px; }
  .world-image img { position: absolute; inset: 0; }
  .world-tag { top: 7px; left: 7px; padding: 3px 5px; font-size: 9px; letter-spacing: 0; }
  .world-copy { padding: 12px 12px 13px; align-content: center; gap: 5px 7px; }
  .world-copy h3, .hub-worlds .world-copy h3 { font-size: 19px; }
  .world-copy p { font-size: 12px; line-height: 1.45; }
  .world-arrow { font-size: 17px; }
  .hub-directory a, .world-shortcuts a { padding-inline: 9px; font-size: 12px; }
}

