/* ─────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  background-color: #000000;
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: #000000;
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background-color: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Left group: logo + wordmark */
.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-wordmark {
  height: 33px;
  width: auto;
  display: block;
}

/* Logo wrapper & dropdown */
.logo-wrapper {
  position: relative;
}

.logo-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  padding: 6px 8px 6px 4px;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {
  .logo-wrapper:hover .logo-btn {
    opacity: 0.8;
  }
}

.logo-wrapper.is-open .logo-btn {
  opacity: 0.8;
}

.header-logo {
  height: 40px;
  width: auto;
}

.chevron-down {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .logo-wrapper:hover .chevron-down {
    transform: rotate(180deg);
  }
}

.logo-wrapper.is-open .chevron-down {
  transform: rotate(180deg);
}

.logo-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 360px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Bridge the gap between button and dropdown so hover doesn't break */
.logo-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

@media (hover: hover) {
  .logo-wrapper:hover .logo-dropdown {
    opacity: 1;
    transform: translateY(4px);
    pointer-events: auto;
  }
}

.logo-wrapper.is-open .logo-dropdown {
  opacity: 1;
  transform: translateY(4px);
  pointer-events: auto;
}

.logo-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.logo-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.logo-dropdown-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Dropdown two-column grid */
.logo-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.logo-dropdown-col {
  padding: 4px 0;
}

.logo-dropdown-col:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 2px;
}

.logo-dropdown-col:last-child {
  padding-left: 2px;
}

.logo-dropdown-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  padding: 6px 12px 4px;
  margin: 0;
}

.logo-dropdown-svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
}

.logo-dropdown-item:hover .logo-dropdown-svg {
  color: rgba(255, 255, 255, 0.85);
}

.ldi--steam   { filter: url(#icon-blue); }
.ldi--youtube { filter: url(#icon-red); }
.ldi--discord { filter: url(#icon-blue); }
.ldi--github  { filter: url(#icon-purple); }

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 10px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
  height: 2px;
  width: 0;
  background: currentColor;
  border-radius: 1px;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: calc(100% - 20px);
}

/* Right actions placeholder */
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 11px;
  left: 28px;
  right: 28px;
  height: 2px;
  width: 0;
  background: currentColor;
  border-radius: 1px;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::after {
  width: calc(100% - 56px);
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #1176d5, #21b6cc);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  filter: none;
}


/* Icon-only social buttons (GitHub, Steam, YouTube) */
.btn-icon-social {
  border: 2px solid transparent;
  background:
    transparent padding-box,
    linear-gradient(135deg, #1176d5, #21b6cc) border-box;
  color: #ffffff;
  height: 38px;
  width: 38px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.btn-icon-social::after {
  display: none;
}

.btn-icon-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1176d5, #21b6cc);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-icon-social:hover {
  filter: none;
  transform: translateY(-1px);
}

.btn-icon-social:hover::before {
  opacity: 1;
}

.btn-social-icon {
  position: relative;
  z-index: 1;
  height: 18px;
  width: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  overflow: hidden;
}

.btn-outline::after {
  display: none;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1176d5, #21b6cc);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-outline:hover {
  border-color: transparent;
  filter: none;
  transform: translateY(-1px);
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-outline:active {
  filter: none;
}

.btn-outline span {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   FOLD — above-the-fold container
───────────────────────────────────────────────────────────── */
.fold {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* Footer sits below the fold; no clipping beyond this section */
}

/* ─────────────────────────────────────────────────────────────
   HERO CAROUSEL
───────────────────────────────────────────────────────────── */
.hc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* Slides stack on top of each other */
.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hc-slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Background image */
.hc-bg {
  position: absolute;
  inset: 0;
}

.hc-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.2);
  transform-origin: center center;
  will-change: transform;
}

.hc-bg-img.is-animating {
  animation: hcZoomIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes hcZoomIn {
  from { transform: scale(1.2); }
  to   { transform: scale(1.0); }
}

/* Dark gradient overlay — heavy on left, fades to transparent on right;
   bottom fades to solid #0a0a0a to blend seamlessly into the BTA section */
.hc-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.70) 28%,
      rgba(0, 0, 0, 0.35) 55%,
      rgba(0, 0, 0, 0.00) 78%
    ),
    linear-gradient(
      to top,
      rgba(10, 10, 10, 0.25) 0%,
      rgba(10, 10, 10, 0.00) 18%
    );
}

/* Left content panel — spans from top of hero to top of BTA section */
.hc-content {
  position: absolute;
  top: 0;
  bottom: var(--bta-h, 240px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 28px;
  z-index: 2;
}

.hc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hc-brand-logo {
  height: 34px;
  width: auto;
}

.hc-brand-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.4rem;
  font-weight: 200;
  line-height: 1;
}

.hc-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hc-desc {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 32px;
  max-width: 420px;
}

/* Bottom controls — sit just above the BTA section */
.hc-controls {
  position: absolute;
  bottom: calc(var(--bta-h, 240px) + 16px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hc-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hc-dot {
  position: relative;
  height: 4px;
  width: 22px;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: width 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.hc-dot--active {
  width: 52px;
}

.hc-dot-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
}

.hc-pause-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.hc-pause-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* Toggle pause/play icons via class */
.hc-icon--play { display: none; }
.hc-pause-btn.is-paused .hc-icon--pause { display: none; }
.hc-pause-btn.is-paused .hc-icon--play  { display: block; }

/* ─────────────────────────────────────────────────────────────
   BY THEDEVATLAS
───────────────────────────────────────────────────────────── */
.bta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 24px 0 28px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 10, 10, 0.60) 28%,
    rgba(10, 10, 10, 0.94) 60%,
    rgba(10, 10, 10, 1.00) 100%
  );
}

.bta-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

.bta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bta-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bta-logo {
  height: 24px;
  width: auto;
}

.bta-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.bta-reel {
  position: relative;
}

.bta-arrow {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: calc(0.82rem * 1.4 * 2 + 8px); /* reserve title + gap so arrow centers on the thumbnail */
  height: 34px;
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.5s ease;
}

#bta-prev { left:  -17px; }
#bta-next { right: -17px; }

.bta-arrow:hover {
  background: rgba(0, 0, 0, 0.95);
  color: #ffffff;
}

.bta-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.bta-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.bta-viewport::-webkit-scrollbar {
  display: none;
}

.bta-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none; /* smoother drag feel */
}

.bta-track {
  display: flex;
  gap: 14px;
}

/* ~5 cards visible at full width; vw ensures sizing is relative to viewport, not the overflowing track */
.bta-card {
  flex: 0 0 calc((100vw - 112px) / 5);
  min-width: 150px;
  max-width: 270px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
}

.bta-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
}

.bta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  draggable: false;           /* hint to some engines */
  -webkit-user-drag: none;   /* Safari / Chrome */
  user-drag: none;
  pointer-events: none;      /* let mouse events reach the viewport, not the img */
}

.bta-card:hover .bta-thumb img {
  transform: scale(1.05);
}

.bta-vtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── See-more text toggle ──────────────────────────────── */
.bta-see-more {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.bta-see-more__default,
.bta-see-more__hover {
  display: block;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.bta-see-more__hover {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

/* Underline grows in under the hover text */
.bta-see-more__hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background: currentColor;
  border-radius: 1px;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trigger: heading <a.bta-see-more>:hover */
.bta-see-more:hover .bta-see-more__default {
  opacity: 0;
  transform: translateY(-6px);
}

.bta-see-more:hover .bta-see-more__hover {
  opacity: 1;
  transform: translateY(0);
}

.bta-see-more:hover .bta-see-more__hover::after {
  width: 100%;
}

/* Trigger: more card — activation from whole-card hover */
.bta-card--more:hover .bta-see-more__default {
  opacity: 0;
  transform: translateY(-6px);
}

.bta-card--more:hover .bta-see-more__hover {
  opacity: 1;
  transform: translateY(0);
}

.bta-card--more:hover .bta-see-more__hover::after {
  width: 100%;
}

/* More card thumbnail — grey box with + icon */
.bta-thumb--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e1e1e;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.25s ease, background 0.25s ease;
}

.bta-card--more:hover .bta-thumb--more {
  background: #272727;
  color: rgba(255, 255, 255, 0.65);
}

/* Position context for the see-more spans inside the vtitle */
.bta-vtitle--more {
  position: relative;
  overflow: visible;
}

/* ─────────────────────────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 32px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

/* ── Left: Logos ── */
.footer-logos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

.footer-wordmark-img {
  height: 38px;
  width: auto;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  margin-top: 4px;
}

/* ── Link columns ── */
.footer-col-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-link-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer-links a:hover .footer-link-icon {
  opacity: 1;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hc-content {
    padding: 80px 28px;
  }

  .bta-card {
    flex: 0 0 calc((100vw - 80px) / 3);
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-logos {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

  /* ── Header mobile: hide nav & socials, full-width dropdown ── */
  .header-nav {
    display: none;
  }

  .header-right {
    display: none;
  }

  .header-left {
    flex: 1;
    justify-content: space-between;
  }

  .logo-dropdown {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    min-width: unset;
    transform: translateY(0);
  }

  .logo-dropdown::before {
    display: none;
  }

  /* ── Hero carousel – mobile ── */

  /* Replace the left-heavy horizontal scrim with a vertical one so
     the centered text block stays readable over the full-width image */
  .hc-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.60) 0%,
        rgba(0, 0, 0, 0.50) 50%,
        rgba(10, 10, 10, 0.80) 100%
      );
  }

  /* Center all content */
  .hc-content {
    align-items: center;
    text-align: center;
    padding: 80px 24px 20px;
  }

  /* Center the logo / separator / project-name row */
  .hc-brand {
    justify-content: center;
  }

  /* Let the description use the full column width */
  .hc-desc {
    max-width: 100%;
  }

  /* ── BTA carousel – mobile ── */

  .bta-inner {
    padding: 0 0 0 16px; /* bleed right for scroll hint */
  }

  .bta-arrow {
    display: none; /* arrows replaced by swipe */
  }

  .bta-track {
    padding-right: 16px; /* breathing room after last card */
  }

  .bta-card {
    flex: 0 0 calc((100vw - 50px) / 2);
    max-width: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
  }

  .footer-logo-row {
    justify-content: center;
  }

  .footer-logos {
    align-items: center;
    text-align: center;
  }
}

