/* Home hero, left copy + right scrolling image grid */
.hero-gotezu {
  --hero-bg: var(--gotezu-bg, #f7f4ef);
  --hero-ink: #1c2539;
  --hero-muted: #5d666f;
  --hero-accent: #fa8b17;
  --hero-gap: 12px;
  --hero-tile: 180px;
  background: var(--hero-bg);
  overflow: hidden;
  position: relative;
}

.hero-gotezu__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 120px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.hero-gotezu__content {
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.hero-gotezu__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-accent);
}

.hero-gotezu__eyebrow span {
  color: var(--hero-muted);
  font-weight: 600;
}

.hero-gotezu__title {
  margin: 0 0 18px;
  font-family: "Red Hat Display", sans-serif;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--hero-ink);
  letter-spacing: -0.02em;
}

.hero-gotezu__title em {
  font-style: normal;
  color: var(--hero-accent);
}

.hero-gotezu__text {
  margin: 0 0 28px;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--hero-muted);
  max-width: 62ch;
}

.hero-gotezu__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-gotezu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 14px 22px;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-gotezu__btn--primary {
  background: var(--hero-accent);
  color: #fff;
  border: 2px solid var(--hero-accent);
}

.hero-gotezu__btn--primary:hover {
  background: #e07a0f;
  border-color: #e07a0f;
  color: #fff;
  transform: translateY(-1px);
}

.hero-gotezu__btn--ghost {
  background: transparent;
  color: var(--hero-ink);
  border: 2px solid #d5d8de;
}

.hero-gotezu__btn--ghost:hover {
  border-color: var(--hero-ink);
  color: var(--hero-ink);
}

/* Right scrolling mosaic */
.hero-gotezu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hero-gap);
  height: min(720px, calc(100vh - 160px));
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hero-gotezu__col {
  overflow: hidden;
  position: relative;
}

.hero-gotezu__track {
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap);
  will-change: transform;
}

.hero-gotezu__col--up .hero-gotezu__track {
  animation: hero-scroll-up 42s linear infinite;
}

.hero-gotezu__col--down .hero-gotezu__track {
  animation: hero-scroll-down 48s linear infinite;
}

.hero-gotezu__col--slow .hero-gotezu__track {
  animation-duration: 56s;
}

.hero-gotezu__tile {
  flex: 0 0 auto;
  width: 100%;
  height: var(--hero-tile);
  border-radius: 14px;
  overflow: hidden;
  background: #e8e4dc;
}

.hero-gotezu__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-gotezu__tile:hover img {
  transform: scale(1.05);
}

@keyframes hero-scroll-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes hero-scroll-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gotezu__col--up .hero-gotezu__track, .hero-gotezu__col--down .hero-gotezu__track {
    animation: none;
  }

  .hero-gotezu__col--down .hero-gotezu__track {
    transform: translateY(-12%);
  }
}

@media (max-width: 991px) {
  .hero-gotezu__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px 20px 40px;
    gap: 32px;
  }

  .hero-gotezu__content {
    max-width: none;
    text-align: center;
  }

  .hero-gotezu__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-gotezu__cta {
    justify-content: center;
  }

  .hero-gotezu__grid {
    height: 380px;
    --hero-tile: 150px;
  }
}

@media (max-width: 575px) {
  .hero-gotezu__grid {
    grid-template-columns: repeat(2, 1fr);
    height: 320px;
    --hero-tile: 140px;
  }

  .hero-gotezu__col--slow {
    display: none;
  }

  .hero-gotezu__btn {
    width: 100%;
  }
}

/* Trusted logo wall, floating marquee */
.logo-wall {
  background: #fff;
  border-top: 1px solid rgba(28, 37, 57, 0.06);
  border-bottom: 1px solid rgba(28, 37, 57, 0.06);
  padding: 28px 0;
  overflow: hidden;
}

.logo-wall__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-wall__label {
  flex: 0 0 auto;
  margin: 0;
  font-family: "Red Hat Display", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1c2539;
  white-space: nowrap;
}

.logo-wall__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logo-wall__track {
  display: flex;
  width: max-content;
  animation: logo-wall-scroll 40s linear infinite;
  will-change: transform;
}

.logo-wall__group {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

.logo-wall__group img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.25s ease;
}

.logo-wall__group img:hover {
  transform: translateY(-2px);
}

.logo-wall:hover .logo-wall__track {
  animation-play-state: paused;
}

@keyframes logo-wall-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wall__track {
    animation: none;
  }

  .logo-wall__viewport {
    overflow-x: auto;
  }
}

@media (max-width: 767px) {
  .logo-wall__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px;
  }

  .logo-wall__viewport {
    width: 100%;
  }

  .logo-wall__group {
    gap: 36px;
    padding-right: 36px;
  }

  .logo-wall__group img {
    height: 30px;
  }
}
