/* Home — cinematic hero + sections */

#page-home.home-ready .home-hero-content {
  opacity: 1;
  transform: none;
}

.home-hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: home-kenburns 20s ease-out forwards;
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 23, 25, 0.18) 0%, rgba(22, 23, 25, 0.28) 38%, rgba(22, 23, 25, 0.88) 78%, #161719 100%),
    linear-gradient(90deg, rgba(22, 23, 25, 0.35) 0%, transparent 45%, rgba(22, 23, 25, 0.25) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px 56px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease 0.15s, transform 0.85s ease 0.15s;
}

.home-hero-eyebrow {
  margin: 0 0 10px;
  color: rgba(88, 132, 237, 0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero-content h1 {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.home-hero-content h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.home-hero-lead {
  margin: 0;
  max-width: 34ch;
  color: rgba(245, 245, 245, 0.86);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-hero .btn.primary {
  box-shadow: 0 14px 36px rgba(64, 120, 236, 0.45);
}

.home-hero .btn.ghost {
  background: rgba(22, 23, 25, 0.42);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.home-hero .btn.ghost:hover {
  background: rgba(64, 120, 236, 0.16);
  border-color: rgba(64, 120, 236, 0.45);
}

.home-section {
  padding: 64px 0 8px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.home-section.is-in {
  opacity: 1;
  transform: none;
}

.home-join .section-head {
  margin-bottom: 28px;
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(14, 41, 89, 0.55);
}

.home-step {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.25s ease;
}

.home-step:last-child {
  border-right: 0;
}

.home-step:hover {
  background: rgba(64, 120, 236, 0.06);
}

.home-step-num {
  display: block;
  margin-bottom: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.home-step h3 {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.home-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.home-world {
  position: relative;
  margin-top: 56px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.home-world-inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 72px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  overflow: hidden;
}

.home-world-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 4%;
  font-family: "Poppins", sans-serif;
  font-size: clamp(48px, 11vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.home-world-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
}

.home-world-copy h2 {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  text-align: center;
}

.home-world-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.home-world .btn.ghost {
  background: rgba(22, 23, 25, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.home-world .btn.ghost:hover {
  border-color: rgba(64, 120, 236, 0.45);
  background: rgba(64, 120, 236, 0.12);
}

.home-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-why article {
  padding: 8px 4px 8px 0;
  border: 0;
  border-top: 2px solid rgba(64, 120, 236, 0.45);
  background: transparent;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.home-why article:hover {
  transform: translateY(-3px);
  box-shadow: none;
  border-color: rgba(64, 120, 236, 0.75);
}

.home-why i {
  display: inline-flex;
  margin: 18px 0 12px;
  font-size: 20px;
  color: var(--accent);
}

.home-why h3 {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
}

.home-why p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.home-gallery {
  padding: 28px 0 8px;
  overflow: hidden;
}

.home-gallery-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.home-gallery-track {
  display: flex;
  width: max-content;
  animation: home-gallery-scroll 55s linear infinite;
}

.home-gallery:hover .home-gallery-track {
  animation-play-state: paused;
}

.home-gallery-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.home-gallery-set img {
  display: block;
  height: 220px;
  width: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

@keyframes home-gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-gallery-track {
    animation: none;
  }

  .home-gallery-viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.home-activities .home-act-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-act {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(14, 41, 89, 0.72);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.home-act:hover {
  transform: translateY(-5px);
  border-color: rgba(64, 120, 236, 0.38);
  box-shadow: var(--shadow);
}

.home-act-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #161719;
}

.home-act-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-act:hover .home-act-media img {
  transform: scale(1.06);
}

.home-act-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(22, 23, 25, 0.75));
  pointer-events: none;
}

.home-act-risk {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  border: 1px solid transparent;
}

.home-act-risk.low {
  color: #86efac;
  background: rgba(22, 23, 25, 0.55);
  border-color: rgba(34, 197, 94, 0.35);
}

.home-act-risk.medium {
  color: #fcd34d;
  background: rgba(22, 23, 25, 0.55);
  border-color: rgba(245, 158, 11, 0.4);
}

.home-act-risk.high {
  color: #fca5a5;
  background: rgba(22, 23, 25, 0.55);
  border-color: rgba(239, 68, 68, 0.4);
}

.home-act-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  flex: 1;
}

.home-act-body h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-act-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.home-act-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.home-act-meta i {
  color: var(--accent);
  font-size: 12px;
}

.home-act-pay {
  color: #5884ED !important;
}

.home-act-pay i {
  color: #5884ED !important;
}

.home-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.home-reveal.is-in {
  opacity: 1;
  transform: none;
}

.home-activities .home-reveal:nth-child(2) { transition-delay: 0.05s; }
.home-activities .home-reveal:nth-child(3) { transition-delay: 0.1s; }
.home-activities .home-reveal:nth-child(4) { transition-delay: 0.15s; }
.home-activities .home-reveal:nth-child(5) { transition-delay: 0.2s; }
.home-activities .home-reveal:nth-child(6) { transition-delay: 0.25s; }
.home-activities .home-reveal:nth-child(7) { transition-delay: 0.3s; }

.home-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0 36px;
  margin: 20px 0 12px;
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  box-shadow: none;
}

.home-cta h2 {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  text-align: left;
}

.home-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 42ch;
  font-size: 15px;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 2px;
}

@keyframes home-kenburns {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-content,
  .home-hero-media img,
  .home-section,
  .home-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 960px) {
  .home-hero {
    min-height: min(84vh, 760px);
    align-items: flex-end;
  }

  .home-hero-content {
    padding-bottom: 44px;
    text-align: center;
  }

  .home-hero-content h1,
  .home-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .home-ctas {
    justify-content: center;
  }

  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-step {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .home-step:last-child {
    border-bottom: 0;
  }

  .home-world {
    min-height: 0;
  }

  .home-world-inner {
    min-height: 300px;
    padding: 56px 18px;
  }

  .home-world-mark {
    white-space: normal;
    text-align: center;
    font-size: clamp(40px, 14vw, 72px);
    line-height: 0.95;
  }

  .home-world-copy {
    max-width: none;
  }

  .home-why {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-activities .home-act-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 0 32px;
  }

  .home-cta h2,
  .home-cta p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 78vh;
  }

  .home-hero-media img {
    object-position: center 38%;
  }

  .home-section {
    padding-top: 44px;
  }

  .home-gallery-set img {
    height: 160px;
    width: 240px;
    border-radius: 12px;
  }

  .home-gallery-track {
    animation-duration: 40s;
  }

  .home-step {
    padding: 22px 18px;
  }

  .home-activities .home-act-grid {
    grid-template-columns: 1fr;
  }

  .home-act-meta {
    flex-wrap: wrap;
  }
}
