* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  background: #0a0a0a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* top bar */

.hero__topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  color: #eaeaea;
}

.hero__brand {
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.lang-sep {
  opacity: 0.4;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(234, 234, 234, 0.45);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 4px 2px;
  font-family: inherit;
  transition: color 0.25s ease;
}

.lang-btn:hover {
  color: rgba(234, 234, 234, 0.8);
}

.lang-btn.active {
  color: #ff3b30;
}

/* stage: train + logo text + person */

.hero__stage {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.train-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 88%;
  width: auto;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: grayscale(1) contrast(1.15) brightness(0.52) blur(0.3px);
  will-change: transform, filter;
  pointer-events: none;
}

.train {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.logo-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 128%;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.logo-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.5));
}

/* bottom bar */

.hero__bottombar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 18px 32px 22px;
}

.hero__scroll-hint {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(234, 234, 234, 0.35);
  text-transform: uppercase;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero__brand {
    font-size: 10px;
  }

  .train-wrap {
    height: 100%;
  }

  .logo-wrap {
    width: 114%;
  }

  .person-wrap {
    height: 101%;
    bottom: -1%;
  }
}

@media (max-width: 520px) {
  .train-wrap {
    height: 115%;
  }

  /* phone: title sits in the upper part, the person stands below it */
  .logo-wrap {
    width: 108%;
    top: 22%;
  }

  .person-wrap {
    height: 68%;
    bottom: -2%;
  }
}
